tursoclient

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type APIToken

type APIToken struct {
	// The name given to the API Token.
	Name OptString `json:"name"`
	// The ID generated by Turso for the API Token.
	ID OptString `json:"id"`
}

Ref: #/components/schemas/APIToken

func (*APIToken) Decode

func (s *APIToken) Decode(d *jx.Decoder) error

Decode decodes APIToken from json.

func (*APIToken) Encode

func (s *APIToken) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*APIToken) GetID

func (s *APIToken) GetID() OptString

GetID returns the value of ID.

func (*APIToken) GetName

func (s *APIToken) GetName() OptString

GetName returns the value of Name.

func (*APIToken) MarshalJSON

func (s *APIToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*APIToken) SetID

func (s *APIToken) SetID(val OptString)

SetID sets the value of ID.

func (*APIToken) SetName

func (s *APIToken) SetName(val OptString)

SetName sets the value of Name.

func (*APIToken) UnmarshalJSON

func (s *APIToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AddLocationToGroupBadRequest

type AddLocationToGroupBadRequest struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*AddLocationToGroupBadRequest) Decode

Decode decodes AddLocationToGroupBadRequest from json.

func (*AddLocationToGroupBadRequest) Encode

func (s *AddLocationToGroupBadRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AddLocationToGroupBadRequest) GetError

GetError returns the value of Error.

func (*AddLocationToGroupBadRequest) MarshalJSON

func (s *AddLocationToGroupBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddLocationToGroupBadRequest) SetError

func (s *AddLocationToGroupBadRequest) SetError(val OptString)

SetError sets the value of Error.

func (*AddLocationToGroupBadRequest) UnmarshalJSON

func (s *AddLocationToGroupBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AddLocationToGroupOK

type AddLocationToGroupOK struct {
	// The group with the added location.
	Group OptBaseGroup `json:"group"`
}

func (*AddLocationToGroupOK) Decode

func (s *AddLocationToGroupOK) Decode(d *jx.Decoder) error

Decode decodes AddLocationToGroupOK from json.

func (*AddLocationToGroupOK) Encode

func (s *AddLocationToGroupOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AddLocationToGroupOK) GetGroup

func (s *AddLocationToGroupOK) GetGroup() OptBaseGroup

GetGroup returns the value of Group.

func (*AddLocationToGroupOK) MarshalJSON

func (s *AddLocationToGroupOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddLocationToGroupOK) SetGroup

func (s *AddLocationToGroupOK) SetGroup(val OptBaseGroup)

SetGroup sets the value of Group.

func (*AddLocationToGroupOK) UnmarshalJSON

func (s *AddLocationToGroupOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AddLocationToGroupParams

type AddLocationToGroupParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
	// The location code to add to the group.
	Location string
}

AddLocationToGroupParams is parameters of addLocationToGroup operation.

type AddLocationToGroupRes

type AddLocationToGroupRes interface {
	// contains filtered or unexported methods
}

type AddOrganizationMemberConflict

type AddOrganizationMemberConflict struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*AddOrganizationMemberConflict) Decode

Decode decodes AddOrganizationMemberConflict from json.

func (*AddOrganizationMemberConflict) Encode

Encode implements json.Marshaler.

func (*AddOrganizationMemberConflict) GetError

GetError returns the value of Error.

func (*AddOrganizationMemberConflict) MarshalJSON

func (s *AddOrganizationMemberConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddOrganizationMemberConflict) SetError

func (s *AddOrganizationMemberConflict) SetError(val OptString)

SetError sets the value of Error.

func (*AddOrganizationMemberConflict) UnmarshalJSON

func (s *AddOrganizationMemberConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AddOrganizationMemberNotFound

type AddOrganizationMemberNotFound struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*AddOrganizationMemberNotFound) Decode

Decode decodes AddOrganizationMemberNotFound from json.

func (*AddOrganizationMemberNotFound) Encode

Encode implements json.Marshaler.

func (*AddOrganizationMemberNotFound) GetError

GetError returns the value of Error.

func (*AddOrganizationMemberNotFound) MarshalJSON

func (s *AddOrganizationMemberNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddOrganizationMemberNotFound) SetError

func (s *AddOrganizationMemberNotFound) SetError(val OptString)

SetError sets the value of Error.

func (*AddOrganizationMemberNotFound) UnmarshalJSON

func (s *AddOrganizationMemberNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AddOrganizationMemberOK

type AddOrganizationMemberOK struct {
	Member OptUsername `json:"member"`
	Role   OptRole     `json:"role"`
}

func (*AddOrganizationMemberOK) Decode

func (s *AddOrganizationMemberOK) Decode(d *jx.Decoder) error

Decode decodes AddOrganizationMemberOK from json.

func (*AddOrganizationMemberOK) Encode

func (s *AddOrganizationMemberOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AddOrganizationMemberOK) GetMember

func (s *AddOrganizationMemberOK) GetMember() OptUsername

GetMember returns the value of Member.

func (*AddOrganizationMemberOK) GetRole

func (s *AddOrganizationMemberOK) GetRole() OptRole

GetRole returns the value of Role.

func (*AddOrganizationMemberOK) MarshalJSON

func (s *AddOrganizationMemberOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddOrganizationMemberOK) SetMember

func (s *AddOrganizationMemberOK) SetMember(val OptUsername)

SetMember sets the value of Member.

func (*AddOrganizationMemberOK) SetRole

func (s *AddOrganizationMemberOK) SetRole(val OptRole)

SetRole sets the value of Role.

func (*AddOrganizationMemberOK) UnmarshalJSON

func (s *AddOrganizationMemberOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddOrganizationMemberOK) Validate

func (s *AddOrganizationMemberOK) Validate() error

type AddOrganizationMemberParams

type AddOrganizationMemberParams struct {
	// The name of the organization or user.
	OrganizationName string
}

AddOrganizationMemberParams is parameters of addOrganizationMember operation.

type AddOrganizationMemberReq

type AddOrganizationMemberReq struct {
	// The username of an existing Turso user.
	Username OptString `json:"username"`
	// The role given to the user.
	Role OptAddOrganizationMemberReqRole `json:"role"`
}

func (*AddOrganizationMemberReq) Decode

func (s *AddOrganizationMemberReq) Decode(d *jx.Decoder) error

Decode decodes AddOrganizationMemberReq from json.

func (*AddOrganizationMemberReq) Encode

func (s *AddOrganizationMemberReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AddOrganizationMemberReq) GetRole

GetRole returns the value of Role.

func (*AddOrganizationMemberReq) GetUsername

func (s *AddOrganizationMemberReq) GetUsername() OptString

GetUsername returns the value of Username.

func (*AddOrganizationMemberReq) MarshalJSON

func (s *AddOrganizationMemberReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddOrganizationMemberReq) SetRole

SetRole sets the value of Role.

func (*AddOrganizationMemberReq) SetUsername

func (s *AddOrganizationMemberReq) SetUsername(val OptString)

SetUsername sets the value of Username.

func (*AddOrganizationMemberReq) UnmarshalJSON

func (s *AddOrganizationMemberReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddOrganizationMemberReq) Validate

func (s *AddOrganizationMemberReq) Validate() error

type AddOrganizationMemberReqRole

type AddOrganizationMemberReqRole string

The role given to the user.

const (
	AddOrganizationMemberReqRoleAdmin  AddOrganizationMemberReqRole = "admin"
	AddOrganizationMemberReqRoleMember AddOrganizationMemberReqRole = "member"
)

func (AddOrganizationMemberReqRole) AllValues

AllValues returns all AddOrganizationMemberReqRole values.

func (*AddOrganizationMemberReqRole) Decode

Decode decodes AddOrganizationMemberReqRole from json.

func (AddOrganizationMemberReqRole) Encode

Encode encodes AddOrganizationMemberReqRole as json.

func (AddOrganizationMemberReqRole) MarshalJSON

func (s AddOrganizationMemberReqRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AddOrganizationMemberReqRole) MarshalText

func (s AddOrganizationMemberReqRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AddOrganizationMemberReqRole) UnmarshalJSON

func (s *AddOrganizationMemberReqRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddOrganizationMemberReqRole) UnmarshalText

func (s *AddOrganizationMemberReqRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AddOrganizationMemberReqRole) Validate

func (s AddOrganizationMemberReqRole) Validate() error

type AddOrganizationMemberRes

type AddOrganizationMemberRes interface {
	// contains filtered or unexported methods
}

type AuditLog

type AuditLog struct {
	// The code associated to the action taken.
	Code OptAuditLogCode `json:"code"`
	// Additional context from the performed action.
	Message OptString `json:"message"`
	// Where this action was performed. Will be either `cli` or `web` depending on the `User-Agent` sent
	// to the API.
	Origin OptString `json:"origin"`
	// The username of the user who performed the action.
	Author OptString `json:"author"`
	// A formatted [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp this action was performed.
	CreatedAt OptString `json:"created_at"`
	// The payload of the action performed.
	Data *AuditLogData `json:"data"`
}

Ref: #/components/schemas/AuditLog

func (*AuditLog) Decode

func (s *AuditLog) Decode(d *jx.Decoder) error

Decode decodes AuditLog from json.

func (*AuditLog) Encode

func (s *AuditLog) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuditLog) GetAuthor

func (s *AuditLog) GetAuthor() OptString

GetAuthor returns the value of Author.

func (*AuditLog) GetCode

func (s *AuditLog) GetCode() OptAuditLogCode

GetCode returns the value of Code.

func (*AuditLog) GetCreatedAt

func (s *AuditLog) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*AuditLog) GetData

func (s *AuditLog) GetData() *AuditLogData

GetData returns the value of Data.

func (*AuditLog) GetMessage

func (s *AuditLog) GetMessage() OptString

GetMessage returns the value of Message.

func (*AuditLog) GetOrigin

func (s *AuditLog) GetOrigin() OptString

GetOrigin returns the value of Origin.

func (*AuditLog) MarshalJSON

func (s *AuditLog) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuditLog) SetAuthor

func (s *AuditLog) SetAuthor(val OptString)

SetAuthor sets the value of Author.

func (*AuditLog) SetCode

func (s *AuditLog) SetCode(val OptAuditLogCode)

SetCode sets the value of Code.

func (*AuditLog) SetCreatedAt

func (s *AuditLog) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*AuditLog) SetData

func (s *AuditLog) SetData(val *AuditLogData)

SetData sets the value of Data.

func (*AuditLog) SetMessage

func (s *AuditLog) SetMessage(val OptString)

SetMessage sets the value of Message.

func (*AuditLog) SetOrigin

func (s *AuditLog) SetOrigin(val OptString)

SetOrigin sets the value of Origin.

func (*AuditLog) UnmarshalJSON

func (s *AuditLog) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AuditLog) Validate

func (s *AuditLog) Validate() error

type AuditLogCode

type AuditLogCode string

The code associated to the action taken.

const (
	AuditLogCodeUserSignup     AuditLogCode = "user-signup"
	AuditLogCodeDbCreate       AuditLogCode = "db-create"
	AuditLogCodeDbDelete       AuditLogCode = "db-delete"
	AuditLogCodeInstanceCreate AuditLogCode = "instance-create"
	AuditLogCodeInstanceDelete AuditLogCode = "instance-delete"
	AuditLogCodeOrgCreate      AuditLogCode = "org-create"
	AuditLogCodeOrgDelete      AuditLogCode = "org-delete"
	AuditLogCodeOrgMemberAdd   AuditLogCode = "org-member-add"
	AuditLogCodeOrgMemberRm    AuditLogCode = "org-member-rm"
	AuditLogCodeOrgMemberLeave AuditLogCode = "org-member-leave"
	AuditLogCodeOrgPlanUpdate  AuditLogCode = "org-plan-update"
	AuditLogCodeOrgSetOverages AuditLogCode = "org-set-overages"
	AuditLogCodeGroupCreate    AuditLogCode = "group-create"
	AuditLogCodeGroupDelete    AuditLogCode = "group-delete"
	AuditLogCodeMfaEnable      AuditLogCode = "mfa-enable"
	AuditLogCodeMfaDisable     AuditLogCode = "mfa-disable"
)

func (AuditLogCode) AllValues

func (AuditLogCode) AllValues() []AuditLogCode

AllValues returns all AuditLogCode values.

func (*AuditLogCode) Decode

func (s *AuditLogCode) Decode(d *jx.Decoder) error

Decode decodes AuditLogCode from json.

func (AuditLogCode) Encode

func (s AuditLogCode) Encode(e *jx.Encoder)

Encode encodes AuditLogCode as json.

func (AuditLogCode) MarshalJSON

func (s AuditLogCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AuditLogCode) MarshalText

func (s AuditLogCode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AuditLogCode) UnmarshalJSON

func (s *AuditLogCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AuditLogCode) UnmarshalText

func (s *AuditLogCode) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AuditLogCode) Validate

func (s AuditLogCode) Validate() error

type AuditLogData

type AuditLogData struct{}

The payload of the action performed.

func (*AuditLogData) Decode

func (s *AuditLogData) Decode(d *jx.Decoder) error

Decode decodes AuditLogData from json.

func (*AuditLogData) Encode

func (s *AuditLogData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuditLogData) MarshalJSON

func (s *AuditLogData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuditLogData) UnmarshalJSON

func (s *AuditLogData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BaseGroup

type BaseGroup struct {
	// The group name, unique across your organization.
	Name OptString `json:"name"`
	// The current libSQL server version the databases in that group are running.
	Version OptString `json:"version"`
	// The group universal unique identifier (UUID).
	UUID OptString `json:"uuid"`
	// An array of location keys the group is located.
	Locations []string `json:"locations"`
	// The primary location key.
	Primary OptString `json:"primary"`
	// Groups on the free tier get archived after some inactivity.
	Archived OptBool `json:"archived"`
}

Ref: #/components/schemas/BaseGroup

func (*BaseGroup) Decode

func (s *BaseGroup) Decode(d *jx.Decoder) error

Decode decodes BaseGroup from json.

func (*BaseGroup) Encode

func (s *BaseGroup) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BaseGroup) GetArchived

func (s *BaseGroup) GetArchived() OptBool

GetArchived returns the value of Archived.

func (*BaseGroup) GetLocations

func (s *BaseGroup) GetLocations() []string

GetLocations returns the value of Locations.

func (*BaseGroup) GetName

func (s *BaseGroup) GetName() OptString

GetName returns the value of Name.

func (*BaseGroup) GetPrimary

func (s *BaseGroup) GetPrimary() OptString

GetPrimary returns the value of Primary.

func (*BaseGroup) GetUUID

func (s *BaseGroup) GetUUID() OptString

GetUUID returns the value of UUID.

func (*BaseGroup) GetVersion

func (s *BaseGroup) GetVersion() OptString

GetVersion returns the value of Version.

func (*BaseGroup) MarshalJSON

func (s *BaseGroup) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BaseGroup) SetArchived

func (s *BaseGroup) SetArchived(val OptBool)

SetArchived sets the value of Archived.

func (*BaseGroup) SetLocations

func (s *BaseGroup) SetLocations(val []string)

SetLocations sets the value of Locations.

func (*BaseGroup) SetName

func (s *BaseGroup) SetName(val OptString)

SetName sets the value of Name.

func (*BaseGroup) SetPrimary

func (s *BaseGroup) SetPrimary(val OptString)

SetPrimary sets the value of Primary.

func (*BaseGroup) SetUUID

func (s *BaseGroup) SetUUID(val OptString)

SetUUID sets the value of UUID.

func (*BaseGroup) SetVersion

func (s *BaseGroup) SetVersion(val OptString)

SetVersion sets the value of Version.

func (*BaseGroup) UnmarshalJSON

func (s *BaseGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AddLocationToGroup

func (c *Client) AddLocationToGroup(ctx context.Context, params AddLocationToGroupParams) (AddLocationToGroupRes, error)

AddLocationToGroup invokes addLocationToGroup operation.

Adds a location to the specified group.

POST /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}

func (*Client) AddOrganizationMember

AddOrganizationMember invokes addOrganizationMember operation.

Add an existing Turso user to an organization.

POST /v1/organizations/{organizationName}/members

func (*Client) CreateAPIToken

func (c *Client) CreateAPIToken(ctx context.Context, params CreateAPITokenParams) (jx.Raw, error)

CreateAPIToken invokes createAPIToken operation.

Returns a new API token belonging to a user.

POST /v1/auth/api-tokens/{tokenName}

func (*Client) CreateDatabase

func (c *Client) CreateDatabase(ctx context.Context, request *CreateDatabaseInput, params CreateDatabaseParams) (CreateDatabaseRes, error)

CreateDatabase invokes createDatabase operation.

Creates a new database in a group for the organization or user.

POST /v1/organizations/{organizationName}/databases

func (*Client) CreateDatabaseToken

func (c *Client) CreateDatabaseToken(ctx context.Context, request OptCreateTokenInput, params CreateDatabaseTokenParams) (CreateDatabaseTokenRes, error)

CreateDatabaseToken invokes createDatabaseToken operation.

Generates an authorization token for the specified database.

POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/tokens

func (*Client) CreateGroup

func (c *Client) CreateGroup(ctx context.Context, request *NewGroup, params CreateGroupParams) (CreateGroupRes, error)

CreateGroup invokes createGroup operation.

Creates a new group for the organization or user.

POST /v1/organizations/{organizationName}/groups

func (*Client) CreateGroupToken

func (c *Client) CreateGroupToken(ctx context.Context, request OptCreateTokenInput, params CreateGroupTokenParams) (CreateGroupTokenRes, error)

CreateGroupToken invokes createGroupToken operation.

Generates an authorization token for the specified group.

POST /v1/organizations/{organizationName}/groups/{groupName}/auth/tokens

func (*Client) DeleteDatabase

func (c *Client) DeleteDatabase(ctx context.Context, params DeleteDatabaseParams) (DeleteDatabaseRes, error)

DeleteDatabase invokes deleteDatabase operation.

Delete a database belonging to the organization or user.

DELETE /v1/organizations/{organizationName}/databases/{databaseName}

func (*Client) DeleteGroup

func (c *Client) DeleteGroup(ctx context.Context, params DeleteGroupParams) (DeleteGroupRes, error)

DeleteGroup invokes deleteGroup operation.

Delete a group belonging to the organization or user.

DELETE /v1/organizations/{organizationName}/groups/{groupName}

func (*Client) DeleteOrganizationInviteByEmail

func (c *Client) DeleteOrganizationInviteByEmail(ctx context.Context, params DeleteOrganizationInviteByEmailParams) (DeleteOrganizationInviteByEmailRes, error)

DeleteOrganizationInviteByEmail invokes deleteOrganizationInviteByEmail operation.

Delete an invite for the organization by email.

DELETE /v1/organizations/{organizationName}/invites/{email}

func (*Client) GetDatabase

func (c *Client) GetDatabase(ctx context.Context, params GetDatabaseParams) (GetDatabaseRes, error)

GetDatabase invokes getDatabase operation.

Returns a database belonging to the organization or user.

GET /v1/organizations/{organizationName}/databases/{databaseName}

func (*Client) GetDatabaseConfiguration

func (c *Client) GetDatabaseConfiguration(ctx context.Context, params GetDatabaseConfigurationParams) (*DatabaseConfigurationResponse, error)

GetDatabaseConfiguration invokes getDatabaseConfiguration operation.

Retrieve an individual database configuration belonging to the organization or user.

GET /v1/organizations/{organizationName}/databases/{databaseName}/configuration

func (*Client) GetDatabaseInstance

func (c *Client) GetDatabaseInstance(ctx context.Context, params GetDatabaseInstanceParams) (*GetDatabaseInstanceOK, error)

GetDatabaseInstance invokes getDatabaseInstance operation.

Return the individual database instance by name.

GET /v1/organizations/{organizationName}/databases/{databaseName}/instances/{instanceName}

func (*Client) GetDatabaseStats

func (c *Client) GetDatabaseStats(ctx context.Context, params GetDatabaseStatsParams) (GetDatabaseStatsRes, error)

GetDatabaseStats invokes getDatabaseStats operation.

Fetch the top queries of a database, including the count of rows read and written.

GET /v1/organizations/{organizationName}/databases/{databaseName}/stats

func (*Client) GetDatabaseUsage

func (c *Client) GetDatabaseUsage(ctx context.Context, params GetDatabaseUsageParams) (GetDatabaseUsageRes, error)

GetDatabaseUsage invokes getDatabaseUsage operation.

Fetch activity usage for a database in a given time period.

GET /v1/organizations/{organizationName}/databases/{databaseName}/usage

func (*Client) GetGroup

func (c *Client) GetGroup(ctx context.Context, params GetGroupParams) (GetGroupRes, error)

GetGroup invokes getGroup operation.

Returns a group belonging to the organization or user.

GET /v1/organizations/{organizationName}/groups/{groupName}

func (*Client) GetOrganizationSubscription

func (c *Client) GetOrganizationSubscription(ctx context.Context, params GetOrganizationSubscriptionParams) (*GetOrganizationSubscriptionOK, error)

GetOrganizationSubscription invokes getOrganizationSubscription operation.

Returns the current subscription details for the organization.

GET /v1/organizations/{organizationName}/subscription

func (*Client) GetOrganizationUsage

func (c *Client) GetOrganizationUsage(ctx context.Context, params GetOrganizationUsageParams) (*GetOrganizationUsageOK, error)

GetOrganizationUsage invokes getOrganizationUsage operation.

Fetch current billing cycle usage for an organization.

GET /v1/organizations/{organizationName}/usage

func (*Client) InvalidateDatabaseTokens

func (c *Client) InvalidateDatabaseTokens(ctx context.Context, params InvalidateDatabaseTokensParams) (InvalidateDatabaseTokensRes, error)

InvalidateDatabaseTokens invokes invalidateDatabaseTokens operation.

Invalidates all authorization tokens for the specified database.

POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/rotate

func (*Client) InvalidateGroupTokens

func (c *Client) InvalidateGroupTokens(ctx context.Context, params InvalidateGroupTokensParams) (InvalidateGroupTokensRes, error)

InvalidateGroupTokens invokes invalidateGroupTokens operation.

Invalidates all authorization tokens for the specified group.

POST /v1/organizations/{organizationName}/groups/{groupName}/auth/rotate

func (*Client) InviteOrganizationMember

InviteOrganizationMember invokes inviteOrganizationMember operation.

Invite a user (who isn't already a Turso user) to an organization.

POST /v1/organizations/{organizationName}/invites

func (*Client) ListAPITokens

func (c *Client) ListAPITokens(ctx context.Context) (*ListAPITokensOK, error)

ListAPITokens invokes listAPITokens operation.

Returns a list of API tokens belonging to a user.

GET /v1/auth/api-tokens

func (*Client) ListDatabaseInstances

func (c *Client) ListDatabaseInstances(ctx context.Context, params ListDatabaseInstancesParams) (*ListDatabaseInstancesOK, error)

ListDatabaseInstances invokes listDatabaseInstances operation.

Returns a list of instances of a database. Instances are the individual primary or replica databases in each region defined by the group.

GET /v1/organizations/{organizationName}/databases/{databaseName}/instances

func (*Client) ListDatabases

func (c *Client) ListDatabases(ctx context.Context, params ListDatabasesParams) (*ListDatabasesOK, error)

ListDatabases invokes listDatabases operation.

Returns a list of databases belonging to the organization or user.

GET /v1/organizations/{organizationName}/databases

func (*Client) ListGroups

func (c *Client) ListGroups(ctx context.Context, params ListGroupsParams) (*ListGroupsOK, error)

ListGroups invokes listGroups operation.

Returns a list of groups belonging to the organization or user.

GET /v1/organizations/{organizationName}/groups

func (*Client) ListLocations

func (c *Client) ListLocations(ctx context.Context) (*ListLocationsOK, error)

ListLocations invokes listLocations operation.

Returns a list of locations where you can create or replicate databases.

GET /v1/locations

func (*Client) ListOrganizationAuditLogs

func (c *Client) ListOrganizationAuditLogs(ctx context.Context, params ListOrganizationAuditLogsParams) (*ListOrganizationAuditLogsOK, error)

ListOrganizationAuditLogs invokes listOrganizationAuditLogs operation.

Return the audit logs for the given organization, ordered by the `created_at` field in descending order.

GET /v1/organizations/{organizationName}/audit-logs

func (*Client) ListOrganizationInvites

func (c *Client) ListOrganizationInvites(ctx context.Context, params ListOrganizationInvitesParams) (*ListOrganizationInvitesOK, error)

ListOrganizationInvites invokes listOrganizationInvites operation.

Returns a list of invites for the organization.

GET /v1/organizations/{organizationName}/invites

func (*Client) ListOrganizationInvoices

func (c *Client) ListOrganizationInvoices(ctx context.Context, params ListOrganizationInvoicesParams) (*ListOrganizationInvoicesOK, error)

ListOrganizationInvoices invokes listOrganizationInvoices operation.

Returns a list of invoices for the organization.

GET /v1/organizations/{organizationName}/invoices

func (*Client) ListOrganizationMembers

func (c *Client) ListOrganizationMembers(ctx context.Context, params ListOrganizationMembersParams) (*ListOrganizationMembersOK, error)

ListOrganizationMembers invokes listOrganizationMembers operation.

Returns a list of members part of the organization.

GET /v1/organizations/{organizationName}/members

func (*Client) ListOrganizationPlans

func (c *Client) ListOrganizationPlans(ctx context.Context, params ListOrganizationPlansParams) (*ListOrganizationPlansOK, error)

ListOrganizationPlans invokes listOrganizationPlans operation.

Returns a list of available plans and their quotas.

GET /v1/organizations/{organizationName}/plans

func (*Client) ListOrganizations

func (c *Client) ListOrganizations(ctx context.Context) ([]Organization, error)

ListOrganizations invokes listOrganizations operation.

Returns a list of organizations the authenticated user owns or is a member of.

GET /v1/organizations

func (*Client) RemoveLocationFromGroup

func (c *Client) RemoveLocationFromGroup(ctx context.Context, params RemoveLocationFromGroupParams) (RemoveLocationFromGroupRes, error)

RemoveLocationFromGroup invokes removeLocationFromGroup operation.

Removes a location from the specified group.

DELETE /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}

func (*Client) RemoveOrganizationMember

func (c *Client) RemoveOrganizationMember(ctx context.Context, params RemoveOrganizationMemberParams) (RemoveOrganizationMemberRes, error)

RemoveOrganizationMember invokes removeOrganizationMember operation.

Remove a user from the organization by username.

DELETE /v1/organizations/{organizationName}/members/{username}

func (*Client) RevokeAPIToken

func (c *Client) RevokeAPIToken(ctx context.Context, params RevokeAPITokenParams) (jx.Raw, error)

RevokeAPIToken invokes revokeAPIToken operation.

Revokes the provided API token belonging to a user.

DELETE /v1/auth/api-tokens/{tokenName}

func (*Client) TransferGroup

func (c *Client) TransferGroup(ctx context.Context, request *TransferGroupReq, params TransferGroupParams) (TransferGroupRes, error)

TransferGroup invokes transferGroup operation.

Transfer a group to another organization that you own or a member of.

POST /v1/organizations/{organizationName}/groups/{groupName}/transfer

func (*Client) UnarchiveGroup

func (c *Client) UnarchiveGroup(ctx context.Context, params UnarchiveGroupParams) (UnarchiveGroupRes, error)

UnarchiveGroup invokes unarchiveGroup operation.

Unarchive a group that has been archived due to inactivity.

POST /v1/organizations/{organizationName}/groups/{groupName}/unarchive

func (*Client) UpdateDatabaseConfiguration

UpdateDatabaseConfiguration invokes updateDatabaseConfiguration operation.

Update a database configuration belonging to the organization or user.

PATCH /v1/organizations/{organizationName}/databases/{databaseName}/configuration

func (*Client) UpdateGroupDatabases

func (c *Client) UpdateGroupDatabases(ctx context.Context, params UpdateGroupDatabasesParams) (UpdateGroupDatabasesRes, error)

UpdateGroupDatabases invokes updateGroupDatabases operation.

Updates all databases in the group to the latest libSQL version.

POST /v1/organizations/{organizationName}/groups/{groupName}/update

func (*Client) UpdateOrganization

func (c *Client) UpdateOrganization(ctx context.Context, request *UpdateOrganizationReq, params UpdateOrganizationParams) (*UpdateOrganizationOK, error)

UpdateOrganization invokes updateOrganization operation.

Update an organization you own or are a member of.

PATCH /v1/organizations/{organizationName}

func (*Client) UploadDatabaseDump

func (c *Client) UploadDatabaseDump(ctx context.Context, request *UploadDatabaseDumpReq, params UploadDatabaseDumpParams) (*UploadDatabaseDumpOK, error)

UploadDatabaseDump invokes uploadDatabaseDump operation.

Upload a SQL dump to be used when [creating a new database](/api-reference/databases/create) from seed.

POST /v1/organizations/{organizationName}/databases/dumps

func (*Client) ValidateAPIToken

func (c *Client) ValidateAPIToken(ctx context.Context) (*ValidateAPITokenOK, error)

ValidateAPIToken invokes validateAPIToken operation.

Validates an API token belonging to a user.

GET /v1/auth/validate

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CreateAPITokenParams

type CreateAPITokenParams struct {
	// The name of the api token.
	TokenName string
}

CreateAPITokenParams is parameters of createAPIToken operation.

type CreateDatabaseBadRequest

type CreateDatabaseBadRequest struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*CreateDatabaseBadRequest) Decode

func (s *CreateDatabaseBadRequest) Decode(d *jx.Decoder) error

Decode decodes CreateDatabaseBadRequest from json.

func (*CreateDatabaseBadRequest) Encode

func (s *CreateDatabaseBadRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDatabaseBadRequest) GetError

func (s *CreateDatabaseBadRequest) GetError() OptString

GetError returns the value of Error.

func (*CreateDatabaseBadRequest) MarshalJSON

func (s *CreateDatabaseBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDatabaseBadRequest) SetError

func (s *CreateDatabaseBadRequest) SetError(val OptString)

SetError sets the value of Error.

func (*CreateDatabaseBadRequest) UnmarshalJSON

func (s *CreateDatabaseBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateDatabaseConflict

type CreateDatabaseConflict struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*CreateDatabaseConflict) Decode

func (s *CreateDatabaseConflict) Decode(d *jx.Decoder) error

Decode decodes CreateDatabaseConflict from json.

func (*CreateDatabaseConflict) Encode

func (s *CreateDatabaseConflict) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDatabaseConflict) GetError

func (s *CreateDatabaseConflict) GetError() OptString

GetError returns the value of Error.

func (*CreateDatabaseConflict) MarshalJSON

func (s *CreateDatabaseConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDatabaseConflict) SetError

func (s *CreateDatabaseConflict) SetError(val OptString)

SetError sets the value of Error.

func (*CreateDatabaseConflict) UnmarshalJSON

func (s *CreateDatabaseConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateDatabaseInput

type CreateDatabaseInput struct {
	// The name of the new database. Must contain only lowercase letters, numbers, dashes. No longer than
	// 64 characters.
	Name string `json:"name"`
	// The name of the group where the database should be created. **The group must already exist.**.
	Group string                     `json:"group"`
	Seed  OptCreateDatabaseInputSeed `json:"seed"`
	// The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb,
	// 1gb.
	SizeLimit OptString `json:"size_limit"`
	// Mark this database as the parent schema database that updates child databases with any schema
	// changes. See [Multi-DB Schemas](/features/multi-db-schemas).
	IsSchema OptBool `json:"is_schema"`
	// The name of the parent database to use as the schema. See [Multi-DB
	// Schemas](/features/multi-db-schemas).
	Schema OptString `json:"schema"`
}

Ref: #/components/schemas/CreateDatabaseInput

func (*CreateDatabaseInput) Decode

func (s *CreateDatabaseInput) Decode(d *jx.Decoder) error

Decode decodes CreateDatabaseInput from json.

func (*CreateDatabaseInput) Encode

func (s *CreateDatabaseInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDatabaseInput) GetGroup

func (s *CreateDatabaseInput) GetGroup() string

GetGroup returns the value of Group.

func (*CreateDatabaseInput) GetIsSchema

func (s *CreateDatabaseInput) GetIsSchema() OptBool

GetIsSchema returns the value of IsSchema.

func (*CreateDatabaseInput) GetName

func (s *CreateDatabaseInput) GetName() string

GetName returns the value of Name.

func (*CreateDatabaseInput) GetSchema

func (s *CreateDatabaseInput) GetSchema() OptString

GetSchema returns the value of Schema.

func (*CreateDatabaseInput) GetSeed

GetSeed returns the value of Seed.

func (*CreateDatabaseInput) GetSizeLimit

func (s *CreateDatabaseInput) GetSizeLimit() OptString

GetSizeLimit returns the value of SizeLimit.

func (*CreateDatabaseInput) MarshalJSON

func (s *CreateDatabaseInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDatabaseInput) SetGroup

func (s *CreateDatabaseInput) SetGroup(val string)

SetGroup sets the value of Group.

func (*CreateDatabaseInput) SetIsSchema

func (s *CreateDatabaseInput) SetIsSchema(val OptBool)

SetIsSchema sets the value of IsSchema.

func (*CreateDatabaseInput) SetName

func (s *CreateDatabaseInput) SetName(val string)

SetName sets the value of Name.

func (*CreateDatabaseInput) SetSchema

func (s *CreateDatabaseInput) SetSchema(val OptString)

SetSchema sets the value of Schema.

func (*CreateDatabaseInput) SetSeed

SetSeed sets the value of Seed.

func (*CreateDatabaseInput) SetSizeLimit

func (s *CreateDatabaseInput) SetSizeLimit(val OptString)

SetSizeLimit sets the value of SizeLimit.

func (*CreateDatabaseInput) UnmarshalJSON

func (s *CreateDatabaseInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateDatabaseInput) Validate

func (s *CreateDatabaseInput) Validate() error

type CreateDatabaseInputSeed

type CreateDatabaseInputSeed struct {
	// The type of seed to be used to create a new database.
	Type OptCreateDatabaseInputSeedType `json:"type"`
	// The name of the existing database when `database` is used as a seed type.
	Name OptString `json:"name"`
	// The URL returned by [upload dump](/api-reference/databases/upload-dump) can be used with the
	// `dump` seed type.
	URL OptString `json:"url"`
	// A formatted [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) recovery point to create a database
	// from. This must be within the last 24 hours, or 30 days on the scaler plan.
	Timestamp OptString `json:"timestamp"`
}

func (*CreateDatabaseInputSeed) Decode

func (s *CreateDatabaseInputSeed) Decode(d *jx.Decoder) error

Decode decodes CreateDatabaseInputSeed from json.

func (*CreateDatabaseInputSeed) Encode

func (s *CreateDatabaseInputSeed) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDatabaseInputSeed) GetName

func (s *CreateDatabaseInputSeed) GetName() OptString

GetName returns the value of Name.

func (*CreateDatabaseInputSeed) GetTimestamp

func (s *CreateDatabaseInputSeed) GetTimestamp() OptString

GetTimestamp returns the value of Timestamp.

func (*CreateDatabaseInputSeed) GetType

GetType returns the value of Type.

func (*CreateDatabaseInputSeed) GetURL

func (s *CreateDatabaseInputSeed) GetURL() OptString

GetURL returns the value of URL.

func (*CreateDatabaseInputSeed) MarshalJSON

func (s *CreateDatabaseInputSeed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDatabaseInputSeed) SetName

func (s *CreateDatabaseInputSeed) SetName(val OptString)

SetName sets the value of Name.

func (*CreateDatabaseInputSeed) SetTimestamp

func (s *CreateDatabaseInputSeed) SetTimestamp(val OptString)

SetTimestamp sets the value of Timestamp.

func (*CreateDatabaseInputSeed) SetType

SetType sets the value of Type.

func (*CreateDatabaseInputSeed) SetURL

func (s *CreateDatabaseInputSeed) SetURL(val OptString)

SetURL sets the value of URL.

func (*CreateDatabaseInputSeed) UnmarshalJSON

func (s *CreateDatabaseInputSeed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateDatabaseInputSeed) Validate

func (s *CreateDatabaseInputSeed) Validate() error

type CreateDatabaseInputSeedType

type CreateDatabaseInputSeedType string

The type of seed to be used to create a new database.

const (
	CreateDatabaseInputSeedTypeDatabase CreateDatabaseInputSeedType = "database"
	CreateDatabaseInputSeedTypeDump     CreateDatabaseInputSeedType = "dump"
)

func (CreateDatabaseInputSeedType) AllValues

AllValues returns all CreateDatabaseInputSeedType values.

func (*CreateDatabaseInputSeedType) Decode

Decode decodes CreateDatabaseInputSeedType from json.

func (CreateDatabaseInputSeedType) Encode

func (s CreateDatabaseInputSeedType) Encode(e *jx.Encoder)

Encode encodes CreateDatabaseInputSeedType as json.

func (CreateDatabaseInputSeedType) MarshalJSON

func (s CreateDatabaseInputSeedType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateDatabaseInputSeedType) MarshalText

func (s CreateDatabaseInputSeedType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateDatabaseInputSeedType) UnmarshalJSON

func (s *CreateDatabaseInputSeedType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateDatabaseInputSeedType) UnmarshalText

func (s *CreateDatabaseInputSeedType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateDatabaseInputSeedType) Validate

func (s CreateDatabaseInputSeedType) Validate() error

type CreateDatabaseOK

type CreateDatabaseOK struct {
	// The newly created database.
	Database OptCreateDatabaseOutput `json:"database"`
}

func (*CreateDatabaseOK) Decode

func (s *CreateDatabaseOK) Decode(d *jx.Decoder) error

Decode decodes CreateDatabaseOK from json.

func (*CreateDatabaseOK) Encode

func (s *CreateDatabaseOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDatabaseOK) GetDatabase

func (s *CreateDatabaseOK) GetDatabase() OptCreateDatabaseOutput

GetDatabase returns the value of Database.

func (*CreateDatabaseOK) MarshalJSON

func (s *CreateDatabaseOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDatabaseOK) SetDatabase

func (s *CreateDatabaseOK) SetDatabase(val OptCreateDatabaseOutput)

SetDatabase sets the value of Database.

func (*CreateDatabaseOK) UnmarshalJSON

func (s *CreateDatabaseOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateDatabaseOutput

type CreateDatabaseOutput struct {
	DbId     OptDbId     `json:"DbId"`
	Hostname OptHostname `json:"Hostname"`
	Name     OptName     `json:"Name"`
}

Ref: #/components/schemas/CreateDatabaseOutput

func (*CreateDatabaseOutput) Decode

func (s *CreateDatabaseOutput) Decode(d *jx.Decoder) error

Decode decodes CreateDatabaseOutput from json.

func (*CreateDatabaseOutput) Encode

func (s *CreateDatabaseOutput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDatabaseOutput) GetDbId

func (s *CreateDatabaseOutput) GetDbId() OptDbId

GetDbId returns the value of DbId.

func (*CreateDatabaseOutput) GetHostname

func (s *CreateDatabaseOutput) GetHostname() OptHostname

GetHostname returns the value of Hostname.

func (*CreateDatabaseOutput) GetName

func (s *CreateDatabaseOutput) GetName() OptName

GetName returns the value of Name.

func (*CreateDatabaseOutput) MarshalJSON

func (s *CreateDatabaseOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDatabaseOutput) SetDbId

func (s *CreateDatabaseOutput) SetDbId(val OptDbId)

SetDbId sets the value of DbId.

func (*CreateDatabaseOutput) SetHostname

func (s *CreateDatabaseOutput) SetHostname(val OptHostname)

SetHostname sets the value of Hostname.

func (*CreateDatabaseOutput) SetName

func (s *CreateDatabaseOutput) SetName(val OptName)

SetName sets the value of Name.

func (*CreateDatabaseOutput) UnmarshalJSON

func (s *CreateDatabaseOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateDatabaseParams

type CreateDatabaseParams struct {
	// The name of the organization or user.
	OrganizationName string
}

CreateDatabaseParams is parameters of createDatabase operation.

type CreateDatabaseRes

type CreateDatabaseRes interface {
	// contains filtered or unexported methods
}

type CreateDatabaseTokenAuthorization

type CreateDatabaseTokenAuthorization string
const (
	CreateDatabaseTokenAuthorizationFullAccess CreateDatabaseTokenAuthorization = "full-access"
	CreateDatabaseTokenAuthorizationReadOnly   CreateDatabaseTokenAuthorization = "read-only"
)

func (CreateDatabaseTokenAuthorization) AllValues

AllValues returns all CreateDatabaseTokenAuthorization values.

func (CreateDatabaseTokenAuthorization) MarshalText

func (s CreateDatabaseTokenAuthorization) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateDatabaseTokenAuthorization) UnmarshalText

func (s *CreateDatabaseTokenAuthorization) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateDatabaseTokenAuthorization) Validate

type CreateDatabaseTokenBadRequest

type CreateDatabaseTokenBadRequest struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*CreateDatabaseTokenBadRequest) Decode

Decode decodes CreateDatabaseTokenBadRequest from json.

func (*CreateDatabaseTokenBadRequest) Encode

Encode implements json.Marshaler.

func (*CreateDatabaseTokenBadRequest) GetError

GetError returns the value of Error.

func (*CreateDatabaseTokenBadRequest) MarshalJSON

func (s *CreateDatabaseTokenBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDatabaseTokenBadRequest) SetError

func (s *CreateDatabaseTokenBadRequest) SetError(val OptString)

SetError sets the value of Error.

func (*CreateDatabaseTokenBadRequest) UnmarshalJSON

func (s *CreateDatabaseTokenBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateDatabaseTokenOK

type CreateDatabaseTokenOK struct {
	// The generated authorization token (JWT).
	Jwt OptString `json:"jwt"`
}

func (*CreateDatabaseTokenOK) Decode

func (s *CreateDatabaseTokenOK) Decode(d *jx.Decoder) error

Decode decodes CreateDatabaseTokenOK from json.

func (*CreateDatabaseTokenOK) Encode

func (s *CreateDatabaseTokenOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDatabaseTokenOK) GetJwt

func (s *CreateDatabaseTokenOK) GetJwt() OptString

GetJwt returns the value of Jwt.

func (*CreateDatabaseTokenOK) MarshalJSON

func (s *CreateDatabaseTokenOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDatabaseTokenOK) SetJwt

func (s *CreateDatabaseTokenOK) SetJwt(val OptString)

SetJwt sets the value of Jwt.

func (*CreateDatabaseTokenOK) UnmarshalJSON

func (s *CreateDatabaseTokenOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateDatabaseTokenParams

type CreateDatabaseTokenParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
	// Expiration time for the token (e.g., 2w1d30m).
	Expiration OptString
	// Authorization level for the token (full-access or read-only).
	Authorization OptCreateDatabaseTokenAuthorization
}

CreateDatabaseTokenParams is parameters of createDatabaseToken operation.

type CreateDatabaseTokenRes

type CreateDatabaseTokenRes interface {
	// contains filtered or unexported methods
}

type CreateGroupConflict

type CreateGroupConflict struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*CreateGroupConflict) Decode

func (s *CreateGroupConflict) Decode(d *jx.Decoder) error

Decode decodes CreateGroupConflict from json.

func (*CreateGroupConflict) Encode

func (s *CreateGroupConflict) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateGroupConflict) GetError

func (s *CreateGroupConflict) GetError() OptString

GetError returns the value of Error.

func (*CreateGroupConflict) MarshalJSON

func (s *CreateGroupConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateGroupConflict) SetError

func (s *CreateGroupConflict) SetError(val OptString)

SetError sets the value of Error.

func (*CreateGroupConflict) UnmarshalJSON

func (s *CreateGroupConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateGroupOK

type CreateGroupOK struct {
	// The newly created group.
	Group OptBaseGroup `json:"group"`
}

func (*CreateGroupOK) Decode

func (s *CreateGroupOK) Decode(d *jx.Decoder) error

Decode decodes CreateGroupOK from json.

func (*CreateGroupOK) Encode

func (s *CreateGroupOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateGroupOK) GetGroup

func (s *CreateGroupOK) GetGroup() OptBaseGroup

GetGroup returns the value of Group.

func (*CreateGroupOK) MarshalJSON

func (s *CreateGroupOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateGroupOK) SetGroup

func (s *CreateGroupOK) SetGroup(val OptBaseGroup)

SetGroup sets the value of Group.

func (*CreateGroupOK) UnmarshalJSON

func (s *CreateGroupOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateGroupParams

type CreateGroupParams struct {
	// The name of the organization or user.
	OrganizationName string
}

CreateGroupParams is parameters of createGroup operation.

type CreateGroupRes

type CreateGroupRes interface {
	// contains filtered or unexported methods
}

type CreateGroupTokenAuthorization

type CreateGroupTokenAuthorization string
const (
	CreateGroupTokenAuthorizationFullAccess CreateGroupTokenAuthorization = "full-access"
	CreateGroupTokenAuthorizationReadOnly   CreateGroupTokenAuthorization = "read-only"
)

func (CreateGroupTokenAuthorization) AllValues

AllValues returns all CreateGroupTokenAuthorization values.

func (CreateGroupTokenAuthorization) MarshalText

func (s CreateGroupTokenAuthorization) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateGroupTokenAuthorization) UnmarshalText

func (s *CreateGroupTokenAuthorization) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateGroupTokenAuthorization) Validate

func (s CreateGroupTokenAuthorization) Validate() error

type CreateGroupTokenBadRequest

type CreateGroupTokenBadRequest struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*CreateGroupTokenBadRequest) Decode

Decode decodes CreateGroupTokenBadRequest from json.

func (*CreateGroupTokenBadRequest) Encode

func (s *CreateGroupTokenBadRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateGroupTokenBadRequest) GetError

func (s *CreateGroupTokenBadRequest) GetError() OptString

GetError returns the value of Error.

func (*CreateGroupTokenBadRequest) MarshalJSON

func (s *CreateGroupTokenBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateGroupTokenBadRequest) SetError

func (s *CreateGroupTokenBadRequest) SetError(val OptString)

SetError sets the value of Error.

func (*CreateGroupTokenBadRequest) UnmarshalJSON

func (s *CreateGroupTokenBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateGroupTokenOK

type CreateGroupTokenOK struct {
	// The generated authorization token (JWT).
	Jwt OptString `json:"jwt"`
}

func (*CreateGroupTokenOK) Decode

func (s *CreateGroupTokenOK) Decode(d *jx.Decoder) error

Decode decodes CreateGroupTokenOK from json.

func (*CreateGroupTokenOK) Encode

func (s *CreateGroupTokenOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateGroupTokenOK) GetJwt

func (s *CreateGroupTokenOK) GetJwt() OptString

GetJwt returns the value of Jwt.

func (*CreateGroupTokenOK) MarshalJSON

func (s *CreateGroupTokenOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateGroupTokenOK) SetJwt

func (s *CreateGroupTokenOK) SetJwt(val OptString)

SetJwt sets the value of Jwt.

func (*CreateGroupTokenOK) UnmarshalJSON

func (s *CreateGroupTokenOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateGroupTokenParams

type CreateGroupTokenParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
	// Expiration time for the token (e.g., 2w1d30m).
	Expiration OptString
	// Authorization level for the token (full-access or read-only).
	Authorization OptCreateGroupTokenAuthorization
}

CreateGroupTokenParams is parameters of createGroupToken operation.

type CreateGroupTokenRes

type CreateGroupTokenRes interface {
	// contains filtered or unexported methods
}

type CreateTokenInput

type CreateTokenInput struct {
	// The permissions for the token.
	Permissions OptCreateTokenInputPermissions `json:"permissions"`
}

Ref: #/components/schemas/CreateTokenInput

func (*CreateTokenInput) Decode

func (s *CreateTokenInput) Decode(d *jx.Decoder) error

Decode decodes CreateTokenInput from json.

func (*CreateTokenInput) Encode

func (s *CreateTokenInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTokenInput) GetPermissions

GetPermissions returns the value of Permissions.

func (*CreateTokenInput) MarshalJSON

func (s *CreateTokenInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTokenInput) SetPermissions

func (s *CreateTokenInput) SetPermissions(val OptCreateTokenInputPermissions)

SetPermissions sets the value of Permissions.

func (*CreateTokenInput) UnmarshalJSON

func (s *CreateTokenInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTokenInputPermissions

type CreateTokenInputPermissions struct {
	// Read `ATTACH` permission for the token.
	ReadAttach OptCreateTokenInputPermissionsReadAttach `json:"read_attach"`
}

The permissions for the token.

func (*CreateTokenInputPermissions) Decode

Decode decodes CreateTokenInputPermissions from json.

func (*CreateTokenInputPermissions) Encode

func (s *CreateTokenInputPermissions) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTokenInputPermissions) GetReadAttach

GetReadAttach returns the value of ReadAttach.

func (*CreateTokenInputPermissions) MarshalJSON

func (s *CreateTokenInputPermissions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTokenInputPermissions) SetReadAttach

SetReadAttach sets the value of ReadAttach.

func (*CreateTokenInputPermissions) UnmarshalJSON

func (s *CreateTokenInputPermissions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTokenInputPermissionsReadAttach

type CreateTokenInputPermissionsReadAttach struct {
	Databases []string `json:"databases"`
}

Read `ATTACH` permission for the token.

func (*CreateTokenInputPermissionsReadAttach) Decode

Decode decodes CreateTokenInputPermissionsReadAttach from json.

func (*CreateTokenInputPermissionsReadAttach) Encode

Encode implements json.Marshaler.

func (*CreateTokenInputPermissionsReadAttach) GetDatabases

func (s *CreateTokenInputPermissionsReadAttach) GetDatabases() []string

GetDatabases returns the value of Databases.

func (*CreateTokenInputPermissionsReadAttach) MarshalJSON

func (s *CreateTokenInputPermissionsReadAttach) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTokenInputPermissionsReadAttach) SetDatabases

func (s *CreateTokenInputPermissionsReadAttach) SetDatabases(val []string)

SetDatabases sets the value of Databases.

func (*CreateTokenInputPermissionsReadAttach) UnmarshalJSON

func (s *CreateTokenInputPermissionsReadAttach) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Database

type Database struct {
	// The database name, **unique** across your organization.
	Name OptString `json:"Name"`
	// The database universal unique identifier (UUID).
	DbId OptString `json:"DbId"`
	// The DNS hostname used for client libSQL and HTTP connections.
	Hostname OptString `json:"Hostname"`
	// The current status for blocked reads.
	BlockReads OptBool `json:"block_reads"`
	// The current status for blocked writes.
	BlockWrites OptBool `json:"block_writes"`
	// The current status for allowing the database to be attached to another.
	AllowAttach OptBool `json:"allow_attach"`
	// A list of regions for the group the database belongs to.
	Regions []string `json:"regions"`
	// The primary region location code the group the database belongs to.
	PrimaryRegion OptString `json:"primaryRegion"`
	// The string representing the object type.
	Type OptString `json:"type"`
	// The current libSQL version the database is running.
	Version OptString `json:"version"`
	// The name of the group the database belongs to.
	Group OptString `json:"group"`
	// If this database controls other child databases then this will be `true`. See [Multi-DB
	// Schemas](/features/multi-db-schemas).
	IsSchema OptBool `json:"is_schema"`
	// The name of the parent database that owns the schema for this database. See [Multi-DB
	// Schemas](/features/multi-db-schemas).
	Schema OptNilString `json:"schema"`
	// The current status of the database. If `true`, the database is archived and requires a manual
	// unarchive step.
	Archived OptBool `json:"archived"`
}

Ref: #/components/schemas/Database

func (*Database) Decode

func (s *Database) Decode(d *jx.Decoder) error

Decode decodes Database from json.

func (*Database) Encode

func (s *Database) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Database) GetAllowAttach

func (s *Database) GetAllowAttach() OptBool

GetAllowAttach returns the value of AllowAttach.

func (*Database) GetArchived

func (s *Database) GetArchived() OptBool

GetArchived returns the value of Archived.

func (*Database) GetBlockReads

func (s *Database) GetBlockReads() OptBool

GetBlockReads returns the value of BlockReads.

func (*Database) GetBlockWrites

func (s *Database) GetBlockWrites() OptBool

GetBlockWrites returns the value of BlockWrites.

func (*Database) GetDbId

func (s *Database) GetDbId() OptString

GetDbId returns the value of DbId.

func (*Database) GetGroup

func (s *Database) GetGroup() OptString

GetGroup returns the value of Group.

func (*Database) GetHostname

func (s *Database) GetHostname() OptString

GetHostname returns the value of Hostname.

func (*Database) GetIsSchema

func (s *Database) GetIsSchema() OptBool

GetIsSchema returns the value of IsSchema.

func (*Database) GetName

func (s *Database) GetName() OptString

GetName returns the value of Name.

func (*Database) GetPrimaryRegion

func (s *Database) GetPrimaryRegion() OptString

GetPrimaryRegion returns the value of PrimaryRegion.

func (*Database) GetRegions

func (s *Database) GetRegions() []string

GetRegions returns the value of Regions.

func (*Database) GetSchema

func (s *Database) GetSchema() OptNilString

GetSchema returns the value of Schema.

func (*Database) GetType

func (s *Database) GetType() OptString

GetType returns the value of Type.

func (*Database) GetVersion

func (s *Database) GetVersion() OptString

GetVersion returns the value of Version.

func (*Database) MarshalJSON

func (s *Database) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Database) SetAllowAttach

func (s *Database) SetAllowAttach(val OptBool)

SetAllowAttach sets the value of AllowAttach.

func (*Database) SetArchived

func (s *Database) SetArchived(val OptBool)

SetArchived sets the value of Archived.

func (*Database) SetBlockReads

func (s *Database) SetBlockReads(val OptBool)

SetBlockReads sets the value of BlockReads.

func (*Database) SetBlockWrites

func (s *Database) SetBlockWrites(val OptBool)

SetBlockWrites sets the value of BlockWrites.

func (*Database) SetDbId

func (s *Database) SetDbId(val OptString)

SetDbId sets the value of DbId.

func (*Database) SetGroup

func (s *Database) SetGroup(val OptString)

SetGroup sets the value of Group.

func (*Database) SetHostname

func (s *Database) SetHostname(val OptString)

SetHostname sets the value of Hostname.

func (*Database) SetIsSchema

func (s *Database) SetIsSchema(val OptBool)

SetIsSchema sets the value of IsSchema.

func (*Database) SetName

func (s *Database) SetName(val OptString)

SetName sets the value of Name.

func (*Database) SetPrimaryRegion

func (s *Database) SetPrimaryRegion(val OptString)

SetPrimaryRegion sets the value of PrimaryRegion.

func (*Database) SetRegions

func (s *Database) SetRegions(val []string)

SetRegions sets the value of Regions.

func (*Database) SetSchema

func (s *Database) SetSchema(val OptNilString)

SetSchema sets the value of Schema.

func (*Database) SetType

func (s *Database) SetType(val OptString)

SetType sets the value of Type.

func (*Database) SetVersion

func (s *Database) SetVersion(val OptString)

SetVersion sets the value of Version.

func (*Database) UnmarshalJSON

func (s *Database) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatabaseConfigurationInput

type DatabaseConfigurationInput struct {
	// The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb,
	// 1gb.
	SizeLimit OptString `json:"size_limit"`
	// Allow or disallow attaching databases to the current database.
	AllowAttach OptBool `json:"allow_attach"`
	// Block all database reads.
	BlockReads OptBool `json:"block_reads"`
	// Block all database writes.
	BlockWrites OptBool `json:"block_writes"`
}

Ref: #/components/schemas/DatabaseConfigurationInput

func (*DatabaseConfigurationInput) Decode

Decode decodes DatabaseConfigurationInput from json.

func (*DatabaseConfigurationInput) Encode

func (s *DatabaseConfigurationInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DatabaseConfigurationInput) GetAllowAttach

func (s *DatabaseConfigurationInput) GetAllowAttach() OptBool

GetAllowAttach returns the value of AllowAttach.

func (*DatabaseConfigurationInput) GetBlockReads

func (s *DatabaseConfigurationInput) GetBlockReads() OptBool

GetBlockReads returns the value of BlockReads.

func (*DatabaseConfigurationInput) GetBlockWrites

func (s *DatabaseConfigurationInput) GetBlockWrites() OptBool

GetBlockWrites returns the value of BlockWrites.

func (*DatabaseConfigurationInput) GetSizeLimit

func (s *DatabaseConfigurationInput) GetSizeLimit() OptString

GetSizeLimit returns the value of SizeLimit.

func (*DatabaseConfigurationInput) MarshalJSON

func (s *DatabaseConfigurationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatabaseConfigurationInput) SetAllowAttach

func (s *DatabaseConfigurationInput) SetAllowAttach(val OptBool)

SetAllowAttach sets the value of AllowAttach.

func (*DatabaseConfigurationInput) SetBlockReads

func (s *DatabaseConfigurationInput) SetBlockReads(val OptBool)

SetBlockReads sets the value of BlockReads.

func (*DatabaseConfigurationInput) SetBlockWrites

func (s *DatabaseConfigurationInput) SetBlockWrites(val OptBool)

SetBlockWrites sets the value of BlockWrites.

func (*DatabaseConfigurationInput) SetSizeLimit

func (s *DatabaseConfigurationInput) SetSizeLimit(val OptString)

SetSizeLimit sets the value of SizeLimit.

func (*DatabaseConfigurationInput) UnmarshalJSON

func (s *DatabaseConfigurationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatabaseConfigurationResponse

type DatabaseConfigurationResponse struct {
	// The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb,
	// 1gb.
	SizeLimit OptString `json:"size_limit"`
	// Allow or disallow attaching databases to the current database.
	AllowAttach OptBool `json:"allow_attach"`
	// The current status for blocked reads.
	BlockReads OptBool `json:"block_reads"`
	// The current status for blocked writes.
	BlockWrites OptBool `json:"block_writes"`
}

Ref: #/components/schemas/DatabaseConfigurationResponse

func (*DatabaseConfigurationResponse) Decode

Decode decodes DatabaseConfigurationResponse from json.

func (*DatabaseConfigurationResponse) Encode

Encode implements json.Marshaler.

func (*DatabaseConfigurationResponse) GetAllowAttach

func (s *DatabaseConfigurationResponse) GetAllowAttach() OptBool

GetAllowAttach returns the value of AllowAttach.

func (*DatabaseConfigurationResponse) GetBlockReads

func (s *DatabaseConfigurationResponse) GetBlockReads() OptBool

GetBlockReads returns the value of BlockReads.

func (*DatabaseConfigurationResponse) GetBlockWrites

func (s *DatabaseConfigurationResponse) GetBlockWrites() OptBool

GetBlockWrites returns the value of BlockWrites.

func (*DatabaseConfigurationResponse) GetSizeLimit

func (s *DatabaseConfigurationResponse) GetSizeLimit() OptString

GetSizeLimit returns the value of SizeLimit.

func (*DatabaseConfigurationResponse) MarshalJSON

func (s *DatabaseConfigurationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatabaseConfigurationResponse) SetAllowAttach

func (s *DatabaseConfigurationResponse) SetAllowAttach(val OptBool)

SetAllowAttach sets the value of AllowAttach.

func (*DatabaseConfigurationResponse) SetBlockReads

func (s *DatabaseConfigurationResponse) SetBlockReads(val OptBool)

SetBlockReads sets the value of BlockReads.

func (*DatabaseConfigurationResponse) SetBlockWrites

func (s *DatabaseConfigurationResponse) SetBlockWrites(val OptBool)

SetBlockWrites sets the value of BlockWrites.

func (*DatabaseConfigurationResponse) SetSizeLimit

func (s *DatabaseConfigurationResponse) SetSizeLimit(val OptString)

SetSizeLimit sets the value of SizeLimit.

func (*DatabaseConfigurationResponse) UnmarshalJSON

func (s *DatabaseConfigurationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatabaseNotFoundResponse

type DatabaseNotFoundResponse struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*DatabaseNotFoundResponse) Decode

func (s *DatabaseNotFoundResponse) Decode(d *jx.Decoder) error

Decode decodes DatabaseNotFoundResponse from json.

func (*DatabaseNotFoundResponse) Encode

func (s *DatabaseNotFoundResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DatabaseNotFoundResponse) GetError

func (s *DatabaseNotFoundResponse) GetError() OptString

GetError returns the value of Error.

func (*DatabaseNotFoundResponse) MarshalJSON

func (s *DatabaseNotFoundResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatabaseNotFoundResponse) SetError

func (s *DatabaseNotFoundResponse) SetError(val OptString)

SetError sets the value of Error.

func (*DatabaseNotFoundResponse) UnmarshalJSON

func (s *DatabaseNotFoundResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatabaseStatsOutput

type DatabaseStatsOutput struct {
	// A string representing the SQL query executed.
	Query OptString `json:"query"`
	// An integer indicating the number of rows read by the query, which reflects the volume of data the
	// query processed from the database.
	RowsRead OptInt `json:"rows_read"`
	// An integer indicating the number of rows written (inserted, updated, or deleted) by the query,
	// which reflects the impact of the query on the database data.
	RowsWritten OptInt `json:"rows_written"`
}

Ref: #/components/schemas/DatabaseStatsOutput

func (*DatabaseStatsOutput) Decode

func (s *DatabaseStatsOutput) Decode(d *jx.Decoder) error

Decode decodes DatabaseStatsOutput from json.

func (*DatabaseStatsOutput) Encode

func (s *DatabaseStatsOutput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DatabaseStatsOutput) GetQuery

func (s *DatabaseStatsOutput) GetQuery() OptString

GetQuery returns the value of Query.

func (*DatabaseStatsOutput) GetRowsRead

func (s *DatabaseStatsOutput) GetRowsRead() OptInt

GetRowsRead returns the value of RowsRead.

func (*DatabaseStatsOutput) GetRowsWritten

func (s *DatabaseStatsOutput) GetRowsWritten() OptInt

GetRowsWritten returns the value of RowsWritten.

func (*DatabaseStatsOutput) MarshalJSON

func (s *DatabaseStatsOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatabaseStatsOutput) SetQuery

func (s *DatabaseStatsOutput) SetQuery(val OptString)

SetQuery sets the value of Query.

func (*DatabaseStatsOutput) SetRowsRead

func (s *DatabaseStatsOutput) SetRowsRead(val OptInt)

SetRowsRead sets the value of RowsRead.

func (*DatabaseStatsOutput) SetRowsWritten

func (s *DatabaseStatsOutput) SetRowsWritten(val OptInt)

SetRowsWritten sets the value of RowsWritten.

func (*DatabaseStatsOutput) UnmarshalJSON

func (s *DatabaseStatsOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatabaseUsageObject

type DatabaseUsageObject struct {
	// The total rows read in the time period.
	RowsRead OptInt `json:"rows_read"`
	// The total rows written in the time period.
	RowsWritten OptInt `json:"rows_written"`
	// The total storage used.
	StorageBytes OptInt `json:"storage_bytes"`
}

Ref: #/components/schemas/DatabaseUsageObject

func (*DatabaseUsageObject) Decode

func (s *DatabaseUsageObject) Decode(d *jx.Decoder) error

Decode decodes DatabaseUsageObject from json.

func (*DatabaseUsageObject) Encode

func (s *DatabaseUsageObject) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DatabaseUsageObject) GetRowsRead

func (s *DatabaseUsageObject) GetRowsRead() OptInt

GetRowsRead returns the value of RowsRead.

func (*DatabaseUsageObject) GetRowsWritten

func (s *DatabaseUsageObject) GetRowsWritten() OptInt

GetRowsWritten returns the value of RowsWritten.

func (*DatabaseUsageObject) GetStorageBytes

func (s *DatabaseUsageObject) GetStorageBytes() OptInt

GetStorageBytes returns the value of StorageBytes.

func (*DatabaseUsageObject) MarshalJSON

func (s *DatabaseUsageObject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatabaseUsageObject) SetRowsRead

func (s *DatabaseUsageObject) SetRowsRead(val OptInt)

SetRowsRead sets the value of RowsRead.

func (*DatabaseUsageObject) SetRowsWritten

func (s *DatabaseUsageObject) SetRowsWritten(val OptInt)

SetRowsWritten sets the value of RowsWritten.

func (*DatabaseUsageObject) SetStorageBytes

func (s *DatabaseUsageObject) SetStorageBytes(val OptInt)

SetStorageBytes sets the value of StorageBytes.

func (*DatabaseUsageObject) UnmarshalJSON

func (s *DatabaseUsageObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatabaseUsageOutput

type DatabaseUsageOutput struct {
	UUID OptDbId `json:"uuid"`
	// The usage objects for instances of the current database.
	Instances []DatabaseUsageOutputInstancesItem `json:"instances"`
	// The total usage for the database.
	Total OptDatabaseUsageObject `json:"total"`
}

Ref: #/components/schemas/DatabaseUsageOutput

func (*DatabaseUsageOutput) Decode

func (s *DatabaseUsageOutput) Decode(d *jx.Decoder) error

Decode decodes DatabaseUsageOutput from json.

func (*DatabaseUsageOutput) Encode

func (s *DatabaseUsageOutput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DatabaseUsageOutput) GetInstances

GetInstances returns the value of Instances.

func (*DatabaseUsageOutput) GetTotal

GetTotal returns the value of Total.

func (*DatabaseUsageOutput) GetUUID

func (s *DatabaseUsageOutput) GetUUID() OptDbId

GetUUID returns the value of UUID.

func (*DatabaseUsageOutput) MarshalJSON

func (s *DatabaseUsageOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatabaseUsageOutput) SetInstances

SetInstances sets the value of Instances.

func (*DatabaseUsageOutput) SetTotal

SetTotal sets the value of Total.

func (*DatabaseUsageOutput) SetUUID

func (s *DatabaseUsageOutput) SetUUID(val OptDbId)

SetUUID sets the value of UUID.

func (*DatabaseUsageOutput) UnmarshalJSON

func (s *DatabaseUsageOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DatabaseUsageOutputInstancesItem

type DatabaseUsageOutputInstancesItem struct {
	// The instance universal unique identifier (UUID).
	UUID OptString `json:"uuid"`
	// The usage for the current database instance.
	Usage OptDatabaseUsageObject `json:"usage"`
}

func (*DatabaseUsageOutputInstancesItem) Decode

Decode decodes DatabaseUsageOutputInstancesItem from json.

func (*DatabaseUsageOutputInstancesItem) Encode

Encode implements json.Marshaler.

func (*DatabaseUsageOutputInstancesItem) GetUUID

GetUUID returns the value of UUID.

func (*DatabaseUsageOutputInstancesItem) GetUsage

GetUsage returns the value of Usage.

func (*DatabaseUsageOutputInstancesItem) MarshalJSON

func (s *DatabaseUsageOutputInstancesItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DatabaseUsageOutputInstancesItem) SetUUID

SetUUID sets the value of UUID.

func (*DatabaseUsageOutputInstancesItem) SetUsage

SetUsage sets the value of Usage.

func (*DatabaseUsageOutputInstancesItem) UnmarshalJSON

func (s *DatabaseUsageOutputInstancesItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DbId

type DbId string

func (*DbId) Decode

func (s *DbId) Decode(d *jx.Decoder) error

Decode decodes DbId from json.

func (DbId) Encode

func (s DbId) Encode(e *jx.Encoder)

Encode encodes DbId as json.

func (DbId) MarshalJSON

func (s DbId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DbId) UnmarshalJSON

func (s *DbId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteDatabaseOK

type DeleteDatabaseOK struct {
	// The name of the database that was deleted.
	Database OptString `json:"database"`
}

func (*DeleteDatabaseOK) Decode

func (s *DeleteDatabaseOK) Decode(d *jx.Decoder) error

Decode decodes DeleteDatabaseOK from json.

func (*DeleteDatabaseOK) Encode

func (s *DeleteDatabaseOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeleteDatabaseOK) GetDatabase

func (s *DeleteDatabaseOK) GetDatabase() OptString

GetDatabase returns the value of Database.

func (*DeleteDatabaseOK) MarshalJSON

func (s *DeleteDatabaseOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteDatabaseOK) SetDatabase

func (s *DeleteDatabaseOK) SetDatabase(val OptString)

SetDatabase sets the value of Database.

func (*DeleteDatabaseOK) UnmarshalJSON

func (s *DeleteDatabaseOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteDatabaseParams

type DeleteDatabaseParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
}

DeleteDatabaseParams is parameters of deleteDatabase operation.

type DeleteDatabaseRes

type DeleteDatabaseRes interface {
	// contains filtered or unexported methods
}

type DeleteGroupOK

type DeleteGroupOK struct {
	Group OptBaseGroup `json:"group"`
}

func (*DeleteGroupOK) Decode

func (s *DeleteGroupOK) Decode(d *jx.Decoder) error

Decode decodes DeleteGroupOK from json.

func (*DeleteGroupOK) Encode

func (s *DeleteGroupOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeleteGroupOK) GetGroup

func (s *DeleteGroupOK) GetGroup() OptBaseGroup

GetGroup returns the value of Group.

func (*DeleteGroupOK) MarshalJSON

func (s *DeleteGroupOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteGroupOK) SetGroup

func (s *DeleteGroupOK) SetGroup(val OptBaseGroup)

SetGroup sets the value of Group.

func (*DeleteGroupOK) UnmarshalJSON

func (s *DeleteGroupOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteGroupParams

type DeleteGroupParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
}

DeleteGroupParams is parameters of deleteGroup operation.

type DeleteGroupRes

type DeleteGroupRes interface {
	// contains filtered or unexported methods
}

type DeleteOrganizationInviteByEmailNotFound

type DeleteOrganizationInviteByEmailNotFound struct {
	// The error code.
	Code OptString `json:"code"`
	// The error message (human readable).
	Error OptString `json:"error"`
}

func (*DeleteOrganizationInviteByEmailNotFound) Decode

Decode decodes DeleteOrganizationInviteByEmailNotFound from json.

func (*DeleteOrganizationInviteByEmailNotFound) Encode

Encode implements json.Marshaler.

func (*DeleteOrganizationInviteByEmailNotFound) GetCode

GetCode returns the value of Code.

func (*DeleteOrganizationInviteByEmailNotFound) GetError

GetError returns the value of Error.

func (*DeleteOrganizationInviteByEmailNotFound) MarshalJSON

func (s *DeleteOrganizationInviteByEmailNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteOrganizationInviteByEmailNotFound) SetCode

SetCode sets the value of Code.

func (*DeleteOrganizationInviteByEmailNotFound) SetError

SetError sets the value of Error.

func (*DeleteOrganizationInviteByEmailNotFound) UnmarshalJSON

func (s *DeleteOrganizationInviteByEmailNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteOrganizationInviteByEmailOK

type DeleteOrganizationInviteByEmailOK struct{}

DeleteOrganizationInviteByEmailOK is response for DeleteOrganizationInviteByEmail operation.

type DeleteOrganizationInviteByEmailParams

type DeleteOrganizationInviteByEmailParams struct {
	// The name of the organization or user.
	OrganizationName string
	Email            string
}

DeleteOrganizationInviteByEmailParams is parameters of deleteOrganizationInviteByEmail operation.

type DeleteOrganizationInviteByEmailRes

type DeleteOrganizationInviteByEmailRes interface {
	// contains filtered or unexported methods
}

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type Extensions

type Extensions string

Set to `all` to enable all extensions. Ref: #/components/schemas/Extensions

const (
	ExtensionsAll Extensions = "all"
)

func (Extensions) AllValues

func (Extensions) AllValues() []Extensions

AllValues returns all Extensions values.

func (*Extensions) Decode

func (s *Extensions) Decode(d *jx.Decoder) error

Decode decodes Extensions from json.

func (Extensions) Encode

func (s Extensions) Encode(e *jx.Encoder)

Encode encodes Extensions as json.

func (Extensions) MarshalJSON

func (s Extensions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (Extensions) MarshalText

func (s Extensions) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*Extensions) UnmarshalJSON

func (s *Extensions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Extensions) UnmarshalText

func (s *Extensions) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (Extensions) Validate

func (s Extensions) Validate() error

type GetDatabaseConfigurationParams

type GetDatabaseConfigurationParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
}

GetDatabaseConfigurationParams is parameters of getDatabaseConfiguration operation.

type GetDatabaseInstanceOK

type GetDatabaseInstanceOK struct {
	Instance OptInstance `json:"instance"`
}

func (*GetDatabaseInstanceOK) Decode

func (s *GetDatabaseInstanceOK) Decode(d *jx.Decoder) error

Decode decodes GetDatabaseInstanceOK from json.

func (*GetDatabaseInstanceOK) Encode

func (s *GetDatabaseInstanceOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetDatabaseInstanceOK) GetInstance

func (s *GetDatabaseInstanceOK) GetInstance() OptInstance

GetInstance returns the value of Instance.

func (*GetDatabaseInstanceOK) MarshalJSON

func (s *GetDatabaseInstanceOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetDatabaseInstanceOK) SetInstance

func (s *GetDatabaseInstanceOK) SetInstance(val OptInstance)

SetInstance sets the value of Instance.

func (*GetDatabaseInstanceOK) UnmarshalJSON

func (s *GetDatabaseInstanceOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetDatabaseInstanceOK) Validate

func (s *GetDatabaseInstanceOK) Validate() error

type GetDatabaseInstanceParams

type GetDatabaseInstanceParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
	// The name of the instance (location code).
	InstanceName string
}

GetDatabaseInstanceParams is parameters of getDatabaseInstance operation.

type GetDatabaseOK

type GetDatabaseOK struct {
	Database OptDatabase `json:"database"`
}

func (*GetDatabaseOK) Decode

func (s *GetDatabaseOK) Decode(d *jx.Decoder) error

Decode decodes GetDatabaseOK from json.

func (*GetDatabaseOK) Encode

func (s *GetDatabaseOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetDatabaseOK) GetDatabase

func (s *GetDatabaseOK) GetDatabase() OptDatabase

GetDatabase returns the value of Database.

func (*GetDatabaseOK) MarshalJSON

func (s *GetDatabaseOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetDatabaseOK) SetDatabase

func (s *GetDatabaseOK) SetDatabase(val OptDatabase)

SetDatabase sets the value of Database.

func (*GetDatabaseOK) UnmarshalJSON

func (s *GetDatabaseOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetDatabaseParams

type GetDatabaseParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
}

GetDatabaseParams is parameters of getDatabase operation.

type GetDatabaseRes

type GetDatabaseRes interface {
	// contains filtered or unexported methods
}

type GetDatabaseStatsOK

type GetDatabaseStatsOK struct {
	// The top queries performed on the given database as well as the total rows read and written.
	TopQueries []DatabaseStatsOutput `json:"top_queries"`
}

func (*GetDatabaseStatsOK) Decode

func (s *GetDatabaseStatsOK) Decode(d *jx.Decoder) error

Decode decodes GetDatabaseStatsOK from json.

func (*GetDatabaseStatsOK) Encode

func (s *GetDatabaseStatsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetDatabaseStatsOK) GetTopQueries

func (s *GetDatabaseStatsOK) GetTopQueries() []DatabaseStatsOutput

GetTopQueries returns the value of TopQueries.

func (*GetDatabaseStatsOK) MarshalJSON

func (s *GetDatabaseStatsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetDatabaseStatsOK) SetTopQueries

func (s *GetDatabaseStatsOK) SetTopQueries(val []DatabaseStatsOutput)

SetTopQueries sets the value of TopQueries.

func (*GetDatabaseStatsOK) UnmarshalJSON

func (s *GetDatabaseStatsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetDatabaseStatsParams

type GetDatabaseStatsParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
}

GetDatabaseStatsParams is parameters of getDatabaseStats operation.

type GetDatabaseStatsRes

type GetDatabaseStatsRes interface {
	// contains filtered or unexported methods
}

type GetDatabaseUsageBadRequest

type GetDatabaseUsageBadRequest struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*GetDatabaseUsageBadRequest) Decode

Decode decodes GetDatabaseUsageBadRequest from json.

func (*GetDatabaseUsageBadRequest) Encode

func (s *GetDatabaseUsageBadRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetDatabaseUsageBadRequest) GetError

func (s *GetDatabaseUsageBadRequest) GetError() OptString

GetError returns the value of Error.

func (*GetDatabaseUsageBadRequest) MarshalJSON

func (s *GetDatabaseUsageBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetDatabaseUsageBadRequest) SetError

func (s *GetDatabaseUsageBadRequest) SetError(val OptString)

SetError sets the value of Error.

func (*GetDatabaseUsageBadRequest) UnmarshalJSON

func (s *GetDatabaseUsageBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetDatabaseUsageOK

type GetDatabaseUsageOK struct {
	// The database usage object, containg the total and individual instance usage for rows read and
	// written, as well as the total storage size (in bytes).
	Database OptDatabaseUsageOutput `json:"database"`
}

func (*GetDatabaseUsageOK) Decode

func (s *GetDatabaseUsageOK) Decode(d *jx.Decoder) error

Decode decodes GetDatabaseUsageOK from json.

func (*GetDatabaseUsageOK) Encode

func (s *GetDatabaseUsageOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetDatabaseUsageOK) GetDatabase

func (s *GetDatabaseUsageOK) GetDatabase() OptDatabaseUsageOutput

GetDatabase returns the value of Database.

func (*GetDatabaseUsageOK) MarshalJSON

func (s *GetDatabaseUsageOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetDatabaseUsageOK) SetDatabase

func (s *GetDatabaseUsageOK) SetDatabase(val OptDatabaseUsageOutput)

SetDatabase sets the value of Database.

func (*GetDatabaseUsageOK) UnmarshalJSON

func (s *GetDatabaseUsageOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetDatabaseUsageParams

type GetDatabaseUsageParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
	// The datetime to retrieve usage **from** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
	// format. Defaults to the current calendar month if not provided. Example: `2023-01-01T00:00:00Z`.
	From OptDateTime
	// The datetime to retrieve usage **to** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	//  Defaults to the current calendar month if not provided. Example: `2023-02-01T00:00:00Z`.
	To OptDateTime
}

GetDatabaseUsageParams is parameters of getDatabaseUsage operation.

type GetDatabaseUsageRes

type GetDatabaseUsageRes interface {
	// contains filtered or unexported methods
}

type GetGroupOK

type GetGroupOK struct {
	Group OptBaseGroup `json:"group"`
}

func (*GetGroupOK) Decode

func (s *GetGroupOK) Decode(d *jx.Decoder) error

Decode decodes GetGroupOK from json.

func (*GetGroupOK) Encode

func (s *GetGroupOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetGroupOK) GetGroup

func (s *GetGroupOK) GetGroup() OptBaseGroup

GetGroup returns the value of Group.

func (*GetGroupOK) MarshalJSON

func (s *GetGroupOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGroupOK) SetGroup

func (s *GetGroupOK) SetGroup(val OptBaseGroup)

SetGroup sets the value of Group.

func (*GetGroupOK) UnmarshalJSON

func (s *GetGroupOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGroupParams

type GetGroupParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
}

GetGroupParams is parameters of getGroup operation.

type GetGroupRes

type GetGroupRes interface {
	// contains filtered or unexported methods
}

type GetOrganizationSubscriptionOK

type GetOrganizationSubscriptionOK struct {
	// The name of the plan for the current subscription.
	Subscription OptString `json:"subscription"`
	// Whether overages are enabled for the organization.
	Overages OptBool `json:"overages"`
	// The name of the plan for the current subscription.
	Plan OptString `json:"plan"`
	// Whether the plan is billed monthly or yearly.
	Timeline OptString `json:"timeline"`
}

func (*GetOrganizationSubscriptionOK) Decode

Decode decodes GetOrganizationSubscriptionOK from json.

func (*GetOrganizationSubscriptionOK) Encode

Encode implements json.Marshaler.

func (*GetOrganizationSubscriptionOK) GetOverages

func (s *GetOrganizationSubscriptionOK) GetOverages() OptBool

GetOverages returns the value of Overages.

func (*GetOrganizationSubscriptionOK) GetPlan

GetPlan returns the value of Plan.

func (*GetOrganizationSubscriptionOK) GetSubscription

func (s *GetOrganizationSubscriptionOK) GetSubscription() OptString

GetSubscription returns the value of Subscription.

func (*GetOrganizationSubscriptionOK) GetTimeline

func (s *GetOrganizationSubscriptionOK) GetTimeline() OptString

GetTimeline returns the value of Timeline.

func (*GetOrganizationSubscriptionOK) MarshalJSON

func (s *GetOrganizationSubscriptionOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOrganizationSubscriptionOK) SetOverages

func (s *GetOrganizationSubscriptionOK) SetOverages(val OptBool)

SetOverages sets the value of Overages.

func (*GetOrganizationSubscriptionOK) SetPlan

func (s *GetOrganizationSubscriptionOK) SetPlan(val OptString)

SetPlan sets the value of Plan.

func (*GetOrganizationSubscriptionOK) SetSubscription

func (s *GetOrganizationSubscriptionOK) SetSubscription(val OptString)

SetSubscription sets the value of Subscription.

func (*GetOrganizationSubscriptionOK) SetTimeline

func (s *GetOrganizationSubscriptionOK) SetTimeline(val OptString)

SetTimeline sets the value of Timeline.

func (*GetOrganizationSubscriptionOK) UnmarshalJSON

func (s *GetOrganizationSubscriptionOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOrganizationSubscriptionParams

type GetOrganizationSubscriptionParams struct {
	// The name of the organization or user.
	OrganizationName string
}

GetOrganizationSubscriptionParams is parameters of getOrganizationSubscription operation.

type GetOrganizationUsageOK

type GetOrganizationUsageOK struct {
	// The organization usage object, containing the total usage for rows read and written, as well as
	// the total storage size (in bytes).
	Organization OptGetOrganizationUsageOKOrganization `json:"organization"`
}

func (*GetOrganizationUsageOK) Decode

func (s *GetOrganizationUsageOK) Decode(d *jx.Decoder) error

Decode decodes GetOrganizationUsageOK from json.

func (*GetOrganizationUsageOK) Encode

func (s *GetOrganizationUsageOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetOrganizationUsageOK) GetOrganization

GetOrganization returns the value of Organization.

func (*GetOrganizationUsageOK) MarshalJSON

func (s *GetOrganizationUsageOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOrganizationUsageOK) SetOrganization

SetOrganization sets the value of Organization.

func (*GetOrganizationUsageOK) UnmarshalJSON

func (s *GetOrganizationUsageOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOrganizationUsageOKOrganization

type GetOrganizationUsageOKOrganization struct {
	// The UUID of the organization.
	UUID OptString `json:"uuid"`
	// The usage object for the organization.
	Usage OptGetOrganizationUsageOKOrganizationUsage `json:"usage"`
	// The databases for the organization and their usage.
	Databases []DatabaseUsageOutput `json:"databases"`
}

The organization usage object, containing the total usage for rows read and written, as well as the total storage size (in bytes).

func (*GetOrganizationUsageOKOrganization) Decode

Decode decodes GetOrganizationUsageOKOrganization from json.

func (*GetOrganizationUsageOKOrganization) Encode

Encode implements json.Marshaler.

func (*GetOrganizationUsageOKOrganization) GetDatabases

GetDatabases returns the value of Databases.

func (*GetOrganizationUsageOKOrganization) GetUUID

GetUUID returns the value of UUID.

func (*GetOrganizationUsageOKOrganization) GetUsage

GetUsage returns the value of Usage.

func (*GetOrganizationUsageOKOrganization) MarshalJSON

func (s *GetOrganizationUsageOKOrganization) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOrganizationUsageOKOrganization) SetDatabases

SetDatabases sets the value of Databases.

func (*GetOrganizationUsageOKOrganization) SetUUID

SetUUID sets the value of UUID.

func (*GetOrganizationUsageOKOrganization) SetUsage

SetUsage sets the value of Usage.

func (*GetOrganizationUsageOKOrganization) UnmarshalJSON

func (s *GetOrganizationUsageOKOrganization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOrganizationUsageOKOrganizationUsage

type GetOrganizationUsageOKOrganizationUsage struct {
	// The number of rows read allowed for the specific plan.
	RowsRead OptInt `json:"rows_read"`
	// The number of rows written allowed for the specific plan.
	RowsWritten OptInt `json:"rows_written"`
	// The number of databases allowed for the specific plan.
	Databases OptInt `json:"databases"`
	// The number of locations allowed for the specific plan.
	Locations OptInt `json:"locations"`
	// The amount of storage allowed for the specific plan, in bytes.
	Storage OptInt `json:"storage"`
	// The number of groups allowed for the specific plan.
	Groups OptInt `json:"groups"`
	// The number of bytes synced allowed for the specific plan, in bytes.
	BytesSynced OptInt `json:"bytes_synced"`
}

The usage object for the organization.

func (*GetOrganizationUsageOKOrganizationUsage) Decode

Decode decodes GetOrganizationUsageOKOrganizationUsage from json.

func (*GetOrganizationUsageOKOrganizationUsage) Encode

Encode implements json.Marshaler.

func (*GetOrganizationUsageOKOrganizationUsage) GetBytesSynced

func (s *GetOrganizationUsageOKOrganizationUsage) GetBytesSynced() OptInt

GetBytesSynced returns the value of BytesSynced.

func (*GetOrganizationUsageOKOrganizationUsage) GetDatabases

GetDatabases returns the value of Databases.

func (*GetOrganizationUsageOKOrganizationUsage) GetGroups

GetGroups returns the value of Groups.

func (*GetOrganizationUsageOKOrganizationUsage) GetLocations

GetLocations returns the value of Locations.

func (*GetOrganizationUsageOKOrganizationUsage) GetRowsRead

GetRowsRead returns the value of RowsRead.

func (*GetOrganizationUsageOKOrganizationUsage) GetRowsWritten

func (s *GetOrganizationUsageOKOrganizationUsage) GetRowsWritten() OptInt

GetRowsWritten returns the value of RowsWritten.

func (*GetOrganizationUsageOKOrganizationUsage) GetStorage

GetStorage returns the value of Storage.

func (*GetOrganizationUsageOKOrganizationUsage) MarshalJSON

func (s *GetOrganizationUsageOKOrganizationUsage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOrganizationUsageOKOrganizationUsage) SetBytesSynced

func (s *GetOrganizationUsageOKOrganizationUsage) SetBytesSynced(val OptInt)

SetBytesSynced sets the value of BytesSynced.

func (*GetOrganizationUsageOKOrganizationUsage) SetDatabases

func (s *GetOrganizationUsageOKOrganizationUsage) SetDatabases(val OptInt)

SetDatabases sets the value of Databases.

func (*GetOrganizationUsageOKOrganizationUsage) SetGroups

SetGroups sets the value of Groups.

func (*GetOrganizationUsageOKOrganizationUsage) SetLocations

func (s *GetOrganizationUsageOKOrganizationUsage) SetLocations(val OptInt)

SetLocations sets the value of Locations.

func (*GetOrganizationUsageOKOrganizationUsage) SetRowsRead

func (s *GetOrganizationUsageOKOrganizationUsage) SetRowsRead(val OptInt)

SetRowsRead sets the value of RowsRead.

func (*GetOrganizationUsageOKOrganizationUsage) SetRowsWritten

func (s *GetOrganizationUsageOKOrganizationUsage) SetRowsWritten(val OptInt)

SetRowsWritten sets the value of RowsWritten.

func (*GetOrganizationUsageOKOrganizationUsage) SetStorage

SetStorage sets the value of Storage.

func (*GetOrganizationUsageOKOrganizationUsage) UnmarshalJSON

func (s *GetOrganizationUsageOKOrganizationUsage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOrganizationUsageParams

type GetOrganizationUsageParams struct {
	// The name of the organization or user.
	OrganizationName string
}

GetOrganizationUsageParams is parameters of getOrganizationUsage operation.

type GroupNotFoundResponse

type GroupNotFoundResponse struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*GroupNotFoundResponse) Decode

func (s *GroupNotFoundResponse) Decode(d *jx.Decoder) error

Decode decodes GroupNotFoundResponse from json.

func (*GroupNotFoundResponse) Encode

func (s *GroupNotFoundResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GroupNotFoundResponse) GetError

func (s *GroupNotFoundResponse) GetError() OptString

GetError returns the value of Error.

func (*GroupNotFoundResponse) MarshalJSON

func (s *GroupNotFoundResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GroupNotFoundResponse) SetError

func (s *GroupNotFoundResponse) SetError(val OptString)

SetError sets the value of Error.

func (*GroupNotFoundResponse) UnmarshalJSON

func (s *GroupNotFoundResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Handler

type Handler interface {
	// AddLocationToGroup implements addLocationToGroup operation.
	//
	// Adds a location to the specified group.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}
	AddLocationToGroup(ctx context.Context, params AddLocationToGroupParams) (AddLocationToGroupRes, error)
	// AddOrganizationMember implements addOrganizationMember operation.
	//
	// Add an existing Turso user to an organization.
	//
	// POST /v1/organizations/{organizationName}/members
	AddOrganizationMember(ctx context.Context, req *AddOrganizationMemberReq, params AddOrganizationMemberParams) (AddOrganizationMemberRes, error)
	// CreateAPIToken implements createAPIToken operation.
	//
	// Returns a new API token belonging to a user.
	//
	// POST /v1/auth/api-tokens/{tokenName}
	CreateAPIToken(ctx context.Context, params CreateAPITokenParams) (jx.Raw, error)
	// CreateDatabase implements createDatabase operation.
	//
	// Creates a new database in a group for the organization or user.
	//
	// POST /v1/organizations/{organizationName}/databases
	CreateDatabase(ctx context.Context, req *CreateDatabaseInput, params CreateDatabaseParams) (CreateDatabaseRes, error)
	// CreateDatabaseToken implements createDatabaseToken operation.
	//
	// Generates an authorization token for the specified database.
	//
	// POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/tokens
	CreateDatabaseToken(ctx context.Context, req OptCreateTokenInput, params CreateDatabaseTokenParams) (CreateDatabaseTokenRes, error)
	// CreateGroup implements createGroup operation.
	//
	// Creates a new group for the organization or user.
	//
	// POST /v1/organizations/{organizationName}/groups
	CreateGroup(ctx context.Context, req *NewGroup, params CreateGroupParams) (CreateGroupRes, error)
	// CreateGroupToken implements createGroupToken operation.
	//
	// Generates an authorization token for the specified group.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/auth/tokens
	CreateGroupToken(ctx context.Context, req OptCreateTokenInput, params CreateGroupTokenParams) (CreateGroupTokenRes, error)
	// DeleteDatabase implements deleteDatabase operation.
	//
	// Delete a database belonging to the organization or user.
	//
	// DELETE /v1/organizations/{organizationName}/databases/{databaseName}
	DeleteDatabase(ctx context.Context, params DeleteDatabaseParams) (DeleteDatabaseRes, error)
	// DeleteGroup implements deleteGroup operation.
	//
	// Delete a group belonging to the organization or user.
	//
	// DELETE /v1/organizations/{organizationName}/groups/{groupName}
	DeleteGroup(ctx context.Context, params DeleteGroupParams) (DeleteGroupRes, error)
	// DeleteOrganizationInviteByEmail implements deleteOrganizationInviteByEmail operation.
	//
	// Delete an invite for the organization by email.
	//
	// DELETE /v1/organizations/{organizationName}/invites/{email}
	DeleteOrganizationInviteByEmail(ctx context.Context, params DeleteOrganizationInviteByEmailParams) (DeleteOrganizationInviteByEmailRes, error)
	// GetDatabase implements getDatabase operation.
	//
	// Returns a database belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}
	GetDatabase(ctx context.Context, params GetDatabaseParams) (GetDatabaseRes, error)
	// GetDatabaseConfiguration implements getDatabaseConfiguration operation.
	//
	// Retrieve an individual database configuration belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/configuration
	GetDatabaseConfiguration(ctx context.Context, params GetDatabaseConfigurationParams) (*DatabaseConfigurationResponse, error)
	// GetDatabaseInstance implements getDatabaseInstance operation.
	//
	// Return the individual database instance by name.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/instances/{instanceName}
	GetDatabaseInstance(ctx context.Context, params GetDatabaseInstanceParams) (*GetDatabaseInstanceOK, error)
	// GetDatabaseStats implements getDatabaseStats operation.
	//
	// Fetch the top queries of a database, including the count of rows read and written.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/stats
	GetDatabaseStats(ctx context.Context, params GetDatabaseStatsParams) (GetDatabaseStatsRes, error)
	// GetDatabaseUsage implements getDatabaseUsage operation.
	//
	// Fetch activity usage for a database in a given time period.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/usage
	GetDatabaseUsage(ctx context.Context, params GetDatabaseUsageParams) (GetDatabaseUsageRes, error)
	// GetGroup implements getGroup operation.
	//
	// Returns a group belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/groups/{groupName}
	GetGroup(ctx context.Context, params GetGroupParams) (GetGroupRes, error)
	// GetOrganizationSubscription implements getOrganizationSubscription operation.
	//
	// Returns the current subscription details for the organization.
	//
	// GET /v1/organizations/{organizationName}/subscription
	GetOrganizationSubscription(ctx context.Context, params GetOrganizationSubscriptionParams) (*GetOrganizationSubscriptionOK, error)
	// GetOrganizationUsage implements getOrganizationUsage operation.
	//
	// Fetch current billing cycle usage for an organization.
	//
	// GET /v1/organizations/{organizationName}/usage
	GetOrganizationUsage(ctx context.Context, params GetOrganizationUsageParams) (*GetOrganizationUsageOK, error)
	// InvalidateDatabaseTokens implements invalidateDatabaseTokens operation.
	//
	// Invalidates all authorization tokens for the specified database.
	//
	// POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/rotate
	InvalidateDatabaseTokens(ctx context.Context, params InvalidateDatabaseTokensParams) (InvalidateDatabaseTokensRes, error)
	// InvalidateGroupTokens implements invalidateGroupTokens operation.
	//
	// Invalidates all authorization tokens for the specified group.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/auth/rotate
	InvalidateGroupTokens(ctx context.Context, params InvalidateGroupTokensParams) (InvalidateGroupTokensRes, error)
	// InviteOrganizationMember implements inviteOrganizationMember operation.
	//
	// Invite a user (who isn't already a Turso user) to an organization.
	//
	// POST /v1/organizations/{organizationName}/invites
	InviteOrganizationMember(ctx context.Context, req *InviteOrganizationMemberReq, params InviteOrganizationMemberParams) (*InviteOrganizationMemberOK, error)
	// ListAPITokens implements listAPITokens operation.
	//
	// Returns a list of API tokens belonging to a user.
	//
	// GET /v1/auth/api-tokens
	ListAPITokens(ctx context.Context) (*ListAPITokensOK, error)
	// ListDatabaseInstances implements listDatabaseInstances operation.
	//
	// Returns a list of instances of a database. Instances are the individual primary or replica
	// databases in each region defined by the group.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/instances
	ListDatabaseInstances(ctx context.Context, params ListDatabaseInstancesParams) (*ListDatabaseInstancesOK, error)
	// ListDatabases implements listDatabases operation.
	//
	// Returns a list of databases belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/databases
	ListDatabases(ctx context.Context, params ListDatabasesParams) (*ListDatabasesOK, error)
	// ListGroups implements listGroups operation.
	//
	// Returns a list of groups belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/groups
	ListGroups(ctx context.Context, params ListGroupsParams) (*ListGroupsOK, error)
	// ListLocations implements listLocations operation.
	//
	// Returns a list of locations where you can create or replicate databases.
	//
	// GET /v1/locations
	ListLocations(ctx context.Context) (*ListLocationsOK, error)
	// ListOrganizationAuditLogs implements listOrganizationAuditLogs operation.
	//
	// Return the audit logs for the given organization, ordered by the `created_at` field in descending
	// order.
	//
	// GET /v1/organizations/{organizationName}/audit-logs
	ListOrganizationAuditLogs(ctx context.Context, params ListOrganizationAuditLogsParams) (*ListOrganizationAuditLogsOK, error)
	// ListOrganizationInvites implements listOrganizationInvites operation.
	//
	// Returns a list of invites for the organization.
	//
	// GET /v1/organizations/{organizationName}/invites
	ListOrganizationInvites(ctx context.Context, params ListOrganizationInvitesParams) (*ListOrganizationInvitesOK, error)
	// ListOrganizationInvoices implements listOrganizationInvoices operation.
	//
	// Returns a list of invoices for the organization.
	//
	// GET /v1/organizations/{organizationName}/invoices
	ListOrganizationInvoices(ctx context.Context, params ListOrganizationInvoicesParams) (*ListOrganizationInvoicesOK, error)
	// ListOrganizationMembers implements listOrganizationMembers operation.
	//
	// Returns a list of members part of the organization.
	//
	// GET /v1/organizations/{organizationName}/members
	ListOrganizationMembers(ctx context.Context, params ListOrganizationMembersParams) (*ListOrganizationMembersOK, error)
	// ListOrganizationPlans implements listOrganizationPlans operation.
	//
	// Returns a list of available plans and their quotas.
	//
	// GET /v1/organizations/{organizationName}/plans
	ListOrganizationPlans(ctx context.Context, params ListOrganizationPlansParams) (*ListOrganizationPlansOK, error)
	// ListOrganizations implements listOrganizations operation.
	//
	// Returns a list of organizations the authenticated user owns or is a member of.
	//
	// GET /v1/organizations
	ListOrganizations(ctx context.Context) ([]Organization, error)
	// RemoveLocationFromGroup implements removeLocationFromGroup operation.
	//
	// Removes a location from the specified group.
	//
	// DELETE /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}
	RemoveLocationFromGroup(ctx context.Context, params RemoveLocationFromGroupParams) (RemoveLocationFromGroupRes, error)
	// RemoveOrganizationMember implements removeOrganizationMember operation.
	//
	// Remove a user from the organization by username.
	//
	// DELETE /v1/organizations/{organizationName}/members/{username}
	RemoveOrganizationMember(ctx context.Context, params RemoveOrganizationMemberParams) (RemoveOrganizationMemberRes, error)
	// RevokeAPIToken implements revokeAPIToken operation.
	//
	// Revokes the provided API token belonging to a user.
	//
	// DELETE /v1/auth/api-tokens/{tokenName}
	RevokeAPIToken(ctx context.Context, params RevokeAPITokenParams) (jx.Raw, error)
	// TransferGroup implements transferGroup operation.
	//
	// Transfer a group to another organization that you own or a member of.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/transfer
	TransferGroup(ctx context.Context, req *TransferGroupReq, params TransferGroupParams) (TransferGroupRes, error)
	// UnarchiveGroup implements unarchiveGroup operation.
	//
	// Unarchive a group that has been archived due to inactivity.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/unarchive
	UnarchiveGroup(ctx context.Context, params UnarchiveGroupParams) (UnarchiveGroupRes, error)
	// UpdateDatabaseConfiguration implements updateDatabaseConfiguration operation.
	//
	// Update a database configuration belonging to the organization or user.
	//
	// PATCH /v1/organizations/{organizationName}/databases/{databaseName}/configuration
	UpdateDatabaseConfiguration(ctx context.Context, req *DatabaseConfigurationInput, params UpdateDatabaseConfigurationParams) (*DatabaseConfigurationResponse, error)
	// UpdateGroupDatabases implements updateGroupDatabases operation.
	//
	// Updates all databases in the group to the latest libSQL version.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/update
	UpdateGroupDatabases(ctx context.Context, params UpdateGroupDatabasesParams) (UpdateGroupDatabasesRes, error)
	// UpdateOrganization implements updateOrganization operation.
	//
	// Update an organization you own or are a member of.
	//
	// PATCH /v1/organizations/{organizationName}
	UpdateOrganization(ctx context.Context, req *UpdateOrganizationReq, params UpdateOrganizationParams) (*UpdateOrganizationOK, error)
	// UploadDatabaseDump implements uploadDatabaseDump operation.
	//
	// Upload a SQL dump to be used when [creating a new database](/api-reference/databases/create) from
	// seed.
	//
	// POST /v1/organizations/{organizationName}/databases/dumps
	UploadDatabaseDump(ctx context.Context, req *UploadDatabaseDumpReq, params UploadDatabaseDumpParams) (*UploadDatabaseDumpOK, error)
	// ValidateAPIToken implements validateAPIToken operation.
	//
	// Validates an API token belonging to a user.
	//
	// GET /v1/auth/validate
	ValidateAPIToken(ctx context.Context) (*ValidateAPITokenOK, error)
}

Handler handles operations described by OpenAPI v3 specification.

type Hostname

type Hostname string

func (*Hostname) Decode

func (s *Hostname) Decode(d *jx.Decoder) error

Decode decodes Hostname from json.

func (Hostname) Encode

func (s Hostname) Encode(e *jx.Encoder)

Encode encodes Hostname as json.

func (Hostname) MarshalJSON

func (s Hostname) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Hostname) UnmarshalJSON

func (s *Hostname) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Instance

type Instance struct {
	// The instance universal unique identifier (UUID).
	UUID OptString `json:"uuid"`
	// The name of the instance (location code).
	Name OptString `json:"name"`
	// The type of database instance this, will be `primary` or `replica`.
	Type OptInstanceType `json:"type"`
	// The location code for the region this instance is located.
	Region OptString `json:"region"`
	// The DNS hostname used for client libSQL and HTTP connections (specific to this instance only).
	Hostname OptString `json:"hostname"`
}

Ref: #/components/schemas/Instance

func (*Instance) Decode

func (s *Instance) Decode(d *jx.Decoder) error

Decode decodes Instance from json.

func (*Instance) Encode

func (s *Instance) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Instance) GetHostname

func (s *Instance) GetHostname() OptString

GetHostname returns the value of Hostname.

func (*Instance) GetName

func (s *Instance) GetName() OptString

GetName returns the value of Name.

func (*Instance) GetRegion

func (s *Instance) GetRegion() OptString

GetRegion returns the value of Region.

func (*Instance) GetType

func (s *Instance) GetType() OptInstanceType

GetType returns the value of Type.

func (*Instance) GetUUID

func (s *Instance) GetUUID() OptString

GetUUID returns the value of UUID.

func (*Instance) MarshalJSON

func (s *Instance) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Instance) SetHostname

func (s *Instance) SetHostname(val OptString)

SetHostname sets the value of Hostname.

func (*Instance) SetName

func (s *Instance) SetName(val OptString)

SetName sets the value of Name.

func (*Instance) SetRegion

func (s *Instance) SetRegion(val OptString)

SetRegion sets the value of Region.

func (*Instance) SetType

func (s *Instance) SetType(val OptInstanceType)

SetType sets the value of Type.

func (*Instance) SetUUID

func (s *Instance) SetUUID(val OptString)

SetUUID sets the value of UUID.

func (*Instance) UnmarshalJSON

func (s *Instance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Instance) Validate

func (s *Instance) Validate() error

type InstanceType

type InstanceType string

The type of database instance this, will be `primary` or `replica`.

const (
	InstanceTypePrimary InstanceType = "primary"
	InstanceTypeReplica InstanceType = "replica"
)

func (InstanceType) AllValues

func (InstanceType) AllValues() []InstanceType

AllValues returns all InstanceType values.

func (*InstanceType) Decode

func (s *InstanceType) Decode(d *jx.Decoder) error

Decode decodes InstanceType from json.

func (InstanceType) Encode

func (s InstanceType) Encode(e *jx.Encoder)

Encode encodes InstanceType as json.

func (InstanceType) MarshalJSON

func (s InstanceType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InstanceType) MarshalText

func (s InstanceType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InstanceType) UnmarshalJSON

func (s *InstanceType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InstanceType) UnmarshalText

func (s *InstanceType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InstanceType) Validate

func (s InstanceType) Validate() error

type InvalidateDatabaseTokensOK

type InvalidateDatabaseTokensOK struct{}

InvalidateDatabaseTokensOK is response for InvalidateDatabaseTokens operation.

type InvalidateDatabaseTokensParams

type InvalidateDatabaseTokensParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
}

InvalidateDatabaseTokensParams is parameters of invalidateDatabaseTokens operation.

type InvalidateDatabaseTokensRes

type InvalidateDatabaseTokensRes interface {
	// contains filtered or unexported methods
}

type InvalidateGroupTokensOK

type InvalidateGroupTokensOK struct{}

InvalidateGroupTokensOK is response for InvalidateGroupTokens operation.

type InvalidateGroupTokensParams

type InvalidateGroupTokensParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
}

InvalidateGroupTokensParams is parameters of invalidateGroupTokens operation.

type InvalidateGroupTokensRes

type InvalidateGroupTokensRes interface {
	// contains filtered or unexported methods
}

type Invite

type Invite struct {
	// The unique ID for the invite.
	ID OptInt `json:"ID"`
	// The datetime the invite was created in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	// Example: `2023-01-01T00:00:00Z`.
	CreatedAt OptString `json:"CreatedAt"`
	// The datetime the invite was updated in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	// Example: `2023-01-01T00:00:00Z`.
	UpdatedAt OptString `json:"UpdatedAt"`
	// The datetime the invite was deleted (or revoked) in [ISO 8601](https://en.wikipedia.
	// org/wiki/ISO_8601) format. Example: `2023-01-01T00:00:00Z`.
	DeletedAt OptString `json:"DeletedAt"`
	// The assigned role for the invited user.
	Role OptInviteRole `json:"Role"`
	// The email of the person invited.
	Email OptString `json:"Email"`
	// The ID of the organization the user was invited to.
	OrganizationID OptInt `json:"OrganizationID"`
	// The unique token used to verify the invite.
	Token        OptString       `json:"Token"`
	Organization OptOrganization `json:"Organization"`
	// The current status of the invite.
	Accepted OptBool `json:"Accepted"`
}

Ref: #/components/schemas/Invite

func (*Invite) Decode

func (s *Invite) Decode(d *jx.Decoder) error

Decode decodes Invite from json.

func (*Invite) Encode

func (s *Invite) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Invite) GetAccepted

func (s *Invite) GetAccepted() OptBool

GetAccepted returns the value of Accepted.

func (*Invite) GetCreatedAt

func (s *Invite) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*Invite) GetDeletedAt

func (s *Invite) GetDeletedAt() OptString

GetDeletedAt returns the value of DeletedAt.

func (*Invite) GetEmail

func (s *Invite) GetEmail() OptString

GetEmail returns the value of Email.

func (*Invite) GetID

func (s *Invite) GetID() OptInt

GetID returns the value of ID.

func (*Invite) GetOrganization

func (s *Invite) GetOrganization() OptOrganization

GetOrganization returns the value of Organization.

func (*Invite) GetOrganizationID

func (s *Invite) GetOrganizationID() OptInt

GetOrganizationID returns the value of OrganizationID.

func (*Invite) GetRole

func (s *Invite) GetRole() OptInviteRole

GetRole returns the value of Role.

func (*Invite) GetToken

func (s *Invite) GetToken() OptString

GetToken returns the value of Token.

func (*Invite) GetUpdatedAt

func (s *Invite) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*Invite) MarshalJSON

func (s *Invite) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Invite) SetAccepted

func (s *Invite) SetAccepted(val OptBool)

SetAccepted sets the value of Accepted.

func (*Invite) SetCreatedAt

func (s *Invite) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*Invite) SetDeletedAt

func (s *Invite) SetDeletedAt(val OptString)

SetDeletedAt sets the value of DeletedAt.

func (*Invite) SetEmail

func (s *Invite) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*Invite) SetID

func (s *Invite) SetID(val OptInt)

SetID sets the value of ID.

func (*Invite) SetOrganization

func (s *Invite) SetOrganization(val OptOrganization)

SetOrganization sets the value of Organization.

func (*Invite) SetOrganizationID

func (s *Invite) SetOrganizationID(val OptInt)

SetOrganizationID sets the value of OrganizationID.

func (*Invite) SetRole

func (s *Invite) SetRole(val OptInviteRole)

SetRole sets the value of Role.

func (*Invite) SetToken

func (s *Invite) SetToken(val OptString)

SetToken sets the value of Token.

func (*Invite) SetUpdatedAt

func (s *Invite) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*Invite) UnmarshalJSON

func (s *Invite) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Invite) Validate

func (s *Invite) Validate() error

type InviteOrganizationMemberOK

type InviteOrganizationMemberOK struct {
	Invited OptInvite `json:"invited"`
}

func (*InviteOrganizationMemberOK) Decode

Decode decodes InviteOrganizationMemberOK from json.

func (*InviteOrganizationMemberOK) Encode

func (s *InviteOrganizationMemberOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InviteOrganizationMemberOK) GetInvited

func (s *InviteOrganizationMemberOK) GetInvited() OptInvite

GetInvited returns the value of Invited.

func (*InviteOrganizationMemberOK) MarshalJSON

func (s *InviteOrganizationMemberOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InviteOrganizationMemberOK) SetInvited

func (s *InviteOrganizationMemberOK) SetInvited(val OptInvite)

SetInvited sets the value of Invited.

func (*InviteOrganizationMemberOK) UnmarshalJSON

func (s *InviteOrganizationMemberOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InviteOrganizationMemberOK) Validate

func (s *InviteOrganizationMemberOK) Validate() error

type InviteOrganizationMemberParams

type InviteOrganizationMemberParams struct {
	// The name of the organization or user.
	OrganizationName string
}

InviteOrganizationMemberParams is parameters of inviteOrganizationMember operation.

type InviteOrganizationMemberReq

type InviteOrganizationMemberReq struct {
	// The email of the user you want to invite.
	Email string `json:"email"`
	// The role given to the user.
	Role OptInviteOrganizationMemberReqRole `json:"role"`
}

func (*InviteOrganizationMemberReq) Decode

Decode decodes InviteOrganizationMemberReq from json.

func (*InviteOrganizationMemberReq) Encode

func (s *InviteOrganizationMemberReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InviteOrganizationMemberReq) GetEmail

func (s *InviteOrganizationMemberReq) GetEmail() string

GetEmail returns the value of Email.

func (*InviteOrganizationMemberReq) GetRole

GetRole returns the value of Role.

func (*InviteOrganizationMemberReq) MarshalJSON

func (s *InviteOrganizationMemberReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InviteOrganizationMemberReq) SetEmail

func (s *InviteOrganizationMemberReq) SetEmail(val string)

SetEmail sets the value of Email.

func (*InviteOrganizationMemberReq) SetRole

SetRole sets the value of Role.

func (*InviteOrganizationMemberReq) UnmarshalJSON

func (s *InviteOrganizationMemberReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InviteOrganizationMemberReq) Validate

func (s *InviteOrganizationMemberReq) Validate() error

type InviteOrganizationMemberReqRole

type InviteOrganizationMemberReqRole string

The role given to the user.

const (
	InviteOrganizationMemberReqRoleAdmin  InviteOrganizationMemberReqRole = "admin"
	InviteOrganizationMemberReqRoleMember InviteOrganizationMemberReqRole = "member"
)

func (InviteOrganizationMemberReqRole) AllValues

AllValues returns all InviteOrganizationMemberReqRole values.

func (*InviteOrganizationMemberReqRole) Decode

Decode decodes InviteOrganizationMemberReqRole from json.

func (InviteOrganizationMemberReqRole) Encode

Encode encodes InviteOrganizationMemberReqRole as json.

func (InviteOrganizationMemberReqRole) MarshalJSON

func (s InviteOrganizationMemberReqRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InviteOrganizationMemberReqRole) MarshalText

func (s InviteOrganizationMemberReqRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InviteOrganizationMemberReqRole) UnmarshalJSON

func (s *InviteOrganizationMemberReqRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InviteOrganizationMemberReqRole) UnmarshalText

func (s *InviteOrganizationMemberReqRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InviteOrganizationMemberReqRole) Validate

type InviteRole

type InviteRole string

The assigned role for the invited user.

const (
	InviteRoleAdmin  InviteRole = "admin"
	InviteRoleMember InviteRole = "member"
)

func (InviteRole) AllValues

func (InviteRole) AllValues() []InviteRole

AllValues returns all InviteRole values.

func (*InviteRole) Decode

func (s *InviteRole) Decode(d *jx.Decoder) error

Decode decodes InviteRole from json.

func (InviteRole) Encode

func (s InviteRole) Encode(e *jx.Encoder)

Encode encodes InviteRole as json.

func (InviteRole) MarshalJSON

func (s InviteRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InviteRole) MarshalText

func (s InviteRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InviteRole) UnmarshalJSON

func (s *InviteRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InviteRole) UnmarshalText

func (s *InviteRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InviteRole) Validate

func (s InviteRole) Validate() error

type Invoker

type Invoker interface {
	// AddLocationToGroup invokes addLocationToGroup operation.
	//
	// Adds a location to the specified group.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}
	AddLocationToGroup(ctx context.Context, params AddLocationToGroupParams) (AddLocationToGroupRes, error)
	// AddOrganizationMember invokes addOrganizationMember operation.
	//
	// Add an existing Turso user to an organization.
	//
	// POST /v1/organizations/{organizationName}/members
	AddOrganizationMember(ctx context.Context, request *AddOrganizationMemberReq, params AddOrganizationMemberParams) (AddOrganizationMemberRes, error)
	// CreateAPIToken invokes createAPIToken operation.
	//
	// Returns a new API token belonging to a user.
	//
	// POST /v1/auth/api-tokens/{tokenName}
	CreateAPIToken(ctx context.Context, params CreateAPITokenParams) (jx.Raw, error)
	// CreateDatabase invokes createDatabase operation.
	//
	// Creates a new database in a group for the organization or user.
	//
	// POST /v1/organizations/{organizationName}/databases
	CreateDatabase(ctx context.Context, request *CreateDatabaseInput, params CreateDatabaseParams) (CreateDatabaseRes, error)
	// CreateDatabaseToken invokes createDatabaseToken operation.
	//
	// Generates an authorization token for the specified database.
	//
	// POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/tokens
	CreateDatabaseToken(ctx context.Context, request OptCreateTokenInput, params CreateDatabaseTokenParams) (CreateDatabaseTokenRes, error)
	// CreateGroup invokes createGroup operation.
	//
	// Creates a new group for the organization or user.
	//
	// POST /v1/organizations/{organizationName}/groups
	CreateGroup(ctx context.Context, request *NewGroup, params CreateGroupParams) (CreateGroupRes, error)
	// CreateGroupToken invokes createGroupToken operation.
	//
	// Generates an authorization token for the specified group.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/auth/tokens
	CreateGroupToken(ctx context.Context, request OptCreateTokenInput, params CreateGroupTokenParams) (CreateGroupTokenRes, error)
	// DeleteDatabase invokes deleteDatabase operation.
	//
	// Delete a database belonging to the organization or user.
	//
	// DELETE /v1/organizations/{organizationName}/databases/{databaseName}
	DeleteDatabase(ctx context.Context, params DeleteDatabaseParams) (DeleteDatabaseRes, error)
	// DeleteGroup invokes deleteGroup operation.
	//
	// Delete a group belonging to the organization or user.
	//
	// DELETE /v1/organizations/{organizationName}/groups/{groupName}
	DeleteGroup(ctx context.Context, params DeleteGroupParams) (DeleteGroupRes, error)
	// DeleteOrganizationInviteByEmail invokes deleteOrganizationInviteByEmail operation.
	//
	// Delete an invite for the organization by email.
	//
	// DELETE /v1/organizations/{organizationName}/invites/{email}
	DeleteOrganizationInviteByEmail(ctx context.Context, params DeleteOrganizationInviteByEmailParams) (DeleteOrganizationInviteByEmailRes, error)
	// GetDatabase invokes getDatabase operation.
	//
	// Returns a database belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}
	GetDatabase(ctx context.Context, params GetDatabaseParams) (GetDatabaseRes, error)
	// GetDatabaseConfiguration invokes getDatabaseConfiguration operation.
	//
	// Retrieve an individual database configuration belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/configuration
	GetDatabaseConfiguration(ctx context.Context, params GetDatabaseConfigurationParams) (*DatabaseConfigurationResponse, error)
	// GetDatabaseInstance invokes getDatabaseInstance operation.
	//
	// Return the individual database instance by name.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/instances/{instanceName}
	GetDatabaseInstance(ctx context.Context, params GetDatabaseInstanceParams) (*GetDatabaseInstanceOK, error)
	// GetDatabaseStats invokes getDatabaseStats operation.
	//
	// Fetch the top queries of a database, including the count of rows read and written.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/stats
	GetDatabaseStats(ctx context.Context, params GetDatabaseStatsParams) (GetDatabaseStatsRes, error)
	// GetDatabaseUsage invokes getDatabaseUsage operation.
	//
	// Fetch activity usage for a database in a given time period.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/usage
	GetDatabaseUsage(ctx context.Context, params GetDatabaseUsageParams) (GetDatabaseUsageRes, error)
	// GetGroup invokes getGroup operation.
	//
	// Returns a group belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/groups/{groupName}
	GetGroup(ctx context.Context, params GetGroupParams) (GetGroupRes, error)
	// GetOrganizationSubscription invokes getOrganizationSubscription operation.
	//
	// Returns the current subscription details for the organization.
	//
	// GET /v1/organizations/{organizationName}/subscription
	GetOrganizationSubscription(ctx context.Context, params GetOrganizationSubscriptionParams) (*GetOrganizationSubscriptionOK, error)
	// GetOrganizationUsage invokes getOrganizationUsage operation.
	//
	// Fetch current billing cycle usage for an organization.
	//
	// GET /v1/organizations/{organizationName}/usage
	GetOrganizationUsage(ctx context.Context, params GetOrganizationUsageParams) (*GetOrganizationUsageOK, error)
	// InvalidateDatabaseTokens invokes invalidateDatabaseTokens operation.
	//
	// Invalidates all authorization tokens for the specified database.
	//
	// POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/rotate
	InvalidateDatabaseTokens(ctx context.Context, params InvalidateDatabaseTokensParams) (InvalidateDatabaseTokensRes, error)
	// InvalidateGroupTokens invokes invalidateGroupTokens operation.
	//
	// Invalidates all authorization tokens for the specified group.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/auth/rotate
	InvalidateGroupTokens(ctx context.Context, params InvalidateGroupTokensParams) (InvalidateGroupTokensRes, error)
	// InviteOrganizationMember invokes inviteOrganizationMember operation.
	//
	// Invite a user (who isn't already a Turso user) to an organization.
	//
	// POST /v1/organizations/{organizationName}/invites
	InviteOrganizationMember(ctx context.Context, request *InviteOrganizationMemberReq, params InviteOrganizationMemberParams) (*InviteOrganizationMemberOK, error)
	// ListAPITokens invokes listAPITokens operation.
	//
	// Returns a list of API tokens belonging to a user.
	//
	// GET /v1/auth/api-tokens
	ListAPITokens(ctx context.Context) (*ListAPITokensOK, error)
	// ListDatabaseInstances invokes listDatabaseInstances operation.
	//
	// Returns a list of instances of a database. Instances are the individual primary or replica
	// databases in each region defined by the group.
	//
	// GET /v1/organizations/{organizationName}/databases/{databaseName}/instances
	ListDatabaseInstances(ctx context.Context, params ListDatabaseInstancesParams) (*ListDatabaseInstancesOK, error)
	// ListDatabases invokes listDatabases operation.
	//
	// Returns a list of databases belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/databases
	ListDatabases(ctx context.Context, params ListDatabasesParams) (*ListDatabasesOK, error)
	// ListGroups invokes listGroups operation.
	//
	// Returns a list of groups belonging to the organization or user.
	//
	// GET /v1/organizations/{organizationName}/groups
	ListGroups(ctx context.Context, params ListGroupsParams) (*ListGroupsOK, error)
	// ListLocations invokes listLocations operation.
	//
	// Returns a list of locations where you can create or replicate databases.
	//
	// GET /v1/locations
	ListLocations(ctx context.Context) (*ListLocationsOK, error)
	// ListOrganizationAuditLogs invokes listOrganizationAuditLogs operation.
	//
	// Return the audit logs for the given organization, ordered by the `created_at` field in descending
	// order.
	//
	// GET /v1/organizations/{organizationName}/audit-logs
	ListOrganizationAuditLogs(ctx context.Context, params ListOrganizationAuditLogsParams) (*ListOrganizationAuditLogsOK, error)
	// ListOrganizationInvites invokes listOrganizationInvites operation.
	//
	// Returns a list of invites for the organization.
	//
	// GET /v1/organizations/{organizationName}/invites
	ListOrganizationInvites(ctx context.Context, params ListOrganizationInvitesParams) (*ListOrganizationInvitesOK, error)
	// ListOrganizationInvoices invokes listOrganizationInvoices operation.
	//
	// Returns a list of invoices for the organization.
	//
	// GET /v1/organizations/{organizationName}/invoices
	ListOrganizationInvoices(ctx context.Context, params ListOrganizationInvoicesParams) (*ListOrganizationInvoicesOK, error)
	// ListOrganizationMembers invokes listOrganizationMembers operation.
	//
	// Returns a list of members part of the organization.
	//
	// GET /v1/organizations/{organizationName}/members
	ListOrganizationMembers(ctx context.Context, params ListOrganizationMembersParams) (*ListOrganizationMembersOK, error)
	// ListOrganizationPlans invokes listOrganizationPlans operation.
	//
	// Returns a list of available plans and their quotas.
	//
	// GET /v1/organizations/{organizationName}/plans
	ListOrganizationPlans(ctx context.Context, params ListOrganizationPlansParams) (*ListOrganizationPlansOK, error)
	// ListOrganizations invokes listOrganizations operation.
	//
	// Returns a list of organizations the authenticated user owns or is a member of.
	//
	// GET /v1/organizations
	ListOrganizations(ctx context.Context) ([]Organization, error)
	// RemoveLocationFromGroup invokes removeLocationFromGroup operation.
	//
	// Removes a location from the specified group.
	//
	// DELETE /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}
	RemoveLocationFromGroup(ctx context.Context, params RemoveLocationFromGroupParams) (RemoveLocationFromGroupRes, error)
	// RemoveOrganizationMember invokes removeOrganizationMember operation.
	//
	// Remove a user from the organization by username.
	//
	// DELETE /v1/organizations/{organizationName}/members/{username}
	RemoveOrganizationMember(ctx context.Context, params RemoveOrganizationMemberParams) (RemoveOrganizationMemberRes, error)
	// RevokeAPIToken invokes revokeAPIToken operation.
	//
	// Revokes the provided API token belonging to a user.
	//
	// DELETE /v1/auth/api-tokens/{tokenName}
	RevokeAPIToken(ctx context.Context, params RevokeAPITokenParams) (jx.Raw, error)
	// TransferGroup invokes transferGroup operation.
	//
	// Transfer a group to another organization that you own or a member of.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/transfer
	TransferGroup(ctx context.Context, request *TransferGroupReq, params TransferGroupParams) (TransferGroupRes, error)
	// UnarchiveGroup invokes unarchiveGroup operation.
	//
	// Unarchive a group that has been archived due to inactivity.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/unarchive
	UnarchiveGroup(ctx context.Context, params UnarchiveGroupParams) (UnarchiveGroupRes, error)
	// UpdateDatabaseConfiguration invokes updateDatabaseConfiguration operation.
	//
	// Update a database configuration belonging to the organization or user.
	//
	// PATCH /v1/organizations/{organizationName}/databases/{databaseName}/configuration
	UpdateDatabaseConfiguration(ctx context.Context, request *DatabaseConfigurationInput, params UpdateDatabaseConfigurationParams) (*DatabaseConfigurationResponse, error)
	// UpdateGroupDatabases invokes updateGroupDatabases operation.
	//
	// Updates all databases in the group to the latest libSQL version.
	//
	// POST /v1/organizations/{organizationName}/groups/{groupName}/update
	UpdateGroupDatabases(ctx context.Context, params UpdateGroupDatabasesParams) (UpdateGroupDatabasesRes, error)
	// UpdateOrganization invokes updateOrganization operation.
	//
	// Update an organization you own or are a member of.
	//
	// PATCH /v1/organizations/{organizationName}
	UpdateOrganization(ctx context.Context, request *UpdateOrganizationReq, params UpdateOrganizationParams) (*UpdateOrganizationOK, error)
	// UploadDatabaseDump invokes uploadDatabaseDump operation.
	//
	// Upload a SQL dump to be used when [creating a new database](/api-reference/databases/create) from
	// seed.
	//
	// POST /v1/organizations/{organizationName}/databases/dumps
	UploadDatabaseDump(ctx context.Context, request *UploadDatabaseDumpReq, params UploadDatabaseDumpParams) (*UploadDatabaseDumpOK, error)
	// ValidateAPIToken invokes validateAPIToken operation.
	//
	// Validates an API token belonging to a user.
	//
	// GET /v1/auth/validate
	ValidateAPIToken(ctx context.Context) (*ValidateAPITokenOK, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type Labeler

type Labeler struct {
	// contains filtered or unexported fields
}

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type ListAPITokensOK

type ListAPITokensOK struct {
	Tokens []APIToken `json:"tokens"`
}

func (*ListAPITokensOK) Decode

func (s *ListAPITokensOK) Decode(d *jx.Decoder) error

Decode decodes ListAPITokensOK from json.

func (*ListAPITokensOK) Encode

func (s *ListAPITokensOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListAPITokensOK) GetTokens

func (s *ListAPITokensOK) GetTokens() []APIToken

GetTokens returns the value of Tokens.

func (*ListAPITokensOK) MarshalJSON

func (s *ListAPITokensOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListAPITokensOK) SetTokens

func (s *ListAPITokensOK) SetTokens(val []APIToken)

SetTokens sets the value of Tokens.

func (*ListAPITokensOK) UnmarshalJSON

func (s *ListAPITokensOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListDatabaseInstancesOK

type ListDatabaseInstancesOK struct {
	Instances []Instance `json:"instances"`
}

func (*ListDatabaseInstancesOK) Decode

func (s *ListDatabaseInstancesOK) Decode(d *jx.Decoder) error

Decode decodes ListDatabaseInstancesOK from json.

func (*ListDatabaseInstancesOK) Encode

func (s *ListDatabaseInstancesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListDatabaseInstancesOK) GetInstances

func (s *ListDatabaseInstancesOK) GetInstances() []Instance

GetInstances returns the value of Instances.

func (*ListDatabaseInstancesOK) MarshalJSON

func (s *ListDatabaseInstancesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDatabaseInstancesOK) SetInstances

func (s *ListDatabaseInstancesOK) SetInstances(val []Instance)

SetInstances sets the value of Instances.

func (*ListDatabaseInstancesOK) UnmarshalJSON

func (s *ListDatabaseInstancesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDatabaseInstancesOK) Validate

func (s *ListDatabaseInstancesOK) Validate() error

type ListDatabaseInstancesParams

type ListDatabaseInstancesParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
}

ListDatabaseInstancesParams is parameters of listDatabaseInstances operation.

type ListDatabasesOK

type ListDatabasesOK struct {
	Databases []Database `json:"databases"`
}

func (*ListDatabasesOK) Decode

func (s *ListDatabasesOK) Decode(d *jx.Decoder) error

Decode decodes ListDatabasesOK from json.

func (*ListDatabasesOK) Encode

func (s *ListDatabasesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListDatabasesOK) GetDatabases

func (s *ListDatabasesOK) GetDatabases() []Database

GetDatabases returns the value of Databases.

func (*ListDatabasesOK) MarshalJSON

func (s *ListDatabasesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDatabasesOK) SetDatabases

func (s *ListDatabasesOK) SetDatabases(val []Database)

SetDatabases sets the value of Databases.

func (*ListDatabasesOK) UnmarshalJSON

func (s *ListDatabasesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListDatabasesParams

type ListDatabasesParams struct {
	// The name of the organization or user.
	OrganizationName string
	// Filter databases by group name.
	Group OptString
	// The schema database name that can be used to get databases that belong to that parent schema.
	Schema OptString
}

ListDatabasesParams is parameters of listDatabases operation.

type ListGroupsOK

type ListGroupsOK struct {
	Groups []BaseGroup `json:"groups"`
}

func (*ListGroupsOK) Decode

func (s *ListGroupsOK) Decode(d *jx.Decoder) error

Decode decodes ListGroupsOK from json.

func (*ListGroupsOK) Encode

func (s *ListGroupsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListGroupsOK) GetGroups

func (s *ListGroupsOK) GetGroups() []BaseGroup

GetGroups returns the value of Groups.

func (*ListGroupsOK) MarshalJSON

func (s *ListGroupsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListGroupsOK) SetGroups

func (s *ListGroupsOK) SetGroups(val []BaseGroup)

SetGroups sets the value of Groups.

func (*ListGroupsOK) UnmarshalJSON

func (s *ListGroupsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListGroupsParams

type ListGroupsParams struct {
	// The name of the organization or user.
	OrganizationName string
}

ListGroupsParams is parameters of listGroups operation.

type ListLocationsOK

type ListLocationsOK struct {
	// A mapping of location codes to location names.
	Locations OptListLocationsOKLocations `json:"locations"`
}

func (*ListLocationsOK) Decode

func (s *ListLocationsOK) Decode(d *jx.Decoder) error

Decode decodes ListLocationsOK from json.

func (*ListLocationsOK) Encode

func (s *ListLocationsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListLocationsOK) GetLocations

func (s *ListLocationsOK) GetLocations() OptListLocationsOKLocations

GetLocations returns the value of Locations.

func (*ListLocationsOK) MarshalJSON

func (s *ListLocationsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListLocationsOK) SetLocations

func (s *ListLocationsOK) SetLocations(val OptListLocationsOKLocations)

SetLocations sets the value of Locations.

func (*ListLocationsOK) UnmarshalJSON

func (s *ListLocationsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListLocationsOKLocations

type ListLocationsOKLocations map[string]string

A mapping of location codes to location names.

func (*ListLocationsOKLocations) Decode

func (s *ListLocationsOKLocations) Decode(d *jx.Decoder) error

Decode decodes ListLocationsOKLocations from json.

func (ListLocationsOKLocations) Encode

func (s ListLocationsOKLocations) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ListLocationsOKLocations) MarshalJSON

func (s ListLocationsOKLocations) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListLocationsOKLocations) UnmarshalJSON

func (s *ListLocationsOKLocations) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListOrganizationAuditLogsOK

type ListOrganizationAuditLogsOK struct {
	AuditLogs  []AuditLog                               `json:"audit_logs"`
	Pagination OptListOrganizationAuditLogsOKPagination `json:"pagination"`
}

func (*ListOrganizationAuditLogsOK) Decode

Decode decodes ListOrganizationAuditLogsOK from json.

func (*ListOrganizationAuditLogsOK) Encode

func (s *ListOrganizationAuditLogsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrganizationAuditLogsOK) GetAuditLogs

func (s *ListOrganizationAuditLogsOK) GetAuditLogs() []AuditLog

GetAuditLogs returns the value of AuditLogs.

func (*ListOrganizationAuditLogsOK) GetPagination

GetPagination returns the value of Pagination.

func (*ListOrganizationAuditLogsOK) MarshalJSON

func (s *ListOrganizationAuditLogsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationAuditLogsOK) SetAuditLogs

func (s *ListOrganizationAuditLogsOK) SetAuditLogs(val []AuditLog)

SetAuditLogs sets the value of AuditLogs.

func (*ListOrganizationAuditLogsOK) SetPagination

SetPagination sets the value of Pagination.

func (*ListOrganizationAuditLogsOK) UnmarshalJSON

func (s *ListOrganizationAuditLogsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOrganizationAuditLogsOK) Validate

func (s *ListOrganizationAuditLogsOK) Validate() error

type ListOrganizationAuditLogsOKPagination

type ListOrganizationAuditLogsOKPagination struct {
	// The current page number.
	Page OptInt `json:"page"`
	// The number of items per page.
	PageSize OptInt `json:"page_size"`
	// The total number of pages.
	TotalPages OptInt `json:"total_pages"`
	// The total number of items.
	TotalRows OptInt `json:"total_rows"`
}

func (*ListOrganizationAuditLogsOKPagination) Decode

Decode decodes ListOrganizationAuditLogsOKPagination from json.

func (*ListOrganizationAuditLogsOKPagination) Encode

Encode implements json.Marshaler.

func (*ListOrganizationAuditLogsOKPagination) GetPage

GetPage returns the value of Page.

func (*ListOrganizationAuditLogsOKPagination) GetPageSize

GetPageSize returns the value of PageSize.

func (*ListOrganizationAuditLogsOKPagination) GetTotalPages

func (s *ListOrganizationAuditLogsOKPagination) GetTotalPages() OptInt

GetTotalPages returns the value of TotalPages.

func (*ListOrganizationAuditLogsOKPagination) GetTotalRows

GetTotalRows returns the value of TotalRows.

func (*ListOrganizationAuditLogsOKPagination) MarshalJSON

func (s *ListOrganizationAuditLogsOKPagination) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationAuditLogsOKPagination) SetPage

SetPage sets the value of Page.

func (*ListOrganizationAuditLogsOKPagination) SetPageSize

func (s *ListOrganizationAuditLogsOKPagination) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*ListOrganizationAuditLogsOKPagination) SetTotalPages

func (s *ListOrganizationAuditLogsOKPagination) SetTotalPages(val OptInt)

SetTotalPages sets the value of TotalPages.

func (*ListOrganizationAuditLogsOKPagination) SetTotalRows

func (s *ListOrganizationAuditLogsOKPagination) SetTotalRows(val OptInt)

SetTotalRows sets the value of TotalRows.

func (*ListOrganizationAuditLogsOKPagination) UnmarshalJSON

func (s *ListOrganizationAuditLogsOKPagination) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListOrganizationAuditLogsParams

type ListOrganizationAuditLogsParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The limit of items to return per page. Defaults to 100.
	PageSize OptInt
	// The page number to return. Defaults to 1.
	Page OptInt
}

ListOrganizationAuditLogsParams is parameters of listOrganizationAuditLogs operation.

type ListOrganizationInvitesOK

type ListOrganizationInvitesOK struct {
	Invites []Invite `json:"invites"`
}

func (*ListOrganizationInvitesOK) Decode

func (s *ListOrganizationInvitesOK) Decode(d *jx.Decoder) error

Decode decodes ListOrganizationInvitesOK from json.

func (*ListOrganizationInvitesOK) Encode

func (s *ListOrganizationInvitesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrganizationInvitesOK) GetInvites

func (s *ListOrganizationInvitesOK) GetInvites() []Invite

GetInvites returns the value of Invites.

func (*ListOrganizationInvitesOK) MarshalJSON

func (s *ListOrganizationInvitesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationInvitesOK) SetInvites

func (s *ListOrganizationInvitesOK) SetInvites(val []Invite)

SetInvites sets the value of Invites.

func (*ListOrganizationInvitesOK) UnmarshalJSON

func (s *ListOrganizationInvitesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOrganizationInvitesOK) Validate

func (s *ListOrganizationInvitesOK) Validate() error

type ListOrganizationInvitesParams

type ListOrganizationInvitesParams struct {
	// The name of the organization or user.
	OrganizationName string
}

ListOrganizationInvitesParams is parameters of listOrganizationInvites operation.

type ListOrganizationInvoicesOK

type ListOrganizationInvoicesOK struct {
	// The list of invoices for the organization.
	Invoices []ListOrganizationInvoicesOKInvoicesItem `json:"invoices"`
}

func (*ListOrganizationInvoicesOK) Decode

Decode decodes ListOrganizationInvoicesOK from json.

func (*ListOrganizationInvoicesOK) Encode

func (s *ListOrganizationInvoicesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrganizationInvoicesOK) GetInvoices

GetInvoices returns the value of Invoices.

func (*ListOrganizationInvoicesOK) MarshalJSON

func (s *ListOrganizationInvoicesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationInvoicesOK) SetInvoices

SetInvoices sets the value of Invoices.

func (*ListOrganizationInvoicesOK) UnmarshalJSON

func (s *ListOrganizationInvoicesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListOrganizationInvoicesOKInvoicesItem

type ListOrganizationInvoicesOKInvoicesItem struct {
	// The unique ID for the invoice.
	InvoiceNumber OptString `json:"invoice_number"`
	// The formatted price in USD for the invoice.
	AmountDue OptString `json:"amount_due"`
	// The due date for the invoice.
	DueDate OptString `json:"due_date"`
	// The date the invoice was paid.
	PaidAt OptString `json:"paid_at"`
	// The date the invoice payment last failed.
	PaymentFailedAt OptString `json:"payment_failed_at"`
	// The link to the invoice PDF you can download.
	InvoicePdf OptString `json:"invoice_pdf"`
}

func (*ListOrganizationInvoicesOKInvoicesItem) Decode

Decode decodes ListOrganizationInvoicesOKInvoicesItem from json.

func (*ListOrganizationInvoicesOKInvoicesItem) Encode

Encode implements json.Marshaler.

func (*ListOrganizationInvoicesOKInvoicesItem) GetAmountDue

GetAmountDue returns the value of AmountDue.

func (*ListOrganizationInvoicesOKInvoicesItem) GetDueDate

GetDueDate returns the value of DueDate.

func (*ListOrganizationInvoicesOKInvoicesItem) GetInvoiceNumber

func (s *ListOrganizationInvoicesOKInvoicesItem) GetInvoiceNumber() OptString

GetInvoiceNumber returns the value of InvoiceNumber.

func (*ListOrganizationInvoicesOKInvoicesItem) GetInvoicePdf

GetInvoicePdf returns the value of InvoicePdf.

func (*ListOrganizationInvoicesOKInvoicesItem) GetPaidAt

GetPaidAt returns the value of PaidAt.

func (*ListOrganizationInvoicesOKInvoicesItem) GetPaymentFailedAt

func (s *ListOrganizationInvoicesOKInvoicesItem) GetPaymentFailedAt() OptString

GetPaymentFailedAt returns the value of PaymentFailedAt.

func (*ListOrganizationInvoicesOKInvoicesItem) MarshalJSON

func (s *ListOrganizationInvoicesOKInvoicesItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationInvoicesOKInvoicesItem) SetAmountDue

SetAmountDue sets the value of AmountDue.

func (*ListOrganizationInvoicesOKInvoicesItem) SetDueDate

SetDueDate sets the value of DueDate.

func (*ListOrganizationInvoicesOKInvoicesItem) SetInvoiceNumber

func (s *ListOrganizationInvoicesOKInvoicesItem) SetInvoiceNumber(val OptString)

SetInvoiceNumber sets the value of InvoiceNumber.

func (*ListOrganizationInvoicesOKInvoicesItem) SetInvoicePdf

func (s *ListOrganizationInvoicesOKInvoicesItem) SetInvoicePdf(val OptString)

SetInvoicePdf sets the value of InvoicePdf.

func (*ListOrganizationInvoicesOKInvoicesItem) SetPaidAt

SetPaidAt sets the value of PaidAt.

func (*ListOrganizationInvoicesOKInvoicesItem) SetPaymentFailedAt

func (s *ListOrganizationInvoicesOKInvoicesItem) SetPaymentFailedAt(val OptString)

SetPaymentFailedAt sets the value of PaymentFailedAt.

func (*ListOrganizationInvoicesOKInvoicesItem) UnmarshalJSON

func (s *ListOrganizationInvoicesOKInvoicesItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListOrganizationInvoicesParams

type ListOrganizationInvoicesParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The type of invoice to retrieve.
	Type OptListOrganizationInvoicesType
}

ListOrganizationInvoicesParams is parameters of listOrganizationInvoices operation.

type ListOrganizationInvoicesType

type ListOrganizationInvoicesType string
const (
	ListOrganizationInvoicesTypeAll      ListOrganizationInvoicesType = "all"
	ListOrganizationInvoicesTypeUpcoming ListOrganizationInvoicesType = "upcoming"
	ListOrganizationInvoicesTypeIssued   ListOrganizationInvoicesType = "issued"
)

func (ListOrganizationInvoicesType) AllValues

AllValues returns all ListOrganizationInvoicesType values.

func (ListOrganizationInvoicesType) MarshalText

func (s ListOrganizationInvoicesType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListOrganizationInvoicesType) UnmarshalText

func (s *ListOrganizationInvoicesType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListOrganizationInvoicesType) Validate

func (s ListOrganizationInvoicesType) Validate() error

type ListOrganizationMembersOK

type ListOrganizationMembersOK struct {
	Members []Member `json:"members"`
}

func (*ListOrganizationMembersOK) Decode

func (s *ListOrganizationMembersOK) Decode(d *jx.Decoder) error

Decode decodes ListOrganizationMembersOK from json.

func (*ListOrganizationMembersOK) Encode

func (s *ListOrganizationMembersOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrganizationMembersOK) GetMembers

func (s *ListOrganizationMembersOK) GetMembers() []Member

GetMembers returns the value of Members.

func (*ListOrganizationMembersOK) MarshalJSON

func (s *ListOrganizationMembersOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationMembersOK) SetMembers

func (s *ListOrganizationMembersOK) SetMembers(val []Member)

SetMembers sets the value of Members.

func (*ListOrganizationMembersOK) UnmarshalJSON

func (s *ListOrganizationMembersOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOrganizationMembersOK) Validate

func (s *ListOrganizationMembersOK) Validate() error

type ListOrganizationMembersParams

type ListOrganizationMembersParams struct {
	// The name of the organization or user.
	OrganizationName string
}

ListOrganizationMembersParams is parameters of listOrganizationMembers operation.

type ListOrganizationPlansOK

type ListOrganizationPlansOK struct {
	// The name of the plan.
	Name OptString `json:"name"`
	// The monthly price of the plan.
	Price  OptString     `json:"price"`
	Quotas OptPlanQuotas `json:"quotas"`
}

func (*ListOrganizationPlansOK) Decode

func (s *ListOrganizationPlansOK) Decode(d *jx.Decoder) error

Decode decodes ListOrganizationPlansOK from json.

func (*ListOrganizationPlansOK) Encode

func (s *ListOrganizationPlansOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrganizationPlansOK) GetName

func (s *ListOrganizationPlansOK) GetName() OptString

GetName returns the value of Name.

func (*ListOrganizationPlansOK) GetPrice

func (s *ListOrganizationPlansOK) GetPrice() OptString

GetPrice returns the value of Price.

func (*ListOrganizationPlansOK) GetQuotas

func (s *ListOrganizationPlansOK) GetQuotas() OptPlanQuotas

GetQuotas returns the value of Quotas.

func (*ListOrganizationPlansOK) MarshalJSON

func (s *ListOrganizationPlansOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrganizationPlansOK) SetName

func (s *ListOrganizationPlansOK) SetName(val OptString)

SetName sets the value of Name.

func (*ListOrganizationPlansOK) SetPrice

func (s *ListOrganizationPlansOK) SetPrice(val OptString)

SetPrice sets the value of Price.

func (*ListOrganizationPlansOK) SetQuotas

func (s *ListOrganizationPlansOK) SetQuotas(val OptPlanQuotas)

SetQuotas sets the value of Quotas.

func (*ListOrganizationPlansOK) UnmarshalJSON

func (s *ListOrganizationPlansOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListOrganizationPlansParams

type ListOrganizationPlansParams struct {
	// The name of the organization or user.
	OrganizationName string
}

ListOrganizationPlansParams is parameters of listOrganizationPlans operation.

type Member

type Member struct {
	// The username for the member.
	Username OptString `json:"username"`
	// The role assigned to the member. Will be `owner`, `admin` or `member`.
	Role OptMemberRole `json:"role"`
	// The email for the member.
	Email OptString `json:"email"`
}

Ref: #/components/schemas/Member

func (*Member) Decode

func (s *Member) Decode(d *jx.Decoder) error

Decode decodes Member from json.

func (*Member) Encode

func (s *Member) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Member) GetEmail

func (s *Member) GetEmail() OptString

GetEmail returns the value of Email.

func (*Member) GetRole

func (s *Member) GetRole() OptMemberRole

GetRole returns the value of Role.

func (*Member) GetUsername

func (s *Member) GetUsername() OptString

GetUsername returns the value of Username.

func (*Member) MarshalJSON

func (s *Member) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Member) SetEmail

func (s *Member) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*Member) SetRole

func (s *Member) SetRole(val OptMemberRole)

SetRole sets the value of Role.

func (*Member) SetUsername

func (s *Member) SetUsername(val OptString)

SetUsername sets the value of Username.

func (*Member) UnmarshalJSON

func (s *Member) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Member) Validate

func (s *Member) Validate() error

type MemberRole

type MemberRole string

The role assigned to the member. Will be `owner`, `admin` or `member`.

const (
	MemberRoleOwner  MemberRole = "owner"
	MemberRoleAdmin  MemberRole = "admin"
	MemberRoleMember MemberRole = "member"
)

func (MemberRole) AllValues

func (MemberRole) AllValues() []MemberRole

AllValues returns all MemberRole values.

func (*MemberRole) Decode

func (s *MemberRole) Decode(d *jx.Decoder) error

Decode decodes MemberRole from json.

func (MemberRole) Encode

func (s MemberRole) Encode(e *jx.Encoder)

Encode encodes MemberRole as json.

func (MemberRole) MarshalJSON

func (s MemberRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (MemberRole) MarshalText

func (s MemberRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*MemberRole) UnmarshalJSON

func (s *MemberRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MemberRole) UnmarshalText

func (s *MemberRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (MemberRole) Validate

func (s MemberRole) Validate() error

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type Name

type Name string

func (*Name) Decode

func (s *Name) Decode(d *jx.Decoder) error

Decode decodes Name from json.

func (Name) Encode

func (s Name) Encode(e *jx.Encoder)

Encode encodes Name as json.

func (Name) MarshalJSON

func (s Name) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Name) UnmarshalJSON

func (s *Name) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NewGroup

type NewGroup struct {
	// The name of the new group.
	Name string `json:"name"`
	// The location key for the new group.
	Location   string        `json:"location"`
	Extensions OptExtensions `json:"extensions"`
}

Ref: #/components/schemas/NewGroup

func (*NewGroup) Decode

func (s *NewGroup) Decode(d *jx.Decoder) error

Decode decodes NewGroup from json.

func (*NewGroup) Encode

func (s *NewGroup) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NewGroup) GetExtensions

func (s *NewGroup) GetExtensions() OptExtensions

GetExtensions returns the value of Extensions.

func (*NewGroup) GetLocation

func (s *NewGroup) GetLocation() string

GetLocation returns the value of Location.

func (*NewGroup) GetName

func (s *NewGroup) GetName() string

GetName returns the value of Name.

func (*NewGroup) MarshalJSON

func (s *NewGroup) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NewGroup) SetExtensions

func (s *NewGroup) SetExtensions(val OptExtensions)

SetExtensions sets the value of Extensions.

func (*NewGroup) SetLocation

func (s *NewGroup) SetLocation(val string)

SetLocation sets the value of Location.

func (*NewGroup) SetName

func (s *NewGroup) SetName(val string)

SetName sets the value of Name.

func (*NewGroup) UnmarshalJSON

func (s *NewGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NewGroup) Validate

func (s *NewGroup) Validate() error

type OptAddOrganizationMemberReqRole

type OptAddOrganizationMemberReqRole struct {
	Value AddOrganizationMemberReqRole
	Set   bool
}

OptAddOrganizationMemberReqRole is optional AddOrganizationMemberReqRole.

func NewOptAddOrganizationMemberReqRole

func NewOptAddOrganizationMemberReqRole(v AddOrganizationMemberReqRole) OptAddOrganizationMemberReqRole

NewOptAddOrganizationMemberReqRole returns new OptAddOrganizationMemberReqRole with value set to v.

func (*OptAddOrganizationMemberReqRole) Decode

Decode decodes AddOrganizationMemberReqRole from json.

func (OptAddOrganizationMemberReqRole) Encode

Encode encodes AddOrganizationMemberReqRole as json.

func (OptAddOrganizationMemberReqRole) Get

Get returns value and boolean that denotes whether value was set.

func (OptAddOrganizationMemberReqRole) IsSet

IsSet returns true if OptAddOrganizationMemberReqRole was set.

func (OptAddOrganizationMemberReqRole) MarshalJSON

func (s OptAddOrganizationMemberReqRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAddOrganizationMemberReqRole) Or

Or returns value if set, or given parameter if does not.

func (*OptAddOrganizationMemberReqRole) Reset

Reset unsets value.

func (*OptAddOrganizationMemberReqRole) SetTo

SetTo sets value to v.

func (*OptAddOrganizationMemberReqRole) UnmarshalJSON

func (s *OptAddOrganizationMemberReqRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAuditLogCode

type OptAuditLogCode struct {
	Value AuditLogCode
	Set   bool
}

OptAuditLogCode is optional AuditLogCode.

func NewOptAuditLogCode

func NewOptAuditLogCode(v AuditLogCode) OptAuditLogCode

NewOptAuditLogCode returns new OptAuditLogCode with value set to v.

func (*OptAuditLogCode) Decode

func (o *OptAuditLogCode) Decode(d *jx.Decoder) error

Decode decodes AuditLogCode from json.

func (OptAuditLogCode) Encode

func (o OptAuditLogCode) Encode(e *jx.Encoder)

Encode encodes AuditLogCode as json.

func (OptAuditLogCode) Get

func (o OptAuditLogCode) Get() (v AuditLogCode, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAuditLogCode) IsSet

func (o OptAuditLogCode) IsSet() bool

IsSet returns true if OptAuditLogCode was set.

func (OptAuditLogCode) MarshalJSON

func (s OptAuditLogCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAuditLogCode) Or

Or returns value if set, or given parameter if does not.

func (*OptAuditLogCode) Reset

func (o *OptAuditLogCode) Reset()

Reset unsets value.

func (*OptAuditLogCode) SetTo

func (o *OptAuditLogCode) SetTo(v AuditLogCode)

SetTo sets value to v.

func (*OptAuditLogCode) UnmarshalJSON

func (s *OptAuditLogCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBaseGroup

type OptBaseGroup struct {
	Value BaseGroup
	Set   bool
}

OptBaseGroup is optional BaseGroup.

func NewOptBaseGroup

func NewOptBaseGroup(v BaseGroup) OptBaseGroup

NewOptBaseGroup returns new OptBaseGroup with value set to v.

func (*OptBaseGroup) Decode

func (o *OptBaseGroup) Decode(d *jx.Decoder) error

Decode decodes BaseGroup from json.

func (OptBaseGroup) Encode

func (o OptBaseGroup) Encode(e *jx.Encoder)

Encode encodes BaseGroup as json.

func (OptBaseGroup) Get

func (o OptBaseGroup) Get() (v BaseGroup, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBaseGroup) IsSet

func (o OptBaseGroup) IsSet() bool

IsSet returns true if OptBaseGroup was set.

func (OptBaseGroup) MarshalJSON

func (s OptBaseGroup) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBaseGroup) Or

Or returns value if set, or given parameter if does not.

func (*OptBaseGroup) Reset

func (o *OptBaseGroup) Reset()

Reset unsets value.

func (*OptBaseGroup) SetTo

func (o *OptBaseGroup) SetTo(v BaseGroup)

SetTo sets value to v.

func (*OptBaseGroup) UnmarshalJSON

func (s *OptBaseGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateDatabaseInputSeed

type OptCreateDatabaseInputSeed struct {
	Value CreateDatabaseInputSeed
	Set   bool
}

OptCreateDatabaseInputSeed is optional CreateDatabaseInputSeed.

func NewOptCreateDatabaseInputSeed

func NewOptCreateDatabaseInputSeed(v CreateDatabaseInputSeed) OptCreateDatabaseInputSeed

NewOptCreateDatabaseInputSeed returns new OptCreateDatabaseInputSeed with value set to v.

func (*OptCreateDatabaseInputSeed) Decode

Decode decodes CreateDatabaseInputSeed from json.

func (OptCreateDatabaseInputSeed) Encode

func (o OptCreateDatabaseInputSeed) Encode(e *jx.Encoder)

Encode encodes CreateDatabaseInputSeed as json.

func (OptCreateDatabaseInputSeed) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateDatabaseInputSeed) IsSet

func (o OptCreateDatabaseInputSeed) IsSet() bool

IsSet returns true if OptCreateDatabaseInputSeed was set.

func (OptCreateDatabaseInputSeed) MarshalJSON

func (s OptCreateDatabaseInputSeed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateDatabaseInputSeed) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateDatabaseInputSeed) Reset

func (o *OptCreateDatabaseInputSeed) Reset()

Reset unsets value.

func (*OptCreateDatabaseInputSeed) SetTo

SetTo sets value to v.

func (*OptCreateDatabaseInputSeed) UnmarshalJSON

func (s *OptCreateDatabaseInputSeed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateDatabaseInputSeedType

type OptCreateDatabaseInputSeedType struct {
	Value CreateDatabaseInputSeedType
	Set   bool
}

OptCreateDatabaseInputSeedType is optional CreateDatabaseInputSeedType.

func NewOptCreateDatabaseInputSeedType

func NewOptCreateDatabaseInputSeedType(v CreateDatabaseInputSeedType) OptCreateDatabaseInputSeedType

NewOptCreateDatabaseInputSeedType returns new OptCreateDatabaseInputSeedType with value set to v.

func (*OptCreateDatabaseInputSeedType) Decode

Decode decodes CreateDatabaseInputSeedType from json.

func (OptCreateDatabaseInputSeedType) Encode

Encode encodes CreateDatabaseInputSeedType as json.

func (OptCreateDatabaseInputSeedType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateDatabaseInputSeedType) IsSet

IsSet returns true if OptCreateDatabaseInputSeedType was set.

func (OptCreateDatabaseInputSeedType) MarshalJSON

func (s OptCreateDatabaseInputSeedType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateDatabaseInputSeedType) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateDatabaseInputSeedType) Reset

func (o *OptCreateDatabaseInputSeedType) Reset()

Reset unsets value.

func (*OptCreateDatabaseInputSeedType) SetTo

SetTo sets value to v.

func (*OptCreateDatabaseInputSeedType) UnmarshalJSON

func (s *OptCreateDatabaseInputSeedType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateDatabaseOutput

type OptCreateDatabaseOutput struct {
	Value CreateDatabaseOutput
	Set   bool
}

OptCreateDatabaseOutput is optional CreateDatabaseOutput.

func NewOptCreateDatabaseOutput

func NewOptCreateDatabaseOutput(v CreateDatabaseOutput) OptCreateDatabaseOutput

NewOptCreateDatabaseOutput returns new OptCreateDatabaseOutput with value set to v.

func (*OptCreateDatabaseOutput) Decode

func (o *OptCreateDatabaseOutput) Decode(d *jx.Decoder) error

Decode decodes CreateDatabaseOutput from json.

func (OptCreateDatabaseOutput) Encode

func (o OptCreateDatabaseOutput) Encode(e *jx.Encoder)

Encode encodes CreateDatabaseOutput as json.

func (OptCreateDatabaseOutput) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateDatabaseOutput) IsSet

func (o OptCreateDatabaseOutput) IsSet() bool

IsSet returns true if OptCreateDatabaseOutput was set.

func (OptCreateDatabaseOutput) MarshalJSON

func (s OptCreateDatabaseOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateDatabaseOutput) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateDatabaseOutput) Reset

func (o *OptCreateDatabaseOutput) Reset()

Reset unsets value.

func (*OptCreateDatabaseOutput) SetTo

SetTo sets value to v.

func (*OptCreateDatabaseOutput) UnmarshalJSON

func (s *OptCreateDatabaseOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateDatabaseTokenAuthorization

type OptCreateDatabaseTokenAuthorization struct {
	Value CreateDatabaseTokenAuthorization
	Set   bool
}

OptCreateDatabaseTokenAuthorization is optional CreateDatabaseTokenAuthorization.

func NewOptCreateDatabaseTokenAuthorization

func NewOptCreateDatabaseTokenAuthorization(v CreateDatabaseTokenAuthorization) OptCreateDatabaseTokenAuthorization

NewOptCreateDatabaseTokenAuthorization returns new OptCreateDatabaseTokenAuthorization with value set to v.

func (OptCreateDatabaseTokenAuthorization) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateDatabaseTokenAuthorization) IsSet

IsSet returns true if OptCreateDatabaseTokenAuthorization was set.

func (OptCreateDatabaseTokenAuthorization) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateDatabaseTokenAuthorization) Reset

Reset unsets value.

func (*OptCreateDatabaseTokenAuthorization) SetTo

SetTo sets value to v.

type OptCreateGroupTokenAuthorization

type OptCreateGroupTokenAuthorization struct {
	Value CreateGroupTokenAuthorization
	Set   bool
}

OptCreateGroupTokenAuthorization is optional CreateGroupTokenAuthorization.

func NewOptCreateGroupTokenAuthorization

func NewOptCreateGroupTokenAuthorization(v CreateGroupTokenAuthorization) OptCreateGroupTokenAuthorization

NewOptCreateGroupTokenAuthorization returns new OptCreateGroupTokenAuthorization with value set to v.

func (OptCreateGroupTokenAuthorization) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateGroupTokenAuthorization) IsSet

IsSet returns true if OptCreateGroupTokenAuthorization was set.

func (OptCreateGroupTokenAuthorization) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateGroupTokenAuthorization) Reset

Reset unsets value.

func (*OptCreateGroupTokenAuthorization) SetTo

SetTo sets value to v.

type OptCreateTokenInput

type OptCreateTokenInput struct {
	Value CreateTokenInput
	Set   bool
}

OptCreateTokenInput is optional CreateTokenInput.

func NewOptCreateTokenInput

func NewOptCreateTokenInput(v CreateTokenInput) OptCreateTokenInput

NewOptCreateTokenInput returns new OptCreateTokenInput with value set to v.

func (*OptCreateTokenInput) Decode

func (o *OptCreateTokenInput) Decode(d *jx.Decoder) error

Decode decodes CreateTokenInput from json.

func (OptCreateTokenInput) Encode

func (o OptCreateTokenInput) Encode(e *jx.Encoder)

Encode encodes CreateTokenInput as json.

func (OptCreateTokenInput) Get

func (o OptCreateTokenInput) Get() (v CreateTokenInput, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCreateTokenInput) IsSet

func (o OptCreateTokenInput) IsSet() bool

IsSet returns true if OptCreateTokenInput was set.

func (OptCreateTokenInput) MarshalJSON

func (s OptCreateTokenInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTokenInput) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTokenInput) Reset

func (o *OptCreateTokenInput) Reset()

Reset unsets value.

func (*OptCreateTokenInput) SetTo

SetTo sets value to v.

func (*OptCreateTokenInput) UnmarshalJSON

func (s *OptCreateTokenInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTokenInputPermissions

type OptCreateTokenInputPermissions struct {
	Value CreateTokenInputPermissions
	Set   bool
}

OptCreateTokenInputPermissions is optional CreateTokenInputPermissions.

func NewOptCreateTokenInputPermissions

func NewOptCreateTokenInputPermissions(v CreateTokenInputPermissions) OptCreateTokenInputPermissions

NewOptCreateTokenInputPermissions returns new OptCreateTokenInputPermissions with value set to v.

func (*OptCreateTokenInputPermissions) Decode

Decode decodes CreateTokenInputPermissions from json.

func (OptCreateTokenInputPermissions) Encode

Encode encodes CreateTokenInputPermissions as json.

func (OptCreateTokenInputPermissions) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTokenInputPermissions) IsSet

IsSet returns true if OptCreateTokenInputPermissions was set.

func (OptCreateTokenInputPermissions) MarshalJSON

func (s OptCreateTokenInputPermissions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTokenInputPermissions) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTokenInputPermissions) Reset

func (o *OptCreateTokenInputPermissions) Reset()

Reset unsets value.

func (*OptCreateTokenInputPermissions) SetTo

SetTo sets value to v.

func (*OptCreateTokenInputPermissions) UnmarshalJSON

func (s *OptCreateTokenInputPermissions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTokenInputPermissionsReadAttach

type OptCreateTokenInputPermissionsReadAttach struct {
	Value CreateTokenInputPermissionsReadAttach
	Set   bool
}

OptCreateTokenInputPermissionsReadAttach is optional CreateTokenInputPermissionsReadAttach.

func NewOptCreateTokenInputPermissionsReadAttach

func NewOptCreateTokenInputPermissionsReadAttach(v CreateTokenInputPermissionsReadAttach) OptCreateTokenInputPermissionsReadAttach

NewOptCreateTokenInputPermissionsReadAttach returns new OptCreateTokenInputPermissionsReadAttach with value set to v.

func (*OptCreateTokenInputPermissionsReadAttach) Decode

Decode decodes CreateTokenInputPermissionsReadAttach from json.

func (OptCreateTokenInputPermissionsReadAttach) Encode

Encode encodes CreateTokenInputPermissionsReadAttach as json.

func (OptCreateTokenInputPermissionsReadAttach) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTokenInputPermissionsReadAttach) IsSet

IsSet returns true if OptCreateTokenInputPermissionsReadAttach was set.

func (OptCreateTokenInputPermissionsReadAttach) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTokenInputPermissionsReadAttach) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTokenInputPermissionsReadAttach) Reset

Reset unsets value.

func (*OptCreateTokenInputPermissionsReadAttach) SetTo

SetTo sets value to v.

func (*OptCreateTokenInputPermissionsReadAttach) UnmarshalJSON

func (s *OptCreateTokenInputPermissionsReadAttach) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDatabase

type OptDatabase struct {
	Value Database
	Set   bool
}

OptDatabase is optional Database.

func NewOptDatabase

func NewOptDatabase(v Database) OptDatabase

NewOptDatabase returns new OptDatabase with value set to v.

func (*OptDatabase) Decode

func (o *OptDatabase) Decode(d *jx.Decoder) error

Decode decodes Database from json.

func (OptDatabase) Encode

func (o OptDatabase) Encode(e *jx.Encoder)

Encode encodes Database as json.

func (OptDatabase) Get

func (o OptDatabase) Get() (v Database, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDatabase) IsSet

func (o OptDatabase) IsSet() bool

IsSet returns true if OptDatabase was set.

func (OptDatabase) MarshalJSON

func (s OptDatabase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDatabase) Or

func (o OptDatabase) Or(d Database) Database

Or returns value if set, or given parameter if does not.

func (*OptDatabase) Reset

func (o *OptDatabase) Reset()

Reset unsets value.

func (*OptDatabase) SetTo

func (o *OptDatabase) SetTo(v Database)

SetTo sets value to v.

func (*OptDatabase) UnmarshalJSON

func (s *OptDatabase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDatabaseUsageObject

type OptDatabaseUsageObject struct {
	Value DatabaseUsageObject
	Set   bool
}

OptDatabaseUsageObject is optional DatabaseUsageObject.

func NewOptDatabaseUsageObject

func NewOptDatabaseUsageObject(v DatabaseUsageObject) OptDatabaseUsageObject

NewOptDatabaseUsageObject returns new OptDatabaseUsageObject with value set to v.

func (*OptDatabaseUsageObject) Decode

func (o *OptDatabaseUsageObject) Decode(d *jx.Decoder) error

Decode decodes DatabaseUsageObject from json.

func (OptDatabaseUsageObject) Encode

func (o OptDatabaseUsageObject) Encode(e *jx.Encoder)

Encode encodes DatabaseUsageObject as json.

func (OptDatabaseUsageObject) Get

Get returns value and boolean that denotes whether value was set.

func (OptDatabaseUsageObject) IsSet

func (o OptDatabaseUsageObject) IsSet() bool

IsSet returns true if OptDatabaseUsageObject was set.

func (OptDatabaseUsageObject) MarshalJSON

func (s OptDatabaseUsageObject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDatabaseUsageObject) Or

Or returns value if set, or given parameter if does not.

func (*OptDatabaseUsageObject) Reset

func (o *OptDatabaseUsageObject) Reset()

Reset unsets value.

func (*OptDatabaseUsageObject) SetTo

SetTo sets value to v.

func (*OptDatabaseUsageObject) UnmarshalJSON

func (s *OptDatabaseUsageObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDatabaseUsageOutput

type OptDatabaseUsageOutput struct {
	Value DatabaseUsageOutput
	Set   bool
}

OptDatabaseUsageOutput is optional DatabaseUsageOutput.

func NewOptDatabaseUsageOutput

func NewOptDatabaseUsageOutput(v DatabaseUsageOutput) OptDatabaseUsageOutput

NewOptDatabaseUsageOutput returns new OptDatabaseUsageOutput with value set to v.

func (*OptDatabaseUsageOutput) Decode

func (o *OptDatabaseUsageOutput) Decode(d *jx.Decoder) error

Decode decodes DatabaseUsageOutput from json.

func (OptDatabaseUsageOutput) Encode

func (o OptDatabaseUsageOutput) Encode(e *jx.Encoder)

Encode encodes DatabaseUsageOutput as json.

func (OptDatabaseUsageOutput) Get

Get returns value and boolean that denotes whether value was set.

func (OptDatabaseUsageOutput) IsSet

func (o OptDatabaseUsageOutput) IsSet() bool

IsSet returns true if OptDatabaseUsageOutput was set.

func (OptDatabaseUsageOutput) MarshalJSON

func (s OptDatabaseUsageOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDatabaseUsageOutput) Or

Or returns value if set, or given parameter if does not.

func (*OptDatabaseUsageOutput) Reset

func (o *OptDatabaseUsageOutput) Reset()

Reset unsets value.

func (*OptDatabaseUsageOutput) SetTo

SetTo sets value to v.

func (*OptDatabaseUsageOutput) UnmarshalJSON

func (s *OptDatabaseUsageOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

type OptDbId

type OptDbId struct {
	Value DbId
	Set   bool
}

OptDbId is optional DbId.

func NewOptDbId

func NewOptDbId(v DbId) OptDbId

NewOptDbId returns new OptDbId with value set to v.

func (*OptDbId) Decode

func (o *OptDbId) Decode(d *jx.Decoder) error

Decode decodes DbId from json.

func (OptDbId) Encode

func (o OptDbId) Encode(e *jx.Encoder)

Encode encodes DbId as json.

func (OptDbId) Get

func (o OptDbId) Get() (v DbId, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDbId) IsSet

func (o OptDbId) IsSet() bool

IsSet returns true if OptDbId was set.

func (OptDbId) MarshalJSON

func (s OptDbId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDbId) Or

func (o OptDbId) Or(d DbId) DbId

Or returns value if set, or given parameter if does not.

func (*OptDbId) Reset

func (o *OptDbId) Reset()

Reset unsets value.

func (*OptDbId) SetTo

func (o *OptDbId) SetTo(v DbId)

SetTo sets value to v.

func (*OptDbId) UnmarshalJSON

func (s *OptDbId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptExtensions

type OptExtensions struct {
	Value Extensions
	Set   bool
}

OptExtensions is optional Extensions.

func NewOptExtensions

func NewOptExtensions(v Extensions) OptExtensions

NewOptExtensions returns new OptExtensions with value set to v.

func (*OptExtensions) Decode

func (o *OptExtensions) Decode(d *jx.Decoder) error

Decode decodes Extensions from json.

func (OptExtensions) Encode

func (o OptExtensions) Encode(e *jx.Encoder)

Encode encodes Extensions as json.

func (OptExtensions) Get

func (o OptExtensions) Get() (v Extensions, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptExtensions) IsSet

func (o OptExtensions) IsSet() bool

IsSet returns true if OptExtensions was set.

func (OptExtensions) MarshalJSON

func (s OptExtensions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptExtensions) Or

Or returns value if set, or given parameter if does not.

func (*OptExtensions) Reset

func (o *OptExtensions) Reset()

Reset unsets value.

func (*OptExtensions) SetTo

func (o *OptExtensions) SetTo(v Extensions)

SetTo sets value to v.

func (*OptExtensions) UnmarshalJSON

func (s *OptExtensions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetOrganizationUsageOKOrganization

type OptGetOrganizationUsageOKOrganization struct {
	Value GetOrganizationUsageOKOrganization
	Set   bool
}

OptGetOrganizationUsageOKOrganization is optional GetOrganizationUsageOKOrganization.

func NewOptGetOrganizationUsageOKOrganization

func NewOptGetOrganizationUsageOKOrganization(v GetOrganizationUsageOKOrganization) OptGetOrganizationUsageOKOrganization

NewOptGetOrganizationUsageOKOrganization returns new OptGetOrganizationUsageOKOrganization with value set to v.

func (*OptGetOrganizationUsageOKOrganization) Decode

Decode decodes GetOrganizationUsageOKOrganization from json.

func (OptGetOrganizationUsageOKOrganization) Encode

Encode encodes GetOrganizationUsageOKOrganization as json.

func (OptGetOrganizationUsageOKOrganization) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetOrganizationUsageOKOrganization) IsSet

IsSet returns true if OptGetOrganizationUsageOKOrganization was set.

func (OptGetOrganizationUsageOKOrganization) MarshalJSON

func (s OptGetOrganizationUsageOKOrganization) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGetOrganizationUsageOKOrganization) Or

Or returns value if set, or given parameter if does not.

func (*OptGetOrganizationUsageOKOrganization) Reset

Reset unsets value.

func (*OptGetOrganizationUsageOKOrganization) SetTo

SetTo sets value to v.

func (*OptGetOrganizationUsageOKOrganization) UnmarshalJSON

func (s *OptGetOrganizationUsageOKOrganization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetOrganizationUsageOKOrganizationUsage

type OptGetOrganizationUsageOKOrganizationUsage struct {
	Value GetOrganizationUsageOKOrganizationUsage
	Set   bool
}

OptGetOrganizationUsageOKOrganizationUsage is optional GetOrganizationUsageOKOrganizationUsage.

func NewOptGetOrganizationUsageOKOrganizationUsage

func NewOptGetOrganizationUsageOKOrganizationUsage(v GetOrganizationUsageOKOrganizationUsage) OptGetOrganizationUsageOKOrganizationUsage

NewOptGetOrganizationUsageOKOrganizationUsage returns new OptGetOrganizationUsageOKOrganizationUsage with value set to v.

func (*OptGetOrganizationUsageOKOrganizationUsage) Decode

Decode decodes GetOrganizationUsageOKOrganizationUsage from json.

func (OptGetOrganizationUsageOKOrganizationUsage) Encode

Encode encodes GetOrganizationUsageOKOrganizationUsage as json.

func (OptGetOrganizationUsageOKOrganizationUsage) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetOrganizationUsageOKOrganizationUsage) IsSet

IsSet returns true if OptGetOrganizationUsageOKOrganizationUsage was set.

func (OptGetOrganizationUsageOKOrganizationUsage) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptGetOrganizationUsageOKOrganizationUsage) Or

Or returns value if set, or given parameter if does not.

func (*OptGetOrganizationUsageOKOrganizationUsage) Reset

Reset unsets value.

func (*OptGetOrganizationUsageOKOrganizationUsage) SetTo

SetTo sets value to v.

func (*OptGetOrganizationUsageOKOrganizationUsage) UnmarshalJSON

func (s *OptGetOrganizationUsageOKOrganizationUsage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptHostname

type OptHostname struct {
	Value Hostname
	Set   bool
}

OptHostname is optional Hostname.

func NewOptHostname

func NewOptHostname(v Hostname) OptHostname

NewOptHostname returns new OptHostname with value set to v.

func (*OptHostname) Decode

func (o *OptHostname) Decode(d *jx.Decoder) error

Decode decodes Hostname from json.

func (OptHostname) Encode

func (o OptHostname) Encode(e *jx.Encoder)

Encode encodes Hostname as json.

func (OptHostname) Get

func (o OptHostname) Get() (v Hostname, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptHostname) IsSet

func (o OptHostname) IsSet() bool

IsSet returns true if OptHostname was set.

func (OptHostname) MarshalJSON

func (s OptHostname) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptHostname) Or

func (o OptHostname) Or(d Hostname) Hostname

Or returns value if set, or given parameter if does not.

func (*OptHostname) Reset

func (o *OptHostname) Reset()

Reset unsets value.

func (*OptHostname) SetTo

func (o *OptHostname) SetTo(v Hostname)

SetTo sets value to v.

func (*OptHostname) UnmarshalJSON

func (s *OptHostname) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInstance

type OptInstance struct {
	Value Instance
	Set   bool
}

OptInstance is optional Instance.

func NewOptInstance

func NewOptInstance(v Instance) OptInstance

NewOptInstance returns new OptInstance with value set to v.

func (*OptInstance) Decode

func (o *OptInstance) Decode(d *jx.Decoder) error

Decode decodes Instance from json.

func (OptInstance) Encode

func (o OptInstance) Encode(e *jx.Encoder)

Encode encodes Instance as json.

func (OptInstance) Get

func (o OptInstance) Get() (v Instance, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInstance) IsSet

func (o OptInstance) IsSet() bool

IsSet returns true if OptInstance was set.

func (OptInstance) MarshalJSON

func (s OptInstance) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInstance) Or

func (o OptInstance) Or(d Instance) Instance

Or returns value if set, or given parameter if does not.

func (*OptInstance) Reset

func (o *OptInstance) Reset()

Reset unsets value.

func (*OptInstance) SetTo

func (o *OptInstance) SetTo(v Instance)

SetTo sets value to v.

func (*OptInstance) UnmarshalJSON

func (s *OptInstance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInstanceType

type OptInstanceType struct {
	Value InstanceType
	Set   bool
}

OptInstanceType is optional InstanceType.

func NewOptInstanceType

func NewOptInstanceType(v InstanceType) OptInstanceType

NewOptInstanceType returns new OptInstanceType with value set to v.

func (*OptInstanceType) Decode

func (o *OptInstanceType) Decode(d *jx.Decoder) error

Decode decodes InstanceType from json.

func (OptInstanceType) Encode

func (o OptInstanceType) Encode(e *jx.Encoder)

Encode encodes InstanceType as json.

func (OptInstanceType) Get

func (o OptInstanceType) Get() (v InstanceType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInstanceType) IsSet

func (o OptInstanceType) IsSet() bool

IsSet returns true if OptInstanceType was set.

func (OptInstanceType) MarshalJSON

func (s OptInstanceType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInstanceType) Or

Or returns value if set, or given parameter if does not.

func (*OptInstanceType) Reset

func (o *OptInstanceType) Reset()

Reset unsets value.

func (*OptInstanceType) SetTo

func (o *OptInstanceType) SetTo(v InstanceType)

SetTo sets value to v.

func (*OptInstanceType) UnmarshalJSON

func (s *OptInstanceType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInvite

type OptInvite struct {
	Value Invite
	Set   bool
}

OptInvite is optional Invite.

func NewOptInvite

func NewOptInvite(v Invite) OptInvite

NewOptInvite returns new OptInvite with value set to v.

func (*OptInvite) Decode

func (o *OptInvite) Decode(d *jx.Decoder) error

Decode decodes Invite from json.

func (OptInvite) Encode

func (o OptInvite) Encode(e *jx.Encoder)

Encode encodes Invite as json.

func (OptInvite) Get

func (o OptInvite) Get() (v Invite, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInvite) IsSet

func (o OptInvite) IsSet() bool

IsSet returns true if OptInvite was set.

func (OptInvite) MarshalJSON

func (s OptInvite) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInvite) Or

func (o OptInvite) Or(d Invite) Invite

Or returns value if set, or given parameter if does not.

func (*OptInvite) Reset

func (o *OptInvite) Reset()

Reset unsets value.

func (*OptInvite) SetTo

func (o *OptInvite) SetTo(v Invite)

SetTo sets value to v.

func (*OptInvite) UnmarshalJSON

func (s *OptInvite) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInviteOrganizationMemberReqRole

type OptInviteOrganizationMemberReqRole struct {
	Value InviteOrganizationMemberReqRole
	Set   bool
}

OptInviteOrganizationMemberReqRole is optional InviteOrganizationMemberReqRole.

func NewOptInviteOrganizationMemberReqRole

func NewOptInviteOrganizationMemberReqRole(v InviteOrganizationMemberReqRole) OptInviteOrganizationMemberReqRole

NewOptInviteOrganizationMemberReqRole returns new OptInviteOrganizationMemberReqRole with value set to v.

func (*OptInviteOrganizationMemberReqRole) Decode

Decode decodes InviteOrganizationMemberReqRole from json.

func (OptInviteOrganizationMemberReqRole) Encode

Encode encodes InviteOrganizationMemberReqRole as json.

func (OptInviteOrganizationMemberReqRole) Get

Get returns value and boolean that denotes whether value was set.

func (OptInviteOrganizationMemberReqRole) IsSet

IsSet returns true if OptInviteOrganizationMemberReqRole was set.

func (OptInviteOrganizationMemberReqRole) MarshalJSON

func (s OptInviteOrganizationMemberReqRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInviteOrganizationMemberReqRole) Or

Or returns value if set, or given parameter if does not.

func (*OptInviteOrganizationMemberReqRole) Reset

Reset unsets value.

func (*OptInviteOrganizationMemberReqRole) SetTo

SetTo sets value to v.

func (*OptInviteOrganizationMemberReqRole) UnmarshalJSON

func (s *OptInviteOrganizationMemberReqRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInviteRole

type OptInviteRole struct {
	Value InviteRole
	Set   bool
}

OptInviteRole is optional InviteRole.

func NewOptInviteRole

func NewOptInviteRole(v InviteRole) OptInviteRole

NewOptInviteRole returns new OptInviteRole with value set to v.

func (*OptInviteRole) Decode

func (o *OptInviteRole) Decode(d *jx.Decoder) error

Decode decodes InviteRole from json.

func (OptInviteRole) Encode

func (o OptInviteRole) Encode(e *jx.Encoder)

Encode encodes InviteRole as json.

func (OptInviteRole) Get

func (o OptInviteRole) Get() (v InviteRole, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInviteRole) IsSet

func (o OptInviteRole) IsSet() bool

IsSet returns true if OptInviteRole was set.

func (OptInviteRole) MarshalJSON

func (s OptInviteRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInviteRole) Or

Or returns value if set, or given parameter if does not.

func (*OptInviteRole) Reset

func (o *OptInviteRole) Reset()

Reset unsets value.

func (*OptInviteRole) SetTo

func (o *OptInviteRole) SetTo(v InviteRole)

SetTo sets value to v.

func (*OptInviteRole) UnmarshalJSON

func (s *OptInviteRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptListLocationsOKLocations

type OptListLocationsOKLocations struct {
	Value ListLocationsOKLocations
	Set   bool
}

OptListLocationsOKLocations is optional ListLocationsOKLocations.

func NewOptListLocationsOKLocations

func NewOptListLocationsOKLocations(v ListLocationsOKLocations) OptListLocationsOKLocations

NewOptListLocationsOKLocations returns new OptListLocationsOKLocations with value set to v.

func (*OptListLocationsOKLocations) Decode

Decode decodes ListLocationsOKLocations from json.

func (OptListLocationsOKLocations) Encode

func (o OptListLocationsOKLocations) Encode(e *jx.Encoder)

Encode encodes ListLocationsOKLocations as json.

func (OptListLocationsOKLocations) Get

Get returns value and boolean that denotes whether value was set.

func (OptListLocationsOKLocations) IsSet

IsSet returns true if OptListLocationsOKLocations was set.

func (OptListLocationsOKLocations) MarshalJSON

func (s OptListLocationsOKLocations) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptListLocationsOKLocations) Or

Or returns value if set, or given parameter if does not.

func (*OptListLocationsOKLocations) Reset

func (o *OptListLocationsOKLocations) Reset()

Reset unsets value.

func (*OptListLocationsOKLocations) SetTo

SetTo sets value to v.

func (*OptListLocationsOKLocations) UnmarshalJSON

func (s *OptListLocationsOKLocations) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptListOrganizationAuditLogsOKPagination

type OptListOrganizationAuditLogsOKPagination struct {
	Value ListOrganizationAuditLogsOKPagination
	Set   bool
}

OptListOrganizationAuditLogsOKPagination is optional ListOrganizationAuditLogsOKPagination.

func NewOptListOrganizationAuditLogsOKPagination

func NewOptListOrganizationAuditLogsOKPagination(v ListOrganizationAuditLogsOKPagination) OptListOrganizationAuditLogsOKPagination

NewOptListOrganizationAuditLogsOKPagination returns new OptListOrganizationAuditLogsOKPagination with value set to v.

func (*OptListOrganizationAuditLogsOKPagination) Decode

Decode decodes ListOrganizationAuditLogsOKPagination from json.

func (OptListOrganizationAuditLogsOKPagination) Encode

Encode encodes ListOrganizationAuditLogsOKPagination as json.

func (OptListOrganizationAuditLogsOKPagination) Get

Get returns value and boolean that denotes whether value was set.

func (OptListOrganizationAuditLogsOKPagination) IsSet

IsSet returns true if OptListOrganizationAuditLogsOKPagination was set.

func (OptListOrganizationAuditLogsOKPagination) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptListOrganizationAuditLogsOKPagination) Or

Or returns value if set, or given parameter if does not.

func (*OptListOrganizationAuditLogsOKPagination) Reset

Reset unsets value.

func (*OptListOrganizationAuditLogsOKPagination) SetTo

SetTo sets value to v.

func (*OptListOrganizationAuditLogsOKPagination) UnmarshalJSON

func (s *OptListOrganizationAuditLogsOKPagination) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptListOrganizationInvoicesType

type OptListOrganizationInvoicesType struct {
	Value ListOrganizationInvoicesType
	Set   bool
}

OptListOrganizationInvoicesType is optional ListOrganizationInvoicesType.

func NewOptListOrganizationInvoicesType

func NewOptListOrganizationInvoicesType(v ListOrganizationInvoicesType) OptListOrganizationInvoicesType

NewOptListOrganizationInvoicesType returns new OptListOrganizationInvoicesType with value set to v.

func (OptListOrganizationInvoicesType) Get

Get returns value and boolean that denotes whether value was set.

func (OptListOrganizationInvoicesType) IsSet

IsSet returns true if OptListOrganizationInvoicesType was set.

func (OptListOrganizationInvoicesType) Or

Or returns value if set, or given parameter if does not.

func (*OptListOrganizationInvoicesType) Reset

Reset unsets value.

func (*OptListOrganizationInvoicesType) SetTo

SetTo sets value to v.

type OptMemberRole

type OptMemberRole struct {
	Value MemberRole
	Set   bool
}

OptMemberRole is optional MemberRole.

func NewOptMemberRole

func NewOptMemberRole(v MemberRole) OptMemberRole

NewOptMemberRole returns new OptMemberRole with value set to v.

func (*OptMemberRole) Decode

func (o *OptMemberRole) Decode(d *jx.Decoder) error

Decode decodes MemberRole from json.

func (OptMemberRole) Encode

func (o OptMemberRole) Encode(e *jx.Encoder)

Encode encodes MemberRole as json.

func (OptMemberRole) Get

func (o OptMemberRole) Get() (v MemberRole, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMemberRole) IsSet

func (o OptMemberRole) IsSet() bool

IsSet returns true if OptMemberRole was set.

func (OptMemberRole) MarshalJSON

func (s OptMemberRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMemberRole) Or

Or returns value if set, or given parameter if does not.

func (*OptMemberRole) Reset

func (o *OptMemberRole) Reset()

Reset unsets value.

func (*OptMemberRole) SetTo

func (o *OptMemberRole) SetTo(v MemberRole)

SetTo sets value to v.

func (*OptMemberRole) UnmarshalJSON

func (s *OptMemberRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptName

type OptName struct {
	Value Name
	Set   bool
}

OptName is optional Name.

func NewOptName

func NewOptName(v Name) OptName

NewOptName returns new OptName with value set to v.

func (*OptName) Decode

func (o *OptName) Decode(d *jx.Decoder) error

Decode decodes Name from json.

func (OptName) Encode

func (o OptName) Encode(e *jx.Encoder)

Encode encodes Name as json.

func (OptName) Get

func (o OptName) Get() (v Name, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptName) IsSet

func (o OptName) IsSet() bool

IsSet returns true if OptName was set.

func (OptName) MarshalJSON

func (s OptName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptName) Or

func (o OptName) Or(d Name) Name

Or returns value if set, or given parameter if does not.

func (*OptName) Reset

func (o *OptName) Reset()

Reset unsets value.

func (*OptName) SetTo

func (o *OptName) SetTo(v Name)

SetTo sets value to v.

func (*OptName) UnmarshalJSON

func (s *OptName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsSet returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOrganization

type OptOrganization struct {
	Value Organization
	Set   bool
}

OptOrganization is optional Organization.

func NewOptOrganization

func NewOptOrganization(v Organization) OptOrganization

NewOptOrganization returns new OptOrganization with value set to v.

func (*OptOrganization) Decode

func (o *OptOrganization) Decode(d *jx.Decoder) error

Decode decodes Organization from json.

func (OptOrganization) Encode

func (o OptOrganization) Encode(e *jx.Encoder)

Encode encodes Organization as json.

func (OptOrganization) Get

func (o OptOrganization) Get() (v Organization, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptOrganization) IsSet

func (o OptOrganization) IsSet() bool

IsSet returns true if OptOrganization was set.

func (OptOrganization) MarshalJSON

func (s OptOrganization) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOrganization) Or

Or returns value if set, or given parameter if does not.

func (*OptOrganization) Reset

func (o *OptOrganization) Reset()

Reset unsets value.

func (*OptOrganization) SetTo

func (o *OptOrganization) SetTo(v Organization)

SetTo sets value to v.

func (*OptOrganization) UnmarshalJSON

func (s *OptOrganization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOrganizationType

type OptOrganizationType struct {
	Value OrganizationType
	Set   bool
}

OptOrganizationType is optional OrganizationType.

func NewOptOrganizationType

func NewOptOrganizationType(v OrganizationType) OptOrganizationType

NewOptOrganizationType returns new OptOrganizationType with value set to v.

func (*OptOrganizationType) Decode

func (o *OptOrganizationType) Decode(d *jx.Decoder) error

Decode decodes OrganizationType from json.

func (OptOrganizationType) Encode

func (o OptOrganizationType) Encode(e *jx.Encoder)

Encode encodes OrganizationType as json.

func (OptOrganizationType) Get

func (o OptOrganizationType) Get() (v OrganizationType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptOrganizationType) IsSet

func (o OptOrganizationType) IsSet() bool

IsSet returns true if OptOrganizationType was set.

func (OptOrganizationType) MarshalJSON

func (s OptOrganizationType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOrganizationType) Or

Or returns value if set, or given parameter if does not.

func (*OptOrganizationType) Reset

func (o *OptOrganizationType) Reset()

Reset unsets value.

func (*OptOrganizationType) SetTo

SetTo sets value to v.

func (*OptOrganizationType) UnmarshalJSON

func (s *OptOrganizationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPlanQuotas

type OptPlanQuotas struct {
	Value PlanQuotas
	Set   bool
}

OptPlanQuotas is optional PlanQuotas.

func NewOptPlanQuotas

func NewOptPlanQuotas(v PlanQuotas) OptPlanQuotas

NewOptPlanQuotas returns new OptPlanQuotas with value set to v.

func (*OptPlanQuotas) Decode

func (o *OptPlanQuotas) Decode(d *jx.Decoder) error

Decode decodes PlanQuotas from json.

func (OptPlanQuotas) Encode

func (o OptPlanQuotas) Encode(e *jx.Encoder)

Encode encodes PlanQuotas as json.

func (OptPlanQuotas) Get

func (o OptPlanQuotas) Get() (v PlanQuotas, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPlanQuotas) IsSet

func (o OptPlanQuotas) IsSet() bool

IsSet returns true if OptPlanQuotas was set.

func (OptPlanQuotas) MarshalJSON

func (s OptPlanQuotas) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPlanQuotas) Or

Or returns value if set, or given parameter if does not.

func (*OptPlanQuotas) Reset

func (o *OptPlanQuotas) Reset()

Reset unsets value.

func (*OptPlanQuotas) SetTo

func (o *OptPlanQuotas) SetTo(v PlanQuotas)

SetTo sets value to v.

func (*OptPlanQuotas) UnmarshalJSON

func (s *OptPlanQuotas) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRole

type OptRole struct {
	Value Role
	Set   bool
}

OptRole is optional Role.

func NewOptRole

func NewOptRole(v Role) OptRole

NewOptRole returns new OptRole with value set to v.

func (*OptRole) Decode

func (o *OptRole) Decode(d *jx.Decoder) error

Decode decodes Role from json.

func (OptRole) Encode

func (o OptRole) Encode(e *jx.Encoder)

Encode encodes Role as json.

func (OptRole) Get

func (o OptRole) Get() (v Role, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRole) IsSet

func (o OptRole) IsSet() bool

IsSet returns true if OptRole was set.

func (OptRole) MarshalJSON

func (s OptRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRole) Or

func (o OptRole) Or(d Role) Role

Or returns value if set, or given parameter if does not.

func (*OptRole) Reset

func (o *OptRole) Reset()

Reset unsets value.

func (*OptRole) SetTo

func (o *OptRole) SetTo(v Role)

SetTo sets value to v.

func (*OptRole) UnmarshalJSON

func (s *OptRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptURI

type OptURI struct {
	Value url.URL
	Set   bool
}

OptURI is optional url.URL.

func NewOptURI

func NewOptURI(v url.URL) OptURI

NewOptURI returns new OptURI with value set to v.

func (*OptURI) Decode

func (o *OptURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptURI) Encode

func (o OptURI) Encode(e *jx.Encoder)

Encode encodes url.URL as json.

func (OptURI) Get

func (o OptURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptURI) IsSet

func (o OptURI) IsSet() bool

IsSet returns true if OptURI was set.

func (OptURI) MarshalJSON

func (s OptURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptURI) Or

func (o OptURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptURI) Reset

func (o *OptURI) Reset()

Reset unsets value.

func (*OptURI) SetTo

func (o *OptURI) SetTo(v url.URL)

SetTo sets value to v.

func (*OptURI) UnmarshalJSON

func (s *OptURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUsername

type OptUsername struct {
	Value Username
	Set   bool
}

OptUsername is optional Username.

func NewOptUsername

func NewOptUsername(v Username) OptUsername

NewOptUsername returns new OptUsername with value set to v.

func (*OptUsername) Decode

func (o *OptUsername) Decode(d *jx.Decoder) error

Decode decodes Username from json.

func (OptUsername) Encode

func (o OptUsername) Encode(e *jx.Encoder)

Encode encodes Username as json.

func (OptUsername) Get

func (o OptUsername) Get() (v Username, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUsername) IsSet

func (o OptUsername) IsSet() bool

IsSet returns true if OptUsername was set.

func (OptUsername) MarshalJSON

func (s OptUsername) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUsername) Or

func (o OptUsername) Or(d Username) Username

Or returns value if set, or given parameter if does not.

func (*OptUsername) Reset

func (o *OptUsername) Reset()

Reset unsets value.

func (*OptUsername) SetTo

func (o *OptUsername) SetTo(v Username)

SetTo sets value to v.

func (*OptUsername) UnmarshalJSON

func (s *OptUsername) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type Organization

type Organization struct {
	// The organization name. Every user has a `personal` organization for their own account.
	Name OptString `json:"name"`
	// The organization slug. This will be your username for `personal` accounts.
	Slug OptString `json:"slug"`
	// The type of account this organization is. Will always be `personal` or `team`.
	Type OptOrganizationType `json:"type"`
	// The name of the organization. Every user has a `personal` organization for their own account.
	Overages OptBool `json:"overages"`
	// Returns the current status for blocked reads.
	BlockedReads OptBool `json:"blocked_reads"`
	// Returns the current status for blocked writes.
	BlockedWrites OptBool `json:"blocked_writes"`
}

Ref: #/components/schemas/Organization

func (*Organization) Decode

func (s *Organization) Decode(d *jx.Decoder) error

Decode decodes Organization from json.

func (*Organization) Encode

func (s *Organization) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Organization) GetBlockedReads

func (s *Organization) GetBlockedReads() OptBool

GetBlockedReads returns the value of BlockedReads.

func (*Organization) GetBlockedWrites

func (s *Organization) GetBlockedWrites() OptBool

GetBlockedWrites returns the value of BlockedWrites.

func (*Organization) GetName

func (s *Organization) GetName() OptString

GetName returns the value of Name.

func (*Organization) GetOverages

func (s *Organization) GetOverages() OptBool

GetOverages returns the value of Overages.

func (*Organization) GetSlug

func (s *Organization) GetSlug() OptString

GetSlug returns the value of Slug.

func (*Organization) GetType

func (s *Organization) GetType() OptOrganizationType

GetType returns the value of Type.

func (*Organization) MarshalJSON

func (s *Organization) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Organization) SetBlockedReads

func (s *Organization) SetBlockedReads(val OptBool)

SetBlockedReads sets the value of BlockedReads.

func (*Organization) SetBlockedWrites

func (s *Organization) SetBlockedWrites(val OptBool)

SetBlockedWrites sets the value of BlockedWrites.

func (*Organization) SetName

func (s *Organization) SetName(val OptString)

SetName sets the value of Name.

func (*Organization) SetOverages

func (s *Organization) SetOverages(val OptBool)

SetOverages sets the value of Overages.

func (*Organization) SetSlug

func (s *Organization) SetSlug(val OptString)

SetSlug sets the value of Slug.

func (*Organization) SetType

func (s *Organization) SetType(val OptOrganizationType)

SetType sets the value of Type.

func (*Organization) UnmarshalJSON

func (s *Organization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Organization) Validate

func (s *Organization) Validate() error

type OrganizationType

type OrganizationType string

The type of account this organization is. Will always be `personal` or `team`.

const (
	OrganizationTypePersonal OrganizationType = "personal"
	OrganizationTypeTeam     OrganizationType = "team"
)

func (OrganizationType) AllValues

func (OrganizationType) AllValues() []OrganizationType

AllValues returns all OrganizationType values.

func (*OrganizationType) Decode

func (s *OrganizationType) Decode(d *jx.Decoder) error

Decode decodes OrganizationType from json.

func (OrganizationType) Encode

func (s OrganizationType) Encode(e *jx.Encoder)

Encode encodes OrganizationType as json.

func (OrganizationType) MarshalJSON

func (s OrganizationType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OrganizationType) MarshalText

func (s OrganizationType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OrganizationType) UnmarshalJSON

func (s *OrganizationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OrganizationType) UnmarshalText

func (s *OrganizationType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OrganizationType) Validate

func (s OrganizationType) Validate() error

type PlanQuotas

type PlanQuotas struct {
	// The number of rows read allowed for the specific plan.
	RowsRead OptInt `json:"rowsRead"`
	// The number of rows written allowed for the specific plan.
	RowsWritten OptInt `json:"rowsWritten"`
	// The number of databases allowed for the specific plan.
	Databases OptInt `json:"databases"`
	// The number of locations allowed for the specific plan.
	Locations OptInt `json:"locations"`
	// The amount of storage allowed for the specific plan, in bytes.
	Storage OptInt `json:"storage"`
	// The number of groups allowed for the specific plan.
	Groups OptInt `json:"groups"`
	// The number of bytes synced allowed for the specific plan, in bytes.
	BytesSynced OptInt `json:"bytesSynced"`
}

Ref: #/components/schemas/PlanQuotas

func (*PlanQuotas) Decode

func (s *PlanQuotas) Decode(d *jx.Decoder) error

Decode decodes PlanQuotas from json.

func (*PlanQuotas) Encode

func (s *PlanQuotas) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PlanQuotas) GetBytesSynced

func (s *PlanQuotas) GetBytesSynced() OptInt

GetBytesSynced returns the value of BytesSynced.

func (*PlanQuotas) GetDatabases

func (s *PlanQuotas) GetDatabases() OptInt

GetDatabases returns the value of Databases.

func (*PlanQuotas) GetGroups

func (s *PlanQuotas) GetGroups() OptInt

GetGroups returns the value of Groups.

func (*PlanQuotas) GetLocations

func (s *PlanQuotas) GetLocations() OptInt

GetLocations returns the value of Locations.

func (*PlanQuotas) GetRowsRead

func (s *PlanQuotas) GetRowsRead() OptInt

GetRowsRead returns the value of RowsRead.

func (*PlanQuotas) GetRowsWritten

func (s *PlanQuotas) GetRowsWritten() OptInt

GetRowsWritten returns the value of RowsWritten.

func (*PlanQuotas) GetStorage

func (s *PlanQuotas) GetStorage() OptInt

GetStorage returns the value of Storage.

func (*PlanQuotas) MarshalJSON

func (s *PlanQuotas) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PlanQuotas) SetBytesSynced

func (s *PlanQuotas) SetBytesSynced(val OptInt)

SetBytesSynced sets the value of BytesSynced.

func (*PlanQuotas) SetDatabases

func (s *PlanQuotas) SetDatabases(val OptInt)

SetDatabases sets the value of Databases.

func (*PlanQuotas) SetGroups

func (s *PlanQuotas) SetGroups(val OptInt)

SetGroups sets the value of Groups.

func (*PlanQuotas) SetLocations

func (s *PlanQuotas) SetLocations(val OptInt)

SetLocations sets the value of Locations.

func (*PlanQuotas) SetRowsRead

func (s *PlanQuotas) SetRowsRead(val OptInt)

SetRowsRead sets the value of RowsRead.

func (*PlanQuotas) SetRowsWritten

func (s *PlanQuotas) SetRowsWritten(val OptInt)

SetRowsWritten sets the value of RowsWritten.

func (*PlanQuotas) SetStorage

func (s *PlanQuotas) SetStorage(val OptInt)

SetStorage sets the value of Storage.

func (*PlanQuotas) UnmarshalJSON

func (s *PlanQuotas) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RemoveLocationFromGroupBadRequest

type RemoveLocationFromGroupBadRequest struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*RemoveLocationFromGroupBadRequest) Decode

Decode decodes RemoveLocationFromGroupBadRequest from json.

func (*RemoveLocationFromGroupBadRequest) Encode

Encode implements json.Marshaler.

func (*RemoveLocationFromGroupBadRequest) GetError

GetError returns the value of Error.

func (*RemoveLocationFromGroupBadRequest) MarshalJSON

func (s *RemoveLocationFromGroupBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RemoveLocationFromGroupBadRequest) SetError

SetError sets the value of Error.

func (*RemoveLocationFromGroupBadRequest) UnmarshalJSON

func (s *RemoveLocationFromGroupBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RemoveLocationFromGroupOK

type RemoveLocationFromGroupOK struct {
	// The group with the removed location.
	Group OptBaseGroup `json:"group"`
}

func (*RemoveLocationFromGroupOK) Decode

func (s *RemoveLocationFromGroupOK) Decode(d *jx.Decoder) error

Decode decodes RemoveLocationFromGroupOK from json.

func (*RemoveLocationFromGroupOK) Encode

func (s *RemoveLocationFromGroupOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RemoveLocationFromGroupOK) GetGroup

GetGroup returns the value of Group.

func (*RemoveLocationFromGroupOK) MarshalJSON

func (s *RemoveLocationFromGroupOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RemoveLocationFromGroupOK) SetGroup

func (s *RemoveLocationFromGroupOK) SetGroup(val OptBaseGroup)

SetGroup sets the value of Group.

func (*RemoveLocationFromGroupOK) UnmarshalJSON

func (s *RemoveLocationFromGroupOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RemoveLocationFromGroupParams

type RemoveLocationFromGroupParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
	// The location code to remove from the group.
	Location string
}

RemoveLocationFromGroupParams is parameters of removeLocationFromGroup operation.

type RemoveLocationFromGroupRes

type RemoveLocationFromGroupRes interface {
	// contains filtered or unexported methods
}

type RemoveOrganizationMemberNotFound

type RemoveOrganizationMemberNotFound struct {
	// The error message.
	Error OptString `json:"error"`
}

func (*RemoveOrganizationMemberNotFound) Decode

Decode decodes RemoveOrganizationMemberNotFound from json.

func (*RemoveOrganizationMemberNotFound) Encode

Encode implements json.Marshaler.

func (*RemoveOrganizationMemberNotFound) GetError

GetError returns the value of Error.

func (*RemoveOrganizationMemberNotFound) MarshalJSON

func (s *RemoveOrganizationMemberNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RemoveOrganizationMemberNotFound) SetError

SetError sets the value of Error.

func (*RemoveOrganizationMemberNotFound) UnmarshalJSON

func (s *RemoveOrganizationMemberNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RemoveOrganizationMemberOK

type RemoveOrganizationMemberOK struct {
	Member OptUsername `json:"member"`
}

func (*RemoveOrganizationMemberOK) Decode

Decode decodes RemoveOrganizationMemberOK from json.

func (*RemoveOrganizationMemberOK) Encode

func (s *RemoveOrganizationMemberOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RemoveOrganizationMemberOK) GetMember

func (s *RemoveOrganizationMemberOK) GetMember() OptUsername

GetMember returns the value of Member.

func (*RemoveOrganizationMemberOK) MarshalJSON

func (s *RemoveOrganizationMemberOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RemoveOrganizationMemberOK) SetMember

func (s *RemoveOrganizationMemberOK) SetMember(val OptUsername)

SetMember sets the value of Member.

func (*RemoveOrganizationMemberOK) UnmarshalJSON

func (s *RemoveOrganizationMemberOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RemoveOrganizationMemberParams

type RemoveOrganizationMemberParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The username of a Turso user or organization member.
	Username string
}

RemoveOrganizationMemberParams is parameters of removeOrganizationMember operation.

type RemoveOrganizationMemberRes

type RemoveOrganizationMemberRes interface {
	// contains filtered or unexported methods
}

type RevokeAPITokenParams

type RevokeAPITokenParams struct {
	// The name of the api token.
	TokenName string
}

RevokeAPITokenParams is parameters of revokeAPIToken operation.

type Role

type Role string

The role assigned to the member. Will be `owner`, `admin` or `member`. Ref: #/components/schemas/Member/properties/role

const (
	RoleOwner  Role = "owner"
	RoleAdmin  Role = "admin"
	RoleMember Role = "member"
)

func (Role) AllValues

func (Role) AllValues() []Role

AllValues returns all Role values.

func (*Role) Decode

func (s *Role) Decode(d *jx.Decoder) error

Decode decodes Role from json.

func (Role) Encode

func (s Role) Encode(e *jx.Encoder)

Encode encodes Role as json.

func (Role) MarshalJSON

func (s Role) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (Role) MarshalText

func (s Role) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*Role) UnmarshalJSON

func (s *Role) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Role) UnmarshalText

func (s *Role) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (Role) Validate

func (s Role) Validate() error

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type TransferGroupParams

type TransferGroupParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
}

TransferGroupParams is parameters of transferGroup operation.

type TransferGroupReq

type TransferGroupReq struct {
	// The name of the organization to transfer the group to.
	Organization OptString `json:"organization"`
}

func (*TransferGroupReq) Decode

func (s *TransferGroupReq) Decode(d *jx.Decoder) error

Decode decodes TransferGroupReq from json.

func (*TransferGroupReq) Encode

func (s *TransferGroupReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TransferGroupReq) GetOrganization

func (s *TransferGroupReq) GetOrganization() OptString

GetOrganization returns the value of Organization.

func (*TransferGroupReq) MarshalJSON

func (s *TransferGroupReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TransferGroupReq) SetOrganization

func (s *TransferGroupReq) SetOrganization(val OptString)

SetOrganization sets the value of Organization.

func (*TransferGroupReq) UnmarshalJSON

func (s *TransferGroupReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TransferGroupRes

type TransferGroupRes interface {
	// contains filtered or unexported methods
}

type UnarchiveGroupOK

type UnarchiveGroupOK struct {
	// The group that was unarchived.
	Group OptBaseGroup `json:"group"`
}

func (*UnarchiveGroupOK) Decode

func (s *UnarchiveGroupOK) Decode(d *jx.Decoder) error

Decode decodes UnarchiveGroupOK from json.

func (*UnarchiveGroupOK) Encode

func (s *UnarchiveGroupOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UnarchiveGroupOK) GetGroup

func (s *UnarchiveGroupOK) GetGroup() OptBaseGroup

GetGroup returns the value of Group.

func (*UnarchiveGroupOK) MarshalJSON

func (s *UnarchiveGroupOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnarchiveGroupOK) SetGroup

func (s *UnarchiveGroupOK) SetGroup(val OptBaseGroup)

SetGroup sets the value of Group.

func (*UnarchiveGroupOK) UnmarshalJSON

func (s *UnarchiveGroupOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnarchiveGroupParams

type UnarchiveGroupParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
}

UnarchiveGroupParams is parameters of unarchiveGroup operation.

type UnarchiveGroupRes

type UnarchiveGroupRes interface {
	// contains filtered or unexported methods
}

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) AddLocationToGroup

AddLocationToGroup implements addLocationToGroup operation.

Adds a location to the specified group.

POST /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}

func (UnimplementedHandler) AddOrganizationMember

AddOrganizationMember implements addOrganizationMember operation.

Add an existing Turso user to an organization.

POST /v1/organizations/{organizationName}/members

func (UnimplementedHandler) CreateAPIToken

func (UnimplementedHandler) CreateAPIToken(ctx context.Context, params CreateAPITokenParams) (r jx.Raw, _ error)

CreateAPIToken implements createAPIToken operation.

Returns a new API token belonging to a user.

POST /v1/auth/api-tokens/{tokenName}

func (UnimplementedHandler) CreateDatabase

CreateDatabase implements createDatabase operation.

Creates a new database in a group for the organization or user.

POST /v1/organizations/{organizationName}/databases

func (UnimplementedHandler) CreateDatabaseToken

CreateDatabaseToken implements createDatabaseToken operation.

Generates an authorization token for the specified database.

POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/tokens

func (UnimplementedHandler) CreateGroup

func (UnimplementedHandler) CreateGroup(ctx context.Context, req *NewGroup, params CreateGroupParams) (r CreateGroupRes, _ error)

CreateGroup implements createGroup operation.

Creates a new group for the organization or user.

POST /v1/organizations/{organizationName}/groups

func (UnimplementedHandler) CreateGroupToken

CreateGroupToken implements createGroupToken operation.

Generates an authorization token for the specified group.

POST /v1/organizations/{organizationName}/groups/{groupName}/auth/tokens

func (UnimplementedHandler) DeleteDatabase

DeleteDatabase implements deleteDatabase operation.

Delete a database belonging to the organization or user.

DELETE /v1/organizations/{organizationName}/databases/{databaseName}

func (UnimplementedHandler) DeleteGroup

DeleteGroup implements deleteGroup operation.

Delete a group belonging to the organization or user.

DELETE /v1/organizations/{organizationName}/groups/{groupName}

func (UnimplementedHandler) DeleteOrganizationInviteByEmail

DeleteOrganizationInviteByEmail implements deleteOrganizationInviteByEmail operation.

Delete an invite for the organization by email.

DELETE /v1/organizations/{organizationName}/invites/{email}

func (UnimplementedHandler) GetDatabase

GetDatabase implements getDatabase operation.

Returns a database belonging to the organization or user.

GET /v1/organizations/{organizationName}/databases/{databaseName}

func (UnimplementedHandler) GetDatabaseConfiguration

GetDatabaseConfiguration implements getDatabaseConfiguration operation.

Retrieve an individual database configuration belonging to the organization or user.

GET /v1/organizations/{organizationName}/databases/{databaseName}/configuration

func (UnimplementedHandler) GetDatabaseInstance

GetDatabaseInstance implements getDatabaseInstance operation.

Return the individual database instance by name.

GET /v1/organizations/{organizationName}/databases/{databaseName}/instances/{instanceName}

func (UnimplementedHandler) GetDatabaseStats

GetDatabaseStats implements getDatabaseStats operation.

Fetch the top queries of a database, including the count of rows read and written.

GET /v1/organizations/{organizationName}/databases/{databaseName}/stats

func (UnimplementedHandler) GetDatabaseUsage

GetDatabaseUsage implements getDatabaseUsage operation.

Fetch activity usage for a database in a given time period.

GET /v1/organizations/{organizationName}/databases/{databaseName}/usage

func (UnimplementedHandler) GetGroup

func (UnimplementedHandler) GetGroup(ctx context.Context, params GetGroupParams) (r GetGroupRes, _ error)

GetGroup implements getGroup operation.

Returns a group belonging to the organization or user.

GET /v1/organizations/{organizationName}/groups/{groupName}

func (UnimplementedHandler) GetOrganizationSubscription

GetOrganizationSubscription implements getOrganizationSubscription operation.

Returns the current subscription details for the organization.

GET /v1/organizations/{organizationName}/subscription

func (UnimplementedHandler) GetOrganizationUsage

GetOrganizationUsage implements getOrganizationUsage operation.

Fetch current billing cycle usage for an organization.

GET /v1/organizations/{organizationName}/usage

func (UnimplementedHandler) InvalidateDatabaseTokens

InvalidateDatabaseTokens implements invalidateDatabaseTokens operation.

Invalidates all authorization tokens for the specified database.

POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/rotate

func (UnimplementedHandler) InvalidateGroupTokens

InvalidateGroupTokens implements invalidateGroupTokens operation.

Invalidates all authorization tokens for the specified group.

POST /v1/organizations/{organizationName}/groups/{groupName}/auth/rotate

func (UnimplementedHandler) InviteOrganizationMember

InviteOrganizationMember implements inviteOrganizationMember operation.

Invite a user (who isn't already a Turso user) to an organization.

POST /v1/organizations/{organizationName}/invites

func (UnimplementedHandler) ListAPITokens

func (UnimplementedHandler) ListAPITokens(ctx context.Context) (r *ListAPITokensOK, _ error)

ListAPITokens implements listAPITokens operation.

Returns a list of API tokens belonging to a user.

GET /v1/auth/api-tokens

func (UnimplementedHandler) ListDatabaseInstances

ListDatabaseInstances implements listDatabaseInstances operation.

Returns a list of instances of a database. Instances are the individual primary or replica databases in each region defined by the group.

GET /v1/organizations/{organizationName}/databases/{databaseName}/instances

func (UnimplementedHandler) ListDatabases

func (UnimplementedHandler) ListDatabases(ctx context.Context, params ListDatabasesParams) (r *ListDatabasesOK, _ error)

ListDatabases implements listDatabases operation.

Returns a list of databases belonging to the organization or user.

GET /v1/organizations/{organizationName}/databases

func (UnimplementedHandler) ListGroups

func (UnimplementedHandler) ListGroups(ctx context.Context, params ListGroupsParams) (r *ListGroupsOK, _ error)

ListGroups implements listGroups operation.

Returns a list of groups belonging to the organization or user.

GET /v1/organizations/{organizationName}/groups

func (UnimplementedHandler) ListLocations

func (UnimplementedHandler) ListLocations(ctx context.Context) (r *ListLocationsOK, _ error)

ListLocations implements listLocations operation.

Returns a list of locations where you can create or replicate databases.

GET /v1/locations

func (UnimplementedHandler) ListOrganizationAuditLogs

ListOrganizationAuditLogs implements listOrganizationAuditLogs operation.

Return the audit logs for the given organization, ordered by the `created_at` field in descending order.

GET /v1/organizations/{organizationName}/audit-logs

func (UnimplementedHandler) ListOrganizationInvites

ListOrganizationInvites implements listOrganizationInvites operation.

Returns a list of invites for the organization.

GET /v1/organizations/{organizationName}/invites

func (UnimplementedHandler) ListOrganizationInvoices

ListOrganizationInvoices implements listOrganizationInvoices operation.

Returns a list of invoices for the organization.

GET /v1/organizations/{organizationName}/invoices

func (UnimplementedHandler) ListOrganizationMembers

ListOrganizationMembers implements listOrganizationMembers operation.

Returns a list of members part of the organization.

GET /v1/organizations/{organizationName}/members

func (UnimplementedHandler) ListOrganizationPlans

ListOrganizationPlans implements listOrganizationPlans operation.

Returns a list of available plans and their quotas.

GET /v1/organizations/{organizationName}/plans

func (UnimplementedHandler) ListOrganizations

func (UnimplementedHandler) ListOrganizations(ctx context.Context) (r []Organization, _ error)

ListOrganizations implements listOrganizations operation.

Returns a list of organizations the authenticated user owns or is a member of.

GET /v1/organizations

func (UnimplementedHandler) RemoveLocationFromGroup

RemoveLocationFromGroup implements removeLocationFromGroup operation.

Removes a location from the specified group.

DELETE /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}

func (UnimplementedHandler) RemoveOrganizationMember

RemoveOrganizationMember implements removeOrganizationMember operation.

Remove a user from the organization by username.

DELETE /v1/organizations/{organizationName}/members/{username}

func (UnimplementedHandler) RevokeAPIToken

func (UnimplementedHandler) RevokeAPIToken(ctx context.Context, params RevokeAPITokenParams) (r jx.Raw, _ error)

RevokeAPIToken implements revokeAPIToken operation.

Revokes the provided API token belonging to a user.

DELETE /v1/auth/api-tokens/{tokenName}

func (UnimplementedHandler) TransferGroup

TransferGroup implements transferGroup operation.

Transfer a group to another organization that you own or a member of.

POST /v1/organizations/{organizationName}/groups/{groupName}/transfer

func (UnimplementedHandler) UnarchiveGroup

UnarchiveGroup implements unarchiveGroup operation.

Unarchive a group that has been archived due to inactivity.

POST /v1/organizations/{organizationName}/groups/{groupName}/unarchive

func (UnimplementedHandler) UpdateDatabaseConfiguration

UpdateDatabaseConfiguration implements updateDatabaseConfiguration operation.

Update a database configuration belonging to the organization or user.

PATCH /v1/organizations/{organizationName}/databases/{databaseName}/configuration

func (UnimplementedHandler) UpdateGroupDatabases

UpdateGroupDatabases implements updateGroupDatabases operation.

Updates all databases in the group to the latest libSQL version.

POST /v1/organizations/{organizationName}/groups/{groupName}/update

func (UnimplementedHandler) UpdateOrganization

UpdateOrganization implements updateOrganization operation.

Update an organization you own or are a member of.

PATCH /v1/organizations/{organizationName}

func (UnimplementedHandler) UploadDatabaseDump

UploadDatabaseDump implements uploadDatabaseDump operation.

Upload a SQL dump to be used when [creating a new database](/api-reference/databases/create) from seed.

POST /v1/organizations/{organizationName}/databases/dumps

func (UnimplementedHandler) ValidateAPIToken

func (UnimplementedHandler) ValidateAPIToken(ctx context.Context) (r *ValidateAPITokenOK, _ error)

ValidateAPIToken implements validateAPIToken operation.

Validates an API token belonging to a user.

GET /v1/auth/validate

type UpdateDatabaseConfigurationParams

type UpdateDatabaseConfigurationParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the database.
	DatabaseName string
}

UpdateDatabaseConfigurationParams is parameters of updateDatabaseConfiguration operation.

type UpdateGroupDatabasesOK

type UpdateGroupDatabasesOK struct{}

UpdateGroupDatabasesOK is response for UpdateGroupDatabases operation.

type UpdateGroupDatabasesParams

type UpdateGroupDatabasesParams struct {
	// The name of the organization or user.
	OrganizationName string
	// The name of the group.
	GroupName string
}

UpdateGroupDatabasesParams is parameters of updateGroupDatabases operation.

type UpdateGroupDatabasesRes

type UpdateGroupDatabasesRes interface {
	// contains filtered or unexported methods
}

type UpdateOrganizationOK

type UpdateOrganizationOK struct {
	// The updated organization.
	Organization OptOrganization `json:"organization"`
}

func (*UpdateOrganizationOK) Decode

func (s *UpdateOrganizationOK) Decode(d *jx.Decoder) error

Decode decodes UpdateOrganizationOK from json.

func (*UpdateOrganizationOK) Encode

func (s *UpdateOrganizationOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOrganizationOK) GetOrganization

func (s *UpdateOrganizationOK) GetOrganization() OptOrganization

GetOrganization returns the value of Organization.

func (*UpdateOrganizationOK) MarshalJSON

func (s *UpdateOrganizationOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationOK) SetOrganization

func (s *UpdateOrganizationOK) SetOrganization(val OptOrganization)

SetOrganization sets the value of Organization.

func (*UpdateOrganizationOK) UnmarshalJSON

func (s *UpdateOrganizationOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateOrganizationOK) Validate

func (s *UpdateOrganizationOK) Validate() error

type UpdateOrganizationParams

type UpdateOrganizationParams struct {
	// The name of the organization or user.
	OrganizationName string
}

UpdateOrganizationParams is parameters of updateOrganization operation.

type UpdateOrganizationReq

type UpdateOrganizationReq struct {
	// Enable or disable overages for the organization.
	Overages OptBool `json:"overages"`
}

func (*UpdateOrganizationReq) Decode

func (s *UpdateOrganizationReq) Decode(d *jx.Decoder) error

Decode decodes UpdateOrganizationReq from json.

func (*UpdateOrganizationReq) Encode

func (s *UpdateOrganizationReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOrganizationReq) GetOverages

func (s *UpdateOrganizationReq) GetOverages() OptBool

GetOverages returns the value of Overages.

func (*UpdateOrganizationReq) MarshalJSON

func (s *UpdateOrganizationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOrganizationReq) SetOverages

func (s *UpdateOrganizationReq) SetOverages(val OptBool)

SetOverages sets the value of Overages.

func (*UpdateOrganizationReq) UnmarshalJSON

func (s *UpdateOrganizationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadDatabaseDumpOK

type UploadDatabaseDumpOK struct {
	// URL of the uploaded database dump.
	DumpURL OptURI `json:"dump_url"`
}

func (*UploadDatabaseDumpOK) Decode

func (s *UploadDatabaseDumpOK) Decode(d *jx.Decoder) error

Decode decodes UploadDatabaseDumpOK from json.

func (*UploadDatabaseDumpOK) Encode

func (s *UploadDatabaseDumpOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UploadDatabaseDumpOK) GetDumpURL

func (s *UploadDatabaseDumpOK) GetDumpURL() OptURI

GetDumpURL returns the value of DumpURL.

func (*UploadDatabaseDumpOK) MarshalJSON

func (s *UploadDatabaseDumpOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UploadDatabaseDumpOK) SetDumpURL

func (s *UploadDatabaseDumpOK) SetDumpURL(val OptURI)

SetDumpURL sets the value of DumpURL.

func (*UploadDatabaseDumpOK) UnmarshalJSON

func (s *UploadDatabaseDumpOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UploadDatabaseDumpParams

type UploadDatabaseDumpParams struct {
	// The name of the organization or user.
	OrganizationName string
}

UploadDatabaseDumpParams is parameters of uploadDatabaseDump operation.

type UploadDatabaseDumpReq

type UploadDatabaseDumpReq struct {
	// Database dump file.
	File ht.MultipartFile `json:"file"`
}

func (*UploadDatabaseDumpReq) GetFile

func (s *UploadDatabaseDumpReq) GetFile() ht.MultipartFile

GetFile returns the value of File.

func (*UploadDatabaseDumpReq) SetFile

func (s *UploadDatabaseDumpReq) SetFile(val ht.MultipartFile)

SetFile sets the value of File.

type Username

type Username string

func (*Username) Decode

func (s *Username) Decode(d *jx.Decoder) error

Decode decodes Username from json.

func (Username) Encode

func (s Username) Encode(e *jx.Encoder)

Encode encodes Username as json.

func (Username) MarshalJSON

func (s Username) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Username) UnmarshalJSON

func (s *Username) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ValidateAPITokenOK

type ValidateAPITokenOK struct {
	// The time of expiration for the provided token in unix epoch seconds, or `-1` if there is no
	// expiration.
	Exp OptInt `json:"exp"`
}

func (*ValidateAPITokenOK) Decode

func (s *ValidateAPITokenOK) Decode(d *jx.Decoder) error

Decode decodes ValidateAPITokenOK from json.

func (*ValidateAPITokenOK) Encode

func (s *ValidateAPITokenOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ValidateAPITokenOK) GetExp

func (s *ValidateAPITokenOK) GetExp() OptInt

GetExp returns the value of Exp.

func (*ValidateAPITokenOK) MarshalJSON

func (s *ValidateAPITokenOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValidateAPITokenOK) SetExp

func (s *ValidateAPITokenOK) SetExp(val OptInt)

SetExp sets the value of Exp.

func (*ValidateAPITokenOK) UnmarshalJSON

func (s *ValidateAPITokenOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

Jump to

Keyboard shortcuts

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