Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type APIToken
- func (s *APIToken) Decode(d *jx.Decoder) error
- func (s *APIToken) Encode(e *jx.Encoder)
- func (s *APIToken) GetID() OptString
- func (s *APIToken) GetName() OptString
- func (s *APIToken) MarshalJSON() ([]byte, error)
- func (s *APIToken) SetID(val OptString)
- func (s *APIToken) SetName(val OptString)
- func (s *APIToken) UnmarshalJSON(data []byte) error
- type AddLocationToGroupBadRequest
- func (s *AddLocationToGroupBadRequest) Decode(d *jx.Decoder) error
- func (s *AddLocationToGroupBadRequest) Encode(e *jx.Encoder)
- func (s *AddLocationToGroupBadRequest) GetError() OptString
- func (s *AddLocationToGroupBadRequest) MarshalJSON() ([]byte, error)
- func (s *AddLocationToGroupBadRequest) SetError(val OptString)
- func (s *AddLocationToGroupBadRequest) UnmarshalJSON(data []byte) error
- type AddLocationToGroupOK
- func (s *AddLocationToGroupOK) Decode(d *jx.Decoder) error
- func (s *AddLocationToGroupOK) Encode(e *jx.Encoder)
- func (s *AddLocationToGroupOK) GetGroup() OptBaseGroup
- func (s *AddLocationToGroupOK) MarshalJSON() ([]byte, error)
- func (s *AddLocationToGroupOK) SetGroup(val OptBaseGroup)
- func (s *AddLocationToGroupOK) UnmarshalJSON(data []byte) error
- type AddLocationToGroupParams
- type AddLocationToGroupRes
- type AddOrganizationMemberConflict
- func (s *AddOrganizationMemberConflict) Decode(d *jx.Decoder) error
- func (s *AddOrganizationMemberConflict) Encode(e *jx.Encoder)
- func (s *AddOrganizationMemberConflict) GetError() OptString
- func (s *AddOrganizationMemberConflict) MarshalJSON() ([]byte, error)
- func (s *AddOrganizationMemberConflict) SetError(val OptString)
- func (s *AddOrganizationMemberConflict) UnmarshalJSON(data []byte) error
- type AddOrganizationMemberNotFound
- func (s *AddOrganizationMemberNotFound) Decode(d *jx.Decoder) error
- func (s *AddOrganizationMemberNotFound) Encode(e *jx.Encoder)
- func (s *AddOrganizationMemberNotFound) GetError() OptString
- func (s *AddOrganizationMemberNotFound) MarshalJSON() ([]byte, error)
- func (s *AddOrganizationMemberNotFound) SetError(val OptString)
- func (s *AddOrganizationMemberNotFound) UnmarshalJSON(data []byte) error
- type AddOrganizationMemberOK
- func (s *AddOrganizationMemberOK) Decode(d *jx.Decoder) error
- func (s *AddOrganizationMemberOK) Encode(e *jx.Encoder)
- func (s *AddOrganizationMemberOK) GetMember() OptUsername
- func (s *AddOrganizationMemberOK) GetRole() OptRole
- func (s *AddOrganizationMemberOK) MarshalJSON() ([]byte, error)
- func (s *AddOrganizationMemberOK) SetMember(val OptUsername)
- func (s *AddOrganizationMemberOK) SetRole(val OptRole)
- func (s *AddOrganizationMemberOK) UnmarshalJSON(data []byte) error
- func (s *AddOrganizationMemberOK) Validate() error
- type AddOrganizationMemberParams
- type AddOrganizationMemberReq
- func (s *AddOrganizationMemberReq) Decode(d *jx.Decoder) error
- func (s *AddOrganizationMemberReq) Encode(e *jx.Encoder)
- func (s *AddOrganizationMemberReq) GetRole() OptAddOrganizationMemberReqRole
- func (s *AddOrganizationMemberReq) GetUsername() OptString
- func (s *AddOrganizationMemberReq) MarshalJSON() ([]byte, error)
- func (s *AddOrganizationMemberReq) SetRole(val OptAddOrganizationMemberReqRole)
- func (s *AddOrganizationMemberReq) SetUsername(val OptString)
- func (s *AddOrganizationMemberReq) UnmarshalJSON(data []byte) error
- func (s *AddOrganizationMemberReq) Validate() error
- type AddOrganizationMemberReqRole
- func (AddOrganizationMemberReqRole) AllValues() []AddOrganizationMemberReqRole
- func (s *AddOrganizationMemberReqRole) Decode(d *jx.Decoder) error
- func (s AddOrganizationMemberReqRole) Encode(e *jx.Encoder)
- func (s AddOrganizationMemberReqRole) MarshalJSON() ([]byte, error)
- func (s AddOrganizationMemberReqRole) MarshalText() ([]byte, error)
- func (s *AddOrganizationMemberReqRole) UnmarshalJSON(data []byte) error
- func (s *AddOrganizationMemberReqRole) UnmarshalText(data []byte) error
- func (s AddOrganizationMemberReqRole) Validate() error
- type AddOrganizationMemberRes
- type AuditLog
- func (s *AuditLog) Decode(d *jx.Decoder) error
- func (s *AuditLog) Encode(e *jx.Encoder)
- func (s *AuditLog) GetAuthor() OptString
- func (s *AuditLog) GetCode() OptAuditLogCode
- func (s *AuditLog) GetCreatedAt() OptString
- func (s *AuditLog) GetData() *AuditLogData
- func (s *AuditLog) GetMessage() OptString
- func (s *AuditLog) GetOrigin() OptString
- func (s *AuditLog) MarshalJSON() ([]byte, error)
- func (s *AuditLog) SetAuthor(val OptString)
- func (s *AuditLog) SetCode(val OptAuditLogCode)
- func (s *AuditLog) SetCreatedAt(val OptString)
- func (s *AuditLog) SetData(val *AuditLogData)
- func (s *AuditLog) SetMessage(val OptString)
- func (s *AuditLog) SetOrigin(val OptString)
- func (s *AuditLog) UnmarshalJSON(data []byte) error
- func (s *AuditLog) Validate() error
- type AuditLogCode
- func (AuditLogCode) AllValues() []AuditLogCode
- func (s *AuditLogCode) Decode(d *jx.Decoder) error
- func (s AuditLogCode) Encode(e *jx.Encoder)
- func (s AuditLogCode) MarshalJSON() ([]byte, error)
- func (s AuditLogCode) MarshalText() ([]byte, error)
- func (s *AuditLogCode) UnmarshalJSON(data []byte) error
- func (s *AuditLogCode) UnmarshalText(data []byte) error
- func (s AuditLogCode) Validate() error
- type AuditLogData
- type BaseGroup
- func (s *BaseGroup) Decode(d *jx.Decoder) error
- func (s *BaseGroup) Encode(e *jx.Encoder)
- func (s *BaseGroup) GetArchived() OptBool
- func (s *BaseGroup) GetLocations() []string
- func (s *BaseGroup) GetName() OptString
- func (s *BaseGroup) GetPrimary() OptString
- func (s *BaseGroup) GetUUID() OptString
- func (s *BaseGroup) GetVersion() OptString
- func (s *BaseGroup) MarshalJSON() ([]byte, error)
- func (s *BaseGroup) SetArchived(val OptBool)
- func (s *BaseGroup) SetLocations(val []string)
- func (s *BaseGroup) SetName(val OptString)
- func (s *BaseGroup) SetPrimary(val OptString)
- func (s *BaseGroup) SetUUID(val OptString)
- func (s *BaseGroup) SetVersion(val OptString)
- func (s *BaseGroup) UnmarshalJSON(data []byte) error
- type Client
- func (c *Client) AddLocationToGroup(ctx context.Context, params AddLocationToGroupParams) (AddLocationToGroupRes, error)
- func (c *Client) AddOrganizationMember(ctx context.Context, request *AddOrganizationMemberReq, ...) (AddOrganizationMemberRes, error)
- func (c *Client) CreateAPIToken(ctx context.Context, params CreateAPITokenParams) (jx.Raw, error)
- func (c *Client) CreateDatabase(ctx context.Context, request *CreateDatabaseInput, params CreateDatabaseParams) (CreateDatabaseRes, error)
- func (c *Client) CreateDatabaseToken(ctx context.Context, request OptCreateTokenInput, ...) (CreateDatabaseTokenRes, error)
- func (c *Client) CreateGroup(ctx context.Context, request *NewGroup, params CreateGroupParams) (CreateGroupRes, error)
- func (c *Client) CreateGroupToken(ctx context.Context, request OptCreateTokenInput, ...) (CreateGroupTokenRes, error)
- func (c *Client) DeleteDatabase(ctx context.Context, params DeleteDatabaseParams) (DeleteDatabaseRes, error)
- func (c *Client) DeleteGroup(ctx context.Context, params DeleteGroupParams) (DeleteGroupRes, error)
- func (c *Client) DeleteOrganizationInviteByEmail(ctx context.Context, params DeleteOrganizationInviteByEmailParams) (DeleteOrganizationInviteByEmailRes, error)
- func (c *Client) GetDatabase(ctx context.Context, params GetDatabaseParams) (GetDatabaseRes, error)
- func (c *Client) GetDatabaseConfiguration(ctx context.Context, params GetDatabaseConfigurationParams) (*DatabaseConfigurationResponse, error)
- func (c *Client) GetDatabaseInstance(ctx context.Context, params GetDatabaseInstanceParams) (*GetDatabaseInstanceOK, error)
- func (c *Client) GetDatabaseStats(ctx context.Context, params GetDatabaseStatsParams) (GetDatabaseStatsRes, error)
- func (c *Client) GetDatabaseUsage(ctx context.Context, params GetDatabaseUsageParams) (GetDatabaseUsageRes, error)
- func (c *Client) GetGroup(ctx context.Context, params GetGroupParams) (GetGroupRes, error)
- func (c *Client) GetOrganizationSubscription(ctx context.Context, params GetOrganizationSubscriptionParams) (*GetOrganizationSubscriptionOK, error)
- func (c *Client) GetOrganizationUsage(ctx context.Context, params GetOrganizationUsageParams) (*GetOrganizationUsageOK, error)
- func (c *Client) InvalidateDatabaseTokens(ctx context.Context, params InvalidateDatabaseTokensParams) (InvalidateDatabaseTokensRes, error)
- func (c *Client) InvalidateGroupTokens(ctx context.Context, params InvalidateGroupTokensParams) (InvalidateGroupTokensRes, error)
- func (c *Client) InviteOrganizationMember(ctx context.Context, request *InviteOrganizationMemberReq, ...) (*InviteOrganizationMemberOK, error)
- func (c *Client) ListAPITokens(ctx context.Context) (*ListAPITokensOK, error)
- func (c *Client) ListDatabaseInstances(ctx context.Context, params ListDatabaseInstancesParams) (*ListDatabaseInstancesOK, error)
- func (c *Client) ListDatabases(ctx context.Context, params ListDatabasesParams) (*ListDatabasesOK, error)
- func (c *Client) ListGroups(ctx context.Context, params ListGroupsParams) (*ListGroupsOK, error)
- func (c *Client) ListLocations(ctx context.Context) (*ListLocationsOK, error)
- func (c *Client) ListOrganizationAuditLogs(ctx context.Context, params ListOrganizationAuditLogsParams) (*ListOrganizationAuditLogsOK, error)
- func (c *Client) ListOrganizationInvites(ctx context.Context, params ListOrganizationInvitesParams) (*ListOrganizationInvitesOK, error)
- func (c *Client) ListOrganizationInvoices(ctx context.Context, params ListOrganizationInvoicesParams) (*ListOrganizationInvoicesOK, error)
- func (c *Client) ListOrganizationMembers(ctx context.Context, params ListOrganizationMembersParams) (*ListOrganizationMembersOK, error)
- func (c *Client) ListOrganizationPlans(ctx context.Context, params ListOrganizationPlansParams) (*ListOrganizationPlansOK, error)
- func (c *Client) ListOrganizations(ctx context.Context) ([]Organization, error)
- func (c *Client) RemoveLocationFromGroup(ctx context.Context, params RemoveLocationFromGroupParams) (RemoveLocationFromGroupRes, error)
- func (c *Client) RemoveOrganizationMember(ctx context.Context, params RemoveOrganizationMemberParams) (RemoveOrganizationMemberRes, error)
- func (c *Client) RevokeAPIToken(ctx context.Context, params RevokeAPITokenParams) (jx.Raw, error)
- func (c *Client) TransferGroup(ctx context.Context, request *TransferGroupReq, params TransferGroupParams) (TransferGroupRes, error)
- func (c *Client) UnarchiveGroup(ctx context.Context, params UnarchiveGroupParams) (UnarchiveGroupRes, error)
- func (c *Client) UpdateDatabaseConfiguration(ctx context.Context, request *DatabaseConfigurationInput, ...) (*DatabaseConfigurationResponse, error)
- func (c *Client) UpdateGroupDatabases(ctx context.Context, params UpdateGroupDatabasesParams) (UpdateGroupDatabasesRes, error)
- func (c *Client) UpdateOrganization(ctx context.Context, request *UpdateOrganizationReq, ...) (*UpdateOrganizationOK, error)
- func (c *Client) UploadDatabaseDump(ctx context.Context, request *UploadDatabaseDumpReq, ...) (*UploadDatabaseDumpOK, error)
- func (c *Client) ValidateAPIToken(ctx context.Context) (*ValidateAPITokenOK, error)
- type ClientOption
- type CreateAPITokenParams
- type CreateDatabaseBadRequest
- func (s *CreateDatabaseBadRequest) Decode(d *jx.Decoder) error
- func (s *CreateDatabaseBadRequest) Encode(e *jx.Encoder)
- func (s *CreateDatabaseBadRequest) GetError() OptString
- func (s *CreateDatabaseBadRequest) MarshalJSON() ([]byte, error)
- func (s *CreateDatabaseBadRequest) SetError(val OptString)
- func (s *CreateDatabaseBadRequest) UnmarshalJSON(data []byte) error
- type CreateDatabaseConflict
- func (s *CreateDatabaseConflict) Decode(d *jx.Decoder) error
- func (s *CreateDatabaseConflict) Encode(e *jx.Encoder)
- func (s *CreateDatabaseConflict) GetError() OptString
- func (s *CreateDatabaseConflict) MarshalJSON() ([]byte, error)
- func (s *CreateDatabaseConflict) SetError(val OptString)
- func (s *CreateDatabaseConflict) UnmarshalJSON(data []byte) error
- type CreateDatabaseInput
- func (s *CreateDatabaseInput) Decode(d *jx.Decoder) error
- func (s *CreateDatabaseInput) Encode(e *jx.Encoder)
- func (s *CreateDatabaseInput) GetGroup() string
- func (s *CreateDatabaseInput) GetIsSchema() OptBool
- func (s *CreateDatabaseInput) GetName() string
- func (s *CreateDatabaseInput) GetSchema() OptString
- func (s *CreateDatabaseInput) GetSeed() OptCreateDatabaseInputSeed
- func (s *CreateDatabaseInput) GetSizeLimit() OptString
- func (s *CreateDatabaseInput) MarshalJSON() ([]byte, error)
- func (s *CreateDatabaseInput) SetGroup(val string)
- func (s *CreateDatabaseInput) SetIsSchema(val OptBool)
- func (s *CreateDatabaseInput) SetName(val string)
- func (s *CreateDatabaseInput) SetSchema(val OptString)
- func (s *CreateDatabaseInput) SetSeed(val OptCreateDatabaseInputSeed)
- func (s *CreateDatabaseInput) SetSizeLimit(val OptString)
- func (s *CreateDatabaseInput) UnmarshalJSON(data []byte) error
- func (s *CreateDatabaseInput) Validate() error
- type CreateDatabaseInputSeed
- func (s *CreateDatabaseInputSeed) Decode(d *jx.Decoder) error
- func (s *CreateDatabaseInputSeed) Encode(e *jx.Encoder)
- func (s *CreateDatabaseInputSeed) GetName() OptString
- func (s *CreateDatabaseInputSeed) GetTimestamp() OptString
- func (s *CreateDatabaseInputSeed) GetType() OptCreateDatabaseInputSeedType
- func (s *CreateDatabaseInputSeed) GetURL() OptString
- func (s *CreateDatabaseInputSeed) MarshalJSON() ([]byte, error)
- func (s *CreateDatabaseInputSeed) SetName(val OptString)
- func (s *CreateDatabaseInputSeed) SetTimestamp(val OptString)
- func (s *CreateDatabaseInputSeed) SetType(val OptCreateDatabaseInputSeedType)
- func (s *CreateDatabaseInputSeed) SetURL(val OptString)
- func (s *CreateDatabaseInputSeed) UnmarshalJSON(data []byte) error
- func (s *CreateDatabaseInputSeed) Validate() error
- type CreateDatabaseInputSeedType
- func (CreateDatabaseInputSeedType) AllValues() []CreateDatabaseInputSeedType
- func (s *CreateDatabaseInputSeedType) Decode(d *jx.Decoder) error
- func (s CreateDatabaseInputSeedType) Encode(e *jx.Encoder)
- func (s CreateDatabaseInputSeedType) MarshalJSON() ([]byte, error)
- func (s CreateDatabaseInputSeedType) MarshalText() ([]byte, error)
- func (s *CreateDatabaseInputSeedType) UnmarshalJSON(data []byte) error
- func (s *CreateDatabaseInputSeedType) UnmarshalText(data []byte) error
- func (s CreateDatabaseInputSeedType) Validate() error
- type CreateDatabaseOK
- func (s *CreateDatabaseOK) Decode(d *jx.Decoder) error
- func (s *CreateDatabaseOK) Encode(e *jx.Encoder)
- func (s *CreateDatabaseOK) GetDatabase() OptCreateDatabaseOutput
- func (s *CreateDatabaseOK) MarshalJSON() ([]byte, error)
- func (s *CreateDatabaseOK) SetDatabase(val OptCreateDatabaseOutput)
- func (s *CreateDatabaseOK) UnmarshalJSON(data []byte) error
- type CreateDatabaseOutput
- func (s *CreateDatabaseOutput) Decode(d *jx.Decoder) error
- func (s *CreateDatabaseOutput) Encode(e *jx.Encoder)
- func (s *CreateDatabaseOutput) GetDbId() OptDbId
- func (s *CreateDatabaseOutput) GetHostname() OptHostname
- func (s *CreateDatabaseOutput) GetName() OptName
- func (s *CreateDatabaseOutput) MarshalJSON() ([]byte, error)
- func (s *CreateDatabaseOutput) SetDbId(val OptDbId)
- func (s *CreateDatabaseOutput) SetHostname(val OptHostname)
- func (s *CreateDatabaseOutput) SetName(val OptName)
- func (s *CreateDatabaseOutput) UnmarshalJSON(data []byte) error
- type CreateDatabaseParams
- type CreateDatabaseRes
- type CreateDatabaseTokenAuthorization
- type CreateDatabaseTokenBadRequest
- func (s *CreateDatabaseTokenBadRequest) Decode(d *jx.Decoder) error
- func (s *CreateDatabaseTokenBadRequest) Encode(e *jx.Encoder)
- func (s *CreateDatabaseTokenBadRequest) GetError() OptString
- func (s *CreateDatabaseTokenBadRequest) MarshalJSON() ([]byte, error)
- func (s *CreateDatabaseTokenBadRequest) SetError(val OptString)
- func (s *CreateDatabaseTokenBadRequest) UnmarshalJSON(data []byte) error
- type CreateDatabaseTokenOK
- func (s *CreateDatabaseTokenOK) Decode(d *jx.Decoder) error
- func (s *CreateDatabaseTokenOK) Encode(e *jx.Encoder)
- func (s *CreateDatabaseTokenOK) GetJwt() OptString
- func (s *CreateDatabaseTokenOK) MarshalJSON() ([]byte, error)
- func (s *CreateDatabaseTokenOK) SetJwt(val OptString)
- func (s *CreateDatabaseTokenOK) UnmarshalJSON(data []byte) error
- type CreateDatabaseTokenParams
- type CreateDatabaseTokenRes
- type CreateGroupConflict
- func (s *CreateGroupConflict) Decode(d *jx.Decoder) error
- func (s *CreateGroupConflict) Encode(e *jx.Encoder)
- func (s *CreateGroupConflict) GetError() OptString
- func (s *CreateGroupConflict) MarshalJSON() ([]byte, error)
- func (s *CreateGroupConflict) SetError(val OptString)
- func (s *CreateGroupConflict) UnmarshalJSON(data []byte) error
- type CreateGroupOK
- func (s *CreateGroupOK) Decode(d *jx.Decoder) error
- func (s *CreateGroupOK) Encode(e *jx.Encoder)
- func (s *CreateGroupOK) GetGroup() OptBaseGroup
- func (s *CreateGroupOK) MarshalJSON() ([]byte, error)
- func (s *CreateGroupOK) SetGroup(val OptBaseGroup)
- func (s *CreateGroupOK) UnmarshalJSON(data []byte) error
- type CreateGroupParams
- type CreateGroupRes
- type CreateGroupTokenAuthorization
- type CreateGroupTokenBadRequest
- func (s *CreateGroupTokenBadRequest) Decode(d *jx.Decoder) error
- func (s *CreateGroupTokenBadRequest) Encode(e *jx.Encoder)
- func (s *CreateGroupTokenBadRequest) GetError() OptString
- func (s *CreateGroupTokenBadRequest) MarshalJSON() ([]byte, error)
- func (s *CreateGroupTokenBadRequest) SetError(val OptString)
- func (s *CreateGroupTokenBadRequest) UnmarshalJSON(data []byte) error
- type CreateGroupTokenOK
- func (s *CreateGroupTokenOK) Decode(d *jx.Decoder) error
- func (s *CreateGroupTokenOK) Encode(e *jx.Encoder)
- func (s *CreateGroupTokenOK) GetJwt() OptString
- func (s *CreateGroupTokenOK) MarshalJSON() ([]byte, error)
- func (s *CreateGroupTokenOK) SetJwt(val OptString)
- func (s *CreateGroupTokenOK) UnmarshalJSON(data []byte) error
- type CreateGroupTokenParams
- type CreateGroupTokenRes
- type CreateTokenInput
- func (s *CreateTokenInput) Decode(d *jx.Decoder) error
- func (s *CreateTokenInput) Encode(e *jx.Encoder)
- func (s *CreateTokenInput) GetPermissions() OptCreateTokenInputPermissions
- func (s *CreateTokenInput) MarshalJSON() ([]byte, error)
- func (s *CreateTokenInput) SetPermissions(val OptCreateTokenInputPermissions)
- func (s *CreateTokenInput) UnmarshalJSON(data []byte) error
- type CreateTokenInputPermissions
- func (s *CreateTokenInputPermissions) Decode(d *jx.Decoder) error
- func (s *CreateTokenInputPermissions) Encode(e *jx.Encoder)
- func (s *CreateTokenInputPermissions) GetReadAttach() OptCreateTokenInputPermissionsReadAttach
- func (s *CreateTokenInputPermissions) MarshalJSON() ([]byte, error)
- func (s *CreateTokenInputPermissions) SetReadAttach(val OptCreateTokenInputPermissionsReadAttach)
- func (s *CreateTokenInputPermissions) UnmarshalJSON(data []byte) error
- type CreateTokenInputPermissionsReadAttach
- func (s *CreateTokenInputPermissionsReadAttach) Decode(d *jx.Decoder) error
- func (s *CreateTokenInputPermissionsReadAttach) Encode(e *jx.Encoder)
- func (s *CreateTokenInputPermissionsReadAttach) GetDatabases() []string
- func (s *CreateTokenInputPermissionsReadAttach) MarshalJSON() ([]byte, error)
- func (s *CreateTokenInputPermissionsReadAttach) SetDatabases(val []string)
- func (s *CreateTokenInputPermissionsReadAttach) UnmarshalJSON(data []byte) error
- type Database
- func (s *Database) Decode(d *jx.Decoder) error
- func (s *Database) Encode(e *jx.Encoder)
- func (s *Database) GetAllowAttach() OptBool
- func (s *Database) GetArchived() OptBool
- func (s *Database) GetBlockReads() OptBool
- func (s *Database) GetBlockWrites() OptBool
- func (s *Database) GetDbId() OptString
- func (s *Database) GetGroup() OptString
- func (s *Database) GetHostname() OptString
- func (s *Database) GetIsSchema() OptBool
- func (s *Database) GetName() OptString
- func (s *Database) GetPrimaryRegion() OptString
- func (s *Database) GetRegions() []string
- func (s *Database) GetSchema() OptNilString
- func (s *Database) GetType() OptString
- func (s *Database) GetVersion() OptString
- func (s *Database) MarshalJSON() ([]byte, error)
- func (s *Database) SetAllowAttach(val OptBool)
- func (s *Database) SetArchived(val OptBool)
- func (s *Database) SetBlockReads(val OptBool)
- func (s *Database) SetBlockWrites(val OptBool)
- func (s *Database) SetDbId(val OptString)
- func (s *Database) SetGroup(val OptString)
- func (s *Database) SetHostname(val OptString)
- func (s *Database) SetIsSchema(val OptBool)
- func (s *Database) SetName(val OptString)
- func (s *Database) SetPrimaryRegion(val OptString)
- func (s *Database) SetRegions(val []string)
- func (s *Database) SetSchema(val OptNilString)
- func (s *Database) SetType(val OptString)
- func (s *Database) SetVersion(val OptString)
- func (s *Database) UnmarshalJSON(data []byte) error
- type DatabaseConfigurationInput
- func (s *DatabaseConfigurationInput) Decode(d *jx.Decoder) error
- func (s *DatabaseConfigurationInput) Encode(e *jx.Encoder)
- func (s *DatabaseConfigurationInput) GetAllowAttach() OptBool
- func (s *DatabaseConfigurationInput) GetBlockReads() OptBool
- func (s *DatabaseConfigurationInput) GetBlockWrites() OptBool
- func (s *DatabaseConfigurationInput) GetSizeLimit() OptString
- func (s *DatabaseConfigurationInput) MarshalJSON() ([]byte, error)
- func (s *DatabaseConfigurationInput) SetAllowAttach(val OptBool)
- func (s *DatabaseConfigurationInput) SetBlockReads(val OptBool)
- func (s *DatabaseConfigurationInput) SetBlockWrites(val OptBool)
- func (s *DatabaseConfigurationInput) SetSizeLimit(val OptString)
- func (s *DatabaseConfigurationInput) UnmarshalJSON(data []byte) error
- type DatabaseConfigurationResponse
- func (s *DatabaseConfigurationResponse) Decode(d *jx.Decoder) error
- func (s *DatabaseConfigurationResponse) Encode(e *jx.Encoder)
- func (s *DatabaseConfigurationResponse) GetAllowAttach() OptBool
- func (s *DatabaseConfigurationResponse) GetBlockReads() OptBool
- func (s *DatabaseConfigurationResponse) GetBlockWrites() OptBool
- func (s *DatabaseConfigurationResponse) GetSizeLimit() OptString
- func (s *DatabaseConfigurationResponse) MarshalJSON() ([]byte, error)
- func (s *DatabaseConfigurationResponse) SetAllowAttach(val OptBool)
- func (s *DatabaseConfigurationResponse) SetBlockReads(val OptBool)
- func (s *DatabaseConfigurationResponse) SetBlockWrites(val OptBool)
- func (s *DatabaseConfigurationResponse) SetSizeLimit(val OptString)
- func (s *DatabaseConfigurationResponse) UnmarshalJSON(data []byte) error
- type DatabaseNotFoundResponse
- func (s *DatabaseNotFoundResponse) Decode(d *jx.Decoder) error
- func (s *DatabaseNotFoundResponse) Encode(e *jx.Encoder)
- func (s *DatabaseNotFoundResponse) GetError() OptString
- func (s *DatabaseNotFoundResponse) MarshalJSON() ([]byte, error)
- func (s *DatabaseNotFoundResponse) SetError(val OptString)
- func (s *DatabaseNotFoundResponse) UnmarshalJSON(data []byte) error
- type DatabaseStatsOutput
- func (s *DatabaseStatsOutput) Decode(d *jx.Decoder) error
- func (s *DatabaseStatsOutput) Encode(e *jx.Encoder)
- func (s *DatabaseStatsOutput) GetQuery() OptString
- func (s *DatabaseStatsOutput) GetRowsRead() OptInt
- func (s *DatabaseStatsOutput) GetRowsWritten() OptInt
- func (s *DatabaseStatsOutput) MarshalJSON() ([]byte, error)
- func (s *DatabaseStatsOutput) SetQuery(val OptString)
- func (s *DatabaseStatsOutput) SetRowsRead(val OptInt)
- func (s *DatabaseStatsOutput) SetRowsWritten(val OptInt)
- func (s *DatabaseStatsOutput) UnmarshalJSON(data []byte) error
- type DatabaseUsageObject
- func (s *DatabaseUsageObject) Decode(d *jx.Decoder) error
- func (s *DatabaseUsageObject) Encode(e *jx.Encoder)
- func (s *DatabaseUsageObject) GetRowsRead() OptInt
- func (s *DatabaseUsageObject) GetRowsWritten() OptInt
- func (s *DatabaseUsageObject) GetStorageBytes() OptInt
- func (s *DatabaseUsageObject) MarshalJSON() ([]byte, error)
- func (s *DatabaseUsageObject) SetRowsRead(val OptInt)
- func (s *DatabaseUsageObject) SetRowsWritten(val OptInt)
- func (s *DatabaseUsageObject) SetStorageBytes(val OptInt)
- func (s *DatabaseUsageObject) UnmarshalJSON(data []byte) error
- type DatabaseUsageOutput
- func (s *DatabaseUsageOutput) Decode(d *jx.Decoder) error
- func (s *DatabaseUsageOutput) Encode(e *jx.Encoder)
- func (s *DatabaseUsageOutput) GetInstances() []DatabaseUsageOutputInstancesItem
- func (s *DatabaseUsageOutput) GetTotal() OptDatabaseUsageObject
- func (s *DatabaseUsageOutput) GetUUID() OptDbId
- func (s *DatabaseUsageOutput) MarshalJSON() ([]byte, error)
- func (s *DatabaseUsageOutput) SetInstances(val []DatabaseUsageOutputInstancesItem)
- func (s *DatabaseUsageOutput) SetTotal(val OptDatabaseUsageObject)
- func (s *DatabaseUsageOutput) SetUUID(val OptDbId)
- func (s *DatabaseUsageOutput) UnmarshalJSON(data []byte) error
- type DatabaseUsageOutputInstancesItem
- func (s *DatabaseUsageOutputInstancesItem) Decode(d *jx.Decoder) error
- func (s *DatabaseUsageOutputInstancesItem) Encode(e *jx.Encoder)
- func (s *DatabaseUsageOutputInstancesItem) GetUUID() OptString
- func (s *DatabaseUsageOutputInstancesItem) GetUsage() OptDatabaseUsageObject
- func (s *DatabaseUsageOutputInstancesItem) MarshalJSON() ([]byte, error)
- func (s *DatabaseUsageOutputInstancesItem) SetUUID(val OptString)
- func (s *DatabaseUsageOutputInstancesItem) SetUsage(val OptDatabaseUsageObject)
- func (s *DatabaseUsageOutputInstancesItem) UnmarshalJSON(data []byte) error
- type DbId
- type DeleteDatabaseOK
- func (s *DeleteDatabaseOK) Decode(d *jx.Decoder) error
- func (s *DeleteDatabaseOK) Encode(e *jx.Encoder)
- func (s *DeleteDatabaseOK) GetDatabase() OptString
- func (s *DeleteDatabaseOK) MarshalJSON() ([]byte, error)
- func (s *DeleteDatabaseOK) SetDatabase(val OptString)
- func (s *DeleteDatabaseOK) UnmarshalJSON(data []byte) error
- type DeleteDatabaseParams
- type DeleteDatabaseRes
- type DeleteGroupOK
- func (s *DeleteGroupOK) Decode(d *jx.Decoder) error
- func (s *DeleteGroupOK) Encode(e *jx.Encoder)
- func (s *DeleteGroupOK) GetGroup() OptBaseGroup
- func (s *DeleteGroupOK) MarshalJSON() ([]byte, error)
- func (s *DeleteGroupOK) SetGroup(val OptBaseGroup)
- func (s *DeleteGroupOK) UnmarshalJSON(data []byte) error
- type DeleteGroupParams
- type DeleteGroupRes
- type DeleteOrganizationInviteByEmailNotFound
- func (s *DeleteOrganizationInviteByEmailNotFound) Decode(d *jx.Decoder) error
- func (s *DeleteOrganizationInviteByEmailNotFound) Encode(e *jx.Encoder)
- func (s *DeleteOrganizationInviteByEmailNotFound) GetCode() OptString
- func (s *DeleteOrganizationInviteByEmailNotFound) GetError() OptString
- func (s *DeleteOrganizationInviteByEmailNotFound) MarshalJSON() ([]byte, error)
- func (s *DeleteOrganizationInviteByEmailNotFound) SetCode(val OptString)
- func (s *DeleteOrganizationInviteByEmailNotFound) SetError(val OptString)
- func (s *DeleteOrganizationInviteByEmailNotFound) UnmarshalJSON(data []byte) error
- type DeleteOrganizationInviteByEmailOK
- type DeleteOrganizationInviteByEmailParams
- type DeleteOrganizationInviteByEmailRes
- type ErrorHandler
- type Extensions
- func (Extensions) AllValues() []Extensions
- func (s *Extensions) Decode(d *jx.Decoder) error
- func (s Extensions) Encode(e *jx.Encoder)
- func (s Extensions) MarshalJSON() ([]byte, error)
- func (s Extensions) MarshalText() ([]byte, error)
- func (s *Extensions) UnmarshalJSON(data []byte) error
- func (s *Extensions) UnmarshalText(data []byte) error
- func (s Extensions) Validate() error
- type GetDatabaseConfigurationParams
- type GetDatabaseInstanceOK
- func (s *GetDatabaseInstanceOK) Decode(d *jx.Decoder) error
- func (s *GetDatabaseInstanceOK) Encode(e *jx.Encoder)
- func (s *GetDatabaseInstanceOK) GetInstance() OptInstance
- func (s *GetDatabaseInstanceOK) MarshalJSON() ([]byte, error)
- func (s *GetDatabaseInstanceOK) SetInstance(val OptInstance)
- func (s *GetDatabaseInstanceOK) UnmarshalJSON(data []byte) error
- func (s *GetDatabaseInstanceOK) Validate() error
- type GetDatabaseInstanceParams
- type GetDatabaseOK
- func (s *GetDatabaseOK) Decode(d *jx.Decoder) error
- func (s *GetDatabaseOK) Encode(e *jx.Encoder)
- func (s *GetDatabaseOK) GetDatabase() OptDatabase
- func (s *GetDatabaseOK) MarshalJSON() ([]byte, error)
- func (s *GetDatabaseOK) SetDatabase(val OptDatabase)
- func (s *GetDatabaseOK) UnmarshalJSON(data []byte) error
- type GetDatabaseParams
- type GetDatabaseRes
- type GetDatabaseStatsOK
- func (s *GetDatabaseStatsOK) Decode(d *jx.Decoder) error
- func (s *GetDatabaseStatsOK) Encode(e *jx.Encoder)
- func (s *GetDatabaseStatsOK) GetTopQueries() []DatabaseStatsOutput
- func (s *GetDatabaseStatsOK) MarshalJSON() ([]byte, error)
- func (s *GetDatabaseStatsOK) SetTopQueries(val []DatabaseStatsOutput)
- func (s *GetDatabaseStatsOK) UnmarshalJSON(data []byte) error
- type GetDatabaseStatsParams
- type GetDatabaseStatsRes
- type GetDatabaseUsageBadRequest
- func (s *GetDatabaseUsageBadRequest) Decode(d *jx.Decoder) error
- func (s *GetDatabaseUsageBadRequest) Encode(e *jx.Encoder)
- func (s *GetDatabaseUsageBadRequest) GetError() OptString
- func (s *GetDatabaseUsageBadRequest) MarshalJSON() ([]byte, error)
- func (s *GetDatabaseUsageBadRequest) SetError(val OptString)
- func (s *GetDatabaseUsageBadRequest) UnmarshalJSON(data []byte) error
- type GetDatabaseUsageOK
- func (s *GetDatabaseUsageOK) Decode(d *jx.Decoder) error
- func (s *GetDatabaseUsageOK) Encode(e *jx.Encoder)
- func (s *GetDatabaseUsageOK) GetDatabase() OptDatabaseUsageOutput
- func (s *GetDatabaseUsageOK) MarshalJSON() ([]byte, error)
- func (s *GetDatabaseUsageOK) SetDatabase(val OptDatabaseUsageOutput)
- func (s *GetDatabaseUsageOK) UnmarshalJSON(data []byte) error
- type GetDatabaseUsageParams
- type GetDatabaseUsageRes
- type GetGroupOK
- type GetGroupParams
- type GetGroupRes
- type GetOrganizationSubscriptionOK
- func (s *GetOrganizationSubscriptionOK) Decode(d *jx.Decoder) error
- func (s *GetOrganizationSubscriptionOK) Encode(e *jx.Encoder)
- func (s *GetOrganizationSubscriptionOK) GetOverages() OptBool
- func (s *GetOrganizationSubscriptionOK) GetPlan() OptString
- func (s *GetOrganizationSubscriptionOK) GetSubscription() OptString
- func (s *GetOrganizationSubscriptionOK) GetTimeline() OptString
- func (s *GetOrganizationSubscriptionOK) MarshalJSON() ([]byte, error)
- func (s *GetOrganizationSubscriptionOK) SetOverages(val OptBool)
- func (s *GetOrganizationSubscriptionOK) SetPlan(val OptString)
- func (s *GetOrganizationSubscriptionOK) SetSubscription(val OptString)
- func (s *GetOrganizationSubscriptionOK) SetTimeline(val OptString)
- func (s *GetOrganizationSubscriptionOK) UnmarshalJSON(data []byte) error
- type GetOrganizationSubscriptionParams
- type GetOrganizationUsageOK
- func (s *GetOrganizationUsageOK) Decode(d *jx.Decoder) error
- func (s *GetOrganizationUsageOK) Encode(e *jx.Encoder)
- func (s *GetOrganizationUsageOK) GetOrganization() OptGetOrganizationUsageOKOrganization
- func (s *GetOrganizationUsageOK) MarshalJSON() ([]byte, error)
- func (s *GetOrganizationUsageOK) SetOrganization(val OptGetOrganizationUsageOKOrganization)
- func (s *GetOrganizationUsageOK) UnmarshalJSON(data []byte) error
- type GetOrganizationUsageOKOrganization
- func (s *GetOrganizationUsageOKOrganization) Decode(d *jx.Decoder) error
- func (s *GetOrganizationUsageOKOrganization) Encode(e *jx.Encoder)
- func (s *GetOrganizationUsageOKOrganization) GetDatabases() []DatabaseUsageOutput
- func (s *GetOrganizationUsageOKOrganization) GetUUID() OptString
- func (s *GetOrganizationUsageOKOrganization) GetUsage() OptGetOrganizationUsageOKOrganizationUsage
- func (s *GetOrganizationUsageOKOrganization) MarshalJSON() ([]byte, error)
- func (s *GetOrganizationUsageOKOrganization) SetDatabases(val []DatabaseUsageOutput)
- func (s *GetOrganizationUsageOKOrganization) SetUUID(val OptString)
- func (s *GetOrganizationUsageOKOrganization) SetUsage(val OptGetOrganizationUsageOKOrganizationUsage)
- func (s *GetOrganizationUsageOKOrganization) UnmarshalJSON(data []byte) error
- type GetOrganizationUsageOKOrganizationUsage
- func (s *GetOrganizationUsageOKOrganizationUsage) Decode(d *jx.Decoder) error
- func (s *GetOrganizationUsageOKOrganizationUsage) Encode(e *jx.Encoder)
- func (s *GetOrganizationUsageOKOrganizationUsage) GetBytesSynced() OptInt
- func (s *GetOrganizationUsageOKOrganizationUsage) GetDatabases() OptInt
- func (s *GetOrganizationUsageOKOrganizationUsage) GetGroups() OptInt
- func (s *GetOrganizationUsageOKOrganizationUsage) GetLocations() OptInt
- func (s *GetOrganizationUsageOKOrganizationUsage) GetRowsRead() OptInt
- func (s *GetOrganizationUsageOKOrganizationUsage) GetRowsWritten() OptInt
- func (s *GetOrganizationUsageOKOrganizationUsage) GetStorage() OptInt
- func (s *GetOrganizationUsageOKOrganizationUsage) MarshalJSON() ([]byte, error)
- func (s *GetOrganizationUsageOKOrganizationUsage) SetBytesSynced(val OptInt)
- func (s *GetOrganizationUsageOKOrganizationUsage) SetDatabases(val OptInt)
- func (s *GetOrganizationUsageOKOrganizationUsage) SetGroups(val OptInt)
- func (s *GetOrganizationUsageOKOrganizationUsage) SetLocations(val OptInt)
- func (s *GetOrganizationUsageOKOrganizationUsage) SetRowsRead(val OptInt)
- func (s *GetOrganizationUsageOKOrganizationUsage) SetRowsWritten(val OptInt)
- func (s *GetOrganizationUsageOKOrganizationUsage) SetStorage(val OptInt)
- func (s *GetOrganizationUsageOKOrganizationUsage) UnmarshalJSON(data []byte) error
- type GetOrganizationUsageParams
- type GroupNotFoundResponse
- func (s *GroupNotFoundResponse) Decode(d *jx.Decoder) error
- func (s *GroupNotFoundResponse) Encode(e *jx.Encoder)
- func (s *GroupNotFoundResponse) GetError() OptString
- func (s *GroupNotFoundResponse) MarshalJSON() ([]byte, error)
- func (s *GroupNotFoundResponse) SetError(val OptString)
- func (s *GroupNotFoundResponse) UnmarshalJSON(data []byte) error
- type Handler
- type Hostname
- type Instance
- func (s *Instance) Decode(d *jx.Decoder) error
- func (s *Instance) Encode(e *jx.Encoder)
- func (s *Instance) GetHostname() OptString
- func (s *Instance) GetName() OptString
- func (s *Instance) GetRegion() OptString
- func (s *Instance) GetType() OptInstanceType
- func (s *Instance) GetUUID() OptString
- func (s *Instance) MarshalJSON() ([]byte, error)
- func (s *Instance) SetHostname(val OptString)
- func (s *Instance) SetName(val OptString)
- func (s *Instance) SetRegion(val OptString)
- func (s *Instance) SetType(val OptInstanceType)
- func (s *Instance) SetUUID(val OptString)
- func (s *Instance) UnmarshalJSON(data []byte) error
- func (s *Instance) Validate() error
- type InstanceType
- func (InstanceType) AllValues() []InstanceType
- func (s *InstanceType) Decode(d *jx.Decoder) error
- func (s InstanceType) Encode(e *jx.Encoder)
- func (s InstanceType) MarshalJSON() ([]byte, error)
- func (s InstanceType) MarshalText() ([]byte, error)
- func (s *InstanceType) UnmarshalJSON(data []byte) error
- func (s *InstanceType) UnmarshalText(data []byte) error
- func (s InstanceType) Validate() error
- type InvalidateDatabaseTokensOK
- type InvalidateDatabaseTokensParams
- type InvalidateDatabaseTokensRes
- type InvalidateGroupTokensOK
- type InvalidateGroupTokensParams
- type InvalidateGroupTokensRes
- type Invite
- func (s *Invite) Decode(d *jx.Decoder) error
- func (s *Invite) Encode(e *jx.Encoder)
- func (s *Invite) GetAccepted() OptBool
- func (s *Invite) GetCreatedAt() OptString
- func (s *Invite) GetDeletedAt() OptString
- func (s *Invite) GetEmail() OptString
- func (s *Invite) GetID() OptInt
- func (s *Invite) GetOrganization() OptOrganization
- func (s *Invite) GetOrganizationID() OptInt
- func (s *Invite) GetRole() OptInviteRole
- func (s *Invite) GetToken() OptString
- func (s *Invite) GetUpdatedAt() OptString
- func (s *Invite) MarshalJSON() ([]byte, error)
- func (s *Invite) SetAccepted(val OptBool)
- func (s *Invite) SetCreatedAt(val OptString)
- func (s *Invite) SetDeletedAt(val OptString)
- func (s *Invite) SetEmail(val OptString)
- func (s *Invite) SetID(val OptInt)
- func (s *Invite) SetOrganization(val OptOrganization)
- func (s *Invite) SetOrganizationID(val OptInt)
- func (s *Invite) SetRole(val OptInviteRole)
- func (s *Invite) SetToken(val OptString)
- func (s *Invite) SetUpdatedAt(val OptString)
- func (s *Invite) UnmarshalJSON(data []byte) error
- func (s *Invite) Validate() error
- type InviteOrganizationMemberOK
- func (s *InviteOrganizationMemberOK) Decode(d *jx.Decoder) error
- func (s *InviteOrganizationMemberOK) Encode(e *jx.Encoder)
- func (s *InviteOrganizationMemberOK) GetInvited() OptInvite
- func (s *InviteOrganizationMemberOK) MarshalJSON() ([]byte, error)
- func (s *InviteOrganizationMemberOK) SetInvited(val OptInvite)
- func (s *InviteOrganizationMemberOK) UnmarshalJSON(data []byte) error
- func (s *InviteOrganizationMemberOK) Validate() error
- type InviteOrganizationMemberParams
- type InviteOrganizationMemberReq
- func (s *InviteOrganizationMemberReq) Decode(d *jx.Decoder) error
- func (s *InviteOrganizationMemberReq) Encode(e *jx.Encoder)
- func (s *InviteOrganizationMemberReq) GetEmail() string
- func (s *InviteOrganizationMemberReq) GetRole() OptInviteOrganizationMemberReqRole
- func (s *InviteOrganizationMemberReq) MarshalJSON() ([]byte, error)
- func (s *InviteOrganizationMemberReq) SetEmail(val string)
- func (s *InviteOrganizationMemberReq) SetRole(val OptInviteOrganizationMemberReqRole)
- func (s *InviteOrganizationMemberReq) UnmarshalJSON(data []byte) error
- func (s *InviteOrganizationMemberReq) Validate() error
- type InviteOrganizationMemberReqRole
- func (InviteOrganizationMemberReqRole) AllValues() []InviteOrganizationMemberReqRole
- func (s *InviteOrganizationMemberReqRole) Decode(d *jx.Decoder) error
- func (s InviteOrganizationMemberReqRole) Encode(e *jx.Encoder)
- func (s InviteOrganizationMemberReqRole) MarshalJSON() ([]byte, error)
- func (s InviteOrganizationMemberReqRole) MarshalText() ([]byte, error)
- func (s *InviteOrganizationMemberReqRole) UnmarshalJSON(data []byte) error
- func (s *InviteOrganizationMemberReqRole) UnmarshalText(data []byte) error
- func (s InviteOrganizationMemberReqRole) Validate() error
- type InviteRole
- func (InviteRole) AllValues() []InviteRole
- func (s *InviteRole) Decode(d *jx.Decoder) error
- func (s InviteRole) Encode(e *jx.Encoder)
- func (s InviteRole) MarshalJSON() ([]byte, error)
- func (s InviteRole) MarshalText() ([]byte, error)
- func (s *InviteRole) UnmarshalJSON(data []byte) error
- func (s *InviteRole) UnmarshalText(data []byte) error
- func (s InviteRole) Validate() error
- type Invoker
- type Labeler
- type ListAPITokensOK
- func (s *ListAPITokensOK) Decode(d *jx.Decoder) error
- func (s *ListAPITokensOK) Encode(e *jx.Encoder)
- func (s *ListAPITokensOK) GetTokens() []APIToken
- func (s *ListAPITokensOK) MarshalJSON() ([]byte, error)
- func (s *ListAPITokensOK) SetTokens(val []APIToken)
- func (s *ListAPITokensOK) UnmarshalJSON(data []byte) error
- type ListDatabaseInstancesOK
- func (s *ListDatabaseInstancesOK) Decode(d *jx.Decoder) error
- func (s *ListDatabaseInstancesOK) Encode(e *jx.Encoder)
- func (s *ListDatabaseInstancesOK) GetInstances() []Instance
- func (s *ListDatabaseInstancesOK) MarshalJSON() ([]byte, error)
- func (s *ListDatabaseInstancesOK) SetInstances(val []Instance)
- func (s *ListDatabaseInstancesOK) UnmarshalJSON(data []byte) error
- func (s *ListDatabaseInstancesOK) Validate() error
- type ListDatabaseInstancesParams
- type ListDatabasesOK
- func (s *ListDatabasesOK) Decode(d *jx.Decoder) error
- func (s *ListDatabasesOK) Encode(e *jx.Encoder)
- func (s *ListDatabasesOK) GetDatabases() []Database
- func (s *ListDatabasesOK) MarshalJSON() ([]byte, error)
- func (s *ListDatabasesOK) SetDatabases(val []Database)
- func (s *ListDatabasesOK) UnmarshalJSON(data []byte) error
- type ListDatabasesParams
- type ListGroupsOK
- func (s *ListGroupsOK) Decode(d *jx.Decoder) error
- func (s *ListGroupsOK) Encode(e *jx.Encoder)
- func (s *ListGroupsOK) GetGroups() []BaseGroup
- func (s *ListGroupsOK) MarshalJSON() ([]byte, error)
- func (s *ListGroupsOK) SetGroups(val []BaseGroup)
- func (s *ListGroupsOK) UnmarshalJSON(data []byte) error
- type ListGroupsParams
- type ListLocationsOK
- func (s *ListLocationsOK) Decode(d *jx.Decoder) error
- func (s *ListLocationsOK) Encode(e *jx.Encoder)
- func (s *ListLocationsOK) GetLocations() OptListLocationsOKLocations
- func (s *ListLocationsOK) MarshalJSON() ([]byte, error)
- func (s *ListLocationsOK) SetLocations(val OptListLocationsOKLocations)
- func (s *ListLocationsOK) UnmarshalJSON(data []byte) error
- type ListLocationsOKLocations
- type ListOrganizationAuditLogsOK
- func (s *ListOrganizationAuditLogsOK) Decode(d *jx.Decoder) error
- func (s *ListOrganizationAuditLogsOK) Encode(e *jx.Encoder)
- func (s *ListOrganizationAuditLogsOK) GetAuditLogs() []AuditLog
- func (s *ListOrganizationAuditLogsOK) GetPagination() OptListOrganizationAuditLogsOKPagination
- func (s *ListOrganizationAuditLogsOK) MarshalJSON() ([]byte, error)
- func (s *ListOrganizationAuditLogsOK) SetAuditLogs(val []AuditLog)
- func (s *ListOrganizationAuditLogsOK) SetPagination(val OptListOrganizationAuditLogsOKPagination)
- func (s *ListOrganizationAuditLogsOK) UnmarshalJSON(data []byte) error
- func (s *ListOrganizationAuditLogsOK) Validate() error
- type ListOrganizationAuditLogsOKPagination
- func (s *ListOrganizationAuditLogsOKPagination) Decode(d *jx.Decoder) error
- func (s *ListOrganizationAuditLogsOKPagination) Encode(e *jx.Encoder)
- func (s *ListOrganizationAuditLogsOKPagination) GetPage() OptInt
- func (s *ListOrganizationAuditLogsOKPagination) GetPageSize() OptInt
- func (s *ListOrganizationAuditLogsOKPagination) GetTotalPages() OptInt
- func (s *ListOrganizationAuditLogsOKPagination) GetTotalRows() OptInt
- func (s *ListOrganizationAuditLogsOKPagination) MarshalJSON() ([]byte, error)
- func (s *ListOrganizationAuditLogsOKPagination) SetPage(val OptInt)
- func (s *ListOrganizationAuditLogsOKPagination) SetPageSize(val OptInt)
- func (s *ListOrganizationAuditLogsOKPagination) SetTotalPages(val OptInt)
- func (s *ListOrganizationAuditLogsOKPagination) SetTotalRows(val OptInt)
- func (s *ListOrganizationAuditLogsOKPagination) UnmarshalJSON(data []byte) error
- type ListOrganizationAuditLogsParams
- type ListOrganizationInvitesOK
- func (s *ListOrganizationInvitesOK) Decode(d *jx.Decoder) error
- func (s *ListOrganizationInvitesOK) Encode(e *jx.Encoder)
- func (s *ListOrganizationInvitesOK) GetInvites() []Invite
- func (s *ListOrganizationInvitesOK) MarshalJSON() ([]byte, error)
- func (s *ListOrganizationInvitesOK) SetInvites(val []Invite)
- func (s *ListOrganizationInvitesOK) UnmarshalJSON(data []byte) error
- func (s *ListOrganizationInvitesOK) Validate() error
- type ListOrganizationInvitesParams
- type ListOrganizationInvoicesOK
- func (s *ListOrganizationInvoicesOK) Decode(d *jx.Decoder) error
- func (s *ListOrganizationInvoicesOK) Encode(e *jx.Encoder)
- func (s *ListOrganizationInvoicesOK) GetInvoices() []ListOrganizationInvoicesOKInvoicesItem
- func (s *ListOrganizationInvoicesOK) MarshalJSON() ([]byte, error)
- func (s *ListOrganizationInvoicesOK) SetInvoices(val []ListOrganizationInvoicesOKInvoicesItem)
- func (s *ListOrganizationInvoicesOK) UnmarshalJSON(data []byte) error
- type ListOrganizationInvoicesOKInvoicesItem
- func (s *ListOrganizationInvoicesOKInvoicesItem) Decode(d *jx.Decoder) error
- func (s *ListOrganizationInvoicesOKInvoicesItem) Encode(e *jx.Encoder)
- func (s *ListOrganizationInvoicesOKInvoicesItem) GetAmountDue() OptString
- func (s *ListOrganizationInvoicesOKInvoicesItem) GetDueDate() OptString
- func (s *ListOrganizationInvoicesOKInvoicesItem) GetInvoiceNumber() OptString
- func (s *ListOrganizationInvoicesOKInvoicesItem) GetInvoicePdf() OptString
- func (s *ListOrganizationInvoicesOKInvoicesItem) GetPaidAt() OptString
- func (s *ListOrganizationInvoicesOKInvoicesItem) GetPaymentFailedAt() OptString
- func (s *ListOrganizationInvoicesOKInvoicesItem) MarshalJSON() ([]byte, error)
- func (s *ListOrganizationInvoicesOKInvoicesItem) SetAmountDue(val OptString)
- func (s *ListOrganizationInvoicesOKInvoicesItem) SetDueDate(val OptString)
- func (s *ListOrganizationInvoicesOKInvoicesItem) SetInvoiceNumber(val OptString)
- func (s *ListOrganizationInvoicesOKInvoicesItem) SetInvoicePdf(val OptString)
- func (s *ListOrganizationInvoicesOKInvoicesItem) SetPaidAt(val OptString)
- func (s *ListOrganizationInvoicesOKInvoicesItem) SetPaymentFailedAt(val OptString)
- func (s *ListOrganizationInvoicesOKInvoicesItem) UnmarshalJSON(data []byte) error
- type ListOrganizationInvoicesParams
- type ListOrganizationInvoicesType
- type ListOrganizationMembersOK
- func (s *ListOrganizationMembersOK) Decode(d *jx.Decoder) error
- func (s *ListOrganizationMembersOK) Encode(e *jx.Encoder)
- func (s *ListOrganizationMembersOK) GetMembers() []Member
- func (s *ListOrganizationMembersOK) MarshalJSON() ([]byte, error)
- func (s *ListOrganizationMembersOK) SetMembers(val []Member)
- func (s *ListOrganizationMembersOK) UnmarshalJSON(data []byte) error
- func (s *ListOrganizationMembersOK) Validate() error
- type ListOrganizationMembersParams
- type ListOrganizationPlansOK
- func (s *ListOrganizationPlansOK) Decode(d *jx.Decoder) error
- func (s *ListOrganizationPlansOK) Encode(e *jx.Encoder)
- func (s *ListOrganizationPlansOK) GetName() OptString
- func (s *ListOrganizationPlansOK) GetPrice() OptString
- func (s *ListOrganizationPlansOK) GetQuotas() OptPlanQuotas
- func (s *ListOrganizationPlansOK) MarshalJSON() ([]byte, error)
- func (s *ListOrganizationPlansOK) SetName(val OptString)
- func (s *ListOrganizationPlansOK) SetPrice(val OptString)
- func (s *ListOrganizationPlansOK) SetQuotas(val OptPlanQuotas)
- func (s *ListOrganizationPlansOK) UnmarshalJSON(data []byte) error
- type ListOrganizationPlansParams
- type Member
- func (s *Member) Decode(d *jx.Decoder) error
- func (s *Member) Encode(e *jx.Encoder)
- func (s *Member) GetEmail() OptString
- func (s *Member) GetRole() OptMemberRole
- func (s *Member) GetUsername() OptString
- func (s *Member) MarshalJSON() ([]byte, error)
- func (s *Member) SetEmail(val OptString)
- func (s *Member) SetRole(val OptMemberRole)
- func (s *Member) SetUsername(val OptString)
- func (s *Member) UnmarshalJSON(data []byte) error
- func (s *Member) Validate() error
- type MemberRole
- func (MemberRole) AllValues() []MemberRole
- func (s *MemberRole) Decode(d *jx.Decoder) error
- func (s MemberRole) Encode(e *jx.Encoder)
- func (s MemberRole) MarshalJSON() ([]byte, error)
- func (s MemberRole) MarshalText() ([]byte, error)
- func (s *MemberRole) UnmarshalJSON(data []byte) error
- func (s *MemberRole) UnmarshalText(data []byte) error
- func (s MemberRole) Validate() error
- type Middleware
- type Name
- type NewGroup
- func (s *NewGroup) Decode(d *jx.Decoder) error
- func (s *NewGroup) Encode(e *jx.Encoder)
- func (s *NewGroup) GetExtensions() OptExtensions
- func (s *NewGroup) GetLocation() string
- func (s *NewGroup) GetName() string
- func (s *NewGroup) MarshalJSON() ([]byte, error)
- func (s *NewGroup) SetExtensions(val OptExtensions)
- func (s *NewGroup) SetLocation(val string)
- func (s *NewGroup) SetName(val string)
- func (s *NewGroup) UnmarshalJSON(data []byte) error
- func (s *NewGroup) Validate() error
- type OptAddOrganizationMemberReqRole
- func (o *OptAddOrganizationMemberReqRole) Decode(d *jx.Decoder) error
- func (o OptAddOrganizationMemberReqRole) Encode(e *jx.Encoder)
- func (o OptAddOrganizationMemberReqRole) Get() (v AddOrganizationMemberReqRole, ok bool)
- func (o OptAddOrganizationMemberReqRole) IsSet() bool
- func (s OptAddOrganizationMemberReqRole) MarshalJSON() ([]byte, error)
- func (o OptAddOrganizationMemberReqRole) Or(d AddOrganizationMemberReqRole) AddOrganizationMemberReqRole
- func (o *OptAddOrganizationMemberReqRole) Reset()
- func (o *OptAddOrganizationMemberReqRole) SetTo(v AddOrganizationMemberReqRole)
- func (s *OptAddOrganizationMemberReqRole) UnmarshalJSON(data []byte) error
- type OptAuditLogCode
- func (o *OptAuditLogCode) Decode(d *jx.Decoder) error
- func (o OptAuditLogCode) Encode(e *jx.Encoder)
- func (o OptAuditLogCode) Get() (v AuditLogCode, ok bool)
- func (o OptAuditLogCode) IsSet() bool
- func (s OptAuditLogCode) MarshalJSON() ([]byte, error)
- func (o OptAuditLogCode) Or(d AuditLogCode) AuditLogCode
- func (o *OptAuditLogCode) Reset()
- func (o *OptAuditLogCode) SetTo(v AuditLogCode)
- func (s *OptAuditLogCode) UnmarshalJSON(data []byte) error
- type OptBaseGroup
- func (o *OptBaseGroup) Decode(d *jx.Decoder) error
- func (o OptBaseGroup) Encode(e *jx.Encoder)
- func (o OptBaseGroup) Get() (v BaseGroup, ok bool)
- func (o OptBaseGroup) IsSet() bool
- func (s OptBaseGroup) MarshalJSON() ([]byte, error)
- func (o OptBaseGroup) Or(d BaseGroup) BaseGroup
- func (o *OptBaseGroup) Reset()
- func (o *OptBaseGroup) SetTo(v BaseGroup)
- func (s *OptBaseGroup) UnmarshalJSON(data []byte) error
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptCreateDatabaseInputSeed
- func (o *OptCreateDatabaseInputSeed) Decode(d *jx.Decoder) error
- func (o OptCreateDatabaseInputSeed) Encode(e *jx.Encoder)
- func (o OptCreateDatabaseInputSeed) Get() (v CreateDatabaseInputSeed, ok bool)
- func (o OptCreateDatabaseInputSeed) IsSet() bool
- func (s OptCreateDatabaseInputSeed) MarshalJSON() ([]byte, error)
- func (o OptCreateDatabaseInputSeed) Or(d CreateDatabaseInputSeed) CreateDatabaseInputSeed
- func (o *OptCreateDatabaseInputSeed) Reset()
- func (o *OptCreateDatabaseInputSeed) SetTo(v CreateDatabaseInputSeed)
- func (s *OptCreateDatabaseInputSeed) UnmarshalJSON(data []byte) error
- type OptCreateDatabaseInputSeedType
- func (o *OptCreateDatabaseInputSeedType) Decode(d *jx.Decoder) error
- func (o OptCreateDatabaseInputSeedType) Encode(e *jx.Encoder)
- func (o OptCreateDatabaseInputSeedType) Get() (v CreateDatabaseInputSeedType, ok bool)
- func (o OptCreateDatabaseInputSeedType) IsSet() bool
- func (s OptCreateDatabaseInputSeedType) MarshalJSON() ([]byte, error)
- func (o OptCreateDatabaseInputSeedType) Or(d CreateDatabaseInputSeedType) CreateDatabaseInputSeedType
- func (o *OptCreateDatabaseInputSeedType) Reset()
- func (o *OptCreateDatabaseInputSeedType) SetTo(v CreateDatabaseInputSeedType)
- func (s *OptCreateDatabaseInputSeedType) UnmarshalJSON(data []byte) error
- type OptCreateDatabaseOutput
- func (o *OptCreateDatabaseOutput) Decode(d *jx.Decoder) error
- func (o OptCreateDatabaseOutput) Encode(e *jx.Encoder)
- func (o OptCreateDatabaseOutput) Get() (v CreateDatabaseOutput, ok bool)
- func (o OptCreateDatabaseOutput) IsSet() bool
- func (s OptCreateDatabaseOutput) MarshalJSON() ([]byte, error)
- func (o OptCreateDatabaseOutput) Or(d CreateDatabaseOutput) CreateDatabaseOutput
- func (o *OptCreateDatabaseOutput) Reset()
- func (o *OptCreateDatabaseOutput) SetTo(v CreateDatabaseOutput)
- func (s *OptCreateDatabaseOutput) UnmarshalJSON(data []byte) error
- type OptCreateDatabaseTokenAuthorization
- func (o OptCreateDatabaseTokenAuthorization) Get() (v CreateDatabaseTokenAuthorization, ok bool)
- func (o OptCreateDatabaseTokenAuthorization) IsSet() bool
- func (o OptCreateDatabaseTokenAuthorization) Or(d CreateDatabaseTokenAuthorization) CreateDatabaseTokenAuthorization
- func (o *OptCreateDatabaseTokenAuthorization) Reset()
- func (o *OptCreateDatabaseTokenAuthorization) SetTo(v CreateDatabaseTokenAuthorization)
- type OptCreateGroupTokenAuthorization
- func (o OptCreateGroupTokenAuthorization) Get() (v CreateGroupTokenAuthorization, ok bool)
- func (o OptCreateGroupTokenAuthorization) IsSet() bool
- func (o OptCreateGroupTokenAuthorization) Or(d CreateGroupTokenAuthorization) CreateGroupTokenAuthorization
- func (o *OptCreateGroupTokenAuthorization) Reset()
- func (o *OptCreateGroupTokenAuthorization) SetTo(v CreateGroupTokenAuthorization)
- type OptCreateTokenInput
- func (o *OptCreateTokenInput) Decode(d *jx.Decoder) error
- func (o OptCreateTokenInput) Encode(e *jx.Encoder)
- func (o OptCreateTokenInput) Get() (v CreateTokenInput, ok bool)
- func (o OptCreateTokenInput) IsSet() bool
- func (s OptCreateTokenInput) MarshalJSON() ([]byte, error)
- func (o OptCreateTokenInput) Or(d CreateTokenInput) CreateTokenInput
- func (o *OptCreateTokenInput) Reset()
- func (o *OptCreateTokenInput) SetTo(v CreateTokenInput)
- func (s *OptCreateTokenInput) UnmarshalJSON(data []byte) error
- type OptCreateTokenInputPermissions
- func (o *OptCreateTokenInputPermissions) Decode(d *jx.Decoder) error
- func (o OptCreateTokenInputPermissions) Encode(e *jx.Encoder)
- func (o OptCreateTokenInputPermissions) Get() (v CreateTokenInputPermissions, ok bool)
- func (o OptCreateTokenInputPermissions) IsSet() bool
- func (s OptCreateTokenInputPermissions) MarshalJSON() ([]byte, error)
- func (o OptCreateTokenInputPermissions) Or(d CreateTokenInputPermissions) CreateTokenInputPermissions
- func (o *OptCreateTokenInputPermissions) Reset()
- func (o *OptCreateTokenInputPermissions) SetTo(v CreateTokenInputPermissions)
- func (s *OptCreateTokenInputPermissions) UnmarshalJSON(data []byte) error
- type OptCreateTokenInputPermissionsReadAttach
- func (o *OptCreateTokenInputPermissionsReadAttach) Decode(d *jx.Decoder) error
- func (o OptCreateTokenInputPermissionsReadAttach) Encode(e *jx.Encoder)
- func (o OptCreateTokenInputPermissionsReadAttach) Get() (v CreateTokenInputPermissionsReadAttach, ok bool)
- func (o OptCreateTokenInputPermissionsReadAttach) IsSet() bool
- func (s OptCreateTokenInputPermissionsReadAttach) MarshalJSON() ([]byte, error)
- func (o OptCreateTokenInputPermissionsReadAttach) Or(d CreateTokenInputPermissionsReadAttach) CreateTokenInputPermissionsReadAttach
- func (o *OptCreateTokenInputPermissionsReadAttach) Reset()
- func (o *OptCreateTokenInputPermissionsReadAttach) SetTo(v CreateTokenInputPermissionsReadAttach)
- func (s *OptCreateTokenInputPermissionsReadAttach) UnmarshalJSON(data []byte) error
- type OptDatabase
- func (o *OptDatabase) Decode(d *jx.Decoder) error
- func (o OptDatabase) Encode(e *jx.Encoder)
- func (o OptDatabase) Get() (v Database, ok bool)
- func (o OptDatabase) IsSet() bool
- func (s OptDatabase) MarshalJSON() ([]byte, error)
- func (o OptDatabase) Or(d Database) Database
- func (o *OptDatabase) Reset()
- func (o *OptDatabase) SetTo(v Database)
- func (s *OptDatabase) UnmarshalJSON(data []byte) error
- type OptDatabaseUsageObject
- func (o *OptDatabaseUsageObject) Decode(d *jx.Decoder) error
- func (o OptDatabaseUsageObject) Encode(e *jx.Encoder)
- func (o OptDatabaseUsageObject) Get() (v DatabaseUsageObject, ok bool)
- func (o OptDatabaseUsageObject) IsSet() bool
- func (s OptDatabaseUsageObject) MarshalJSON() ([]byte, error)
- func (o OptDatabaseUsageObject) Or(d DatabaseUsageObject) DatabaseUsageObject
- func (o *OptDatabaseUsageObject) Reset()
- func (o *OptDatabaseUsageObject) SetTo(v DatabaseUsageObject)
- func (s *OptDatabaseUsageObject) UnmarshalJSON(data []byte) error
- type OptDatabaseUsageOutput
- func (o *OptDatabaseUsageOutput) Decode(d *jx.Decoder) error
- func (o OptDatabaseUsageOutput) Encode(e *jx.Encoder)
- func (o OptDatabaseUsageOutput) Get() (v DatabaseUsageOutput, ok bool)
- func (o OptDatabaseUsageOutput) IsSet() bool
- func (s OptDatabaseUsageOutput) MarshalJSON() ([]byte, error)
- func (o OptDatabaseUsageOutput) Or(d DatabaseUsageOutput) DatabaseUsageOutput
- func (o *OptDatabaseUsageOutput) Reset()
- func (o *OptDatabaseUsageOutput) SetTo(v DatabaseUsageOutput)
- func (s *OptDatabaseUsageOutput) UnmarshalJSON(data []byte) error
- type OptDateTime
- type OptDbId
- func (o *OptDbId) Decode(d *jx.Decoder) error
- func (o OptDbId) Encode(e *jx.Encoder)
- func (o OptDbId) Get() (v DbId, ok bool)
- func (o OptDbId) IsSet() bool
- func (s OptDbId) MarshalJSON() ([]byte, error)
- func (o OptDbId) Or(d DbId) DbId
- func (o *OptDbId) Reset()
- func (o *OptDbId) SetTo(v DbId)
- func (s *OptDbId) UnmarshalJSON(data []byte) error
- type OptExtensions
- func (o *OptExtensions) Decode(d *jx.Decoder) error
- func (o OptExtensions) Encode(e *jx.Encoder)
- func (o OptExtensions) Get() (v Extensions, ok bool)
- func (o OptExtensions) IsSet() bool
- func (s OptExtensions) MarshalJSON() ([]byte, error)
- func (o OptExtensions) Or(d Extensions) Extensions
- func (o *OptExtensions) Reset()
- func (o *OptExtensions) SetTo(v Extensions)
- func (s *OptExtensions) UnmarshalJSON(data []byte) error
- type OptGetOrganizationUsageOKOrganization
- func (o *OptGetOrganizationUsageOKOrganization) Decode(d *jx.Decoder) error
- func (o OptGetOrganizationUsageOKOrganization) Encode(e *jx.Encoder)
- func (o OptGetOrganizationUsageOKOrganization) Get() (v GetOrganizationUsageOKOrganization, ok bool)
- func (o OptGetOrganizationUsageOKOrganization) IsSet() bool
- func (s OptGetOrganizationUsageOKOrganization) MarshalJSON() ([]byte, error)
- func (o OptGetOrganizationUsageOKOrganization) Or(d GetOrganizationUsageOKOrganization) GetOrganizationUsageOKOrganization
- func (o *OptGetOrganizationUsageOKOrganization) Reset()
- func (o *OptGetOrganizationUsageOKOrganization) SetTo(v GetOrganizationUsageOKOrganization)
- func (s *OptGetOrganizationUsageOKOrganization) UnmarshalJSON(data []byte) error
- type OptGetOrganizationUsageOKOrganizationUsage
- func (o *OptGetOrganizationUsageOKOrganizationUsage) Decode(d *jx.Decoder) error
- func (o OptGetOrganizationUsageOKOrganizationUsage) Encode(e *jx.Encoder)
- func (o OptGetOrganizationUsageOKOrganizationUsage) Get() (v GetOrganizationUsageOKOrganizationUsage, ok bool)
- func (o OptGetOrganizationUsageOKOrganizationUsage) IsSet() bool
- func (s OptGetOrganizationUsageOKOrganizationUsage) MarshalJSON() ([]byte, error)
- func (o OptGetOrganizationUsageOKOrganizationUsage) Or(d GetOrganizationUsageOKOrganizationUsage) GetOrganizationUsageOKOrganizationUsage
- func (o *OptGetOrganizationUsageOKOrganizationUsage) Reset()
- func (o *OptGetOrganizationUsageOKOrganizationUsage) SetTo(v GetOrganizationUsageOKOrganizationUsage)
- func (s *OptGetOrganizationUsageOKOrganizationUsage) UnmarshalJSON(data []byte) error
- type OptHostname
- func (o *OptHostname) Decode(d *jx.Decoder) error
- func (o OptHostname) Encode(e *jx.Encoder)
- func (o OptHostname) Get() (v Hostname, ok bool)
- func (o OptHostname) IsSet() bool
- func (s OptHostname) MarshalJSON() ([]byte, error)
- func (o OptHostname) Or(d Hostname) Hostname
- func (o *OptHostname) Reset()
- func (o *OptHostname) SetTo(v Hostname)
- func (s *OptHostname) UnmarshalJSON(data []byte) error
- type OptInstance
- func (o *OptInstance) Decode(d *jx.Decoder) error
- func (o OptInstance) Encode(e *jx.Encoder)
- func (o OptInstance) Get() (v Instance, ok bool)
- func (o OptInstance) IsSet() bool
- func (s OptInstance) MarshalJSON() ([]byte, error)
- func (o OptInstance) Or(d Instance) Instance
- func (o *OptInstance) Reset()
- func (o *OptInstance) SetTo(v Instance)
- func (s *OptInstance) UnmarshalJSON(data []byte) error
- type OptInstanceType
- func (o *OptInstanceType) Decode(d *jx.Decoder) error
- func (o OptInstanceType) Encode(e *jx.Encoder)
- func (o OptInstanceType) Get() (v InstanceType, ok bool)
- func (o OptInstanceType) IsSet() bool
- func (s OptInstanceType) MarshalJSON() ([]byte, error)
- func (o OptInstanceType) Or(d InstanceType) InstanceType
- func (o *OptInstanceType) Reset()
- func (o *OptInstanceType) SetTo(v InstanceType)
- func (s *OptInstanceType) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptInvite
- func (o *OptInvite) Decode(d *jx.Decoder) error
- func (o OptInvite) Encode(e *jx.Encoder)
- func (o OptInvite) Get() (v Invite, ok bool)
- func (o OptInvite) IsSet() bool
- func (s OptInvite) MarshalJSON() ([]byte, error)
- func (o OptInvite) Or(d Invite) Invite
- func (o *OptInvite) Reset()
- func (o *OptInvite) SetTo(v Invite)
- func (s *OptInvite) UnmarshalJSON(data []byte) error
- type OptInviteOrganizationMemberReqRole
- func (o *OptInviteOrganizationMemberReqRole) Decode(d *jx.Decoder) error
- func (o OptInviteOrganizationMemberReqRole) Encode(e *jx.Encoder)
- func (o OptInviteOrganizationMemberReqRole) Get() (v InviteOrganizationMemberReqRole, ok bool)
- func (o OptInviteOrganizationMemberReqRole) IsSet() bool
- func (s OptInviteOrganizationMemberReqRole) MarshalJSON() ([]byte, error)
- func (o OptInviteOrganizationMemberReqRole) Or(d InviteOrganizationMemberReqRole) InviteOrganizationMemberReqRole
- func (o *OptInviteOrganizationMemberReqRole) Reset()
- func (o *OptInviteOrganizationMemberReqRole) SetTo(v InviteOrganizationMemberReqRole)
- func (s *OptInviteOrganizationMemberReqRole) UnmarshalJSON(data []byte) error
- type OptInviteRole
- func (o *OptInviteRole) Decode(d *jx.Decoder) error
- func (o OptInviteRole) Encode(e *jx.Encoder)
- func (o OptInviteRole) Get() (v InviteRole, ok bool)
- func (o OptInviteRole) IsSet() bool
- func (s OptInviteRole) MarshalJSON() ([]byte, error)
- func (o OptInviteRole) Or(d InviteRole) InviteRole
- func (o *OptInviteRole) Reset()
- func (o *OptInviteRole) SetTo(v InviteRole)
- func (s *OptInviteRole) UnmarshalJSON(data []byte) error
- type OptListLocationsOKLocations
- func (o *OptListLocationsOKLocations) Decode(d *jx.Decoder) error
- func (o OptListLocationsOKLocations) Encode(e *jx.Encoder)
- func (o OptListLocationsOKLocations) Get() (v ListLocationsOKLocations, ok bool)
- func (o OptListLocationsOKLocations) IsSet() bool
- func (s OptListLocationsOKLocations) MarshalJSON() ([]byte, error)
- func (o OptListLocationsOKLocations) Or(d ListLocationsOKLocations) ListLocationsOKLocations
- func (o *OptListLocationsOKLocations) Reset()
- func (o *OptListLocationsOKLocations) SetTo(v ListLocationsOKLocations)
- func (s *OptListLocationsOKLocations) UnmarshalJSON(data []byte) error
- type OptListOrganizationAuditLogsOKPagination
- func (o *OptListOrganizationAuditLogsOKPagination) Decode(d *jx.Decoder) error
- func (o OptListOrganizationAuditLogsOKPagination) Encode(e *jx.Encoder)
- func (o OptListOrganizationAuditLogsOKPagination) Get() (v ListOrganizationAuditLogsOKPagination, ok bool)
- func (o OptListOrganizationAuditLogsOKPagination) IsSet() bool
- func (s OptListOrganizationAuditLogsOKPagination) MarshalJSON() ([]byte, error)
- func (o OptListOrganizationAuditLogsOKPagination) Or(d ListOrganizationAuditLogsOKPagination) ListOrganizationAuditLogsOKPagination
- func (o *OptListOrganizationAuditLogsOKPagination) Reset()
- func (o *OptListOrganizationAuditLogsOKPagination) SetTo(v ListOrganizationAuditLogsOKPagination)
- func (s *OptListOrganizationAuditLogsOKPagination) UnmarshalJSON(data []byte) error
- type OptListOrganizationInvoicesType
- func (o OptListOrganizationInvoicesType) Get() (v ListOrganizationInvoicesType, ok bool)
- func (o OptListOrganizationInvoicesType) IsSet() bool
- func (o OptListOrganizationInvoicesType) Or(d ListOrganizationInvoicesType) ListOrganizationInvoicesType
- func (o *OptListOrganizationInvoicesType) Reset()
- func (o *OptListOrganizationInvoicesType) SetTo(v ListOrganizationInvoicesType)
- type OptMemberRole
- func (o *OptMemberRole) Decode(d *jx.Decoder) error
- func (o OptMemberRole) Encode(e *jx.Encoder)
- func (o OptMemberRole) Get() (v MemberRole, ok bool)
- func (o OptMemberRole) IsSet() bool
- func (s OptMemberRole) MarshalJSON() ([]byte, error)
- func (o OptMemberRole) Or(d MemberRole) MemberRole
- func (o *OptMemberRole) Reset()
- func (o *OptMemberRole) SetTo(v MemberRole)
- func (s *OptMemberRole) UnmarshalJSON(data []byte) error
- type OptName
- func (o *OptName) Decode(d *jx.Decoder) error
- func (o OptName) Encode(e *jx.Encoder)
- func (o OptName) Get() (v Name, ok bool)
- func (o OptName) IsSet() bool
- func (s OptName) MarshalJSON() ([]byte, error)
- func (o OptName) Or(d Name) Name
- func (o *OptName) Reset()
- func (o *OptName) SetTo(v Name)
- func (s *OptName) UnmarshalJSON(data []byte) error
- type OptNilString
- func (o *OptNilString) Decode(d *jx.Decoder) error
- func (o OptNilString) Encode(e *jx.Encoder)
- func (o OptNilString) Get() (v string, ok bool)
- func (o OptNilString) IsNull() bool
- func (o OptNilString) IsSet() bool
- func (s OptNilString) MarshalJSON() ([]byte, error)
- func (o OptNilString) Or(d string) string
- func (o *OptNilString) Reset()
- func (o *OptNilString) SetTo(v string)
- func (o *OptNilString) SetToNull()
- func (s *OptNilString) UnmarshalJSON(data []byte) error
- type OptOrganization
- func (o *OptOrganization) Decode(d *jx.Decoder) error
- func (o OptOrganization) Encode(e *jx.Encoder)
- func (o OptOrganization) Get() (v Organization, ok bool)
- func (o OptOrganization) IsSet() bool
- func (s OptOrganization) MarshalJSON() ([]byte, error)
- func (o OptOrganization) Or(d Organization) Organization
- func (o *OptOrganization) Reset()
- func (o *OptOrganization) SetTo(v Organization)
- func (s *OptOrganization) UnmarshalJSON(data []byte) error
- type OptOrganizationType
- func (o *OptOrganizationType) Decode(d *jx.Decoder) error
- func (o OptOrganizationType) Encode(e *jx.Encoder)
- func (o OptOrganizationType) Get() (v OrganizationType, ok bool)
- func (o OptOrganizationType) IsSet() bool
- func (s OptOrganizationType) MarshalJSON() ([]byte, error)
- func (o OptOrganizationType) Or(d OrganizationType) OrganizationType
- func (o *OptOrganizationType) Reset()
- func (o *OptOrganizationType) SetTo(v OrganizationType)
- func (s *OptOrganizationType) UnmarshalJSON(data []byte) error
- type OptPlanQuotas
- func (o *OptPlanQuotas) Decode(d *jx.Decoder) error
- func (o OptPlanQuotas) Encode(e *jx.Encoder)
- func (o OptPlanQuotas) Get() (v PlanQuotas, ok bool)
- func (o OptPlanQuotas) IsSet() bool
- func (s OptPlanQuotas) MarshalJSON() ([]byte, error)
- func (o OptPlanQuotas) Or(d PlanQuotas) PlanQuotas
- func (o *OptPlanQuotas) Reset()
- func (o *OptPlanQuotas) SetTo(v PlanQuotas)
- func (s *OptPlanQuotas) UnmarshalJSON(data []byte) error
- type OptRole
- func (o *OptRole) Decode(d *jx.Decoder) error
- func (o OptRole) Encode(e *jx.Encoder)
- func (o OptRole) Get() (v Role, ok bool)
- func (o OptRole) IsSet() bool
- func (s OptRole) MarshalJSON() ([]byte, error)
- func (o OptRole) Or(d Role) Role
- func (o *OptRole) Reset()
- func (o *OptRole) SetTo(v Role)
- func (s *OptRole) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptURI
- func (o *OptURI) Decode(d *jx.Decoder) error
- func (o OptURI) Encode(e *jx.Encoder)
- func (o OptURI) Get() (v url.URL, ok bool)
- func (o OptURI) IsSet() bool
- func (s OptURI) MarshalJSON() ([]byte, error)
- func (o OptURI) Or(d url.URL) url.URL
- func (o *OptURI) Reset()
- func (o *OptURI) SetTo(v url.URL)
- func (s *OptURI) UnmarshalJSON(data []byte) error
- type OptUsername
- func (o *OptUsername) Decode(d *jx.Decoder) error
- func (o OptUsername) Encode(e *jx.Encoder)
- func (o OptUsername) Get() (v Username, ok bool)
- func (o OptUsername) IsSet() bool
- func (s OptUsername) MarshalJSON() ([]byte, error)
- func (o OptUsername) Or(d Username) Username
- func (o *OptUsername) Reset()
- func (o *OptUsername) SetTo(v Username)
- func (s *OptUsername) UnmarshalJSON(data []byte) error
- type Option
- type Organization
- func (s *Organization) Decode(d *jx.Decoder) error
- func (s *Organization) Encode(e *jx.Encoder)
- func (s *Organization) GetBlockedReads() OptBool
- func (s *Organization) GetBlockedWrites() OptBool
- func (s *Organization) GetName() OptString
- func (s *Organization) GetOverages() OptBool
- func (s *Organization) GetSlug() OptString
- func (s *Organization) GetType() OptOrganizationType
- func (s *Organization) MarshalJSON() ([]byte, error)
- func (s *Organization) SetBlockedReads(val OptBool)
- func (s *Organization) SetBlockedWrites(val OptBool)
- func (s *Organization) SetName(val OptString)
- func (s *Organization) SetOverages(val OptBool)
- func (s *Organization) SetSlug(val OptString)
- func (s *Organization) SetType(val OptOrganizationType)
- func (s *Organization) UnmarshalJSON(data []byte) error
- func (s *Organization) Validate() error
- type OrganizationType
- func (OrganizationType) AllValues() []OrganizationType
- func (s *OrganizationType) Decode(d *jx.Decoder) error
- func (s OrganizationType) Encode(e *jx.Encoder)
- func (s OrganizationType) MarshalJSON() ([]byte, error)
- func (s OrganizationType) MarshalText() ([]byte, error)
- func (s *OrganizationType) UnmarshalJSON(data []byte) error
- func (s *OrganizationType) UnmarshalText(data []byte) error
- func (s OrganizationType) Validate() error
- type PlanQuotas
- func (s *PlanQuotas) Decode(d *jx.Decoder) error
- func (s *PlanQuotas) Encode(e *jx.Encoder)
- func (s *PlanQuotas) GetBytesSynced() OptInt
- func (s *PlanQuotas) GetDatabases() OptInt
- func (s *PlanQuotas) GetGroups() OptInt
- func (s *PlanQuotas) GetLocations() OptInt
- func (s *PlanQuotas) GetRowsRead() OptInt
- func (s *PlanQuotas) GetRowsWritten() OptInt
- func (s *PlanQuotas) GetStorage() OptInt
- func (s *PlanQuotas) MarshalJSON() ([]byte, error)
- func (s *PlanQuotas) SetBytesSynced(val OptInt)
- func (s *PlanQuotas) SetDatabases(val OptInt)
- func (s *PlanQuotas) SetGroups(val OptInt)
- func (s *PlanQuotas) SetLocations(val OptInt)
- func (s *PlanQuotas) SetRowsRead(val OptInt)
- func (s *PlanQuotas) SetRowsWritten(val OptInt)
- func (s *PlanQuotas) SetStorage(val OptInt)
- func (s *PlanQuotas) UnmarshalJSON(data []byte) error
- type RemoveLocationFromGroupBadRequest
- func (s *RemoveLocationFromGroupBadRequest) Decode(d *jx.Decoder) error
- func (s *RemoveLocationFromGroupBadRequest) Encode(e *jx.Encoder)
- func (s *RemoveLocationFromGroupBadRequest) GetError() OptString
- func (s *RemoveLocationFromGroupBadRequest) MarshalJSON() ([]byte, error)
- func (s *RemoveLocationFromGroupBadRequest) SetError(val OptString)
- func (s *RemoveLocationFromGroupBadRequest) UnmarshalJSON(data []byte) error
- type RemoveLocationFromGroupOK
- func (s *RemoveLocationFromGroupOK) Decode(d *jx.Decoder) error
- func (s *RemoveLocationFromGroupOK) Encode(e *jx.Encoder)
- func (s *RemoveLocationFromGroupOK) GetGroup() OptBaseGroup
- func (s *RemoveLocationFromGroupOK) MarshalJSON() ([]byte, error)
- func (s *RemoveLocationFromGroupOK) SetGroup(val OptBaseGroup)
- func (s *RemoveLocationFromGroupOK) UnmarshalJSON(data []byte) error
- type RemoveLocationFromGroupParams
- type RemoveLocationFromGroupRes
- type RemoveOrganizationMemberNotFound
- func (s *RemoveOrganizationMemberNotFound) Decode(d *jx.Decoder) error
- func (s *RemoveOrganizationMemberNotFound) Encode(e *jx.Encoder)
- func (s *RemoveOrganizationMemberNotFound) GetError() OptString
- func (s *RemoveOrganizationMemberNotFound) MarshalJSON() ([]byte, error)
- func (s *RemoveOrganizationMemberNotFound) SetError(val OptString)
- func (s *RemoveOrganizationMemberNotFound) UnmarshalJSON(data []byte) error
- type RemoveOrganizationMemberOK
- func (s *RemoveOrganizationMemberOK) Decode(d *jx.Decoder) error
- func (s *RemoveOrganizationMemberOK) Encode(e *jx.Encoder)
- func (s *RemoveOrganizationMemberOK) GetMember() OptUsername
- func (s *RemoveOrganizationMemberOK) MarshalJSON() ([]byte, error)
- func (s *RemoveOrganizationMemberOK) SetMember(val OptUsername)
- func (s *RemoveOrganizationMemberOK) UnmarshalJSON(data []byte) error
- type RemoveOrganizationMemberParams
- type RemoveOrganizationMemberRes
- type RevokeAPITokenParams
- type Role
- func (Role) AllValues() []Role
- func (s *Role) Decode(d *jx.Decoder) error
- func (s Role) Encode(e *jx.Encoder)
- func (s Role) MarshalJSON() ([]byte, error)
- func (s Role) MarshalText() ([]byte, error)
- func (s *Role) UnmarshalJSON(data []byte) error
- func (s *Role) UnmarshalText(data []byte) error
- func (s Role) Validate() error
- type Route
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type TransferGroupParams
- type TransferGroupReq
- func (s *TransferGroupReq) Decode(d *jx.Decoder) error
- func (s *TransferGroupReq) Encode(e *jx.Encoder)
- func (s *TransferGroupReq) GetOrganization() OptString
- func (s *TransferGroupReq) MarshalJSON() ([]byte, error)
- func (s *TransferGroupReq) SetOrganization(val OptString)
- func (s *TransferGroupReq) UnmarshalJSON(data []byte) error
- type TransferGroupRes
- type UnarchiveGroupOK
- func (s *UnarchiveGroupOK) Decode(d *jx.Decoder) error
- func (s *UnarchiveGroupOK) Encode(e *jx.Encoder)
- func (s *UnarchiveGroupOK) GetGroup() OptBaseGroup
- func (s *UnarchiveGroupOK) MarshalJSON() ([]byte, error)
- func (s *UnarchiveGroupOK) SetGroup(val OptBaseGroup)
- func (s *UnarchiveGroupOK) UnmarshalJSON(data []byte) error
- type UnarchiveGroupParams
- type UnarchiveGroupRes
- type UnimplementedHandler
- func (UnimplementedHandler) AddLocationToGroup(ctx context.Context, params AddLocationToGroupParams) (r AddLocationToGroupRes, _ error)
- func (UnimplementedHandler) AddOrganizationMember(ctx context.Context, req *AddOrganizationMemberReq, ...) (r AddOrganizationMemberRes, _ error)
- func (UnimplementedHandler) CreateAPIToken(ctx context.Context, params CreateAPITokenParams) (r jx.Raw, _ error)
- func (UnimplementedHandler) CreateDatabase(ctx context.Context, req *CreateDatabaseInput, params CreateDatabaseParams) (r CreateDatabaseRes, _ error)
- func (UnimplementedHandler) CreateDatabaseToken(ctx context.Context, req OptCreateTokenInput, params CreateDatabaseTokenParams) (r CreateDatabaseTokenRes, _ error)
- func (UnimplementedHandler) CreateGroup(ctx context.Context, req *NewGroup, params CreateGroupParams) (r CreateGroupRes, _ error)
- func (UnimplementedHandler) CreateGroupToken(ctx context.Context, req OptCreateTokenInput, params CreateGroupTokenParams) (r CreateGroupTokenRes, _ error)
- func (UnimplementedHandler) DeleteDatabase(ctx context.Context, params DeleteDatabaseParams) (r DeleteDatabaseRes, _ error)
- func (UnimplementedHandler) DeleteGroup(ctx context.Context, params DeleteGroupParams) (r DeleteGroupRes, _ error)
- func (UnimplementedHandler) DeleteOrganizationInviteByEmail(ctx context.Context, params DeleteOrganizationInviteByEmailParams) (r DeleteOrganizationInviteByEmailRes, _ error)
- func (UnimplementedHandler) GetDatabase(ctx context.Context, params GetDatabaseParams) (r GetDatabaseRes, _ error)
- func (UnimplementedHandler) GetDatabaseConfiguration(ctx context.Context, params GetDatabaseConfigurationParams) (r *DatabaseConfigurationResponse, _ error)
- func (UnimplementedHandler) GetDatabaseInstance(ctx context.Context, params GetDatabaseInstanceParams) (r *GetDatabaseInstanceOK, _ error)
- func (UnimplementedHandler) GetDatabaseStats(ctx context.Context, params GetDatabaseStatsParams) (r GetDatabaseStatsRes, _ error)
- func (UnimplementedHandler) GetDatabaseUsage(ctx context.Context, params GetDatabaseUsageParams) (r GetDatabaseUsageRes, _ error)
- func (UnimplementedHandler) GetGroup(ctx context.Context, params GetGroupParams) (r GetGroupRes, _ error)
- func (UnimplementedHandler) GetOrganizationSubscription(ctx context.Context, params GetOrganizationSubscriptionParams) (r *GetOrganizationSubscriptionOK, _ error)
- func (UnimplementedHandler) GetOrganizationUsage(ctx context.Context, params GetOrganizationUsageParams) (r *GetOrganizationUsageOK, _ error)
- func (UnimplementedHandler) InvalidateDatabaseTokens(ctx context.Context, params InvalidateDatabaseTokensParams) (r InvalidateDatabaseTokensRes, _ error)
- func (UnimplementedHandler) InvalidateGroupTokens(ctx context.Context, params InvalidateGroupTokensParams) (r InvalidateGroupTokensRes, _ error)
- func (UnimplementedHandler) InviteOrganizationMember(ctx context.Context, req *InviteOrganizationMemberReq, ...) (r *InviteOrganizationMemberOK, _ error)
- func (UnimplementedHandler) ListAPITokens(ctx context.Context) (r *ListAPITokensOK, _ error)
- func (UnimplementedHandler) ListDatabaseInstances(ctx context.Context, params ListDatabaseInstancesParams) (r *ListDatabaseInstancesOK, _ error)
- func (UnimplementedHandler) ListDatabases(ctx context.Context, params ListDatabasesParams) (r *ListDatabasesOK, _ error)
- func (UnimplementedHandler) ListGroups(ctx context.Context, params ListGroupsParams) (r *ListGroupsOK, _ error)
- func (UnimplementedHandler) ListLocations(ctx context.Context) (r *ListLocationsOK, _ error)
- func (UnimplementedHandler) ListOrganizationAuditLogs(ctx context.Context, params ListOrganizationAuditLogsParams) (r *ListOrganizationAuditLogsOK, _ error)
- func (UnimplementedHandler) ListOrganizationInvites(ctx context.Context, params ListOrganizationInvitesParams) (r *ListOrganizationInvitesOK, _ error)
- func (UnimplementedHandler) ListOrganizationInvoices(ctx context.Context, params ListOrganizationInvoicesParams) (r *ListOrganizationInvoicesOK, _ error)
- func (UnimplementedHandler) ListOrganizationMembers(ctx context.Context, params ListOrganizationMembersParams) (r *ListOrganizationMembersOK, _ error)
- func (UnimplementedHandler) ListOrganizationPlans(ctx context.Context, params ListOrganizationPlansParams) (r *ListOrganizationPlansOK, _ error)
- func (UnimplementedHandler) ListOrganizations(ctx context.Context) (r []Organization, _ error)
- func (UnimplementedHandler) RemoveLocationFromGroup(ctx context.Context, params RemoveLocationFromGroupParams) (r RemoveLocationFromGroupRes, _ error)
- func (UnimplementedHandler) RemoveOrganizationMember(ctx context.Context, params RemoveOrganizationMemberParams) (r RemoveOrganizationMemberRes, _ error)
- func (UnimplementedHandler) RevokeAPIToken(ctx context.Context, params RevokeAPITokenParams) (r jx.Raw, _ error)
- func (UnimplementedHandler) TransferGroup(ctx context.Context, req *TransferGroupReq, params TransferGroupParams) (r TransferGroupRes, _ error)
- func (UnimplementedHandler) UnarchiveGroup(ctx context.Context, params UnarchiveGroupParams) (r UnarchiveGroupRes, _ error)
- func (UnimplementedHandler) UpdateDatabaseConfiguration(ctx context.Context, req *DatabaseConfigurationInput, ...) (r *DatabaseConfigurationResponse, _ error)
- func (UnimplementedHandler) UpdateGroupDatabases(ctx context.Context, params UpdateGroupDatabasesParams) (r UpdateGroupDatabasesRes, _ error)
- func (UnimplementedHandler) UpdateOrganization(ctx context.Context, req *UpdateOrganizationReq, ...) (r *UpdateOrganizationOK, _ error)
- func (UnimplementedHandler) UploadDatabaseDump(ctx context.Context, req *UploadDatabaseDumpReq, ...) (r *UploadDatabaseDumpOK, _ error)
- func (UnimplementedHandler) ValidateAPIToken(ctx context.Context) (r *ValidateAPITokenOK, _ error)
- type UpdateDatabaseConfigurationParams
- type UpdateGroupDatabasesOK
- type UpdateGroupDatabasesParams
- type UpdateGroupDatabasesRes
- type UpdateOrganizationOK
- func (s *UpdateOrganizationOK) Decode(d *jx.Decoder) error
- func (s *UpdateOrganizationOK) Encode(e *jx.Encoder)
- func (s *UpdateOrganizationOK) GetOrganization() OptOrganization
- func (s *UpdateOrganizationOK) MarshalJSON() ([]byte, error)
- func (s *UpdateOrganizationOK) SetOrganization(val OptOrganization)
- func (s *UpdateOrganizationOK) UnmarshalJSON(data []byte) error
- func (s *UpdateOrganizationOK) Validate() error
- type UpdateOrganizationParams
- type UpdateOrganizationReq
- func (s *UpdateOrganizationReq) Decode(d *jx.Decoder) error
- func (s *UpdateOrganizationReq) Encode(e *jx.Encoder)
- func (s *UpdateOrganizationReq) GetOverages() OptBool
- func (s *UpdateOrganizationReq) MarshalJSON() ([]byte, error)
- func (s *UpdateOrganizationReq) SetOverages(val OptBool)
- func (s *UpdateOrganizationReq) UnmarshalJSON(data []byte) error
- type UploadDatabaseDumpOK
- func (s *UploadDatabaseDumpOK) Decode(d *jx.Decoder) error
- func (s *UploadDatabaseDumpOK) Encode(e *jx.Encoder)
- func (s *UploadDatabaseDumpOK) GetDumpURL() OptURI
- func (s *UploadDatabaseDumpOK) MarshalJSON() ([]byte, error)
- func (s *UploadDatabaseDumpOK) SetDumpURL(val OptURI)
- func (s *UploadDatabaseDumpOK) UnmarshalJSON(data []byte) error
- type UploadDatabaseDumpParams
- type UploadDatabaseDumpReq
- type Username
- type ValidateAPITokenOK
- func (s *ValidateAPITokenOK) Decode(d *jx.Decoder) error
- func (s *ValidateAPITokenOK) Encode(e *jx.Encoder)
- func (s *ValidateAPITokenOK) GetExp() OptInt
- func (s *ValidateAPITokenOK) MarshalJSON() ([]byte, error)
- func (s *ValidateAPITokenOK) SetExp(val OptInt)
- func (s *ValidateAPITokenOK) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*APIToken) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type AddLocationToGroupBadRequest ¶
type AddLocationToGroupBadRequest struct { // The error message. Error OptString `json:"error"` }
func (*AddLocationToGroupBadRequest) Decode ¶
func (s *AddLocationToGroupBadRequest) Decode(d *jx.Decoder) error
Decode decodes AddLocationToGroupBadRequest from json.
func (*AddLocationToGroupBadRequest) Encode ¶
func (s *AddLocationToGroupBadRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddLocationToGroupBadRequest) GetError ¶
func (s *AddLocationToGroupBadRequest) GetError() OptString
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 ¶
func (s *AddOrganizationMemberConflict) Decode(d *jx.Decoder) error
Decode decodes AddOrganizationMemberConflict from json.
func (*AddOrganizationMemberConflict) Encode ¶
func (s *AddOrganizationMemberConflict) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddOrganizationMemberConflict) GetError ¶
func (s *AddOrganizationMemberConflict) GetError() OptString
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 ¶
func (s *AddOrganizationMemberNotFound) Decode(d *jx.Decoder) error
Decode decodes AddOrganizationMemberNotFound from json.
func (*AddOrganizationMemberNotFound) Encode ¶
func (s *AddOrganizationMemberNotFound) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddOrganizationMemberNotFound) GetError ¶
func (s *AddOrganizationMemberNotFound) GetError() OptString
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 ¶
func (s *AddOrganizationMemberReq) GetRole() OptAddOrganizationMemberReqRole
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 ¶
func (s *AddOrganizationMemberReq) SetRole(val OptAddOrganizationMemberReqRole)
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 ¶
func (AddOrganizationMemberReqRole) AllValues() []AddOrganizationMemberReqRole
AllValues returns all AddOrganizationMemberReqRole values.
func (*AddOrganizationMemberReqRole) Decode ¶
func (s *AddOrganizationMemberReqRole) Decode(d *jx.Decoder) error
Decode decodes AddOrganizationMemberReqRole from json.
func (AddOrganizationMemberReqRole) Encode ¶
func (s AddOrganizationMemberReqRole) Encode(e *jx.Encoder)
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) GetCode ¶
func (s *AuditLog) GetCode() OptAuditLogCode
GetCode returns the value of Code.
func (*AuditLog) GetCreatedAt ¶
GetCreatedAt returns the value of CreatedAt.
func (*AuditLog) GetData ¶
func (s *AuditLog) GetData() *AuditLogData
GetData returns the value of Data.
func (*AuditLog) GetMessage ¶
GetMessage returns the value of Message.
func (*AuditLog) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*AuditLog) SetCode ¶
func (s *AuditLog) SetCode(val OptAuditLogCode)
SetCode sets the value of Code.
func (*AuditLog) SetCreatedAt ¶
SetCreatedAt sets the value of CreatedAt.
func (*AuditLog) SetData ¶
func (s *AuditLog) SetData(val *AuditLogData)
SetData sets the value of Data.
func (*AuditLog) SetMessage ¶
SetMessage sets the value of Message.
func (*AuditLog) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) GetArchived ¶
GetArchived returns the value of Archived.
func (*BaseGroup) GetLocations ¶
GetLocations returns the value of Locations.
func (*BaseGroup) GetPrimary ¶
GetPrimary returns the value of Primary.
func (*BaseGroup) GetVersion ¶
GetVersion returns the value of Version.
func (*BaseGroup) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*BaseGroup) SetArchived ¶
SetArchived sets the value of Archived.
func (*BaseGroup) SetLocations ¶
SetLocations sets the value of Locations.
func (*BaseGroup) SetPrimary ¶
SetPrimary sets the value of Primary.
func (*BaseGroup) SetVersion ¶
SetVersion sets the value of Version.
func (*BaseGroup) UnmarshalJSON ¶
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 ¶
func (c *Client) AddOrganizationMember(ctx context.Context, request *AddOrganizationMemberReq, params AddOrganizationMemberParams) (AddOrganizationMemberRes, error)
AddOrganizationMember invokes addOrganizationMember operation.
Add an existing Turso user to an organization.
POST /v1/organizations/{organizationName}/members
func (*Client) CreateAPIToken ¶
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 ¶
func (c *Client) InviteOrganizationMember(ctx context.Context, request *InviteOrganizationMemberReq, params InviteOrganizationMemberParams) (*InviteOrganizationMemberOK, error)
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 ¶
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 ¶
func (c *Client) UpdateDatabaseConfiguration(ctx context.Context, request *DatabaseConfigurationInput, params UpdateDatabaseConfigurationParams) (*DatabaseConfigurationResponse, error)
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 ¶
func (s *CreateDatabaseInput) GetSeed() OptCreateDatabaseInputSeed
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 ¶
func (s *CreateDatabaseInput) SetSeed(val OptCreateDatabaseInputSeed)
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 ¶
func (s *CreateDatabaseInputSeed) GetType() OptCreateDatabaseInputSeedType
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 ¶
func (s *CreateDatabaseInputSeed) SetType(val OptCreateDatabaseInputSeedType)
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 ¶
func (CreateDatabaseInputSeedType) AllValues() []CreateDatabaseInputSeedType
AllValues returns all CreateDatabaseInputSeedType values.
func (*CreateDatabaseInputSeedType) Decode ¶
func (s *CreateDatabaseInputSeedType) Decode(d *jx.Decoder) error
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 ¶
func (CreateDatabaseTokenAuthorization) AllValues() []CreateDatabaseTokenAuthorization
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 ¶
func (s CreateDatabaseTokenAuthorization) Validate() error
type CreateDatabaseTokenBadRequest ¶
type CreateDatabaseTokenBadRequest struct { // The error message. Error OptString `json:"error"` }
func (*CreateDatabaseTokenBadRequest) Decode ¶
func (s *CreateDatabaseTokenBadRequest) Decode(d *jx.Decoder) error
Decode decodes CreateDatabaseTokenBadRequest from json.
func (*CreateDatabaseTokenBadRequest) Encode ¶
func (s *CreateDatabaseTokenBadRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateDatabaseTokenBadRequest) GetError ¶
func (s *CreateDatabaseTokenBadRequest) GetError() OptString
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 ¶
func (CreateGroupTokenAuthorization) AllValues() []CreateGroupTokenAuthorization
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 ¶
func (s *CreateGroupTokenBadRequest) Decode(d *jx.Decoder) error
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 ¶
func (s *CreateTokenInput) GetPermissions() OptCreateTokenInputPermissions
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 ¶
func (s *CreateTokenInputPermissions) Decode(d *jx.Decoder) error
Decode decodes CreateTokenInputPermissions from json.
func (*CreateTokenInputPermissions) Encode ¶
func (s *CreateTokenInputPermissions) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateTokenInputPermissions) GetReadAttach ¶
func (s *CreateTokenInputPermissions) GetReadAttach() OptCreateTokenInputPermissionsReadAttach
GetReadAttach returns the value of ReadAttach.
func (*CreateTokenInputPermissions) MarshalJSON ¶
func (s *CreateTokenInputPermissions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateTokenInputPermissions) SetReadAttach ¶
func (s *CreateTokenInputPermissions) SetReadAttach(val OptCreateTokenInputPermissionsReadAttach)
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 ¶
func (s *CreateTokenInputPermissionsReadAttach) Decode(d *jx.Decoder) error
Decode decodes CreateTokenInputPermissionsReadAttach from json.
func (*CreateTokenInputPermissionsReadAttach) Encode ¶
func (s *CreateTokenInputPermissionsReadAttach) Encode(e *jx.Encoder)
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) GetAllowAttach ¶
GetAllowAttach returns the value of AllowAttach.
func (*Database) GetArchived ¶
GetArchived returns the value of Archived.
func (*Database) GetBlockReads ¶
GetBlockReads returns the value of BlockReads.
func (*Database) GetBlockWrites ¶
GetBlockWrites returns the value of BlockWrites.
func (*Database) GetHostname ¶
GetHostname returns the value of Hostname.
func (*Database) GetIsSchema ¶
GetIsSchema returns the value of IsSchema.
func (*Database) GetPrimaryRegion ¶
GetPrimaryRegion returns the value of PrimaryRegion.
func (*Database) GetRegions ¶
GetRegions returns the value of Regions.
func (*Database) GetSchema ¶
func (s *Database) GetSchema() OptNilString
GetSchema returns the value of Schema.
func (*Database) GetVersion ¶
GetVersion returns the value of Version.
func (*Database) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Database) SetAllowAttach ¶
SetAllowAttach sets the value of AllowAttach.
func (*Database) SetArchived ¶
SetArchived sets the value of Archived.
func (*Database) SetBlockReads ¶
SetBlockReads sets the value of BlockReads.
func (*Database) SetBlockWrites ¶
SetBlockWrites sets the value of BlockWrites.
func (*Database) SetHostname ¶
SetHostname sets the value of Hostname.
func (*Database) SetIsSchema ¶
SetIsSchema sets the value of IsSchema.
func (*Database) SetPrimaryRegion ¶
SetPrimaryRegion sets the value of PrimaryRegion.
func (*Database) SetRegions ¶
SetRegions sets the value of Regions.
func (*Database) SetSchema ¶
func (s *Database) SetSchema(val OptNilString)
SetSchema sets the value of Schema.
func (*Database) SetVersion ¶
SetVersion sets the value of Version.
func (*Database) UnmarshalJSON ¶
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 ¶
func (s *DatabaseConfigurationInput) Decode(d *jx.Decoder) error
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 ¶
func (s *DatabaseConfigurationResponse) Decode(d *jx.Decoder) error
Decode decodes DatabaseConfigurationResponse from json.
func (*DatabaseConfigurationResponse) Encode ¶
func (s *DatabaseConfigurationResponse) Encode(e *jx.Encoder)
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 ¶
func (s *DatabaseUsageOutput) GetInstances() []DatabaseUsageOutputInstancesItem
GetInstances returns the value of Instances.
func (*DatabaseUsageOutput) GetTotal ¶
func (s *DatabaseUsageOutput) GetTotal() OptDatabaseUsageObject
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 ¶
func (s *DatabaseUsageOutput) SetInstances(val []DatabaseUsageOutputInstancesItem)
SetInstances sets the value of Instances.
func (*DatabaseUsageOutput) SetTotal ¶
func (s *DatabaseUsageOutput) SetTotal(val OptDatabaseUsageObject)
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 ¶
func (s *DatabaseUsageOutputInstancesItem) Decode(d *jx.Decoder) error
Decode decodes DatabaseUsageOutputInstancesItem from json.
func (*DatabaseUsageOutputInstancesItem) Encode ¶
func (s *DatabaseUsageOutputInstancesItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DatabaseUsageOutputInstancesItem) GetUUID ¶
func (s *DatabaseUsageOutputInstancesItem) GetUUID() OptString
GetUUID returns the value of UUID.
func (*DatabaseUsageOutputInstancesItem) GetUsage ¶
func (s *DatabaseUsageOutputInstancesItem) GetUsage() OptDatabaseUsageObject
GetUsage returns the value of Usage.
func (*DatabaseUsageOutputInstancesItem) MarshalJSON ¶
func (s *DatabaseUsageOutputInstancesItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DatabaseUsageOutputInstancesItem) SetUUID ¶
func (s *DatabaseUsageOutputInstancesItem) SetUUID(val OptString)
SetUUID sets the value of UUID.
func (*DatabaseUsageOutputInstancesItem) SetUsage ¶
func (s *DatabaseUsageOutputInstancesItem) SetUsage(val OptDatabaseUsageObject)
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*DbId) UnmarshalJSON ¶
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 ¶
func (s *DeleteOrganizationInviteByEmailNotFound) Decode(d *jx.Decoder) error
Decode decodes DeleteOrganizationInviteByEmailNotFound from json.
func (*DeleteOrganizationInviteByEmailNotFound) Encode ¶
func (s *DeleteOrganizationInviteByEmailNotFound) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteOrganizationInviteByEmailNotFound) GetCode ¶
func (s *DeleteOrganizationInviteByEmailNotFound) GetCode() OptString
GetCode returns the value of Code.
func (*DeleteOrganizationInviteByEmailNotFound) GetError ¶
func (s *DeleteOrganizationInviteByEmailNotFound) GetError() OptString
GetError returns the value of Error.
func (*DeleteOrganizationInviteByEmailNotFound) MarshalJSON ¶
func (s *DeleteOrganizationInviteByEmailNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteOrganizationInviteByEmailNotFound) SetCode ¶
func (s *DeleteOrganizationInviteByEmailNotFound) SetCode(val OptString)
SetCode sets the value of Code.
func (*DeleteOrganizationInviteByEmailNotFound) SetError ¶
func (s *DeleteOrganizationInviteByEmailNotFound) SetError(val OptString)
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 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 ¶
func (s *GetDatabaseUsageBadRequest) Decode(d *jx.Decoder) error
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 ¶
func (s *GetOrganizationSubscriptionOK) Decode(d *jx.Decoder) error
Decode decodes GetOrganizationSubscriptionOK from json.
func (*GetOrganizationSubscriptionOK) Encode ¶
func (s *GetOrganizationSubscriptionOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetOrganizationSubscriptionOK) GetOverages ¶
func (s *GetOrganizationSubscriptionOK) GetOverages() OptBool
GetOverages returns the value of Overages.
func (*GetOrganizationSubscriptionOK) GetPlan ¶
func (s *GetOrganizationSubscriptionOK) GetPlan() OptString
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 ¶
func (s *GetOrganizationUsageOK) GetOrganization() OptGetOrganizationUsageOKOrganization
GetOrganization returns the value of Organization.
func (*GetOrganizationUsageOK) MarshalJSON ¶
func (s *GetOrganizationUsageOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetOrganizationUsageOK) SetOrganization ¶
func (s *GetOrganizationUsageOK) SetOrganization(val OptGetOrganizationUsageOKOrganization)
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 ¶
func (s *GetOrganizationUsageOKOrganization) Decode(d *jx.Decoder) error
Decode decodes GetOrganizationUsageOKOrganization from json.
func (*GetOrganizationUsageOKOrganization) Encode ¶
func (s *GetOrganizationUsageOKOrganization) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetOrganizationUsageOKOrganization) GetDatabases ¶
func (s *GetOrganizationUsageOKOrganization) GetDatabases() []DatabaseUsageOutput
GetDatabases returns the value of Databases.
func (*GetOrganizationUsageOKOrganization) GetUUID ¶
func (s *GetOrganizationUsageOKOrganization) GetUUID() OptString
GetUUID returns the value of UUID.
func (*GetOrganizationUsageOKOrganization) GetUsage ¶
func (s *GetOrganizationUsageOKOrganization) GetUsage() OptGetOrganizationUsageOKOrganizationUsage
GetUsage returns the value of Usage.
func (*GetOrganizationUsageOKOrganization) MarshalJSON ¶
func (s *GetOrganizationUsageOKOrganization) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetOrganizationUsageOKOrganization) SetDatabases ¶
func (s *GetOrganizationUsageOKOrganization) SetDatabases(val []DatabaseUsageOutput)
SetDatabases sets the value of Databases.
func (*GetOrganizationUsageOKOrganization) SetUUID ¶
func (s *GetOrganizationUsageOKOrganization) SetUUID(val OptString)
SetUUID sets the value of UUID.
func (*GetOrganizationUsageOKOrganization) SetUsage ¶
func (s *GetOrganizationUsageOKOrganization) SetUsage(val OptGetOrganizationUsageOKOrganizationUsage)
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 ¶
func (s *GetOrganizationUsageOKOrganizationUsage) Decode(d *jx.Decoder) error
Decode decodes GetOrganizationUsageOKOrganizationUsage from json.
func (*GetOrganizationUsageOKOrganizationUsage) Encode ¶
func (s *GetOrganizationUsageOKOrganizationUsage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetOrganizationUsageOKOrganizationUsage) GetBytesSynced ¶
func (s *GetOrganizationUsageOKOrganizationUsage) GetBytesSynced() OptInt
GetBytesSynced returns the value of BytesSynced.
func (*GetOrganizationUsageOKOrganizationUsage) GetDatabases ¶
func (s *GetOrganizationUsageOKOrganizationUsage) GetDatabases() OptInt
GetDatabases returns the value of Databases.
func (*GetOrganizationUsageOKOrganizationUsage) GetGroups ¶
func (s *GetOrganizationUsageOKOrganizationUsage) GetGroups() OptInt
GetGroups returns the value of Groups.
func (*GetOrganizationUsageOKOrganizationUsage) GetLocations ¶
func (s *GetOrganizationUsageOKOrganizationUsage) GetLocations() OptInt
GetLocations returns the value of Locations.
func (*GetOrganizationUsageOKOrganizationUsage) GetRowsRead ¶
func (s *GetOrganizationUsageOKOrganizationUsage) GetRowsRead() OptInt
GetRowsRead returns the value of RowsRead.
func (*GetOrganizationUsageOKOrganizationUsage) GetRowsWritten ¶
func (s *GetOrganizationUsageOKOrganizationUsage) GetRowsWritten() OptInt
GetRowsWritten returns the value of RowsWritten.
func (*GetOrganizationUsageOKOrganizationUsage) GetStorage ¶
func (s *GetOrganizationUsageOKOrganizationUsage) GetStorage() OptInt
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 ¶
func (s *GetOrganizationUsageOKOrganizationUsage) SetGroups(val OptInt)
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 ¶
func (s *GetOrganizationUsageOKOrganizationUsage) SetStorage(val OptInt)
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Hostname) UnmarshalJSON ¶
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) GetHostname ¶
GetHostname returns the value of Hostname.
func (*Instance) GetType ¶
func (s *Instance) GetType() OptInstanceType
GetType returns the value of Type.
func (*Instance) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Instance) SetHostname ¶
SetHostname sets the value of Hostname.
func (*Instance) SetType ¶
func (s *Instance) SetType(val OptInstanceType)
SetType sets the value of Type.
func (*Instance) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) GetAccepted ¶
GetAccepted returns the value of Accepted.
func (*Invite) GetCreatedAt ¶
GetCreatedAt returns the value of CreatedAt.
func (*Invite) GetDeletedAt ¶
GetDeletedAt returns the value of DeletedAt.
func (*Invite) GetOrganization ¶
func (s *Invite) GetOrganization() OptOrganization
GetOrganization returns the value of Organization.
func (*Invite) GetOrganizationID ¶
GetOrganizationID returns the value of OrganizationID.
func (*Invite) GetRole ¶
func (s *Invite) GetRole() OptInviteRole
GetRole returns the value of Role.
func (*Invite) GetUpdatedAt ¶
GetUpdatedAt returns the value of UpdatedAt.
func (*Invite) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Invite) SetAccepted ¶
SetAccepted sets the value of Accepted.
func (*Invite) SetCreatedAt ¶
SetCreatedAt sets the value of CreatedAt.
func (*Invite) SetDeletedAt ¶
SetDeletedAt sets the value of DeletedAt.
func (*Invite) SetOrganization ¶
func (s *Invite) SetOrganization(val OptOrganization)
SetOrganization sets the value of Organization.
func (*Invite) SetOrganizationID ¶
SetOrganizationID sets the value of OrganizationID.
func (*Invite) SetRole ¶
func (s *Invite) SetRole(val OptInviteRole)
SetRole sets the value of Role.
func (*Invite) SetUpdatedAt ¶
SetUpdatedAt sets the value of UpdatedAt.
func (*Invite) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type InviteOrganizationMemberOK ¶
type InviteOrganizationMemberOK struct {
Invited OptInvite `json:"invited"`
}
func (*InviteOrganizationMemberOK) Decode ¶
func (s *InviteOrganizationMemberOK) Decode(d *jx.Decoder) error
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 ¶
func (s *InviteOrganizationMemberReq) Decode(d *jx.Decoder) error
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 ¶
func (s *InviteOrganizationMemberReq) GetRole() OptInviteOrganizationMemberReqRole
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 ¶
func (s *InviteOrganizationMemberReq) SetRole(val OptInviteOrganizationMemberReqRole)
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 ¶
func (InviteOrganizationMemberReqRole) AllValues() []InviteOrganizationMemberReqRole
AllValues returns all InviteOrganizationMemberReqRole values.
func (*InviteOrganizationMemberReqRole) Decode ¶
func (s *InviteOrganizationMemberReqRole) Decode(d *jx.Decoder) error
Decode decodes InviteOrganizationMemberReqRole from json.
func (InviteOrganizationMemberReqRole) Encode ¶
func (s InviteOrganizationMemberReqRole) Encode(e *jx.Encoder)
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 ¶
func (s InviteOrganizationMemberReqRole) Validate() error
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 ¶
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) AttributeSet ¶
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 ¶
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 ¶
func (s *ListOrganizationAuditLogsOK) Decode(d *jx.Decoder) error
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 ¶
func (s *ListOrganizationAuditLogsOK) GetPagination() OptListOrganizationAuditLogsOKPagination
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 ¶
func (s *ListOrganizationAuditLogsOK) SetPagination(val OptListOrganizationAuditLogsOKPagination)
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 ¶
func (s *ListOrganizationAuditLogsOKPagination) Decode(d *jx.Decoder) error
Decode decodes ListOrganizationAuditLogsOKPagination from json.
func (*ListOrganizationAuditLogsOKPagination) Encode ¶
func (s *ListOrganizationAuditLogsOKPagination) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ListOrganizationAuditLogsOKPagination) GetPage ¶
func (s *ListOrganizationAuditLogsOKPagination) GetPage() OptInt
GetPage returns the value of Page.
func (*ListOrganizationAuditLogsOKPagination) GetPageSize ¶
func (s *ListOrganizationAuditLogsOKPagination) GetPageSize() OptInt
GetPageSize returns the value of PageSize.
func (*ListOrganizationAuditLogsOKPagination) GetTotalPages ¶
func (s *ListOrganizationAuditLogsOKPagination) GetTotalPages() OptInt
GetTotalPages returns the value of TotalPages.
func (*ListOrganizationAuditLogsOKPagination) GetTotalRows ¶
func (s *ListOrganizationAuditLogsOKPagination) GetTotalRows() OptInt
GetTotalRows returns the value of TotalRows.
func (*ListOrganizationAuditLogsOKPagination) MarshalJSON ¶
func (s *ListOrganizationAuditLogsOKPagination) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListOrganizationAuditLogsOKPagination) SetPage ¶
func (s *ListOrganizationAuditLogsOKPagination) SetPage(val OptInt)
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 ¶
func (s *ListOrganizationInvoicesOK) Decode(d *jx.Decoder) error
Decode decodes ListOrganizationInvoicesOK from json.
func (*ListOrganizationInvoicesOK) Encode ¶
func (s *ListOrganizationInvoicesOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ListOrganizationInvoicesOK) GetInvoices ¶
func (s *ListOrganizationInvoicesOK) GetInvoices() []ListOrganizationInvoicesOKInvoicesItem
GetInvoices returns the value of Invoices.
func (*ListOrganizationInvoicesOK) MarshalJSON ¶
func (s *ListOrganizationInvoicesOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListOrganizationInvoicesOK) SetInvoices ¶
func (s *ListOrganizationInvoicesOK) SetInvoices(val []ListOrganizationInvoicesOKInvoicesItem)
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 ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) Decode(d *jx.Decoder) error
Decode decodes ListOrganizationInvoicesOKInvoicesItem from json.
func (*ListOrganizationInvoicesOKInvoicesItem) Encode ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ListOrganizationInvoicesOKInvoicesItem) GetAmountDue ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) GetAmountDue() OptString
GetAmountDue returns the value of AmountDue.
func (*ListOrganizationInvoicesOKInvoicesItem) GetDueDate ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) GetDueDate() OptString
GetDueDate returns the value of DueDate.
func (*ListOrganizationInvoicesOKInvoicesItem) GetInvoiceNumber ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) GetInvoiceNumber() OptString
GetInvoiceNumber returns the value of InvoiceNumber.
func (*ListOrganizationInvoicesOKInvoicesItem) GetInvoicePdf ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) GetInvoicePdf() OptString
GetInvoicePdf returns the value of InvoicePdf.
func (*ListOrganizationInvoicesOKInvoicesItem) GetPaidAt ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) GetPaidAt() OptString
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 ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) SetAmountDue(val OptString)
SetAmountDue sets the value of AmountDue.
func (*ListOrganizationInvoicesOKInvoicesItem) SetDueDate ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) SetDueDate(val OptString)
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 ¶
func (s *ListOrganizationInvoicesOKInvoicesItem) SetPaidAt(val OptString)
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 ¶
func (ListOrganizationInvoicesType) AllValues() []ListOrganizationInvoicesType
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) GetRole ¶
func (s *Member) GetRole() OptMemberRole
GetRole returns the value of Role.
func (*Member) GetUsername ¶
GetUsername returns the value of Username.
func (*Member) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Member) SetRole ¶
func (s *Member) SetRole(val OptMemberRole)
SetRole sets the value of Role.
func (*Member) SetUsername ¶
SetUsername sets the value of Username.
func (*Member) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 Name ¶
type Name string
func (Name) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Name) UnmarshalJSON ¶
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) GetExtensions ¶
func (s *NewGroup) GetExtensions() OptExtensions
GetExtensions returns the value of Extensions.
func (*NewGroup) GetLocation ¶
GetLocation returns the value of Location.
func (*NewGroup) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*NewGroup) SetExtensions ¶
func (s *NewGroup) SetExtensions(val OptExtensions)
SetExtensions sets the value of Extensions.
func (*NewGroup) SetLocation ¶
SetLocation sets the value of Location.
func (*NewGroup) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 ¶
func (o *OptAddOrganizationMemberReqRole) Decode(d *jx.Decoder) error
Decode decodes AddOrganizationMemberReqRole from json.
func (OptAddOrganizationMemberReqRole) Encode ¶
func (o OptAddOrganizationMemberReqRole) Encode(e *jx.Encoder)
Encode encodes AddOrganizationMemberReqRole as json.
func (OptAddOrganizationMemberReqRole) Get ¶
func (o OptAddOrganizationMemberReqRole) Get() (v AddOrganizationMemberReqRole, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAddOrganizationMemberReqRole) IsSet ¶
func (o OptAddOrganizationMemberReqRole) IsSet() bool
IsSet returns true if OptAddOrganizationMemberReqRole was set.
func (OptAddOrganizationMemberReqRole) MarshalJSON ¶
func (s OptAddOrganizationMemberReqRole) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptAddOrganizationMemberReqRole) Or ¶
func (o OptAddOrganizationMemberReqRole) Or(d AddOrganizationMemberReqRole) AddOrganizationMemberReqRole
Or returns value if set, or given parameter if does not.
func (*OptAddOrganizationMemberReqRole) Reset ¶
func (o *OptAddOrganizationMemberReqRole) Reset()
Reset unsets value.
func (*OptAddOrganizationMemberReqRole) SetTo ¶
func (o *OptAddOrganizationMemberReqRole) SetTo(v AddOrganizationMemberReqRole)
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 ¶
func (o OptAuditLogCode) Or(d AuditLogCode) AuditLogCode
Or returns value if set, or given parameter if does not.
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 ¶
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 ¶
func (o OptBaseGroup) Or(d BaseGroup) BaseGroup
Or returns value if set, or given parameter if does not.
func (*OptBaseGroup) UnmarshalJSON ¶
func (s *OptBaseGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
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 ¶
func (o *OptCreateDatabaseInputSeed) Decode(d *jx.Decoder) error
Decode decodes CreateDatabaseInputSeed from json.
func (OptCreateDatabaseInputSeed) Encode ¶
func (o OptCreateDatabaseInputSeed) Encode(e *jx.Encoder)
Encode encodes CreateDatabaseInputSeed as json.
func (OptCreateDatabaseInputSeed) Get ¶
func (o OptCreateDatabaseInputSeed) Get() (v CreateDatabaseInputSeed, ok bool)
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) Reset ¶
func (o *OptCreateDatabaseInputSeed) Reset()
Reset unsets value.
func (*OptCreateDatabaseInputSeed) SetTo ¶
func (o *OptCreateDatabaseInputSeed) SetTo(v CreateDatabaseInputSeed)
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 ¶
func (o *OptCreateDatabaseInputSeedType) Decode(d *jx.Decoder) error
Decode decodes CreateDatabaseInputSeedType from json.
func (OptCreateDatabaseInputSeedType) Encode ¶
func (o OptCreateDatabaseInputSeedType) Encode(e *jx.Encoder)
Encode encodes CreateDatabaseInputSeedType as json.
func (OptCreateDatabaseInputSeedType) Get ¶
func (o OptCreateDatabaseInputSeedType) Get() (v CreateDatabaseInputSeedType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateDatabaseInputSeedType) IsSet ¶
func (o OptCreateDatabaseInputSeedType) IsSet() bool
IsSet returns true if OptCreateDatabaseInputSeedType was set.
func (OptCreateDatabaseInputSeedType) MarshalJSON ¶
func (s OptCreateDatabaseInputSeedType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateDatabaseInputSeedType) Or ¶
func (o OptCreateDatabaseInputSeedType) Or(d CreateDatabaseInputSeedType) CreateDatabaseInputSeedType
Or returns value if set, or given parameter if does not.
func (*OptCreateDatabaseInputSeedType) Reset ¶
func (o *OptCreateDatabaseInputSeedType) Reset()
Reset unsets value.
func (*OptCreateDatabaseInputSeedType) SetTo ¶
func (o *OptCreateDatabaseInputSeedType) SetTo(v CreateDatabaseInputSeedType)
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 ¶
func (o OptCreateDatabaseOutput) Get() (v CreateDatabaseOutput, ok bool)
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 ¶
func (o OptCreateDatabaseOutput) Or(d CreateDatabaseOutput) CreateDatabaseOutput
Or returns value if set, or given parameter if does not.
func (*OptCreateDatabaseOutput) Reset ¶
func (o *OptCreateDatabaseOutput) Reset()
Reset unsets value.
func (*OptCreateDatabaseOutput) SetTo ¶
func (o *OptCreateDatabaseOutput) SetTo(v CreateDatabaseOutput)
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 ¶
func (o OptCreateDatabaseTokenAuthorization) Get() (v CreateDatabaseTokenAuthorization, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateDatabaseTokenAuthorization) IsSet ¶
func (o OptCreateDatabaseTokenAuthorization) IsSet() bool
IsSet returns true if OptCreateDatabaseTokenAuthorization was set.
func (OptCreateDatabaseTokenAuthorization) Or ¶
func (o OptCreateDatabaseTokenAuthorization) Or(d CreateDatabaseTokenAuthorization) CreateDatabaseTokenAuthorization
Or returns value if set, or given parameter if does not.
func (*OptCreateDatabaseTokenAuthorization) Reset ¶
func (o *OptCreateDatabaseTokenAuthorization) Reset()
Reset unsets value.
func (*OptCreateDatabaseTokenAuthorization) SetTo ¶
func (o *OptCreateDatabaseTokenAuthorization) SetTo(v CreateDatabaseTokenAuthorization)
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 ¶
func (o OptCreateGroupTokenAuthorization) Get() (v CreateGroupTokenAuthorization, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateGroupTokenAuthorization) IsSet ¶
func (o OptCreateGroupTokenAuthorization) IsSet() bool
IsSet returns true if OptCreateGroupTokenAuthorization was set.
func (OptCreateGroupTokenAuthorization) Or ¶
func (o OptCreateGroupTokenAuthorization) Or(d CreateGroupTokenAuthorization) CreateGroupTokenAuthorization
Or returns value if set, or given parameter if does not.
func (*OptCreateGroupTokenAuthorization) Reset ¶
func (o *OptCreateGroupTokenAuthorization) Reset()
Reset unsets value.
func (*OptCreateGroupTokenAuthorization) SetTo ¶
func (o *OptCreateGroupTokenAuthorization) SetTo(v CreateGroupTokenAuthorization)
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 ¶
func (o OptCreateTokenInput) Or(d CreateTokenInput) CreateTokenInput
Or returns value if set, or given parameter if does not.
func (*OptCreateTokenInput) SetTo ¶
func (o *OptCreateTokenInput) SetTo(v CreateTokenInput)
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 ¶
func (o *OptCreateTokenInputPermissions) Decode(d *jx.Decoder) error
Decode decodes CreateTokenInputPermissions from json.
func (OptCreateTokenInputPermissions) Encode ¶
func (o OptCreateTokenInputPermissions) Encode(e *jx.Encoder)
Encode encodes CreateTokenInputPermissions as json.
func (OptCreateTokenInputPermissions) Get ¶
func (o OptCreateTokenInputPermissions) Get() (v CreateTokenInputPermissions, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateTokenInputPermissions) IsSet ¶
func (o OptCreateTokenInputPermissions) IsSet() bool
IsSet returns true if OptCreateTokenInputPermissions was set.
func (OptCreateTokenInputPermissions) MarshalJSON ¶
func (s OptCreateTokenInputPermissions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateTokenInputPermissions) Or ¶
func (o OptCreateTokenInputPermissions) Or(d CreateTokenInputPermissions) CreateTokenInputPermissions
Or returns value if set, or given parameter if does not.
func (*OptCreateTokenInputPermissions) Reset ¶
func (o *OptCreateTokenInputPermissions) Reset()
Reset unsets value.
func (*OptCreateTokenInputPermissions) SetTo ¶
func (o *OptCreateTokenInputPermissions) SetTo(v CreateTokenInputPermissions)
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 ¶
func (o *OptCreateTokenInputPermissionsReadAttach) Decode(d *jx.Decoder) error
Decode decodes CreateTokenInputPermissionsReadAttach from json.
func (OptCreateTokenInputPermissionsReadAttach) Encode ¶
func (o OptCreateTokenInputPermissionsReadAttach) Encode(e *jx.Encoder)
Encode encodes CreateTokenInputPermissionsReadAttach as json.
func (OptCreateTokenInputPermissionsReadAttach) Get ¶
func (o OptCreateTokenInputPermissionsReadAttach) Get() (v CreateTokenInputPermissionsReadAttach, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateTokenInputPermissionsReadAttach) IsSet ¶
func (o OptCreateTokenInputPermissionsReadAttach) IsSet() bool
IsSet returns true if OptCreateTokenInputPermissionsReadAttach was set.
func (OptCreateTokenInputPermissionsReadAttach) MarshalJSON ¶
func (s OptCreateTokenInputPermissionsReadAttach) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateTokenInputPermissionsReadAttach) Or ¶
func (o OptCreateTokenInputPermissionsReadAttach) Or(d CreateTokenInputPermissionsReadAttach) CreateTokenInputPermissionsReadAttach
Or returns value if set, or given parameter if does not.
func (*OptCreateTokenInputPermissionsReadAttach) Reset ¶
func (o *OptCreateTokenInputPermissionsReadAttach) Reset()
Reset unsets value.
func (*OptCreateTokenInputPermissionsReadAttach) SetTo ¶
func (o *OptCreateTokenInputPermissionsReadAttach) SetTo(v CreateTokenInputPermissionsReadAttach)
SetTo sets value to v.
func (*OptCreateTokenInputPermissionsReadAttach) UnmarshalJSON ¶
func (s *OptCreateTokenInputPermissionsReadAttach) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDatabase ¶
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) 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 ¶
func (o OptDatabaseUsageObject) Get() (v DatabaseUsageObject, ok bool)
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 ¶
func (o OptDatabaseUsageObject) Or(d DatabaseUsageObject) DatabaseUsageObject
Or returns value if set, or given parameter if does not.
func (*OptDatabaseUsageObject) SetTo ¶
func (o *OptDatabaseUsageObject) SetTo(v DatabaseUsageObject)
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 ¶
func (o OptDatabaseUsageOutput) Get() (v DatabaseUsageOutput, ok bool)
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 ¶
func (o OptDatabaseUsageOutput) Or(d DatabaseUsageOutput) DatabaseUsageOutput
Or returns value if set, or given parameter if does not.
func (*OptDatabaseUsageOutput) SetTo ¶
func (o *OptDatabaseUsageOutput) SetTo(v DatabaseUsageOutput)
SetTo sets value to v.
func (*OptDatabaseUsageOutput) UnmarshalJSON ¶
func (s *OptDatabaseUsageOutput) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDateTime ¶
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.
type OptDbId ¶
OptDbId is optional DbId.
func NewOptDbId ¶
NewOptDbId returns new OptDbId with value set to v.
func (OptDbId) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptDbId) UnmarshalJSON ¶
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 ¶
func (o OptExtensions) Or(d Extensions) Extensions
Or returns value if set, or given parameter if does not.
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 ¶
func (o *OptGetOrganizationUsageOKOrganization) Decode(d *jx.Decoder) error
Decode decodes GetOrganizationUsageOKOrganization from json.
func (OptGetOrganizationUsageOKOrganization) Encode ¶
func (o OptGetOrganizationUsageOKOrganization) Encode(e *jx.Encoder)
Encode encodes GetOrganizationUsageOKOrganization as json.
func (OptGetOrganizationUsageOKOrganization) Get ¶
func (o OptGetOrganizationUsageOKOrganization) Get() (v GetOrganizationUsageOKOrganization, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetOrganizationUsageOKOrganization) IsSet ¶
func (o OptGetOrganizationUsageOKOrganization) IsSet() bool
IsSet returns true if OptGetOrganizationUsageOKOrganization was set.
func (OptGetOrganizationUsageOKOrganization) MarshalJSON ¶
func (s OptGetOrganizationUsageOKOrganization) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetOrganizationUsageOKOrganization) Or ¶
func (o OptGetOrganizationUsageOKOrganization) Or(d GetOrganizationUsageOKOrganization) GetOrganizationUsageOKOrganization
Or returns value if set, or given parameter if does not.
func (*OptGetOrganizationUsageOKOrganization) Reset ¶
func (o *OptGetOrganizationUsageOKOrganization) Reset()
Reset unsets value.
func (*OptGetOrganizationUsageOKOrganization) SetTo ¶
func (o *OptGetOrganizationUsageOKOrganization) SetTo(v GetOrganizationUsageOKOrganization)
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 ¶
func (o *OptGetOrganizationUsageOKOrganizationUsage) Decode(d *jx.Decoder) error
Decode decodes GetOrganizationUsageOKOrganizationUsage from json.
func (OptGetOrganizationUsageOKOrganizationUsage) Encode ¶
func (o OptGetOrganizationUsageOKOrganizationUsage) Encode(e *jx.Encoder)
Encode encodes GetOrganizationUsageOKOrganizationUsage as json.
func (OptGetOrganizationUsageOKOrganizationUsage) Get ¶
func (o OptGetOrganizationUsageOKOrganizationUsage) Get() (v GetOrganizationUsageOKOrganizationUsage, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetOrganizationUsageOKOrganizationUsage) IsSet ¶
func (o OptGetOrganizationUsageOKOrganizationUsage) IsSet() bool
IsSet returns true if OptGetOrganizationUsageOKOrganizationUsage was set.
func (OptGetOrganizationUsageOKOrganizationUsage) MarshalJSON ¶
func (s OptGetOrganizationUsageOKOrganizationUsage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetOrganizationUsageOKOrganizationUsage) Or ¶
func (o OptGetOrganizationUsageOKOrganizationUsage) Or(d GetOrganizationUsageOKOrganizationUsage) GetOrganizationUsageOKOrganizationUsage
Or returns value if set, or given parameter if does not.
func (*OptGetOrganizationUsageOKOrganizationUsage) Reset ¶
func (o *OptGetOrganizationUsageOKOrganizationUsage) Reset()
Reset unsets value.
func (*OptGetOrganizationUsageOKOrganizationUsage) SetTo ¶
func (o *OptGetOrganizationUsageOKOrganizationUsage) SetTo(v GetOrganizationUsageOKOrganizationUsage)
SetTo sets value to v.
func (*OptGetOrganizationUsageOKOrganizationUsage) UnmarshalJSON ¶
func (s *OptGetOrganizationUsageOKOrganizationUsage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptHostname ¶
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) UnmarshalJSON ¶
func (s *OptHostname) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInstance ¶
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) 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 ¶
func (o OptInstanceType) Or(d InstanceType) InstanceType
Or returns value if set, or given parameter if does not.
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 ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInvite ¶
OptInvite is optional Invite.
func NewOptInvite ¶
NewOptInvite returns new OptInvite with value set to v.
func (OptInvite) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInvite) UnmarshalJSON ¶
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 ¶
func (o *OptInviteOrganizationMemberReqRole) Decode(d *jx.Decoder) error
Decode decodes InviteOrganizationMemberReqRole from json.
func (OptInviteOrganizationMemberReqRole) Encode ¶
func (o OptInviteOrganizationMemberReqRole) Encode(e *jx.Encoder)
Encode encodes InviteOrganizationMemberReqRole as json.
func (OptInviteOrganizationMemberReqRole) Get ¶
func (o OptInviteOrganizationMemberReqRole) Get() (v InviteOrganizationMemberReqRole, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptInviteOrganizationMemberReqRole) IsSet ¶
func (o OptInviteOrganizationMemberReqRole) IsSet() bool
IsSet returns true if OptInviteOrganizationMemberReqRole was set.
func (OptInviteOrganizationMemberReqRole) MarshalJSON ¶
func (s OptInviteOrganizationMemberReqRole) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptInviteOrganizationMemberReqRole) Or ¶
func (o OptInviteOrganizationMemberReqRole) Or(d InviteOrganizationMemberReqRole) InviteOrganizationMemberReqRole
Or returns value if set, or given parameter if does not.
func (*OptInviteOrganizationMemberReqRole) Reset ¶
func (o *OptInviteOrganizationMemberReqRole) Reset()
Reset unsets value.
func (*OptInviteOrganizationMemberReqRole) SetTo ¶
func (o *OptInviteOrganizationMemberReqRole) SetTo(v InviteOrganizationMemberReqRole)
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 ¶
func (o OptInviteRole) Or(d InviteRole) InviteRole
Or returns value if set, or given parameter if does not.
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 ¶
func (o *OptListLocationsOKLocations) Decode(d *jx.Decoder) error
Decode decodes ListLocationsOKLocations from json.
func (OptListLocationsOKLocations) Encode ¶
func (o OptListLocationsOKLocations) Encode(e *jx.Encoder)
Encode encodes ListLocationsOKLocations as json.
func (OptListLocationsOKLocations) Get ¶
func (o OptListLocationsOKLocations) Get() (v ListLocationsOKLocations, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptListLocationsOKLocations) IsSet ¶
func (o OptListLocationsOKLocations) IsSet() bool
IsSet returns true if OptListLocationsOKLocations was set.
func (OptListLocationsOKLocations) MarshalJSON ¶
func (s OptListLocationsOKLocations) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptListLocationsOKLocations) Reset ¶
func (o *OptListLocationsOKLocations) Reset()
Reset unsets value.
func (*OptListLocationsOKLocations) SetTo ¶
func (o *OptListLocationsOKLocations) SetTo(v ListLocationsOKLocations)
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 ¶
func (o *OptListOrganizationAuditLogsOKPagination) Decode(d *jx.Decoder) error
Decode decodes ListOrganizationAuditLogsOKPagination from json.
func (OptListOrganizationAuditLogsOKPagination) Encode ¶
func (o OptListOrganizationAuditLogsOKPagination) Encode(e *jx.Encoder)
Encode encodes ListOrganizationAuditLogsOKPagination as json.
func (OptListOrganizationAuditLogsOKPagination) Get ¶
func (o OptListOrganizationAuditLogsOKPagination) Get() (v ListOrganizationAuditLogsOKPagination, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptListOrganizationAuditLogsOKPagination) IsSet ¶
func (o OptListOrganizationAuditLogsOKPagination) IsSet() bool
IsSet returns true if OptListOrganizationAuditLogsOKPagination was set.
func (OptListOrganizationAuditLogsOKPagination) MarshalJSON ¶
func (s OptListOrganizationAuditLogsOKPagination) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptListOrganizationAuditLogsOKPagination) Or ¶
func (o OptListOrganizationAuditLogsOKPagination) Or(d ListOrganizationAuditLogsOKPagination) ListOrganizationAuditLogsOKPagination
Or returns value if set, or given parameter if does not.
func (*OptListOrganizationAuditLogsOKPagination) Reset ¶
func (o *OptListOrganizationAuditLogsOKPagination) Reset()
Reset unsets value.
func (*OptListOrganizationAuditLogsOKPagination) SetTo ¶
func (o *OptListOrganizationAuditLogsOKPagination) SetTo(v ListOrganizationAuditLogsOKPagination)
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 ¶
func (o OptListOrganizationInvoicesType) Get() (v ListOrganizationInvoicesType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptListOrganizationInvoicesType) IsSet ¶
func (o OptListOrganizationInvoicesType) IsSet() bool
IsSet returns true if OptListOrganizationInvoicesType was set.
func (OptListOrganizationInvoicesType) Or ¶
func (o OptListOrganizationInvoicesType) Or(d ListOrganizationInvoicesType) ListOrganizationInvoicesType
Or returns value if set, or given parameter if does not.
func (*OptListOrganizationInvoicesType) Reset ¶
func (o *OptListOrganizationInvoicesType) Reset()
Reset unsets value.
func (*OptListOrganizationInvoicesType) SetTo ¶
func (o *OptListOrganizationInvoicesType) SetTo(v ListOrganizationInvoicesType)
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 ¶
func (o OptMemberRole) Or(d MemberRole) MemberRole
Or returns value if set, or given parameter if does not.
func (*OptMemberRole) UnmarshalJSON ¶
func (s *OptMemberRole) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptName ¶
OptName is optional Name.
func NewOptName ¶
NewOptName returns new OptName with value set to v.
func (OptName) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptName) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilString ¶
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) 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 ¶
func (o OptOrganization) Or(d Organization) Organization
Or returns value if set, or given parameter if does not.
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 ¶
func (o OptOrganizationType) Or(d OrganizationType) OrganizationType
Or returns value if set, or given parameter if does not.
func (*OptOrganizationType) SetTo ¶
func (o *OptOrganizationType) SetTo(v OrganizationType)
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 ¶
func (o OptPlanQuotas) Or(d PlanQuotas) PlanQuotas
Or returns value if set, or given parameter if does not.
func (*OptPlanQuotas) UnmarshalJSON ¶
func (s *OptPlanQuotas) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptRole ¶
OptRole is optional Role.
func NewOptRole ¶
NewOptRole returns new OptRole with value set to v.
func (OptRole) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptRole) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptURI ¶
OptURI is optional url.URL.
func (OptURI) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptURI) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUsername ¶
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) 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 ¶
func (s *RemoveLocationFromGroupBadRequest) Decode(d *jx.Decoder) error
Decode decodes RemoveLocationFromGroupBadRequest from json.
func (*RemoveLocationFromGroupBadRequest) Encode ¶
func (s *RemoveLocationFromGroupBadRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*RemoveLocationFromGroupBadRequest) GetError ¶
func (s *RemoveLocationFromGroupBadRequest) GetError() OptString
GetError returns the value of Error.
func (*RemoveLocationFromGroupBadRequest) MarshalJSON ¶
func (s *RemoveLocationFromGroupBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RemoveLocationFromGroupBadRequest) SetError ¶
func (s *RemoveLocationFromGroupBadRequest) SetError(val OptString)
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 ¶
func (s *RemoveLocationFromGroupOK) GetGroup() OptBaseGroup
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 ¶
func (s *RemoveOrganizationMemberNotFound) Decode(d *jx.Decoder) error
Decode decodes RemoveOrganizationMemberNotFound from json.
func (*RemoveOrganizationMemberNotFound) Encode ¶
func (s *RemoveOrganizationMemberNotFound) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*RemoveOrganizationMemberNotFound) GetError ¶
func (s *RemoveOrganizationMemberNotFound) GetError() OptString
GetError returns the value of Error.
func (*RemoveOrganizationMemberNotFound) MarshalJSON ¶
func (s *RemoveOrganizationMemberNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RemoveOrganizationMemberNotFound) SetError ¶
func (s *RemoveOrganizationMemberNotFound) SetError(val OptString)
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 ¶
func (s *RemoveOrganizationMemberOK) Decode(d *jx.Decoder) error
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
func (Role) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (Role) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Role) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*Role) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
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.
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 ¶
func (UnimplementedHandler) AddLocationToGroup(ctx context.Context, params AddLocationToGroupParams) (r AddLocationToGroupRes, _ error)
AddLocationToGroup implements addLocationToGroup operation.
Adds a location to the specified group.
POST /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}
func (UnimplementedHandler) AddOrganizationMember ¶
func (UnimplementedHandler) AddOrganizationMember(ctx context.Context, req *AddOrganizationMemberReq, params AddOrganizationMemberParams) (r AddOrganizationMemberRes, _ error)
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 ¶
func (UnimplementedHandler) CreateDatabase(ctx context.Context, req *CreateDatabaseInput, params CreateDatabaseParams) (r CreateDatabaseRes, _ error)
CreateDatabase implements createDatabase operation.
Creates a new database in a group for the organization or user.
POST /v1/organizations/{organizationName}/databases
func (UnimplementedHandler) CreateDatabaseToken ¶
func (UnimplementedHandler) CreateDatabaseToken(ctx context.Context, req OptCreateTokenInput, params CreateDatabaseTokenParams) (r CreateDatabaseTokenRes, _ error)
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 ¶
func (UnimplementedHandler) CreateGroupToken(ctx context.Context, req OptCreateTokenInput, params CreateGroupTokenParams) (r CreateGroupTokenRes, _ error)
CreateGroupToken implements createGroupToken operation.
Generates an authorization token for the specified group.
POST /v1/organizations/{organizationName}/groups/{groupName}/auth/tokens
func (UnimplementedHandler) DeleteDatabase ¶
func (UnimplementedHandler) DeleteDatabase(ctx context.Context, params DeleteDatabaseParams) (r DeleteDatabaseRes, _ error)
DeleteDatabase implements deleteDatabase operation.
Delete a database belonging to the organization or user.
DELETE /v1/organizations/{organizationName}/databases/{databaseName}
func (UnimplementedHandler) DeleteGroup ¶
func (UnimplementedHandler) DeleteGroup(ctx context.Context, params DeleteGroupParams) (r DeleteGroupRes, _ error)
DeleteGroup implements deleteGroup operation.
Delete a group belonging to the organization or user.
DELETE /v1/organizations/{organizationName}/groups/{groupName}
func (UnimplementedHandler) DeleteOrganizationInviteByEmail ¶
func (UnimplementedHandler) DeleteOrganizationInviteByEmail(ctx context.Context, params DeleteOrganizationInviteByEmailParams) (r DeleteOrganizationInviteByEmailRes, _ error)
DeleteOrganizationInviteByEmail implements deleteOrganizationInviteByEmail operation.
Delete an invite for the organization by email.
DELETE /v1/organizations/{organizationName}/invites/{email}
func (UnimplementedHandler) GetDatabase ¶
func (UnimplementedHandler) GetDatabase(ctx context.Context, params GetDatabaseParams) (r GetDatabaseRes, _ error)
GetDatabase implements getDatabase operation.
Returns a database belonging to the organization or user.
GET /v1/organizations/{organizationName}/databases/{databaseName}
func (UnimplementedHandler) GetDatabaseConfiguration ¶
func (UnimplementedHandler) GetDatabaseConfiguration(ctx context.Context, params GetDatabaseConfigurationParams) (r *DatabaseConfigurationResponse, _ error)
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 ¶
func (UnimplementedHandler) GetDatabaseInstance(ctx context.Context, params GetDatabaseInstanceParams) (r *GetDatabaseInstanceOK, _ error)
GetDatabaseInstance implements getDatabaseInstance operation.
Return the individual database instance by name.
GET /v1/organizations/{organizationName}/databases/{databaseName}/instances/{instanceName}
func (UnimplementedHandler) GetDatabaseStats ¶
func (UnimplementedHandler) GetDatabaseStats(ctx context.Context, params GetDatabaseStatsParams) (r GetDatabaseStatsRes, _ 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
func (UnimplementedHandler) GetDatabaseUsage ¶
func (UnimplementedHandler) GetDatabaseUsage(ctx context.Context, params GetDatabaseUsageParams) (r GetDatabaseUsageRes, _ error)
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 ¶
func (UnimplementedHandler) GetOrganizationSubscription(ctx context.Context, params GetOrganizationSubscriptionParams) (r *GetOrganizationSubscriptionOK, _ error)
GetOrganizationSubscription implements getOrganizationSubscription operation.
Returns the current subscription details for the organization.
GET /v1/organizations/{organizationName}/subscription
func (UnimplementedHandler) GetOrganizationUsage ¶
func (UnimplementedHandler) GetOrganizationUsage(ctx context.Context, params GetOrganizationUsageParams) (r *GetOrganizationUsageOK, _ error)
GetOrganizationUsage implements getOrganizationUsage operation.
Fetch current billing cycle usage for an organization.
GET /v1/organizations/{organizationName}/usage
func (UnimplementedHandler) InvalidateDatabaseTokens ¶
func (UnimplementedHandler) InvalidateDatabaseTokens(ctx context.Context, params InvalidateDatabaseTokensParams) (r InvalidateDatabaseTokensRes, _ error)
InvalidateDatabaseTokens implements invalidateDatabaseTokens operation.
Invalidates all authorization tokens for the specified database.
POST /v1/organizations/{organizationName}/databases/{databaseName}/auth/rotate
func (UnimplementedHandler) InvalidateGroupTokens ¶
func (UnimplementedHandler) InvalidateGroupTokens(ctx context.Context, params InvalidateGroupTokensParams) (r InvalidateGroupTokensRes, _ error)
InvalidateGroupTokens implements invalidateGroupTokens operation.
Invalidates all authorization tokens for the specified group.
POST /v1/organizations/{organizationName}/groups/{groupName}/auth/rotate
func (UnimplementedHandler) InviteOrganizationMember ¶
func (UnimplementedHandler) InviteOrganizationMember(ctx context.Context, req *InviteOrganizationMemberReq, params InviteOrganizationMemberParams) (r *InviteOrganizationMemberOK, _ error)
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 ¶
func (UnimplementedHandler) ListDatabaseInstances(ctx context.Context, params ListDatabaseInstancesParams) (r *ListDatabaseInstancesOK, _ 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
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 ¶
func (UnimplementedHandler) ListOrganizationAuditLogs(ctx context.Context, params ListOrganizationAuditLogsParams) (r *ListOrganizationAuditLogsOK, _ 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
func (UnimplementedHandler) ListOrganizationInvites ¶
func (UnimplementedHandler) ListOrganizationInvites(ctx context.Context, params ListOrganizationInvitesParams) (r *ListOrganizationInvitesOK, _ error)
ListOrganizationInvites implements listOrganizationInvites operation.
Returns a list of invites for the organization.
GET /v1/organizations/{organizationName}/invites
func (UnimplementedHandler) ListOrganizationInvoices ¶
func (UnimplementedHandler) ListOrganizationInvoices(ctx context.Context, params ListOrganizationInvoicesParams) (r *ListOrganizationInvoicesOK, _ error)
ListOrganizationInvoices implements listOrganizationInvoices operation.
Returns a list of invoices for the organization.
GET /v1/organizations/{organizationName}/invoices
func (UnimplementedHandler) ListOrganizationMembers ¶
func (UnimplementedHandler) ListOrganizationMembers(ctx context.Context, params ListOrganizationMembersParams) (r *ListOrganizationMembersOK, _ error)
ListOrganizationMembers implements listOrganizationMembers operation.
Returns a list of members part of the organization.
GET /v1/organizations/{organizationName}/members
func (UnimplementedHandler) ListOrganizationPlans ¶
func (UnimplementedHandler) ListOrganizationPlans(ctx context.Context, params ListOrganizationPlansParams) (r *ListOrganizationPlansOK, _ error)
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 ¶
func (UnimplementedHandler) RemoveLocationFromGroup(ctx context.Context, params RemoveLocationFromGroupParams) (r RemoveLocationFromGroupRes, _ error)
RemoveLocationFromGroup implements removeLocationFromGroup operation.
Removes a location from the specified group.
DELETE /v1/organizations/{organizationName}/groups/{groupName}/locations/{location}
func (UnimplementedHandler) RemoveOrganizationMember ¶
func (UnimplementedHandler) RemoveOrganizationMember(ctx context.Context, params RemoveOrganizationMemberParams) (r RemoveOrganizationMemberRes, _ error)
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 ¶
func (UnimplementedHandler) TransferGroup(ctx context.Context, req *TransferGroupReq, params TransferGroupParams) (r TransferGroupRes, _ 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
func (UnimplementedHandler) UnarchiveGroup ¶
func (UnimplementedHandler) UnarchiveGroup(ctx context.Context, params UnarchiveGroupParams) (r UnarchiveGroupRes, _ error)
UnarchiveGroup implements unarchiveGroup operation.
Unarchive a group that has been archived due to inactivity.
POST /v1/organizations/{organizationName}/groups/{groupName}/unarchive
func (UnimplementedHandler) UpdateDatabaseConfiguration ¶
func (UnimplementedHandler) UpdateDatabaseConfiguration(ctx context.Context, req *DatabaseConfigurationInput, params UpdateDatabaseConfigurationParams) (r *DatabaseConfigurationResponse, _ error)
UpdateDatabaseConfiguration implements updateDatabaseConfiguration operation.
Update a database configuration belonging to the organization or user.
PATCH /v1/organizations/{organizationName}/databases/{databaseName}/configuration
func (UnimplementedHandler) UpdateGroupDatabases ¶
func (UnimplementedHandler) UpdateGroupDatabases(ctx context.Context, params UpdateGroupDatabasesParams) (r UpdateGroupDatabasesRes, _ error)
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 ¶
func (UnimplementedHandler) UpdateOrganization(ctx context.Context, req *UpdateOrganizationReq, params UpdateOrganizationParams) (r *UpdateOrganizationOK, _ error)
UpdateOrganization implements updateOrganization operation.
Update an organization you own or are a member of.
PATCH /v1/organizations/{organizationName}
func (UnimplementedHandler) UploadDatabaseDump ¶
func (UnimplementedHandler) UploadDatabaseDump(ctx context.Context, req *UploadDatabaseDumpReq, params UploadDatabaseDumpParams) (r *UploadDatabaseDumpOK, _ 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
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Username) UnmarshalJSON ¶
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.
Source Files ¶
- gen.go
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go