spec

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package spec provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.9.1 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

View Source
var APIRevision = "2965fe786632c4b9554f29f598dce7856e9335b6"

Functions

func IsValidIdentifier

func IsValidIdentifier(id string) bool

IsValidIdentifier returns true if id is a valid identifier for the Xata API, false otherwise

func NewAcceptWorkspaceMemberInviteRequest

func NewAcceptWorkspaceMemberInviteRequest(server string, workspaceId WorkspaceIDParam, inviteKey InviteKeyParam) (*http.Request, error)

NewAcceptWorkspaceMemberInviteRequest generates requests for AcceptWorkspaceMemberInvite

func NewAddTableColumnRequest

func NewAddTableColumnRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, body AddTableColumnJSONRequestBody) (*http.Request, error)

NewAddTableColumnRequest calls the generic AddTableColumn builder with application/json body

func NewAddTableColumnRequestWithBody

func NewAddTableColumnRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader) (*http.Request, error)

NewAddTableColumnRequestWithBody generates requests for AddTableColumn with any type of body

func NewBulkInsertTableRecordsRequest

func NewBulkInsertTableRecordsRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, body BulkInsertTableRecordsJSONRequestBody) (*http.Request, error)

NewBulkInsertTableRecordsRequest calls the generic BulkInsertTableRecords builder with application/json body

func NewBulkInsertTableRecordsRequestWithBody

func NewBulkInsertTableRecordsRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader) (*http.Request, error)

NewBulkInsertTableRecordsRequestWithBody generates requests for BulkInsertTableRecords with any type of body

func NewCancelWorkspaceMemberInviteRequest added in v0.0.23

func NewCancelWorkspaceMemberInviteRequest(server string, workspaceId WorkspaceIDParam, inviteId InviteIDParam) (*http.Request, error)

NewCancelWorkspaceMemberInviteRequest generates requests for CancelWorkspaceMemberInvite

func NewCreateBranchRequest

func NewCreateBranchRequest(server string, dbBranchName DBBranchNameParam, params *CreateBranchParams, body CreateBranchJSONRequestBody) (*http.Request, error)

NewCreateBranchRequest calls the generic CreateBranch builder with application/json body

func NewCreateBranchRequestWithBody

func NewCreateBranchRequestWithBody(server string, dbBranchName DBBranchNameParam, params *CreateBranchParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateBranchRequestWithBody generates requests for CreateBranch with any type of body

func NewCreateDatabaseRequest

func NewCreateDatabaseRequest(server string, dbName DBNameParam, body CreateDatabaseJSONRequestBody) (*http.Request, error)

NewCreateDatabaseRequest calls the generic CreateDatabase builder with application/json body

func NewCreateDatabaseRequestWithBody

func NewCreateDatabaseRequestWithBody(server string, dbName DBNameParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateDatabaseRequestWithBody generates requests for CreateDatabase with any type of body

func NewCreateTableRequest

func NewCreateTableRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam) (*http.Request, error)

NewCreateTableRequest generates requests for CreateTable

func NewCreateUserAPIKeyRequest

func NewCreateUserAPIKeyRequest(server string, keyName APIKeyNameParam) (*http.Request, error)

NewCreateUserAPIKeyRequest generates requests for CreateUserAPIKey

func NewCreateWorkspaceRequest

func NewCreateWorkspaceRequest(server string, body CreateWorkspaceJSONRequestBody) (*http.Request, error)

NewCreateWorkspaceRequest calls the generic CreateWorkspace builder with application/json body

func NewCreateWorkspaceRequestWithBody

func NewCreateWorkspaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateWorkspaceRequestWithBody generates requests for CreateWorkspace with any type of body

func NewDeleteBranchRequest

func NewDeleteBranchRequest(server string, dbBranchName DBBranchNameParam) (*http.Request, error)

NewDeleteBranchRequest generates requests for DeleteBranch

func NewDeleteColumnRequest

func NewDeleteColumnRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam) (*http.Request, error)

NewDeleteColumnRequest generates requests for DeleteColumn

func NewDeleteDatabaseRequest

func NewDeleteDatabaseRequest(server string, dbName DBNameParam) (*http.Request, error)

NewDeleteDatabaseRequest generates requests for DeleteDatabase

func NewDeleteRecordRequest

func NewDeleteRecordRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam) (*http.Request, error)

NewDeleteRecordRequest generates requests for DeleteRecord

func NewDeleteTableRequest

func NewDeleteTableRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam) (*http.Request, error)

NewDeleteTableRequest generates requests for DeleteTable

func NewDeleteUserAPIKeyRequest

func NewDeleteUserAPIKeyRequest(server string, keyName APIKeyNameParam) (*http.Request, error)

NewDeleteUserAPIKeyRequest generates requests for DeleteUserAPIKey

func NewDeleteUserRequest

func NewDeleteUserRequest(server string) (*http.Request, error)

NewDeleteUserRequest generates requests for DeleteUser

func NewDeleteWorkspaceRequest

func NewDeleteWorkspaceRequest(server string, workspaceId WorkspaceIDParam) (*http.Request, error)

NewDeleteWorkspaceRequest generates requests for DeleteWorkspace

func NewExecuteBranchMigrationPlanRequest

func NewExecuteBranchMigrationPlanRequest(server string, dbBranchName DBBranchNameParam, body ExecuteBranchMigrationPlanJSONRequestBody) (*http.Request, error)

NewExecuteBranchMigrationPlanRequest calls the generic ExecuteBranchMigrationPlan builder with application/json body

func NewExecuteBranchMigrationPlanRequestWithBody

func NewExecuteBranchMigrationPlanRequestWithBody(server string, dbBranchName DBBranchNameParam, contentType string, body io.Reader) (*http.Request, error)

NewExecuteBranchMigrationPlanRequestWithBody generates requests for ExecuteBranchMigrationPlan with any type of body

func NewGetBranchDetailsRequest

func NewGetBranchDetailsRequest(server string, dbBranchName DBBranchNameParam) (*http.Request, error)

NewGetBranchDetailsRequest generates requests for GetBranchDetails

func NewGetBranchListRequest

func NewGetBranchListRequest(server string, dbName DBNameParam) (*http.Request, error)

NewGetBranchListRequest generates requests for GetBranchList

func NewGetBranchMetadataRequest

func NewGetBranchMetadataRequest(server string, dbBranchName DBBranchNameParam) (*http.Request, error)

NewGetBranchMetadataRequest generates requests for GetBranchMetadata

func NewGetBranchMigrationHistoryRequest

func NewGetBranchMigrationHistoryRequest(server string, dbBranchName DBBranchNameParam, body GetBranchMigrationHistoryJSONRequestBody) (*http.Request, error)

NewGetBranchMigrationHistoryRequest calls the generic GetBranchMigrationHistory builder with application/json body

func NewGetBranchMigrationHistoryRequestWithBody

func NewGetBranchMigrationHistoryRequestWithBody(server string, dbBranchName DBBranchNameParam, contentType string, body io.Reader) (*http.Request, error)

NewGetBranchMigrationHistoryRequestWithBody generates requests for GetBranchMigrationHistory with any type of body

func NewGetBranchMigrationPlanRequest

func NewGetBranchMigrationPlanRequest(server string, dbBranchName DBBranchNameParam, body GetBranchMigrationPlanJSONRequestBody) (*http.Request, error)

NewGetBranchMigrationPlanRequest calls the generic GetBranchMigrationPlan builder with application/json body

func NewGetBranchMigrationPlanRequestWithBody

func NewGetBranchMigrationPlanRequestWithBody(server string, dbBranchName DBBranchNameParam, contentType string, body io.Reader) (*http.Request, error)

NewGetBranchMigrationPlanRequestWithBody generates requests for GetBranchMigrationPlan with any type of body

func NewGetBranchStatsRequest

func NewGetBranchStatsRequest(server string, dbBranchName DBBranchNameParam) (*http.Request, error)

NewGetBranchStatsRequest generates requests for GetBranchStats

func NewGetColumnRequest

func NewGetColumnRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam) (*http.Request, error)

NewGetColumnRequest generates requests for GetColumn

func NewGetDatabaseListRequest

func NewGetDatabaseListRequest(server string) (*http.Request, error)

NewGetDatabaseListRequest generates requests for GetDatabaseList

func NewGetRecordRequest

func NewGetRecordRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, body GetRecordJSONRequestBody) (*http.Request, error)

NewGetRecordRequest calls the generic GetRecord builder with application/json body

func NewGetRecordRequestWithBody

func NewGetRecordRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, contentType string, body io.Reader) (*http.Request, error)

NewGetRecordRequestWithBody generates requests for GetRecord with any type of body

func NewGetTableColumnsRequest

func NewGetTableColumnsRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam) (*http.Request, error)

NewGetTableColumnsRequest generates requests for GetTableColumns

func NewGetTableSchemaRequest

func NewGetTableSchemaRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam) (*http.Request, error)

NewGetTableSchemaRequest generates requests for GetTableSchema

func NewGetUserAPIKeysRequest

func NewGetUserAPIKeysRequest(server string) (*http.Request, error)

NewGetUserAPIKeysRequest generates requests for GetUserAPIKeys

func NewGetUserRequest

func NewGetUserRequest(server string) (*http.Request, error)

NewGetUserRequest generates requests for GetUser

func NewGetWorkspaceMembersListRequest

func NewGetWorkspaceMembersListRequest(server string, workspaceId WorkspaceIDParam) (*http.Request, error)

NewGetWorkspaceMembersListRequest generates requests for GetWorkspaceMembersList

func NewGetWorkspaceRequest

func NewGetWorkspaceRequest(server string, workspaceId WorkspaceIDParam) (*http.Request, error)

NewGetWorkspaceRequest generates requests for GetWorkspace

func NewGetWorkspacesListRequest

func NewGetWorkspacesListRequest(server string) (*http.Request, error)

NewGetWorkspacesListRequest generates requests for GetWorkspacesList

func NewInsertRecordRequest

func NewInsertRecordRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, body InsertRecordJSONRequestBody) (*http.Request, error)

NewInsertRecordRequest calls the generic InsertRecord builder with application/json body

func NewInsertRecordRequestWithBody

func NewInsertRecordRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader) (*http.Request, error)

NewInsertRecordRequestWithBody generates requests for InsertRecord with any type of body

func NewInsertRecordWithIDRequest

func NewInsertRecordWithIDRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, body InsertRecordWithIDJSONRequestBody) (*http.Request, error)

NewInsertRecordWithIDRequest calls the generic InsertRecordWithID builder with application/json body

func NewInsertRecordWithIDRequestWithBody

func NewInsertRecordWithIDRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, contentType string, body io.Reader) (*http.Request, error)

NewInsertRecordWithIDRequestWithBody generates requests for InsertRecordWithID with any type of body

func NewInviteWorkspaceMemberRequest

func NewInviteWorkspaceMemberRequest(server string, workspaceId WorkspaceIDParam, body InviteWorkspaceMemberJSONRequestBody) (*http.Request, error)

NewInviteWorkspaceMemberRequest calls the generic InviteWorkspaceMember builder with application/json body

func NewInviteWorkspaceMemberRequestWithBody

func NewInviteWorkspaceMemberRequestWithBody(server string, workspaceId WorkspaceIDParam, contentType string, body io.Reader) (*http.Request, error)

NewInviteWorkspaceMemberRequestWithBody generates requests for InviteWorkspaceMember with any type of body

func NewQueryTableRequest

func NewQueryTableRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, body QueryTableJSONRequestBody) (*http.Request, error)

NewQueryTableRequest calls the generic QueryTable builder with application/json body

func NewQueryTableRequestWithBody

func NewQueryTableRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader) (*http.Request, error)

NewQueryTableRequestWithBody generates requests for QueryTable with any type of body

func NewRemoveWorkspaceMemberRequest

func NewRemoveWorkspaceMemberRequest(server string, workspaceId WorkspaceIDParam, userId UserIDParam) (*http.Request, error)

NewRemoveWorkspaceMemberRequest generates requests for RemoveWorkspaceMember

func NewResendWorkspaceMemberInviteRequest added in v0.0.23

func NewResendWorkspaceMemberInviteRequest(server string, workspaceId WorkspaceIDParam, inviteId InviteIDParam) (*http.Request, error)

NewResendWorkspaceMemberInviteRequest generates requests for ResendWorkspaceMemberInvite

func NewSearchBranchRequest added in v0.0.23

func NewSearchBranchRequest(server string, dbBranchName DBBranchNameParam, body SearchBranchJSONRequestBody) (*http.Request, error)

NewSearchBranchRequest calls the generic SearchBranch builder with application/json body

func NewSearchBranchRequestWithBody added in v0.0.23

func NewSearchBranchRequestWithBody(server string, dbBranchName DBBranchNameParam, contentType string, body io.Reader) (*http.Request, error)

NewSearchBranchRequestWithBody generates requests for SearchBranch with any type of body

func NewSetTableSchemaRequest

func NewSetTableSchemaRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, body SetTableSchemaJSONRequestBody) (*http.Request, error)

NewSetTableSchemaRequest calls the generic SetTableSchema builder with application/json body

func NewSetTableSchemaRequestWithBody

func NewSetTableSchemaRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader) (*http.Request, error)

NewSetTableSchemaRequestWithBody generates requests for SetTableSchema with any type of body

func NewUpdateBranchMetadataRequest

func NewUpdateBranchMetadataRequest(server string, dbBranchName DBBranchNameParam, body UpdateBranchMetadataJSONRequestBody) (*http.Request, error)

NewUpdateBranchMetadataRequest calls the generic UpdateBranchMetadata builder with application/json body

func NewUpdateBranchMetadataRequestWithBody

func NewUpdateBranchMetadataRequestWithBody(server string, dbBranchName DBBranchNameParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateBranchMetadataRequestWithBody generates requests for UpdateBranchMetadata with any type of body

func NewUpdateColumnRequest

func NewUpdateColumnRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, body UpdateColumnJSONRequestBody) (*http.Request, error)

NewUpdateColumnRequest calls the generic UpdateColumn builder with application/json body

func NewUpdateColumnRequestWithBody

func NewUpdateColumnRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateColumnRequestWithBody generates requests for UpdateColumn with any type of body

func NewUpdateRecordWithIDRequest added in v0.0.23

func NewUpdateRecordWithIDRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, body UpdateRecordWithIDJSONRequestBody) (*http.Request, error)

NewUpdateRecordWithIDRequest calls the generic UpdateRecordWithID builder with application/json body

func NewUpdateRecordWithIDRequestWithBody added in v0.0.23

func NewUpdateRecordWithIDRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRecordWithIDRequestWithBody generates requests for UpdateRecordWithID with any type of body

func NewUpdateTableRequest

func NewUpdateTableRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, body UpdateTableJSONRequestBody) (*http.Request, error)

NewUpdateTableRequest calls the generic UpdateTable builder with application/json body

func NewUpdateTableRequestWithBody

func NewUpdateTableRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTableRequestWithBody generates requests for UpdateTable with any type of body

func NewUpdateUserRequest

func NewUpdateUserRequest(server string, body UpdateUserJSONRequestBody) (*http.Request, error)

NewUpdateUserRequest calls the generic UpdateUser builder with application/json body

func NewUpdateUserRequestWithBody

func NewUpdateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body

func NewUpdateWorkspaceMemberRoleRequest

func NewUpdateWorkspaceMemberRoleRequest(server string, workspaceId WorkspaceIDParam, userId UserIDParam, body UpdateWorkspaceMemberRoleJSONRequestBody) (*http.Request, error)

NewUpdateWorkspaceMemberRoleRequest calls the generic UpdateWorkspaceMemberRole builder with application/json body

func NewUpdateWorkspaceMemberRoleRequestWithBody

func NewUpdateWorkspaceMemberRoleRequestWithBody(server string, workspaceId WorkspaceIDParam, userId UserIDParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateWorkspaceMemberRoleRequestWithBody generates requests for UpdateWorkspaceMemberRole with any type of body

func NewUpdateWorkspaceRequest

func NewUpdateWorkspaceRequest(server string, workspaceId WorkspaceIDParam, body UpdateWorkspaceJSONRequestBody) (*http.Request, error)

NewUpdateWorkspaceRequest calls the generic UpdateWorkspace builder with application/json body

func NewUpdateWorkspaceRequestWithBody

func NewUpdateWorkspaceRequestWithBody(server string, workspaceId WorkspaceIDParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateWorkspaceRequestWithBody generates requests for UpdateWorkspace with any type of body

func NewUpsertRecordWithIDRequest added in v0.0.23

func NewUpsertRecordWithIDRequest(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, body UpsertRecordWithIDJSONRequestBody) (*http.Request, error)

NewUpsertRecordWithIDRequest calls the generic UpsertRecordWithID builder with application/json body

func NewUpsertRecordWithIDRequestWithBody added in v0.0.23

func NewUpsertRecordWithIDRequestWithBody(server string, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, contentType string, body io.Reader) (*http.Request, error)

NewUpsertRecordWithIDRequestWithBody generates requests for UpsertRecordWithID with any type of body

Types

type APIKeyName

type APIKeyName string

APIKeyName defines model for APIKeyName.

type APIKeyNameParam

type APIKeyNameParam APIKeyName

APIKeyNameParam defines model for APIKeyNameParam.

type AcceptWorkspaceMemberInviteResponse

type AcceptWorkspaceMemberInviteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseAcceptWorkspaceMemberInviteResponse

func ParseAcceptWorkspaceMemberInviteResponse(rsp *http.Response) (*AcceptWorkspaceMemberInviteResponse, error)

ParseAcceptWorkspaceMemberInviteResponse parses an HTTP response from a AcceptWorkspaceMemberInviteWithResponse call

func (AcceptWorkspaceMemberInviteResponse) Status

Status returns HTTPResponse.Status

func (AcceptWorkspaceMemberInviteResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AddTableColumnJSONBody

type AddTableColumnJSONBody Column

AddTableColumnJSONBody defines parameters for AddTableColumn.

type AddTableColumnJSONRequestBody

type AddTableColumnJSONRequestBody AddTableColumnJSONBody

AddTableColumnJSONRequestBody defines body for AddTableColumn for application/json ContentType.

type AddTableColumnResponse

type AddTableColumnResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		MigrationID string `json:"migrationID"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseAddTableColumnResponse

func ParseAddTableColumnResponse(rsp *http.Response) (*AddTableColumnResponse, error)

ParseAddTableColumnResponse parses an HTTP response from a AddTableColumnWithResponse call

func (AddTableColumnResponse) Status

func (r AddTableColumnResponse) Status() string

Status returns HTTPResponse.Status

func (AddTableColumnResponse) StatusCode

func (r AddTableColumnResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthError

type AuthError struct {
	Id      *string `json:"id,omitempty"`
	Message string  `json:"message"`
}

AuthError defines model for AuthError.

type BadRequestError

type BadRequestError struct {
	Id      *string `json:"id,omitempty"`
	Message string  `json:"message"`
}

BadRequestError defines model for BadRequestError.

type Branch

type Branch struct {
	CreatedAt DateTime `json:"createdAt"`
	Name      string   `json:"name"`
}

Branch defines model for Branch.

type BranchMetadata

type BranchMetadata struct {
	Branch     *BranchName `json:"branch,omitempty"`
	Labels     *[]string   `json:"labels,omitempty"`
	Repository *string     `json:"repository,omitempty"`
	Stage      *string     `json:"stage,omitempty"`
}

BranchMetadata defines model for BranchMetadata.

type BranchMigration

type BranchMigration struct {
	CreatedAt       *DateTime                        `json:"createdAt,omitempty"`
	Id              *string                          `json:"id,omitempty"`
	LastGitRevision *string                          `json:"lastGitRevision,omitempty"`
	LocalChanges    bool                             `json:"localChanges"`
	NewTableOrder   []string                         `json:"newTableOrder"`
	NewTables       *BranchMigration_NewTables       `json:"newTables,omitempty"`
	ParentID        *string                          `json:"parentID,omitempty"`
	RemovedTables   *[]string                        `json:"removedTables,omitempty"`
	RenamedTables   *[]TableRename                   `json:"renamedTables,omitempty"`
	Status          string                           `json:"status"`
	TableMigrations *BranchMigration_TableMigrations `json:"tableMigrations,omitempty"`
	Title           *string                          `json:"title,omitempty"`
}

BranchMigration defines model for BranchMigration.

type BranchMigrationPlan

type BranchMigrationPlan struct {
	Migration BranchMigration `json:"migration"`
	Version   int             `json:"version"`
}

BranchMigrationPlan defines model for BranchMigrationPlan.

type BranchMigration_NewTables

type BranchMigration_NewTables struct {
	AdditionalProperties map[string]Table `json:"-"`
}

BranchMigration_NewTables defines model for BranchMigration.NewTables.

func (BranchMigration_NewTables) Get

func (a BranchMigration_NewTables) Get(fieldName string) (value Table, found bool)

Getter for additional properties for BranchMigration_NewTables. Returns the specified element and whether it was found

func (BranchMigration_NewTables) MarshalJSON

func (a BranchMigration_NewTables) MarshalJSON() ([]byte, error)

Override default JSON handling for BranchMigration_NewTables to handle AdditionalProperties

func (*BranchMigration_NewTables) Set

func (a *BranchMigration_NewTables) Set(fieldName string, value Table)

Setter for additional properties for BranchMigration_NewTables

func (*BranchMigration_NewTables) UnmarshalJSON

func (a *BranchMigration_NewTables) UnmarshalJSON(b []byte) error

Override default JSON handling for BranchMigration_NewTables to handle AdditionalProperties

type BranchMigration_TableMigrations

type BranchMigration_TableMigrations struct {
	AdditionalProperties map[string]TableMigration `json:"-"`
}

BranchMigration_TableMigrations defines model for BranchMigration.TableMigrations.

func (BranchMigration_TableMigrations) Get

func (a BranchMigration_TableMigrations) Get(fieldName string) (value TableMigration, found bool)

Getter for additional properties for BranchMigration_TableMigrations. Returns the specified element and whether it was found

func (BranchMigration_TableMigrations) MarshalJSON

func (a BranchMigration_TableMigrations) MarshalJSON() ([]byte, error)

Override default JSON handling for BranchMigration_TableMigrations to handle AdditionalProperties

func (*BranchMigration_TableMigrations) Set

func (a *BranchMigration_TableMigrations) Set(fieldName string, value TableMigration)

Setter for additional properties for BranchMigration_TableMigrations

func (*BranchMigration_TableMigrations) UnmarshalJSON

func (a *BranchMigration_TableMigrations) UnmarshalJSON(b []byte) error

Override default JSON handling for BranchMigration_TableMigrations to handle AdditionalProperties

type BranchName

type BranchName string

BranchName defines model for BranchName.

type BulkInsertTableRecordsJSONBody

type BulkInsertTableRecordsJSONBody struct {
	Records []map[string]interface{} `json:"records"`
}

BulkInsertTableRecordsJSONBody defines parameters for BulkInsertTableRecords.

type BulkInsertTableRecordsJSONRequestBody

type BulkInsertTableRecordsJSONRequestBody BulkInsertTableRecordsJSONBody

BulkInsertTableRecordsJSONRequestBody defines body for BulkInsertTableRecords for application/json ContentType.

type BulkInsertTableRecordsResponse

type BulkInsertTableRecordsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		RecordIDs []string `json:"recordIDs"`
	}
	JSON400 *struct {
		Errors []struct {
			Message *string `json:"message,omitempty"`
		} `json:"errors"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseBulkInsertTableRecordsResponse

func ParseBulkInsertTableRecordsResponse(rsp *http.Response) (*BulkInsertTableRecordsResponse, error)

ParseBulkInsertTableRecordsResponse parses an HTTP response from a BulkInsertTableRecordsWithResponse call

func (BulkInsertTableRecordsResponse) Status

Status returns HTTPResponse.Status

func (BulkInsertTableRecordsResponse) StatusCode

func (r BulkInsertTableRecordsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelWorkspaceMemberInviteResponse added in v0.0.23

type CancelWorkspaceMemberInviteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseCancelWorkspaceMemberInviteResponse added in v0.0.23

func ParseCancelWorkspaceMemberInviteResponse(rsp *http.Response) (*CancelWorkspaceMemberInviteResponse, error)

ParseCancelWorkspaceMemberInviteResponse parses an HTTP response from a CancelWorkspaceMemberInviteWithResponse call

func (CancelWorkspaceMemberInviteResponse) Status added in v0.0.23

Status returns HTTPResponse.Status

func (CancelWorkspaceMemberInviteResponse) StatusCode added in v0.0.23

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

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

Creates a new Client, with reasonable defaults

func (*Client) AcceptWorkspaceMemberInvite

func (c *Client) AcceptWorkspaceMemberInvite(ctx context.Context, workspaceId WorkspaceIDParam, inviteKey InviteKeyParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddTableColumn

func (c *Client) AddTableColumn(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body AddTableColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddTableColumnWithBody

func (c *Client) AddTableColumnWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BulkInsertTableRecords

func (c *Client) BulkInsertTableRecords(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body BulkInsertTableRecordsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BulkInsertTableRecordsWithBody

func (c *Client) BulkInsertTableRecordsWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelWorkspaceMemberInvite added in v0.0.23

func (c *Client) CancelWorkspaceMemberInvite(ctx context.Context, workspaceId WorkspaceIDParam, inviteId InviteIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBranch

func (c *Client) CreateBranch(ctx context.Context, dbBranchName DBBranchNameParam, params *CreateBranchParams, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBranchWithBody

func (c *Client) CreateBranchWithBody(ctx context.Context, dbBranchName DBBranchNameParam, params *CreateBranchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDatabase

func (c *Client) CreateDatabase(ctx context.Context, dbName DBNameParam, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDatabaseWithBody

func (c *Client) CreateDatabaseWithBody(ctx context.Context, dbName DBNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTable

func (c *Client) CreateTable(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateUserAPIKey

func (c *Client) CreateUserAPIKey(ctx context.Context, keyName APIKeyNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWorkspace

func (c *Client) CreateWorkspace(ctx context.Context, body CreateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWorkspaceWithBody

func (c *Client) CreateWorkspaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBranch

func (c *Client) DeleteBranch(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteColumn

func (c *Client) DeleteColumn(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteDatabase

func (c *Client) DeleteDatabase(ctx context.Context, dbName DBNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteTable

func (c *Client) DeleteTable(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteUserAPIKey

func (c *Client) DeleteUserAPIKey(ctx context.Context, keyName APIKeyNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteWorkspace

func (c *Client) DeleteWorkspace(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExecuteBranchMigrationPlan

func (c *Client) ExecuteBranchMigrationPlan(ctx context.Context, dbBranchName DBBranchNameParam, body ExecuteBranchMigrationPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExecuteBranchMigrationPlanWithBody

func (c *Client) ExecuteBranchMigrationPlanWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchDetails

func (c *Client) GetBranchDetails(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchList

func (c *Client) GetBranchList(ctx context.Context, dbName DBNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchMetadata

func (c *Client) GetBranchMetadata(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchMigrationHistory

func (c *Client) GetBranchMigrationHistory(ctx context.Context, dbBranchName DBBranchNameParam, body GetBranchMigrationHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchMigrationHistoryWithBody

func (c *Client) GetBranchMigrationHistoryWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchMigrationPlan

func (c *Client) GetBranchMigrationPlan(ctx context.Context, dbBranchName DBBranchNameParam, body GetBranchMigrationPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchMigrationPlanWithBody

func (c *Client) GetBranchMigrationPlanWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchStats

func (c *Client) GetBranchStats(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetColumn

func (c *Client) GetColumn(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDatabaseList

func (c *Client) GetDatabaseList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRecord

func (c *Client) GetRecord(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, body GetRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRecordWithBody

func (c *Client) GetRecordWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTableColumns

func (c *Client) GetTableColumns(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTableSchema

func (c *Client) GetTableSchema(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUserAPIKeys

func (c *Client) GetUserAPIKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWorkspace

func (c *Client) GetWorkspace(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWorkspaceMembersList

func (c *Client) GetWorkspaceMembersList(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWorkspacesList

func (c *Client) GetWorkspacesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InsertRecord

func (c *Client) InsertRecord(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body InsertRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InsertRecordWithBody

func (c *Client) InsertRecordWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InsertRecordWithID

func (c *Client) InsertRecordWithID(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, body InsertRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InsertRecordWithIDWithBody

func (c *Client) InsertRecordWithIDWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InviteWorkspaceMember

func (c *Client) InviteWorkspaceMember(ctx context.Context, workspaceId WorkspaceIDParam, body InviteWorkspaceMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InviteWorkspaceMemberWithBody

func (c *Client) InviteWorkspaceMemberWithBody(ctx context.Context, workspaceId WorkspaceIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryTable

func (c *Client) QueryTable(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body QueryTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryTableWithBody

func (c *Client) QueryTableWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveWorkspaceMember

func (c *Client) RemoveWorkspaceMember(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResendWorkspaceMemberInvite added in v0.0.23

func (c *Client) ResendWorkspaceMemberInvite(ctx context.Context, workspaceId WorkspaceIDParam, inviteId InviteIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SearchBranch added in v0.0.23

func (c *Client) SearchBranch(ctx context.Context, dbBranchName DBBranchNameParam, body SearchBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SearchBranchWithBody added in v0.0.23

func (c *Client) SearchBranchWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetTableSchema

func (c *Client) SetTableSchema(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body SetTableSchemaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetTableSchemaWithBody

func (c *Client) SetTableSchemaWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateBranchMetadata

func (c *Client) UpdateBranchMetadata(ctx context.Context, dbBranchName DBBranchNameParam, body UpdateBranchMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateBranchMetadataWithBody

func (c *Client) UpdateBranchMetadataWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateColumn

func (c *Client) UpdateColumn(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, body UpdateColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateColumnWithBody

func (c *Client) UpdateColumnWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateRecordWithID added in v0.0.23

func (c *Client) UpdateRecordWithID(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, body UpdateRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateRecordWithIDWithBody added in v0.0.23

func (c *Client) UpdateRecordWithIDWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTable

func (c *Client) UpdateTable(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body UpdateTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTableWithBody

func (c *Client) UpdateTableWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUserWithBody

func (c *Client) UpdateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWorkspace

func (c *Client) UpdateWorkspace(ctx context.Context, workspaceId WorkspaceIDParam, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWorkspaceMemberRole

func (c *Client) UpdateWorkspaceMemberRole(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, body UpdateWorkspaceMemberRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWorkspaceMemberRoleWithBody

func (c *Client) UpdateWorkspaceMemberRoleWithBody(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWorkspaceWithBody

func (c *Client) UpdateWorkspaceWithBody(ctx context.Context, workspaceId WorkspaceIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertRecordWithID added in v0.0.23

func (c *Client) UpsertRecordWithID(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, body UpsertRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertRecordWithIDWithBody added in v0.0.23

func (c *Client) UpsertRecordWithIDWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// DeleteBranch request
	DeleteBranch(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranchDetails request
	GetBranchDetails(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBranch request with any body
	CreateBranchWithBody(ctx context.Context, dbBranchName DBBranchNameParam, params *CreateBranchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateBranch(ctx context.Context, dbBranchName DBBranchNameParam, params *CreateBranchParams, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranchMetadata request
	GetBranchMetadata(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateBranchMetadata request with any body
	UpdateBranchMetadataWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateBranchMetadata(ctx context.Context, dbBranchName DBBranchNameParam, body UpdateBranchMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranchMigrationHistory request with any body
	GetBranchMigrationHistoryWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetBranchMigrationHistory(ctx context.Context, dbBranchName DBBranchNameParam, body GetBranchMigrationHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExecuteBranchMigrationPlan request with any body
	ExecuteBranchMigrationPlanWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ExecuteBranchMigrationPlan(ctx context.Context, dbBranchName DBBranchNameParam, body ExecuteBranchMigrationPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranchMigrationPlan request with any body
	GetBranchMigrationPlanWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetBranchMigrationPlan(ctx context.Context, dbBranchName DBBranchNameParam, body GetBranchMigrationPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchBranch request with any body
	SearchBranchWithBody(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SearchBranch(ctx context.Context, dbBranchName DBBranchNameParam, body SearchBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranchStats request
	GetBranchStats(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTable request
	DeleteTable(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTable request with any body
	UpdateTableWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateTable(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body UpdateTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTable request
	CreateTable(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BulkInsertTableRecords request with any body
	BulkInsertTableRecordsWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	BulkInsertTableRecords(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body BulkInsertTableRecordsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTableColumns request
	GetTableColumns(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddTableColumn request with any body
	AddTableColumnWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddTableColumn(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body AddTableColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteColumn request
	DeleteColumn(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetColumn request
	GetColumn(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateColumn request with any body
	UpdateColumnWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateColumn(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, body UpdateColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InsertRecord request with any body
	InsertRecordWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InsertRecord(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body InsertRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRecord request
	DeleteRecord(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRecord request with any body
	GetRecordWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetRecord(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, body GetRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRecordWithID request with any body
	UpdateRecordWithIDWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateRecordWithID(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, body UpdateRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpsertRecordWithID request with any body
	UpsertRecordWithIDWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpsertRecordWithID(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, body UpsertRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InsertRecordWithID request with any body
	InsertRecordWithIDWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InsertRecordWithID(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, body InsertRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryTable request with any body
	QueryTableWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	QueryTable(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body QueryTableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTableSchema request
	GetTableSchema(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetTableSchema request with any body
	SetTableSchemaWithBody(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetTableSchema(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body SetTableSchemaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDatabaseList request
	GetDatabaseList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDatabase request
	DeleteDatabase(ctx context.Context, dbName DBNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranchList request
	GetBranchList(ctx context.Context, dbName DBNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateDatabase request with any body
	CreateDatabaseWithBody(ctx context.Context, dbName DBNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateDatabase(ctx context.Context, dbName DBNameParam, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUser request
	DeleteUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUser request
	GetUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUser request with any body
	UpdateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateUser(ctx context.Context, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserAPIKeys request
	GetUserAPIKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUserAPIKey request
	DeleteUserAPIKey(ctx context.Context, keyName APIKeyNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserAPIKey request
	CreateUserAPIKey(ctx context.Context, keyName APIKeyNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkspacesList request
	GetWorkspacesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWorkspace request with any body
	CreateWorkspaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateWorkspace(ctx context.Context, body CreateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWorkspace request
	DeleteWorkspace(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkspace request
	GetWorkspace(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWorkspace request with any body
	UpdateWorkspaceWithBody(ctx context.Context, workspaceId WorkspaceIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateWorkspace(ctx context.Context, workspaceId WorkspaceIDParam, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InviteWorkspaceMember request with any body
	InviteWorkspaceMemberWithBody(ctx context.Context, workspaceId WorkspaceIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InviteWorkspaceMember(ctx context.Context, workspaceId WorkspaceIDParam, body InviteWorkspaceMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelWorkspaceMemberInvite request
	CancelWorkspaceMemberInvite(ctx context.Context, workspaceId WorkspaceIDParam, inviteId InviteIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResendWorkspaceMemberInvite request
	ResendWorkspaceMemberInvite(ctx context.Context, workspaceId WorkspaceIDParam, inviteId InviteIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AcceptWorkspaceMemberInvite request
	AcceptWorkspaceMemberInvite(ctx context.Context, workspaceId WorkspaceIDParam, inviteKey InviteKeyParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkspaceMembersList request
	GetWorkspaceMembersList(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveWorkspaceMember request
	RemoveWorkspaceMember(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWorkspaceMemberRole request with any body
	UpdateWorkspaceMemberRoleWithBody(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateWorkspaceMemberRole(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, body UpdateWorkspaceMemberRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AcceptWorkspaceMemberInviteWithResponse

func (c *ClientWithResponses) AcceptWorkspaceMemberInviteWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, inviteKey InviteKeyParam, reqEditors ...RequestEditorFn) (*AcceptWorkspaceMemberInviteResponse, error)

AcceptWorkspaceMemberInviteWithResponse request returning *AcceptWorkspaceMemberInviteResponse

func (*ClientWithResponses) AddTableColumnWithBodyWithResponse

func (c *ClientWithResponses) AddTableColumnWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTableColumnResponse, error)

AddTableColumnWithBodyWithResponse request with arbitrary body returning *AddTableColumnResponse

func (*ClientWithResponses) AddTableColumnWithResponse

func (c *ClientWithResponses) AddTableColumnWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body AddTableColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTableColumnResponse, error)

func (*ClientWithResponses) BulkInsertTableRecordsWithBodyWithResponse

func (c *ClientWithResponses) BulkInsertTableRecordsWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkInsertTableRecordsResponse, error)

BulkInsertTableRecordsWithBodyWithResponse request with arbitrary body returning *BulkInsertTableRecordsResponse

func (*ClientWithResponses) BulkInsertTableRecordsWithResponse

func (c *ClientWithResponses) BulkInsertTableRecordsWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body BulkInsertTableRecordsJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkInsertTableRecordsResponse, error)

func (*ClientWithResponses) CancelWorkspaceMemberInviteWithResponse added in v0.0.23

func (c *ClientWithResponses) CancelWorkspaceMemberInviteWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, inviteId InviteIDParam, reqEditors ...RequestEditorFn) (*CancelWorkspaceMemberInviteResponse, error)

CancelWorkspaceMemberInviteWithResponse request returning *CancelWorkspaceMemberInviteResponse

func (*ClientWithResponses) CreateBranchWithBodyWithResponse

func (c *ClientWithResponses) CreateBranchWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, params *CreateBranchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

CreateBranchWithBodyWithResponse request with arbitrary body returning *CreateBranchResponse

func (*ClientWithResponses) CreateBranchWithResponse

func (c *ClientWithResponses) CreateBranchWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, params *CreateBranchParams, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

func (*ClientWithResponses) CreateDatabaseWithBodyWithResponse

func (c *ClientWithResponses) CreateDatabaseWithBodyWithResponse(ctx context.Context, dbName DBNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseResponse, error)

CreateDatabaseWithBodyWithResponse request with arbitrary body returning *CreateDatabaseResponse

func (*ClientWithResponses) CreateDatabaseWithResponse

func (c *ClientWithResponses) CreateDatabaseWithResponse(ctx context.Context, dbName DBNameParam, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseResponse, error)

func (*ClientWithResponses) CreateTableWithResponse

func (c *ClientWithResponses) CreateTableWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*CreateTableResponse, error)

CreateTableWithResponse request returning *CreateTableResponse

func (*ClientWithResponses) CreateUserAPIKeyWithResponse

func (c *ClientWithResponses) CreateUserAPIKeyWithResponse(ctx context.Context, keyName APIKeyNameParam, reqEditors ...RequestEditorFn) (*CreateUserAPIKeyResponse, error)

CreateUserAPIKeyWithResponse request returning *CreateUserAPIKeyResponse

func (*ClientWithResponses) CreateWorkspaceWithBodyWithResponse

func (c *ClientWithResponses) CreateWorkspaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkspaceResponse, error)

CreateWorkspaceWithBodyWithResponse request with arbitrary body returning *CreateWorkspaceResponse

func (*ClientWithResponses) CreateWorkspaceWithResponse

func (c *ClientWithResponses) CreateWorkspaceWithResponse(ctx context.Context, body CreateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkspaceResponse, error)

func (*ClientWithResponses) DeleteBranchWithResponse

func (c *ClientWithResponses) DeleteBranchWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*DeleteBranchResponse, error)

DeleteBranchWithResponse request returning *DeleteBranchResponse

func (*ClientWithResponses) DeleteColumnWithResponse

func (c *ClientWithResponses) DeleteColumnWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, reqEditors ...RequestEditorFn) (*DeleteColumnResponse, error)

DeleteColumnWithResponse request returning *DeleteColumnResponse

func (*ClientWithResponses) DeleteDatabaseWithResponse

func (c *ClientWithResponses) DeleteDatabaseWithResponse(ctx context.Context, dbName DBNameParam, reqEditors ...RequestEditorFn) (*DeleteDatabaseResponse, error)

DeleteDatabaseWithResponse request returning *DeleteDatabaseResponse

func (*ClientWithResponses) DeleteRecordWithResponse

func (c *ClientWithResponses) DeleteRecordWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, reqEditors ...RequestEditorFn) (*DeleteRecordResponse, error)

DeleteRecordWithResponse request returning *DeleteRecordResponse

func (*ClientWithResponses) DeleteTableWithResponse

func (c *ClientWithResponses) DeleteTableWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*DeleteTableResponse, error)

DeleteTableWithResponse request returning *DeleteTableResponse

func (*ClientWithResponses) DeleteUserAPIKeyWithResponse

func (c *ClientWithResponses) DeleteUserAPIKeyWithResponse(ctx context.Context, keyName APIKeyNameParam, reqEditors ...RequestEditorFn) (*DeleteUserAPIKeyResponse, error)

DeleteUserAPIKeyWithResponse request returning *DeleteUserAPIKeyResponse

func (*ClientWithResponses) DeleteUserWithResponse

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

DeleteUserWithResponse request returning *DeleteUserResponse

func (*ClientWithResponses) DeleteWorkspaceWithResponse

func (c *ClientWithResponses) DeleteWorkspaceWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*DeleteWorkspaceResponse, error)

DeleteWorkspaceWithResponse request returning *DeleteWorkspaceResponse

func (*ClientWithResponses) ExecuteBranchMigrationPlanWithBodyWithResponse

func (c *ClientWithResponses) ExecuteBranchMigrationPlanWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteBranchMigrationPlanResponse, error)

ExecuteBranchMigrationPlanWithBodyWithResponse request with arbitrary body returning *ExecuteBranchMigrationPlanResponse

func (*ClientWithResponses) ExecuteBranchMigrationPlanWithResponse

func (c *ClientWithResponses) ExecuteBranchMigrationPlanWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body ExecuteBranchMigrationPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteBranchMigrationPlanResponse, error)

func (*ClientWithResponses) GetBranchDetailsWithResponse

func (c *ClientWithResponses) GetBranchDetailsWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*GetBranchDetailsResponse, error)

GetBranchDetailsWithResponse request returning *GetBranchDetailsResponse

func (*ClientWithResponses) GetBranchListWithResponse

func (c *ClientWithResponses) GetBranchListWithResponse(ctx context.Context, dbName DBNameParam, reqEditors ...RequestEditorFn) (*GetBranchListResponse, error)

GetBranchListWithResponse request returning *GetBranchListResponse

func (*ClientWithResponses) GetBranchMetadataWithResponse

func (c *ClientWithResponses) GetBranchMetadataWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*GetBranchMetadataResponse, error)

GetBranchMetadataWithResponse request returning *GetBranchMetadataResponse

func (*ClientWithResponses) GetBranchMigrationHistoryWithBodyWithResponse

func (c *ClientWithResponses) GetBranchMigrationHistoryWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBranchMigrationHistoryResponse, error)

GetBranchMigrationHistoryWithBodyWithResponse request with arbitrary body returning *GetBranchMigrationHistoryResponse

func (*ClientWithResponses) GetBranchMigrationHistoryWithResponse

func (c *ClientWithResponses) GetBranchMigrationHistoryWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body GetBranchMigrationHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBranchMigrationHistoryResponse, error)

func (*ClientWithResponses) GetBranchMigrationPlanWithBodyWithResponse

func (c *ClientWithResponses) GetBranchMigrationPlanWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBranchMigrationPlanResponse, error)

GetBranchMigrationPlanWithBodyWithResponse request with arbitrary body returning *GetBranchMigrationPlanResponse

func (*ClientWithResponses) GetBranchMigrationPlanWithResponse

func (c *ClientWithResponses) GetBranchMigrationPlanWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body GetBranchMigrationPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBranchMigrationPlanResponse, error)

func (*ClientWithResponses) GetBranchStatsWithResponse

func (c *ClientWithResponses) GetBranchStatsWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*GetBranchStatsResponse, error)

GetBranchStatsWithResponse request returning *GetBranchStatsResponse

func (*ClientWithResponses) GetColumnWithResponse

func (c *ClientWithResponses) GetColumnWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, reqEditors ...RequestEditorFn) (*GetColumnResponse, error)

GetColumnWithResponse request returning *GetColumnResponse

func (*ClientWithResponses) GetDatabaseListWithResponse

func (c *ClientWithResponses) GetDatabaseListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDatabaseListResponse, error)

GetDatabaseListWithResponse request returning *GetDatabaseListResponse

func (*ClientWithResponses) GetRecordWithBodyWithResponse

func (c *ClientWithResponses) GetRecordWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetRecordResponse, error)

GetRecordWithBodyWithResponse request with arbitrary body returning *GetRecordResponse

func (*ClientWithResponses) GetRecordWithResponse

func (c *ClientWithResponses) GetRecordWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, body GetRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*GetRecordResponse, error)

func (*ClientWithResponses) GetTableColumnsWithResponse

func (c *ClientWithResponses) GetTableColumnsWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*GetTableColumnsResponse, error)

GetTableColumnsWithResponse request returning *GetTableColumnsResponse

func (*ClientWithResponses) GetTableSchemaWithResponse

func (c *ClientWithResponses) GetTableSchemaWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*GetTableSchemaResponse, error)

GetTableSchemaWithResponse request returning *GetTableSchemaResponse

func (*ClientWithResponses) GetUserAPIKeysWithResponse

func (c *ClientWithResponses) GetUserAPIKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserAPIKeysResponse, error)

GetUserAPIKeysWithResponse request returning *GetUserAPIKeysResponse

func (*ClientWithResponses) GetUserWithResponse

func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

GetUserWithResponse request returning *GetUserResponse

func (*ClientWithResponses) GetWorkspaceMembersListWithResponse

func (c *ClientWithResponses) GetWorkspaceMembersListWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*GetWorkspaceMembersListResponse, error)

GetWorkspaceMembersListWithResponse request returning *GetWorkspaceMembersListResponse

func (*ClientWithResponses) GetWorkspaceWithResponse

func (c *ClientWithResponses) GetWorkspaceWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*GetWorkspaceResponse, error)

GetWorkspaceWithResponse request returning *GetWorkspaceResponse

func (*ClientWithResponses) GetWorkspacesListWithResponse

func (c *ClientWithResponses) GetWorkspacesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkspacesListResponse, error)

GetWorkspacesListWithResponse request returning *GetWorkspacesListResponse

func (*ClientWithResponses) InsertRecordWithBodyWithResponse

func (c *ClientWithResponses) InsertRecordWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InsertRecordResponse, error)

InsertRecordWithBodyWithResponse request with arbitrary body returning *InsertRecordResponse

func (*ClientWithResponses) InsertRecordWithIDWithBodyWithResponse

func (c *ClientWithResponses) InsertRecordWithIDWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InsertRecordWithIDResponse, error)

InsertRecordWithIDWithBodyWithResponse request with arbitrary body returning *InsertRecordWithIDResponse

func (*ClientWithResponses) InsertRecordWithIDWithResponse

func (c *ClientWithResponses) InsertRecordWithIDWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, body InsertRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*InsertRecordWithIDResponse, error)

func (*ClientWithResponses) InsertRecordWithResponse

func (c *ClientWithResponses) InsertRecordWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body InsertRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*InsertRecordResponse, error)

func (*ClientWithResponses) InviteWorkspaceMemberWithBodyWithResponse

func (c *ClientWithResponses) InviteWorkspaceMemberWithBodyWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteWorkspaceMemberResponse, error)

InviteWorkspaceMemberWithBodyWithResponse request with arbitrary body returning *InviteWorkspaceMemberResponse

func (*ClientWithResponses) InviteWorkspaceMemberWithResponse

func (c *ClientWithResponses) InviteWorkspaceMemberWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, body InviteWorkspaceMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteWorkspaceMemberResponse, error)

func (*ClientWithResponses) QueryTableWithBodyWithResponse

func (c *ClientWithResponses) QueryTableWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryTableResponse, error)

QueryTableWithBodyWithResponse request with arbitrary body returning *QueryTableResponse

func (*ClientWithResponses) QueryTableWithResponse

func (c *ClientWithResponses) QueryTableWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body QueryTableJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryTableResponse, error)

func (*ClientWithResponses) RemoveWorkspaceMemberWithResponse

func (c *ClientWithResponses) RemoveWorkspaceMemberWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, reqEditors ...RequestEditorFn) (*RemoveWorkspaceMemberResponse, error)

RemoveWorkspaceMemberWithResponse request returning *RemoveWorkspaceMemberResponse

func (*ClientWithResponses) ResendWorkspaceMemberInviteWithResponse added in v0.0.23

func (c *ClientWithResponses) ResendWorkspaceMemberInviteWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, inviteId InviteIDParam, reqEditors ...RequestEditorFn) (*ResendWorkspaceMemberInviteResponse, error)

ResendWorkspaceMemberInviteWithResponse request returning *ResendWorkspaceMemberInviteResponse

func (*ClientWithResponses) SearchBranchWithBodyWithResponse added in v0.0.23

func (c *ClientWithResponses) SearchBranchWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchBranchResponse, error)

SearchBranchWithBodyWithResponse request with arbitrary body returning *SearchBranchResponse

func (*ClientWithResponses) SearchBranchWithResponse added in v0.0.23

func (c *ClientWithResponses) SearchBranchWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body SearchBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchBranchResponse, error)

func (*ClientWithResponses) SetTableSchemaWithBodyWithResponse

func (c *ClientWithResponses) SetTableSchemaWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetTableSchemaResponse, error)

SetTableSchemaWithBodyWithResponse request with arbitrary body returning *SetTableSchemaResponse

func (*ClientWithResponses) SetTableSchemaWithResponse

func (c *ClientWithResponses) SetTableSchemaWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body SetTableSchemaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetTableSchemaResponse, error)

func (*ClientWithResponses) UpdateBranchMetadataWithBodyWithResponse

func (c *ClientWithResponses) UpdateBranchMetadataWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBranchMetadataResponse, error)

UpdateBranchMetadataWithBodyWithResponse request with arbitrary body returning *UpdateBranchMetadataResponse

func (*ClientWithResponses) UpdateBranchMetadataWithResponse

func (c *ClientWithResponses) UpdateBranchMetadataWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body UpdateBranchMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBranchMetadataResponse, error)

func (*ClientWithResponses) UpdateColumnWithBodyWithResponse

func (c *ClientWithResponses) UpdateColumnWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateColumnResponse, error)

UpdateColumnWithBodyWithResponse request with arbitrary body returning *UpdateColumnResponse

func (*ClientWithResponses) UpdateColumnWithResponse

func (c *ClientWithResponses) UpdateColumnWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, body UpdateColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateColumnResponse, error)

func (*ClientWithResponses) UpdateRecordWithIDWithBodyWithResponse added in v0.0.23

func (c *ClientWithResponses) UpdateRecordWithIDWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRecordWithIDResponse, error)

UpdateRecordWithIDWithBodyWithResponse request with arbitrary body returning *UpdateRecordWithIDResponse

func (*ClientWithResponses) UpdateRecordWithIDWithResponse added in v0.0.23

func (c *ClientWithResponses) UpdateRecordWithIDWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, body UpdateRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRecordWithIDResponse, error)

func (*ClientWithResponses) UpdateTableWithBodyWithResponse

func (c *ClientWithResponses) UpdateTableWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTableResponse, error)

UpdateTableWithBodyWithResponse request with arbitrary body returning *UpdateTableResponse

func (*ClientWithResponses) UpdateTableWithResponse

func (c *ClientWithResponses) UpdateTableWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body UpdateTableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTableResponse, error)

func (*ClientWithResponses) UpdateUserWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse

func (*ClientWithResponses) UpdateUserWithResponse

func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

func (*ClientWithResponses) UpdateWorkspaceMemberRoleWithBodyWithResponse

func (c *ClientWithResponses) UpdateWorkspaceMemberRoleWithBodyWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkspaceMemberRoleResponse, error)

UpdateWorkspaceMemberRoleWithBodyWithResponse request with arbitrary body returning *UpdateWorkspaceMemberRoleResponse

func (*ClientWithResponses) UpdateWorkspaceMemberRoleWithResponse

func (c *ClientWithResponses) UpdateWorkspaceMemberRoleWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, body UpdateWorkspaceMemberRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkspaceMemberRoleResponse, error)

func (*ClientWithResponses) UpdateWorkspaceWithBodyWithResponse

func (c *ClientWithResponses) UpdateWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error)

UpdateWorkspaceWithBodyWithResponse request with arbitrary body returning *UpdateWorkspaceResponse

func (*ClientWithResponses) UpdateWorkspaceWithResponse

func (c *ClientWithResponses) UpdateWorkspaceWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error)

func (*ClientWithResponses) UpsertRecordWithIDWithBodyWithResponse added in v0.0.23

func (c *ClientWithResponses) UpsertRecordWithIDWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertRecordWithIDResponse, error)

UpsertRecordWithIDWithBodyWithResponse request with arbitrary body returning *UpsertRecordWithIDResponse

func (*ClientWithResponses) UpsertRecordWithIDWithResponse added in v0.0.23

func (c *ClientWithResponses) UpsertRecordWithIDWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, body UpsertRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertRecordWithIDResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// DeleteBranch request
	DeleteBranchWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*DeleteBranchResponse, error)

	// GetBranchDetails request
	GetBranchDetailsWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*GetBranchDetailsResponse, error)

	// CreateBranch request with any body
	CreateBranchWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, params *CreateBranchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

	CreateBranchWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, params *CreateBranchParams, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

	// GetBranchMetadata request
	GetBranchMetadataWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*GetBranchMetadataResponse, error)

	// UpdateBranchMetadata request with any body
	UpdateBranchMetadataWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBranchMetadataResponse, error)

	UpdateBranchMetadataWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body UpdateBranchMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBranchMetadataResponse, error)

	// GetBranchMigrationHistory request with any body
	GetBranchMigrationHistoryWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBranchMigrationHistoryResponse, error)

	GetBranchMigrationHistoryWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body GetBranchMigrationHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBranchMigrationHistoryResponse, error)

	// ExecuteBranchMigrationPlan request with any body
	ExecuteBranchMigrationPlanWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteBranchMigrationPlanResponse, error)

	ExecuteBranchMigrationPlanWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body ExecuteBranchMigrationPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteBranchMigrationPlanResponse, error)

	// GetBranchMigrationPlan request with any body
	GetBranchMigrationPlanWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBranchMigrationPlanResponse, error)

	GetBranchMigrationPlanWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body GetBranchMigrationPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBranchMigrationPlanResponse, error)

	// SearchBranch request with any body
	SearchBranchWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchBranchResponse, error)

	SearchBranchWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, body SearchBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchBranchResponse, error)

	// GetBranchStats request
	GetBranchStatsWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, reqEditors ...RequestEditorFn) (*GetBranchStatsResponse, error)

	// DeleteTable request
	DeleteTableWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*DeleteTableResponse, error)

	// UpdateTable request with any body
	UpdateTableWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTableResponse, error)

	UpdateTableWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body UpdateTableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTableResponse, error)

	// CreateTable request
	CreateTableWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*CreateTableResponse, error)

	// BulkInsertTableRecords request with any body
	BulkInsertTableRecordsWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkInsertTableRecordsResponse, error)

	BulkInsertTableRecordsWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body BulkInsertTableRecordsJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkInsertTableRecordsResponse, error)

	// GetTableColumns request
	GetTableColumnsWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*GetTableColumnsResponse, error)

	// AddTableColumn request with any body
	AddTableColumnWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTableColumnResponse, error)

	AddTableColumnWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body AddTableColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTableColumnResponse, error)

	// DeleteColumn request
	DeleteColumnWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, reqEditors ...RequestEditorFn) (*DeleteColumnResponse, error)

	// GetColumn request
	GetColumnWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, reqEditors ...RequestEditorFn) (*GetColumnResponse, error)

	// UpdateColumn request with any body
	UpdateColumnWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateColumnResponse, error)

	UpdateColumnWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, columnName ColumnNameParam, body UpdateColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateColumnResponse, error)

	// InsertRecord request with any body
	InsertRecordWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InsertRecordResponse, error)

	InsertRecordWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body InsertRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*InsertRecordResponse, error)

	// DeleteRecord request
	DeleteRecordWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, reqEditors ...RequestEditorFn) (*DeleteRecordResponse, error)

	// GetRecord request with any body
	GetRecordWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetRecordResponse, error)

	GetRecordWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, body GetRecordJSONRequestBody, reqEditors ...RequestEditorFn) (*GetRecordResponse, error)

	// UpdateRecordWithID request with any body
	UpdateRecordWithIDWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRecordWithIDResponse, error)

	UpdateRecordWithIDWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpdateRecordWithIDParams, body UpdateRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRecordWithIDResponse, error)

	// UpsertRecordWithID request with any body
	UpsertRecordWithIDWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertRecordWithIDResponse, error)

	UpsertRecordWithIDWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *UpsertRecordWithIDParams, body UpsertRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertRecordWithIDResponse, error)

	// InsertRecordWithID request with any body
	InsertRecordWithIDWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InsertRecordWithIDResponse, error)

	InsertRecordWithIDWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, recordId RecordIDParam, params *InsertRecordWithIDParams, body InsertRecordWithIDJSONRequestBody, reqEditors ...RequestEditorFn) (*InsertRecordWithIDResponse, error)

	// QueryTable request with any body
	QueryTableWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryTableResponse, error)

	QueryTableWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body QueryTableJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryTableResponse, error)

	// GetTableSchema request
	GetTableSchemaWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, reqEditors ...RequestEditorFn) (*GetTableSchemaResponse, error)

	// SetTableSchema request with any body
	SetTableSchemaWithBodyWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetTableSchemaResponse, error)

	SetTableSchemaWithResponse(ctx context.Context, dbBranchName DBBranchNameParam, tableName TableNameParam, body SetTableSchemaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetTableSchemaResponse, error)

	// GetDatabaseList request
	GetDatabaseListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDatabaseListResponse, error)

	// DeleteDatabase request
	DeleteDatabaseWithResponse(ctx context.Context, dbName DBNameParam, reqEditors ...RequestEditorFn) (*DeleteDatabaseResponse, error)

	// GetBranchList request
	GetBranchListWithResponse(ctx context.Context, dbName DBNameParam, reqEditors ...RequestEditorFn) (*GetBranchListResponse, error)

	// CreateDatabase request with any body
	CreateDatabaseWithBodyWithResponse(ctx context.Context, dbName DBNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseResponse, error)

	CreateDatabaseWithResponse(ctx context.Context, dbName DBNameParam, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseResponse, error)

	// DeleteUser request
	DeleteUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

	// GetUser request
	GetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

	// UpdateUser request with any body
	UpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	UpdateUserWithResponse(ctx context.Context, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	// GetUserAPIKeys request
	GetUserAPIKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserAPIKeysResponse, error)

	// DeleteUserAPIKey request
	DeleteUserAPIKeyWithResponse(ctx context.Context, keyName APIKeyNameParam, reqEditors ...RequestEditorFn) (*DeleteUserAPIKeyResponse, error)

	// CreateUserAPIKey request
	CreateUserAPIKeyWithResponse(ctx context.Context, keyName APIKeyNameParam, reqEditors ...RequestEditorFn) (*CreateUserAPIKeyResponse, error)

	// GetWorkspacesList request
	GetWorkspacesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkspacesListResponse, error)

	// CreateWorkspace request with any body
	CreateWorkspaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkspaceResponse, error)

	CreateWorkspaceWithResponse(ctx context.Context, body CreateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkspaceResponse, error)

	// DeleteWorkspace request
	DeleteWorkspaceWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*DeleteWorkspaceResponse, error)

	// GetWorkspace request
	GetWorkspaceWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*GetWorkspaceResponse, error)

	// UpdateWorkspace request with any body
	UpdateWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error)

	UpdateWorkspaceWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error)

	// InviteWorkspaceMember request with any body
	InviteWorkspaceMemberWithBodyWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteWorkspaceMemberResponse, error)

	InviteWorkspaceMemberWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, body InviteWorkspaceMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteWorkspaceMemberResponse, error)

	// CancelWorkspaceMemberInvite request
	CancelWorkspaceMemberInviteWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, inviteId InviteIDParam, reqEditors ...RequestEditorFn) (*CancelWorkspaceMemberInviteResponse, error)

	// ResendWorkspaceMemberInvite request
	ResendWorkspaceMemberInviteWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, inviteId InviteIDParam, reqEditors ...RequestEditorFn) (*ResendWorkspaceMemberInviteResponse, error)

	// AcceptWorkspaceMemberInvite request
	AcceptWorkspaceMemberInviteWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, inviteKey InviteKeyParam, reqEditors ...RequestEditorFn) (*AcceptWorkspaceMemberInviteResponse, error)

	// GetWorkspaceMembersList request
	GetWorkspaceMembersListWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, reqEditors ...RequestEditorFn) (*GetWorkspaceMembersListResponse, error)

	// RemoveWorkspaceMember request
	RemoveWorkspaceMemberWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, reqEditors ...RequestEditorFn) (*RemoveWorkspaceMemberResponse, error)

	// UpdateWorkspaceMemberRole request with any body
	UpdateWorkspaceMemberRoleWithBodyWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkspaceMemberRoleResponse, error)

	UpdateWorkspaceMemberRoleWithResponse(ctx context.Context, workspaceId WorkspaceIDParam, userId UserIDParam, body UpdateWorkspaceMemberRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkspaceMemberRoleResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Column

type Column struct {
	Name string     `json:"name" validate:"required" yaml:"name"`
	Type ColumnType `json:"type" validate:"required" yaml:"type"`

	Columns []Column      `json:"columns,omitempty" yaml:"columns,omitempty"`
	Object  *ColumnObject `json:"-" yaml:"-"`

	String   *ColumnString   `json:"string,omitempty" yaml:"string,omitempty"`
	Bool     *ColumnBool     `json:"bool,omitempty" yaml:"bool,omitempty"`
	Email    *ColumnEmail    `json:"email,omitempty" yaml:"email,omitempty"`
	Text     *ColumnText     `json:"text,omitempty" yaml:"text,omitempty"`
	Multiple *ColumnMultiple `json:"multiple,omitempty" yaml:"multiple,omitempty"`
	Link     *ColumnLink     `json:"link,omitempty" yaml:"link,omitempty"`
	Int      *ColumnInt      `json:"int,omitempty" yaml:"int,omitempty"`
	Float    *ColumnInt      `json:"float,omitempty" yaml:"float,omitempty"`

	Required bool `json:"required,omitempty" yaml:"required,omitempty"`
	Unique   bool `json:"unique,omitempty" yaml:"unique,omitempty"`

	Description string `json:"description,omitempty" yaml:"description,omitempty"`
}

type ColumnBool

type ColumnBool struct {
}

ColumnBool contains settings for the bool type.

type ColumnEmail

type ColumnEmail struct {
}

ColumnEmail contains settings for the email type.

type ColumnFloat added in v0.0.23

type ColumnFloat struct {
}

ColumnFloat contains settings for the float type.

type ColumnInt

type ColumnInt struct {
}

ColumnInt contains settings for the int type.

type ColumnLink struct {
	// ID of the column (constraint)
	ID string `dynamodbav:"id" json:"-" yaml:"-"`

	// Referenced table. A column link
	Table   string `dynamodbav:"table" json:"table" yaml:"table"`
	TableID string `dynamodbav:"tableID" json:"-" yaml:"-"`

	// References columns
	LookupFields  []string          `dynamodbav:"lookupFields,omitempty" json:"lookupFields,omitempty" yaml:"lookupFields,omitempty"`
	LookupColumns map[string]Column `dynamodbav:"lookupColumns,omitempty" json:"-" yaml:"-"`
}

ColumnLink contains the settings for the link type. The column link references the record ID in the reference table only. When querying a linked column, an object is returned with the additional lookup fields from the reference table being merged into the object.

type ColumnMigration

type ColumnMigration struct {
	New Column `json:"new"`
	Old Column `json:"old"`
}

ColumnMigration defines model for ColumnMigration.

type ColumnMultiple

type ColumnMultiple struct {
}

ColumnMultiple contains settings for the multiple type.

type ColumnName

type ColumnName string

ColumnName defines model for ColumnName.

type ColumnNameParam

type ColumnNameParam ColumnName

ColumnNameParam defines model for ColumnNameParam.

type ColumnObject

type ColumnObject struct {
	Columns map[string]Column `dynamodbav:"columns,omitempty" json:"columns,omitempty" yaml:"columns,omitempty" validate:"required,dive"`
}

ColumnObject contains settings for the object type.

type ColumnString

type ColumnString struct {
}

ColumnString contains settings for the string type.

type ColumnText

type ColumnText struct {
}

ColumnText contains settings for the text type.

type ColumnType

type ColumnType uint16

ColumnType is an enum for the available column types.

const (
	// ColumnTypeString is a string column (size limit 255).
	ColumnTypeString ColumnType = iota + 1
	// ColumnTypeBool is a bool column.
	ColumnTypeBool
	// ColumnTypeObject is an object column.
	ColumnTypeObject
	// ColumnTypeMultiple is an array of strings.
	ColumnTypeMultiple
	// ColumnTypeText is a longer text.
	ColumnTypeText
	// ColumnTypeEmail is an email address.
	ColumnTypeEmail
	// ColumnTypeLink is a link to another table, by ID.
	ColumnTypeLink
	// ColumnTypeInt is a long integer
	ColumnTypeInt
	// ColumnTypeFloat is a double precision float
	ColumnTypeFloat
)

func ColumnTypeFromString

func ColumnTypeFromString(s string) ColumnType

func (ColumnType) MarshalJSON

func (ct ColumnType) MarshalJSON() ([]byte, error)

MarshalJSON marshals a ColumnType to json.

func (ColumnType) MarshalYAML

func (ct ColumnType) MarshalYAML() (interface{}, error)

MarshalYAML marshals a ColumnType to json.

func (ColumnType) String

func (ct ColumnType) String() string

func (*ColumnType) UnmarshalJSON

func (ct *ColumnType) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a ColumnType from json.

func (*ColumnType) UnmarshalYAML

func (ct *ColumnType) UnmarshalYAML(value *yaml.Node) error

type ColumnsFilter

type ColumnsFilter []string

ColumnsFilter defines model for ColumnsFilter.

type CreateBranchJSONBody

type CreateBranchJSONBody struct {
	// Select the branch to fork from. Defaults to 'main'
	From     *string         `json:"from,omitempty"`
	Metadata *BranchMetadata `json:"metadata,omitempty"`
}

CreateBranchJSONBody defines parameters for CreateBranch.

type CreateBranchJSONRequestBody

type CreateBranchJSONRequestBody CreateBranchJSONBody

CreateBranchJSONRequestBody defines body for CreateBranch for application/json ContentType.

type CreateBranchParams

type CreateBranchParams struct {
	// Name of source branch to branch the new schema from
	From *string `json:"from,omitempty"`
}

CreateBranchParams defines parameters for CreateBranch.

type CreateBranchResponse

type CreateBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseCreateBranchResponse

func ParseCreateBranchResponse(rsp *http.Response) (*CreateBranchResponse, error)

ParseCreateBranchResponse parses an HTTP response from a CreateBranchWithResponse call

func (CreateBranchResponse) Status

func (r CreateBranchResponse) Status() string

Status returns HTTPResponse.Status

func (CreateBranchResponse) StatusCode

func (r CreateBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateDatabaseJSONBody

type CreateDatabaseJSONBody struct {
	BranchName  *string         `json:"branchName,omitempty"`
	DisplayName *string         `json:"displayName,omitempty"`
	Metadata    *BranchMetadata `json:"metadata,omitempty"`
	Ui          *struct {
		Color *string `json:"color,omitempty"`
	} `json:"ui,omitempty"`
}

CreateDatabaseJSONBody defines parameters for CreateDatabase.

type CreateDatabaseJSONRequestBody

type CreateDatabaseJSONRequestBody CreateDatabaseJSONBody

CreateDatabaseJSONRequestBody defines body for CreateDatabase for application/json ContentType.

type CreateDatabaseResponse

type CreateDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		BranchName   *string `json:"branchName,omitempty"`
		DatabaseName string  `json:"databaseName"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseCreateDatabaseResponse

func ParseCreateDatabaseResponse(rsp *http.Response) (*CreateDatabaseResponse, error)

ParseCreateDatabaseResponse parses an HTTP response from a CreateDatabaseWithResponse call

func (CreateDatabaseResponse) Status

func (r CreateDatabaseResponse) Status() string

Status returns HTTPResponse.Status

func (CreateDatabaseResponse) StatusCode

func (r CreateDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTableResponse

type CreateTableResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON422 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseCreateTableResponse

func ParseCreateTableResponse(rsp *http.Response) (*CreateTableResponse, error)

ParseCreateTableResponse parses an HTTP response from a CreateTableWithResponse call

func (CreateTableResponse) Status

func (r CreateTableResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTableResponse) StatusCode

func (r CreateTableResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUserAPIKeyResponse

type CreateUserAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		CreatedAt DateTime `json:"createdAt"`
		Key       string   `json:"key"`
		Name      string   `json:"name"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseCreateUserAPIKeyResponse

func ParseCreateUserAPIKeyResponse(rsp *http.Response) (*CreateUserAPIKeyResponse, error)

ParseCreateUserAPIKeyResponse parses an HTTP response from a CreateUserAPIKeyWithResponse call

func (CreateUserAPIKeyResponse) Status

func (r CreateUserAPIKeyResponse) Status() string

Status returns HTTPResponse.Status

func (CreateUserAPIKeyResponse) StatusCode

func (r CreateUserAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateWorkspaceJSONBody

type CreateWorkspaceJSONBody WorkspaceMeta

CreateWorkspaceJSONBody defines parameters for CreateWorkspace.

type CreateWorkspaceJSONRequestBody

type CreateWorkspaceJSONRequestBody CreateWorkspaceJSONBody

CreateWorkspaceJSONRequestBody defines body for CreateWorkspace for application/json ContentType.

type CreateWorkspaceResponse

type CreateWorkspaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Workspace
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseCreateWorkspaceResponse

func ParseCreateWorkspaceResponse(rsp *http.Response) (*CreateWorkspaceResponse, error)

ParseCreateWorkspaceResponse parses an HTTP response from a CreateWorkspaceWithResponse call

func (CreateWorkspaceResponse) Status

func (r CreateWorkspaceResponse) Status() string

Status returns HTTPResponse.Status

func (CreateWorkspaceResponse) StatusCode

func (r CreateWorkspaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DBBranch

type DBBranch struct {
	BranchName      BranchName           `json:"branchName"`
	CreatedAt       DateTime             `json:"createdAt"`
	DatabaseName    DBName               `json:"databaseName"`
	Id              string               `json:"id"`
	LastMigrationID string               `json:"lastMigrationID"`
	Metadata        *BranchMetadata      `json:"metadata,omitempty"`
	Schema          Schema               `json:"schema"`
	StartedFrom     *StartedFromMetadata `json:"startedFrom,omitempty"`
	Version         float32              `json:"version"`
}

DBBranch defines model for DBBranch.

type DBBranchName

type DBBranchName string

The DBBranchName matches the pattern `{db_name}:{branch_name}`.

type DBBranchNameParam

type DBBranchNameParam DBBranchName

The DBBranchName matches the pattern `{db_name}:{branch_name}`.

type DBName

type DBName string

DBName defines model for DBName.

type DBNameParam

type DBNameParam DBName

DBNameParam defines model for DBNameParam.

type DateTime

type DateTime time.Time

DateTime defines model for DateTime.

func (DateTime) MarshalJSON

func (a DateTime) MarshalJSON() ([]byte, error)

Override default JSON handling for TableMigration_NewColumns to handle AdditionalProperties

func (*DateTime) UnmarshalJSON

func (a *DateTime) UnmarshalJSON(b []byte) error

Override default JSON handling for TableMigration_NewColumns to handle AdditionalProperties

type DeleteBranchResponse

type DeleteBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseDeleteBranchResponse

func ParseDeleteBranchResponse(rsp *http.Response) (*DeleteBranchResponse, error)

ParseDeleteBranchResponse parses an HTTP response from a DeleteBranchWithResponse call

func (DeleteBranchResponse) Status

func (r DeleteBranchResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteBranchResponse) StatusCode

func (r DeleteBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteColumnResponse

type DeleteColumnResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		MigrationID string `json:"migrationID"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseDeleteColumnResponse

func ParseDeleteColumnResponse(rsp *http.Response) (*DeleteColumnResponse, error)

ParseDeleteColumnResponse parses an HTTP response from a DeleteColumnWithResponse call

func (DeleteColumnResponse) Status

func (r DeleteColumnResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteColumnResponse) StatusCode

func (r DeleteColumnResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDatabaseResponse

type DeleteDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseDeleteDatabaseResponse

func ParseDeleteDatabaseResponse(rsp *http.Response) (*DeleteDatabaseResponse, error)

ParseDeleteDatabaseResponse parses an HTTP response from a DeleteDatabaseWithResponse call

func (DeleteDatabaseResponse) Status

func (r DeleteDatabaseResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteDatabaseResponse) StatusCode

func (r DeleteDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRecordResponse

type DeleteRecordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseDeleteRecordResponse

func ParseDeleteRecordResponse(rsp *http.Response) (*DeleteRecordResponse, error)

ParseDeleteRecordResponse parses an HTTP response from a DeleteRecordWithResponse call

func (DeleteRecordResponse) Status

func (r DeleteRecordResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteRecordResponse) StatusCode

func (r DeleteRecordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTableResponse

type DeleteTableResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseDeleteTableResponse

func ParseDeleteTableResponse(rsp *http.Response) (*DeleteTableResponse, error)

ParseDeleteTableResponse parses an HTTP response from a DeleteTableWithResponse call

func (DeleteTableResponse) Status

func (r DeleteTableResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteTableResponse) StatusCode

func (r DeleteTableResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserAPIKeyResponse

type DeleteUserAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseDeleteUserAPIKeyResponse

func ParseDeleteUserAPIKeyResponse(rsp *http.Response) (*DeleteUserAPIKeyResponse, error)

ParseDeleteUserAPIKeyResponse parses an HTTP response from a DeleteUserAPIKeyWithResponse call

func (DeleteUserAPIKeyResponse) Status

func (r DeleteUserAPIKeyResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserAPIKeyResponse) StatusCode

func (r DeleteUserAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserResponse

type DeleteUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseDeleteUserResponse

func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)

ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserResponse) Status

func (r DeleteUserResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserResponse) StatusCode

func (r DeleteUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteWorkspaceResponse

type DeleteWorkspaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseDeleteWorkspaceResponse

func ParseDeleteWorkspaceResponse(rsp *http.Response) (*DeleteWorkspaceResponse, error)

ParseDeleteWorkspaceResponse parses an HTTP response from a DeleteWorkspaceWithResponse call

func (DeleteWorkspaceResponse) Status

func (r DeleteWorkspaceResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteWorkspaceResponse) StatusCode

func (r DeleteWorkspaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ExecuteBranchMigrationPlanJSONBody

type ExecuteBranchMigrationPlanJSONBody struct {
	Migration BranchMigration `json:"migration"`
	Version   int             `json:"version"`
}

ExecuteBranchMigrationPlanJSONBody defines parameters for ExecuteBranchMigrationPlan.

type ExecuteBranchMigrationPlanJSONRequestBody

type ExecuteBranchMigrationPlanJSONRequestBody ExecuteBranchMigrationPlanJSONBody

ExecuteBranchMigrationPlanJSONRequestBody defines body for ExecuteBranchMigrationPlan for application/json ContentType.

type ExecuteBranchMigrationPlanResponse

type ExecuteBranchMigrationPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseExecuteBranchMigrationPlanResponse

func ParseExecuteBranchMigrationPlanResponse(rsp *http.Response) (*ExecuteBranchMigrationPlanResponse, error)

ParseExecuteBranchMigrationPlanResponse parses an HTTP response from a ExecuteBranchMigrationPlanWithResponse call

func (ExecuteBranchMigrationPlanResponse) Status

Status returns HTTPResponse.Status

func (ExecuteBranchMigrationPlanResponse) StatusCode

func (r ExecuteBranchMigrationPlanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FilterColumn

type FilterColumn interface{}

FilterColumn defines model for FilterColumn.

type FilterColumnIncludes

type FilterColumnIncludes struct {
	Includes     *FilterPredicate `json:"$includes,omitempty"`
	IncludesAll  *FilterPredicate `json:"$includesAll,omitempty"`
	IncludesAny  *FilterPredicate `json:"$includesAny,omitempty"`
	IncludesNone *FilterPredicate `json:"$includesNone,omitempty"`
}

FilterColumnIncludes defines model for FilterColumnIncludes.

type FilterExpression

type FilterExpression struct {
	All                  *FilterList             `json:"$all,omitempty"`
	Any                  *FilterList             `json:"$any,omitempty"`
	Exists               *string                 `json:"$exists,omitempty"`
	ExistsNot            *string                 `json:"$existsNot,omitempty"`
	None                 *FilterList             `json:"$none,omitempty"`
	Not                  *FilterList             `json:"$not,omitempty"`
	AdditionalProperties map[string]FilterColumn `json:"-"`
}

FilterExpression defines model for FilterExpression.

func (FilterExpression) Get

func (a FilterExpression) Get(fieldName string) (value FilterColumn, found bool)

Getter for additional properties for FilterExpression. Returns the specified element and whether it was found

func (FilterExpression) MarshalJSON

func (a FilterExpression) MarshalJSON() ([]byte, error)

Override default JSON handling for FilterExpression to handle AdditionalProperties

func (*FilterExpression) Set

func (a *FilterExpression) Set(fieldName string, value FilterColumn)

Setter for additional properties for FilterExpression

func (*FilterExpression) UnmarshalJSON

func (a *FilterExpression) UnmarshalJSON(b []byte) error

Override default JSON handling for FilterExpression to handle AdditionalProperties

type FilterList

type FilterList interface{}

FilterList defines model for FilterList.

type FilterPredicate

type FilterPredicate interface{}

FilterPredicate defines model for FilterPredicate.

type FilterPredicateOp

type FilterPredicateOp struct {
	All        *interface{}      `json:"$all,omitempty"`
	Any        *interface{}      `json:"$any,omitempty"`
	Contains   *string           `json:"$contains,omitempty"`
	EndsWith   *string           `json:"$endsWith,omitempty"`
	Ge         *FilterRangeValue `json:"$ge,omitempty"`
	Gt         *FilterRangeValue `json:"$gt,omitempty"`
	Is         *interface{}      `json:"$is,omitempty"`
	IsNot      *interface{}      `json:"$isNot,omitempty"`
	Le         *FilterRangeValue `json:"$le,omitempty"`
	Lt         *FilterRangeValue `json:"$lt,omitempty"`
	None       *interface{}      `json:"$none,omitempty"`
	Not        *interface{}      `json:"$not,omitempty"`
	Pattern    *string           `json:"$pattern,omitempty"`
	StartsWith *string           `json:"$startsWith,omitempty"`
}

FilterPredicateOp defines model for FilterPredicateOp.

type FilterPredicateRangeOp

type FilterPredicateRangeOp struct {
	Ge *FilterRangeValue `json:"$ge,omitempty"`
	Gt *FilterRangeValue `json:"$gt,omitempty"`
	Le *FilterRangeValue `json:"$le,omitempty"`
	Lt *FilterRangeValue `json:"$lt,omitempty"`
}

FilterPredicateRangeOp defines model for FilterPredicateRangeOp.

type FilterRangeValue

type FilterRangeValue interface{}

FilterRangeValue defines model for FilterRangeValue.

type FilterValue

type FilterValue interface{}

FilterValue defines model for FilterValue.

type GetBranchDetailsResponse

type GetBranchDetailsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DBBranch
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetBranchDetailsResponse

func ParseGetBranchDetailsResponse(rsp *http.Response) (*GetBranchDetailsResponse, error)

ParseGetBranchDetailsResponse parses an HTTP response from a GetBranchDetailsWithResponse call

func (GetBranchDetailsResponse) Status

func (r GetBranchDetailsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBranchDetailsResponse) StatusCode

func (r GetBranchDetailsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBranchListResponse

type GetBranchListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListBranchesResponse
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetBranchListResponse

func ParseGetBranchListResponse(rsp *http.Response) (*GetBranchListResponse, error)

ParseGetBranchListResponse parses an HTTP response from a GetBranchListWithResponse call

func (GetBranchListResponse) Status

func (r GetBranchListResponse) Status() string

Status returns HTTPResponse.Status

func (GetBranchListResponse) StatusCode

func (r GetBranchListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBranchMetadataResponse

type GetBranchMetadataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BranchMetadata
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetBranchMetadataResponse

func ParseGetBranchMetadataResponse(rsp *http.Response) (*GetBranchMetadataResponse, error)

ParseGetBranchMetadataResponse parses an HTTP response from a GetBranchMetadataWithResponse call

func (GetBranchMetadataResponse) Status

func (r GetBranchMetadataResponse) Status() string

Status returns HTTPResponse.Status

func (GetBranchMetadataResponse) StatusCode

func (r GetBranchMetadataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBranchMigrationHistoryJSONBody

type GetBranchMigrationHistoryJSONBody struct {
	Limit     *int    `json:"limit,omitempty"`
	StartFrom *string `json:"startFrom,omitempty"`
}

GetBranchMigrationHistoryJSONBody defines parameters for GetBranchMigrationHistory.

type GetBranchMigrationHistoryJSONRequestBody

type GetBranchMigrationHistoryJSONRequestBody GetBranchMigrationHistoryJSONBody

GetBranchMigrationHistoryJSONRequestBody defines body for GetBranchMigrationHistory for application/json ContentType.

type GetBranchMigrationHistoryResponse

type GetBranchMigrationHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Migrations  *[]BranchMigration   `json:"migrations,omitempty"`
		StartedFrom *StartedFromMetadata `json:"startedFrom,omitempty"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetBranchMigrationHistoryResponse

func ParseGetBranchMigrationHistoryResponse(rsp *http.Response) (*GetBranchMigrationHistoryResponse, error)

ParseGetBranchMigrationHistoryResponse parses an HTTP response from a GetBranchMigrationHistoryWithResponse call

func (GetBranchMigrationHistoryResponse) Status

Status returns HTTPResponse.Status

func (GetBranchMigrationHistoryResponse) StatusCode

func (r GetBranchMigrationHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBranchMigrationPlanJSONBody

type GetBranchMigrationPlanJSONBody Schema

GetBranchMigrationPlanJSONBody defines parameters for GetBranchMigrationPlan.

type GetBranchMigrationPlanJSONRequestBody

type GetBranchMigrationPlanJSONRequestBody GetBranchMigrationPlanJSONBody

GetBranchMigrationPlanJSONRequestBody defines body for GetBranchMigrationPlan for application/json ContentType.

type GetBranchMigrationPlanResponse

type GetBranchMigrationPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Migration BranchMigration `json:"migration"`
		Version   int             `json:"version"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetBranchMigrationPlanResponse

func ParseGetBranchMigrationPlanResponse(rsp *http.Response) (*GetBranchMigrationPlanResponse, error)

ParseGetBranchMigrationPlanResponse parses an HTTP response from a GetBranchMigrationPlanWithResponse call

func (GetBranchMigrationPlanResponse) Status

Status returns HTTPResponse.Status

func (GetBranchMigrationPlanResponse) StatusCode

func (r GetBranchMigrationPlanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBranchStatsResponse

type GetBranchStatsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Interval        string              `json:"interval"`
		NumberOfRecords *[]MetricsDatapoint `json:"numberOfRecords,omitempty"`
		ReadLatency     *MetricsLatency     `json:"readLatency,omitempty"`
		ReadsOverTime   *[]MetricsDatapoint `json:"readsOverTime,omitempty"`
		Resolution      string              `json:"resolution"`
		Timestamp       string              `json:"timestamp"`
		Warning         *string             `json:"warning,omitempty"`
		WriteLatency    *MetricsLatency     `json:"writeLatency,omitempty"`
		WritesOverTime  *[]MetricsDatapoint `json:"writesOverTime,omitempty"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetBranchStatsResponse

func ParseGetBranchStatsResponse(rsp *http.Response) (*GetBranchStatsResponse, error)

ParseGetBranchStatsResponse parses an HTTP response from a GetBranchStatsWithResponse call

func (GetBranchStatsResponse) Status

func (r GetBranchStatsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBranchStatsResponse) StatusCode

func (r GetBranchStatsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetColumnResponse

type GetColumnResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Column
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetColumnResponse

func ParseGetColumnResponse(rsp *http.Response) (*GetColumnResponse, error)

ParseGetColumnResponse parses an HTTP response from a GetColumnWithResponse call

func (GetColumnResponse) Status

func (r GetColumnResponse) Status() string

Status returns HTTPResponse.Status

func (GetColumnResponse) StatusCode

func (r GetColumnResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDatabaseListResponse

type GetDatabaseListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListDatabasesResponse
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetDatabaseListResponse

func ParseGetDatabaseListResponse(rsp *http.Response) (*GetDatabaseListResponse, error)

ParseGetDatabaseListResponse parses an HTTP response from a GetDatabaseListWithResponse call

func (GetDatabaseListResponse) Status

func (r GetDatabaseListResponse) Status() string

Status returns HTTPResponse.Status

func (GetDatabaseListResponse) StatusCode

func (r GetDatabaseListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRecordJSONBody

type GetRecordJSONBody struct {
	Columns *ColumnsFilter `json:"columns,omitempty"`
}

GetRecordJSONBody defines parameters for GetRecord.

type GetRecordJSONRequestBody

type GetRecordJSONRequestBody GetRecordJSONBody

GetRecordJSONRequestBody defines body for GetRecord for application/json ContentType.

type GetRecordResponse

type GetRecordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Record
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetRecordResponse

func ParseGetRecordResponse(rsp *http.Response) (*GetRecordResponse, error)

ParseGetRecordResponse parses an HTTP response from a GetRecordWithResponse call

func (GetRecordResponse) Status

func (r GetRecordResponse) Status() string

Status returns HTTPResponse.Status

func (GetRecordResponse) StatusCode

func (r GetRecordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTableColumnsResponse

type GetTableColumnsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Columns []Column `json:"columns"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetTableColumnsResponse

func ParseGetTableColumnsResponse(rsp *http.Response) (*GetTableColumnsResponse, error)

ParseGetTableColumnsResponse parses an HTTP response from a GetTableColumnsWithResponse call

func (GetTableColumnsResponse) Status

func (r GetTableColumnsResponse) Status() string

Status returns HTTPResponse.Status

func (GetTableColumnsResponse) StatusCode

func (r GetTableColumnsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTableSchemaResponse

type GetTableSchemaResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Columns []Column `json:"columns"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetTableSchemaResponse

func ParseGetTableSchemaResponse(rsp *http.Response) (*GetTableSchemaResponse, error)

ParseGetTableSchemaResponse parses an HTTP response from a GetTableSchemaWithResponse call

func (GetTableSchemaResponse) Status

func (r GetTableSchemaResponse) Status() string

Status returns HTTPResponse.Status

func (GetTableSchemaResponse) StatusCode

func (r GetTableSchemaResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserAPIKeysResponse

type GetUserAPIKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Keys []struct {
			CreatedAt DateTime `json:"createdAt"`
			Name      string   `json:"name"`
		} `json:"keys"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetUserAPIKeysResponse

func ParseGetUserAPIKeysResponse(rsp *http.Response) (*GetUserAPIKeysResponse, error)

ParseGetUserAPIKeysResponse parses an HTTP response from a GetUserAPIKeysWithResponse call

func (GetUserAPIKeysResponse) Status

func (r GetUserAPIKeysResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserAPIKeysResponse) StatusCode

func (r GetUserAPIKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserResponse

type GetUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserWithID
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetUserResponse

func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)

ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call

func (GetUserResponse) Status

func (r GetUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserResponse) StatusCode

func (r GetUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkspaceMembersListResponse

type GetWorkspaceMembersListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WorkspaceMembers
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetWorkspaceMembersListResponse

func ParseGetWorkspaceMembersListResponse(rsp *http.Response) (*GetWorkspaceMembersListResponse, error)

ParseGetWorkspaceMembersListResponse parses an HTTP response from a GetWorkspaceMembersListWithResponse call

func (GetWorkspaceMembersListResponse) Status

Status returns HTTPResponse.Status

func (GetWorkspaceMembersListResponse) StatusCode

func (r GetWorkspaceMembersListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkspaceResponse

type GetWorkspaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Workspace
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetWorkspaceResponse

func ParseGetWorkspaceResponse(rsp *http.Response) (*GetWorkspaceResponse, error)

ParseGetWorkspaceResponse parses an HTTP response from a GetWorkspaceWithResponse call

func (GetWorkspaceResponse) Status

func (r GetWorkspaceResponse) Status() string

Status returns HTTPResponse.Status

func (GetWorkspaceResponse) StatusCode

func (r GetWorkspaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkspacesListResponse

type GetWorkspacesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Workspaces []struct {
			Id   WorkspaceID `json:"id"`
			Name string      `json:"name"`
			Role Role        `json:"role"`
			Slug string      `json:"slug"`
		} `json:"workspaces"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseGetWorkspacesListResponse

func ParseGetWorkspacesListResponse(rsp *http.Response) (*GetWorkspacesListResponse, error)

ParseGetWorkspacesListResponse parses an HTTP response from a GetWorkspacesListWithResponse call

func (GetWorkspacesListResponse) Status

func (r GetWorkspacesListResponse) Status() string

Status returns HTTPResponse.Status

func (GetWorkspacesListResponse) StatusCode

func (r GetWorkspacesListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InsertRecordJSONBody

type InsertRecordJSONBody map[string]interface{}

InsertRecordJSONBody defines parameters for InsertRecord.

type InsertRecordJSONRequestBody

type InsertRecordJSONRequestBody InsertRecordJSONBody

InsertRecordJSONRequestBody defines body for InsertRecord for application/json ContentType.

type InsertRecordResponse

type InsertRecordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Id   string `json:"id"`
		Xata struct {
			Version int `json:"version"`
		} `json:"xata"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseInsertRecordResponse

func ParseInsertRecordResponse(rsp *http.Response) (*InsertRecordResponse, error)

ParseInsertRecordResponse parses an HTTP response from a InsertRecordWithResponse call

func (InsertRecordResponse) Status

func (r InsertRecordResponse) Status() string

Status returns HTTPResponse.Status

func (InsertRecordResponse) StatusCode

func (r InsertRecordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InsertRecordWithIDJSONBody

type InsertRecordWithIDJSONBody map[string]interface{}

InsertRecordWithIDJSONBody defines parameters for InsertRecordWithID.

type InsertRecordWithIDJSONRequestBody

type InsertRecordWithIDJSONRequestBody InsertRecordWithIDJSONBody

InsertRecordWithIDJSONRequestBody defines body for InsertRecordWithID for application/json ContentType.

type InsertRecordWithIDParams

type InsertRecordWithIDParams struct {
	CreateOnly *bool `json:"createOnly,omitempty"`
	IfVersion  *int  `json:"ifVersion,omitempty"`
}

InsertRecordWithIDParams defines parameters for InsertRecordWithID.

type InsertRecordWithIDResponse

type InsertRecordWithIDResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Id   string `json:"id"`
		Xata struct {
			Version int `json:"version"`
		} `json:"xata"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON422 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseInsertRecordWithIDResponse

func ParseInsertRecordWithIDResponse(rsp *http.Response) (*InsertRecordWithIDResponse, error)

ParseInsertRecordWithIDResponse parses an HTTP response from a InsertRecordWithIDWithResponse call

func (InsertRecordWithIDResponse) Status

Status returns HTTPResponse.Status

func (InsertRecordWithIDResponse) StatusCode

func (r InsertRecordWithIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InviteID

type InviteID string

InviteID defines model for InviteID.

type InviteIDParam added in v0.0.23

type InviteIDParam InviteID

InviteIDParam defines model for InviteIDParam.

type InviteKey

type InviteKey string

InviteKey defines model for InviteKey.

type InviteKeyParam

type InviteKeyParam InviteKey

InviteKeyParam defines model for InviteKeyParam.

type InviteWorkspaceMemberJSONBody

type InviteWorkspaceMemberJSONBody struct {
	Email openapi_types.Email `json:"email"`
	Role  Role                `json:"role"`
}

InviteWorkspaceMemberJSONBody defines parameters for InviteWorkspaceMember.

type InviteWorkspaceMemberJSONRequestBody

type InviteWorkspaceMemberJSONRequestBody InviteWorkspaceMemberJSONBody

InviteWorkspaceMemberJSONRequestBody defines body for InviteWorkspaceMember for application/json ContentType.

type InviteWorkspaceMemberResponse

type InviteWorkspaceMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WorkspaceInvite
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseInviteWorkspaceMemberResponse

func ParseInviteWorkspaceMemberResponse(rsp *http.Response) (*InviteWorkspaceMemberResponse, error)

ParseInviteWorkspaceMemberResponse parses an HTTP response from a InviteWorkspaceMemberWithResponse call

func (InviteWorkspaceMemberResponse) Status

Status returns HTTPResponse.Status

func (InviteWorkspaceMemberResponse) StatusCode

func (r InviteWorkspaceMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListBranchesResponse

type ListBranchesResponse struct {
	Branches     []Branch `json:"branches"`
	DatabaseName string   `json:"databaseName"`
	DisplayName  string   `json:"displayName"`
}

ListBranchesResponse defines model for ListBranchesResponse.

type ListDatabasesResponse

type ListDatabasesResponse struct {
	// A list of databases in a Xata workspace
	Databases *[]struct {
		CreatedAt DateTime `json:"createdAt"`

		// The human-readable name of a database
		DisplayName string `json:"displayName"`

		// The machine-readable name of a database
		Name string `json:"name"`

		// The number of branches the database has
		NumberOfBranches int `json:"numberOfBranches"`

		// Metadata about the database for display in Xata user interfaces
		Ui *struct {
			// The user-selected color for this database across interfaces
			Color *string `json:"color,omitempty"`
		} `json:"ui,omitempty"`
	} `json:"databases,omitempty"`
}

ListDatabasesResponse defines model for ListDatabasesResponse.

type MetricsDatapoint

type MetricsDatapoint struct {
	Timestamp string `json:"timestamp"`
	Value     int    `json:"value"`
}

MetricsDatapoint defines model for MetricsDatapoint.

type MetricsLatency

type MetricsLatency struct {
	P50 *[]MetricsDatapoint `json:"p50,omitempty"`
	P90 *[]MetricsDatapoint `json:"p90,omitempty"`
}

MetricsLatency defines model for MetricsLatency.

type MigrationIdResponse

type MigrationIdResponse struct {
	MigrationID string `json:"migrationID"`
}

MigrationIdResponse defines model for MigrationIdResponse.

type PageConfig

type PageConfig struct {
	// Query the next page that follow the cursor.
	After *string `json:"after,omitempty"`

	// Query the previous page before the cursor.
	Before *string `json:"before,omitempty"`

	// Query the first page from the cursor.
	First *string `json:"first,omitempty"`

	// Query the last page from the cursor.
	Last *string `json:"last,omitempty"`

	// Use offset to skip entries. To skip pages set offset to a multiple of size.
	Offset *int `json:"offset,omitempty"`

	// Set page size. If the size is missing it is read from the cursor. If no cursor is given xata will choose the default page size.
	Size *int `json:"size,omitempty"`
}

Pagination settings.

type QueryResponse

type QueryResponse struct {
	// Records metadata
	Meta    RecordsMetadata `json:"meta"`
	Records []Record        `json:"records"`
}

QueryResponse defines model for QueryResponse.

type QueryTableJSONBody

type QueryTableJSONBody struct {
	Columns *ColumnsFilter    `json:"columns,omitempty"`
	Filter  *FilterExpression `json:"filter,omitempty"`

	// Pagination settings.
	Page *PageConfig     `json:"page,omitempty"`
	Sort *SortExpression `json:"sort,omitempty"`
}

QueryTableJSONBody defines parameters for QueryTable.

type QueryTableJSONRequestBody

type QueryTableJSONRequestBody QueryTableJSONBody

QueryTableJSONRequestBody defines body for QueryTable for application/json ContentType.

type QueryTableResponse

type QueryTableResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Records metadata
		Meta    RecordsMetadata `json:"meta"`
		Records []Record        `json:"records"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseQueryTableResponse

func ParseQueryTableResponse(rsp *http.Response) (*QueryTableResponse, error)

ParseQueryTableResponse parses an HTTP response from a QueryTableWithResponse call

func (QueryTableResponse) Status

func (r QueryTableResponse) Status() string

Status returns HTTPResponse.Status

func (QueryTableResponse) StatusCode

func (r QueryTableResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Record

type Record struct {
	Id   RecordID `json:"id"`
	Xata struct {
		// The record's table name. APIs that return records from multiple tables will set _table accordingly.
		Table *string `json:"table,omitempty"`

		// The record's version. Can be used for optimistic concurrency control.
		Version int `json:"version"`

		// Encoding/Decoding errors
		Warnings *[]string `json:"warnings,omitempty"`
	} `json:"xata"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Xata Table Record

func (Record) Get

func (a Record) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Record. Returns the specified element and whether it was found

func (Record) MarshalJSON

func (a Record) MarshalJSON() ([]byte, error)

Override default JSON handling for Record to handle AdditionalProperties

func (*Record) Set

func (a *Record) Set(fieldName string, value interface{})

Setter for additional properties for Record

func (*Record) UnmarshalJSON

func (a *Record) UnmarshalJSON(b []byte) error

Override default JSON handling for Record to handle AdditionalProperties

type RecordID

type RecordID string

RecordID defines model for RecordID.

type RecordIDParam

type RecordIDParam RecordID

RecordIDParam defines model for RecordIDParam.

type RecordUpdateResponse added in v0.0.23

type RecordUpdateResponse struct {
	Id   string `json:"id"`
	Xata struct {
		Version int `json:"version"`
	} `json:"xata"`
}

RecordUpdateResponse defines model for RecordUpdateResponse.

type RecordsMetadata

type RecordsMetadata struct {
	Page struct {
		// last record id
		Cursor string `json:"cursor"`

		// true if more records can be fetch
		More bool `json:"more"`
	} `json:"page"`
}

Records metadata

type RemoveWorkspaceMemberResponse

type RemoveWorkspaceMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseRemoveWorkspaceMemberResponse

func ParseRemoveWorkspaceMemberResponse(rsp *http.Response) (*RemoveWorkspaceMemberResponse, error)

ParseRemoveWorkspaceMemberResponse parses an HTTP response from a RemoveWorkspaceMemberWithResponse call

func (RemoveWorkspaceMemberResponse) Status

Status returns HTTPResponse.Status

func (RemoveWorkspaceMemberResponse) StatusCode

func (r RemoveWorkspaceMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResendWorkspaceMemberInviteResponse added in v0.0.23

type ResendWorkspaceMemberInviteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseResendWorkspaceMemberInviteResponse added in v0.0.23

func ParseResendWorkspaceMemberInviteResponse(rsp *http.Response) (*ResendWorkspaceMemberInviteResponse, error)

ParseResendWorkspaceMemberInviteResponse parses an HTTP response from a ResendWorkspaceMemberInviteWithResponse call

func (ResendWorkspaceMemberInviteResponse) Status added in v0.0.23

Status returns HTTPResponse.Status

func (ResendWorkspaceMemberInviteResponse) StatusCode added in v0.0.23

StatusCode returns HTTPResponse.StatusCode

type RevLink struct {
	LinkID string `json:"linkID"`
	Table  string `json:"table"`
}

RevLink defines model for RevLink.

type Role

type Role string

Role defines model for Role.

const (
	RoleMaintainer Role = "maintainer"

	RoleOwner Role = "owner"
)

Defines values for Role.

type Schema

type Schema struct {
	FormatVersion string  `json:"formatVersion" yaml:"formatVersion"`
	Tables        []Table `json:"tables" yaml:"tables"`
}

type SearchBranchJSONBody added in v0.0.23

type SearchBranchJSONBody struct {
	// Maximum [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) for the search terms. The Levenshtein
	// distance is the number of one charcter changes needed to make two strings equal. The default is 1, meaning that single
	// character typos per word are tollerated by search. You can set it to 0 to remove the typo tollerance or set it to 2
	// to allow two typos in a word.
	Fuzziness *int `json:"fuzziness,omitempty"`

	// The query string.
	Query string `json:"query"`

	// An array with the tables in which to search. By default, all tables are included.
	Tables *[]string `json:"tables,omitempty"`
}

SearchBranchJSONBody defines parameters for SearchBranch.

type SearchBranchJSONRequestBody added in v0.0.23

type SearchBranchJSONRequestBody SearchBranchJSONBody

SearchBranchJSONRequestBody defines body for SearchBranch for application/json ContentType.

type SearchBranchResponse added in v0.0.23

type SearchBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Records []Record `json:"records"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseSearchBranchResponse added in v0.0.23

func ParseSearchBranchResponse(rsp *http.Response) (*SearchBranchResponse, error)

ParseSearchBranchResponse parses an HTTP response from a SearchBranchWithResponse call

func (SearchBranchResponse) Status added in v0.0.23

func (r SearchBranchResponse) Status() string

Status returns HTTPResponse.Status

func (SearchBranchResponse) StatusCode added in v0.0.23

func (r SearchBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchResponse added in v0.0.23

type SearchResponse struct {
	Records []Record `json:"records"`
}

SearchResponse defines model for SearchResponse.

type SetTableSchemaJSONBody

type SetTableSchemaJSONBody struct {
	Columns []Column `json:"columns"`
}

SetTableSchemaJSONBody defines parameters for SetTableSchema.

type SetTableSchemaJSONRequestBody

type SetTableSchemaJSONRequestBody SetTableSchemaJSONBody

SetTableSchemaJSONRequestBody defines body for SetTableSchema for application/json ContentType.

type SetTableSchemaResponse

type SetTableSchemaResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON409 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseSetTableSchemaResponse

func ParseSetTableSchemaResponse(rsp *http.Response) (*SetTableSchemaResponse, error)

ParseSetTableSchemaResponse parses an HTTP response from a SetTableSchemaWithResponse call

func (SetTableSchemaResponse) Status

func (r SetTableSchemaResponse) Status() string

Status returns HTTPResponse.Status

func (SetTableSchemaResponse) StatusCode

func (r SetTableSchemaResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SimpleError

type SimpleError struct {
	Id      *string `json:"id,omitempty"`
	Message string  `json:"message"`
}

SimpleError defines model for SimpleError.

type SortExpression

type SortExpression interface{}

SortExpression defines model for SortExpression.

type SortOrder

type SortOrder string

SortOrder defines model for SortOrder.

const (
	SortOrderAsc SortOrder = "asc"

	SortOrderDesc SortOrder = "desc"
)

Defines values for SortOrder.

type StartedFromMetadata

type StartedFromMetadata struct {
	BranchName  BranchName `json:"branchName"`
	DbBranchID  string     `json:"dbBranchID"`
	MigrationID string     `json:"migrationID"`
}

StartedFromMetadata defines model for StartedFromMetadata.

type Table

type Table struct {
	Name    string   `json:"name" yaml:"name"`
	Columns []Column `json:"columns" yaml:"columns"`
}

type TableMigration

type TableMigration struct {
	ModifiedColumns *[]ColumnMigration         `json:"modifiedColumns,omitempty"`
	NewColumnOrder  []string                   `json:"newColumnOrder"`
	NewColumns      *TableMigration_NewColumns `json:"newColumns,omitempty"`
	RemovedColumns  *[]string                  `json:"removedColumns,omitempty"`
}

TableMigration defines model for TableMigration.

type TableMigration_NewColumns

type TableMigration_NewColumns struct {
	AdditionalProperties map[string]Column `json:"-"`
}

TableMigration_NewColumns defines model for TableMigration.NewColumns.

func (TableMigration_NewColumns) Get

func (a TableMigration_NewColumns) Get(fieldName string) (value Column, found bool)

Getter for additional properties for TableMigration_NewColumns. Returns the specified element and whether it was found

func (TableMigration_NewColumns) MarshalJSON

func (a TableMigration_NewColumns) MarshalJSON() ([]byte, error)

Override default JSON handling for TableMigration_NewColumns to handle AdditionalProperties

func (*TableMigration_NewColumns) Set

func (a *TableMigration_NewColumns) Set(fieldName string, value Column)

Setter for additional properties for TableMigration_NewColumns

func (*TableMigration_NewColumns) UnmarshalJSON

func (a *TableMigration_NewColumns) UnmarshalJSON(b []byte) error

Override default JSON handling for TableMigration_NewColumns to handle AdditionalProperties

type TableName

type TableName string

TableName defines model for TableName.

type TableNameParam

type TableNameParam TableName

TableNameParam defines model for TableNameParam.

type TableRename

type TableRename struct {
	NewName string `json:"newName"`
	OldName string `json:"oldName"`
}

TableRename defines model for TableRename.

type UpdateBranchMetadataJSONBody

type UpdateBranchMetadataJSONBody BranchMetadata

UpdateBranchMetadataJSONBody defines parameters for UpdateBranchMetadata.

type UpdateBranchMetadataJSONRequestBody

type UpdateBranchMetadataJSONRequestBody UpdateBranchMetadataJSONBody

UpdateBranchMetadataJSONRequestBody defines body for UpdateBranchMetadata for application/json ContentType.

type UpdateBranchMetadataResponse

type UpdateBranchMetadataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseUpdateBranchMetadataResponse

func ParseUpdateBranchMetadataResponse(rsp *http.Response) (*UpdateBranchMetadataResponse, error)

ParseUpdateBranchMetadataResponse parses an HTTP response from a UpdateBranchMetadataWithResponse call

func (UpdateBranchMetadataResponse) Status

Status returns HTTPResponse.Status

func (UpdateBranchMetadataResponse) StatusCode

func (r UpdateBranchMetadataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateColumnJSONBody

type UpdateColumnJSONBody struct {
	Name string `json:"name"`
}

UpdateColumnJSONBody defines parameters for UpdateColumn.

type UpdateColumnJSONRequestBody

type UpdateColumnJSONRequestBody UpdateColumnJSONBody

UpdateColumnJSONRequestBody defines body for UpdateColumn for application/json ContentType.

type UpdateColumnResponse

type UpdateColumnResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		MigrationID string `json:"migrationID"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseUpdateColumnResponse

func ParseUpdateColumnResponse(rsp *http.Response) (*UpdateColumnResponse, error)

ParseUpdateColumnResponse parses an HTTP response from a UpdateColumnWithResponse call

func (UpdateColumnResponse) Status

func (r UpdateColumnResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateColumnResponse) StatusCode

func (r UpdateColumnResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateRecordWithIDJSONBody added in v0.0.23

type UpdateRecordWithIDJSONBody map[string]interface{}

UpdateRecordWithIDJSONBody defines parameters for UpdateRecordWithID.

type UpdateRecordWithIDJSONRequestBody added in v0.0.23

type UpdateRecordWithIDJSONRequestBody UpdateRecordWithIDJSONBody

UpdateRecordWithIDJSONRequestBody defines body for UpdateRecordWithID for application/json ContentType.

type UpdateRecordWithIDParams added in v0.0.23

type UpdateRecordWithIDParams struct {
	IfVersion *int `json:"ifVersion,omitempty"`
}

UpdateRecordWithIDParams defines parameters for UpdateRecordWithID.

type UpdateRecordWithIDResponse added in v0.0.23

type UpdateRecordWithIDResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id   string `json:"id"`
		Xata struct {
			Version int `json:"version"`
		} `json:"xata"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON422 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseUpdateRecordWithIDResponse added in v0.0.23

func ParseUpdateRecordWithIDResponse(rsp *http.Response) (*UpdateRecordWithIDResponse, error)

ParseUpdateRecordWithIDResponse parses an HTTP response from a UpdateRecordWithIDWithResponse call

func (UpdateRecordWithIDResponse) Status added in v0.0.23

Status returns HTTPResponse.Status

func (UpdateRecordWithIDResponse) StatusCode added in v0.0.23

func (r UpdateRecordWithIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTableJSONBody

type UpdateTableJSONBody struct {
	Name string `json:"name"`
}

UpdateTableJSONBody defines parameters for UpdateTable.

type UpdateTableJSONRequestBody

type UpdateTableJSONRequestBody UpdateTableJSONBody

UpdateTableJSONRequestBody defines body for UpdateTable for application/json ContentType.

type UpdateTableResponse

type UpdateTableResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseUpdateTableResponse

func ParseUpdateTableResponse(rsp *http.Response) (*UpdateTableResponse, error)

ParseUpdateTableResponse parses an HTTP response from a UpdateTableWithResponse call

func (UpdateTableResponse) Status

func (r UpdateTableResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateTableResponse) StatusCode

func (r UpdateTableResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserJSONBody

type UpdateUserJSONBody User

UpdateUserJSONBody defines parameters for UpdateUser.

type UpdateUserJSONRequestBody

type UpdateUserJSONRequestBody UpdateUserJSONBody

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UpdateUserResponse

type UpdateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserWithID
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseUpdateUserResponse

func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)

ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call

func (UpdateUserResponse) Status

func (r UpdateUserResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserResponse) StatusCode

func (r UpdateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateWorkspaceJSONBody

type UpdateWorkspaceJSONBody WorkspaceMeta

UpdateWorkspaceJSONBody defines parameters for UpdateWorkspace.

type UpdateWorkspaceJSONRequestBody

type UpdateWorkspaceJSONRequestBody UpdateWorkspaceJSONBody

UpdateWorkspaceJSONRequestBody defines body for UpdateWorkspace for application/json ContentType.

type UpdateWorkspaceMemberRoleJSONBody

type UpdateWorkspaceMemberRoleJSONBody struct {
	Role Role `json:"role"`
}

UpdateWorkspaceMemberRoleJSONBody defines parameters for UpdateWorkspaceMemberRole.

type UpdateWorkspaceMemberRoleJSONRequestBody

type UpdateWorkspaceMemberRoleJSONRequestBody UpdateWorkspaceMemberRoleJSONBody

UpdateWorkspaceMemberRoleJSONRequestBody defines body for UpdateWorkspaceMemberRole for application/json ContentType.

type UpdateWorkspaceMemberRoleResponse

type UpdateWorkspaceMemberRoleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseUpdateWorkspaceMemberRoleResponse

func ParseUpdateWorkspaceMemberRoleResponse(rsp *http.Response) (*UpdateWorkspaceMemberRoleResponse, error)

ParseUpdateWorkspaceMemberRoleResponse parses an HTTP response from a UpdateWorkspaceMemberRoleWithResponse call

func (UpdateWorkspaceMemberRoleResponse) Status

Status returns HTTPResponse.Status

func (UpdateWorkspaceMemberRoleResponse) StatusCode

func (r UpdateWorkspaceMemberRoleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateWorkspaceResponse

type UpdateWorkspaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Workspace
	JSON400      *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseUpdateWorkspaceResponse

func ParseUpdateWorkspaceResponse(rsp *http.Response) (*UpdateWorkspaceResponse, error)

ParseUpdateWorkspaceResponse parses an HTTP response from a UpdateWorkspaceWithResponse call

func (UpdateWorkspaceResponse) Status

func (r UpdateWorkspaceResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateWorkspaceResponse) StatusCode

func (r UpdateWorkspaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpsertRecordWithIDJSONBody added in v0.0.23

type UpsertRecordWithIDJSONBody map[string]interface{}

UpsertRecordWithIDJSONBody defines parameters for UpsertRecordWithID.

type UpsertRecordWithIDJSONRequestBody added in v0.0.23

type UpsertRecordWithIDJSONRequestBody UpsertRecordWithIDJSONBody

UpsertRecordWithIDJSONRequestBody defines body for UpsertRecordWithID for application/json ContentType.

type UpsertRecordWithIDParams added in v0.0.23

type UpsertRecordWithIDParams struct {
	IfVersion *int `json:"ifVersion,omitempty"`
}

UpsertRecordWithIDParams defines parameters for UpsertRecordWithID.

type UpsertRecordWithIDResponse added in v0.0.23

type UpsertRecordWithIDResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id   string `json:"id"`
		Xata struct {
			Version int `json:"version"`
		} `json:"xata"`
	}
	JSON400 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON401 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON404 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
	JSON422 *struct {
		Id      *string `json:"id,omitempty"`
		Message string  `json:"message"`
	}
}

func ParseUpsertRecordWithIDResponse added in v0.0.23

func ParseUpsertRecordWithIDResponse(rsp *http.Response) (*UpsertRecordWithIDResponse, error)

ParseUpsertRecordWithIDResponse parses an HTTP response from a UpsertRecordWithIDWithResponse call

func (UpsertRecordWithIDResponse) Status added in v0.0.23

Status returns HTTPResponse.Status

func (UpsertRecordWithIDResponse) StatusCode added in v0.0.23

func (r UpsertRecordWithIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type User

type User struct {
	Email    openapi_types.Email `json:"email"`
	Fullname string              `json:"fullname"`
	Image    string              `json:"image"`
}

User defines model for User.

type UserID

type UserID string

UserID defines model for UserID.

type UserIDParam

type UserIDParam UserID

UserIDParam defines model for UserIDParam.

type UserWithID

type UserWithID struct {
	// Embedded struct due to allOf(#/components/schemas/User)
	User `yaml:",inline"`
	// Embedded fields due to inline allOf schema
	Id UserID `json:"id"`
}

UserWithID defines model for UserWithID.

type Workspace

type Workspace struct {
	// Embedded struct due to allOf(#/components/schemas/WorkspaceMeta)
	WorkspaceMeta `yaml:",inline"`
	// Embedded fields due to inline allOf schema
	Id          WorkspaceID   `json:"id"`
	MemberCount int           `json:"memberCount"`
	Plan        WorkspacePlan `json:"plan"`
}

Workspace defines model for Workspace.

type WorkspaceID

type WorkspaceID string

WorkspaceID defines model for WorkspaceID.

type WorkspaceIDParam

type WorkspaceIDParam WorkspaceID

WorkspaceIDParam defines model for WorkspaceIDParam.

type WorkspaceInvite

type WorkspaceInvite struct {
	Email    openapi_types.Email `json:"email"`
	Expires  time.Time           `json:"expires"`
	InviteId InviteID            `json:"inviteId"`
	Role     Role                `json:"role"`
}

WorkspaceInvite defines model for WorkspaceInvite.

type WorkspaceMember

type WorkspaceMember struct {
	Email    openapi_types.Email `json:"email"`
	Fullname string              `json:"fullname"`
	Role     Role                `json:"role"`
	UserId   UserID              `json:"userId"`
}

WorkspaceMember defines model for WorkspaceMember.

type WorkspaceMembers

type WorkspaceMembers struct {
	Invites []WorkspaceInvite `json:"invites"`
	Members []WorkspaceMember `json:"members"`
}

WorkspaceMembers defines model for WorkspaceMembers.

type WorkspaceMeta

type WorkspaceMeta struct {
	Name string `json:"name"`
	Slug string `json:"slug"`
}

WorkspaceMeta defines model for WorkspaceMeta.

type WorkspacePlan

type WorkspacePlan string

WorkspacePlan defines model for Workspace.Plan.

const (
	WorkspacePlanFree WorkspacePlan = "free"
)

Defines values for WorkspacePlan.

Jump to

Keyboard shortcuts

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