generated

package
v0.0.0-...-ef817f9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.

Index

Constants

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

Variables

This section is empty.

Functions

func NewChangePasswordRequest

func NewChangePasswordRequest(server string, params *ChangePasswordParams, body ChangePasswordJSONRequestBody) (*http.Request, error)

NewChangePasswordRequest calls the generic ChangePassword builder with application/json body

func NewChangePasswordRequestWithBody

func NewChangePasswordRequestWithBody(server string, params *ChangePasswordParams, contentType string, body io.Reader) (*http.Request, error)

NewChangePasswordRequestWithBody generates requests for ChangePassword with any type of body

func NewCheckAttachmentExistsRequest

func NewCheckAttachmentExistsRequest(server string, attachmentId string) (*http.Request, error)

NewCheckAttachmentExistsRequest generates requests for CheckAttachmentExists

func NewCreateUserRequest

func NewCreateUserRequest(server string, params *CreateUserParams, body CreateUserJSONRequestBody) (*http.Request, error)

NewCreateUserRequest calls the generic CreateUser builder with application/json body

func NewCreateUserRequestWithBody

func NewCreateUserRequestWithBody(server string, params *CreateUserParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateUserRequestWithBody generates requests for CreateUser with any type of body

func NewDeleteUserRequest

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

NewDeleteUserRequest generates requests for DeleteUser

func NewDownloadAppBundleFileRequest

func NewDownloadAppBundleFileRequest(server string, path string, params *DownloadAppBundleFileParams) (*http.Request, error)

NewDownloadAppBundleFileRequest generates requests for DownloadAppBundleFile

func NewDownloadAttachmentRequest

func NewDownloadAttachmentRequest(server string, attachmentId string) (*http.Request, error)

NewDownloadAttachmentRequest generates requests for DownloadAttachment

func NewGetAppBundleChangesRequest

func NewGetAppBundleChangesRequest(server string, params *GetAppBundleChangesParams) (*http.Request, error)

NewGetAppBundleChangesRequest generates requests for GetAppBundleChanges

func NewGetAppBundleManifestRequest

func NewGetAppBundleManifestRequest(server string, params *GetAppBundleManifestParams) (*http.Request, error)

NewGetAppBundleManifestRequest generates requests for GetAppBundleManifest

func NewGetAppBundleVersionsRequest

func NewGetAppBundleVersionsRequest(server string, params *GetAppBundleVersionsParams) (*http.Request, error)

NewGetAppBundleVersionsRequest generates requests for GetAppBundleVersions

func NewGetAttachmentManifestRequest

func NewGetAttachmentManifestRequest(server string, params *GetAttachmentManifestParams, body GetAttachmentManifestJSONRequestBody) (*http.Request, error)

NewGetAttachmentManifestRequest calls the generic GetAttachmentManifest builder with application/json body

func NewGetAttachmentManifestRequestWithBody

func NewGetAttachmentManifestRequestWithBody(server string, params *GetAttachmentManifestParams, contentType string, body io.Reader) (*http.Request, error)

NewGetAttachmentManifestRequestWithBody generates requests for GetAttachmentManifest with any type of body

func NewGetAttachmentsExportZipRequest

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

NewGetAttachmentsExportZipRequest generates requests for GetAttachmentsExportZip

func NewGetHealthRequest

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

NewGetHealthRequest generates requests for GetHealth

func NewGetParquetExportZipRequest

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

NewGetParquetExportZipRequest generates requests for GetParquetExportZip

func NewGetRawJsonExportZipRequest

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

NewGetRawJsonExportZipRequest generates requests for GetRawJsonExportZip

func NewGetVersionRequest

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

NewGetVersionRequest generates requests for GetVersion

func NewListUsersRequest

func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)

NewListUsersRequest generates requests for ListUsers

func NewLoginRequest

func NewLoginRequest(server string, params *LoginParams, body LoginJSONRequestBody) (*http.Request, error)

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody

func NewLoginRequestWithBody(server string, params *LoginParams, contentType string, body io.Reader) (*http.Request, error)

NewLoginRequestWithBody generates requests for Login with any type of body

func NewPushAppBundleRequestWithBody

func NewPushAppBundleRequestWithBody(server string, params *PushAppBundleParams, contentType string, body io.Reader) (*http.Request, error)

NewPushAppBundleRequestWithBody generates requests for PushAppBundle with any type of body

func NewRefreshTokenRequest

func NewRefreshTokenRequest(server string, params *RefreshTokenParams, body RefreshTokenJSONRequestBody) (*http.Request, error)

NewRefreshTokenRequest calls the generic RefreshToken builder with application/json body

func NewRefreshTokenRequestWithBody

func NewRefreshTokenRequestWithBody(server string, params *RefreshTokenParams, contentType string, body io.Reader) (*http.Request, error)

NewRefreshTokenRequestWithBody generates requests for RefreshToken with any type of body

func NewResetUserPasswordRequest

func NewResetUserPasswordRequest(server string, params *ResetUserPasswordParams, body ResetUserPasswordJSONRequestBody) (*http.Request, error)

NewResetUserPasswordRequest calls the generic ResetUserPassword builder with application/json body

func NewResetUserPasswordRequestWithBody

func NewResetUserPasswordRequestWithBody(server string, params *ResetUserPasswordParams, contentType string, body io.Reader) (*http.Request, error)

NewResetUserPasswordRequestWithBody generates requests for ResetUserPassword with any type of body

func NewSwitchAppBundleVersionRequest

func NewSwitchAppBundleVersionRequest(server string, version string, params *SwitchAppBundleVersionParams) (*http.Request, error)

NewSwitchAppBundleVersionRequest generates requests for SwitchAppBundleVersion

func NewSyncPullRequest

func NewSyncPullRequest(server string, params *SyncPullParams, body SyncPullJSONRequestBody) (*http.Request, error)

NewSyncPullRequest calls the generic SyncPull builder with application/json body

func NewSyncPullRequestWithBody

func NewSyncPullRequestWithBody(server string, params *SyncPullParams, contentType string, body io.Reader) (*http.Request, error)

NewSyncPullRequestWithBody generates requests for SyncPull with any type of body

func NewSyncPushRequest

func NewSyncPushRequest(server string, params *SyncPushParams, body SyncPushJSONRequestBody) (*http.Request, error)

NewSyncPushRequest calls the generic SyncPush builder with application/json body

func NewSyncPushRequestWithBody

func NewSyncPushRequestWithBody(server string, params *SyncPushParams, contentType string, body io.Reader) (*http.Request, error)

NewSyncPushRequestWithBody generates requests for SyncPush with any type of body

func NewUploadAttachmentRequestWithBody

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

NewUploadAttachmentRequestWithBody generates requests for UploadAttachment with any type of body

Types

type AppBundleChangeLog

type AppBundleChangeLog struct {
	CompareVersionA string              `json:"compare_version_a"`
	CompareVersionB string              `json:"compare_version_b"`
	FormChanges     bool                `json:"form_changes"`
	ModifiedForms   *[]FormModification `json:"modified_forms,omitempty"`
	NewForms        *[]FormDiff         `json:"new_forms,omitempty"`
	RemovedForms    *[]FormDiff         `json:"removed_forms,omitempty"`
	UiChanges       bool                `json:"ui_changes"`
}

AppBundleChangeLog defines model for AppBundleChangeLog.

type AppBundleFile

type AppBundleFile struct {
	Hash     string    `json:"hash"`
	MimeType string    `json:"mimeType"`
	ModTime  time.Time `json:"modTime"`
	Path     string    `json:"path"`
	Size     int       `json:"size"`
}

AppBundleFile defines model for AppBundleFile.

type AppBundleManifest

type AppBundleManifest struct {
	Files       []AppBundleFile `json:"files"`
	GeneratedAt time.Time       `json:"generatedAt"`
	Hash        string          `json:"hash"`
	Version     string          `json:"version"`
}

AppBundleManifest defines model for AppBundleManifest.

type AppBundlePushResponse

type AppBundlePushResponse struct {
	Manifest AppBundleManifest `json:"manifest"`
	Message  string            `json:"message"`
}

AppBundlePushResponse defines model for AppBundlePushResponse.

type AppBundleVersions

type AppBundleVersions struct {
	Versions []string `json:"versions"`
}

AppBundleVersions defines model for AppBundleVersions.

type AttachmentManifestRequest

type AttachmentManifestRequest struct {
	// ClientId Unique identifier for the client requesting the manifest
	ClientId string `json:"client_id"`

	// SinceVersion Data version number from which to get attachment changes (0 for all attachments)
	SinceVersion int `json:"since_version"`
}

AttachmentManifestRequest defines model for AttachmentManifestRequest.

type AttachmentManifestResponse

type AttachmentManifestResponse struct {
	// CurrentVersion Current database version number
	CurrentVersion int `json:"current_version"`

	// OperationCount Count of operations by type
	OperationCount *struct {
		Delete   *int `json:"delete,omitempty"`
		Download *int `json:"download,omitempty"`
	} `json:"operation_count,omitempty"`

	// Operations List of attachment operations to perform
	Operations []AttachmentOperation `json:"operations"`

	// TotalDownloadSize Total size in bytes of all attachments to download
	TotalDownloadSize *int `json:"total_download_size,omitempty"`
}

AttachmentManifestResponse defines model for AttachmentManifestResponse.

type AttachmentOperation

type AttachmentOperation struct {
	// AttachmentId Unique identifier for the attachment
	AttachmentId string `json:"attachment_id"`

	// ContentType MIME type of the attachment (only present for download operations)
	ContentType *string `json:"content_type,omitempty"`

	// DownloadUrl URL to download the attachment (only present for download operations)
	DownloadUrl *string `json:"download_url,omitempty"`

	// Operation Operation to perform on the attachment
	Operation AttachmentOperationOperation `json:"operation"`

	// Size Size of the attachment in bytes (only present for download operations)
	Size *int `json:"size,omitempty"`

	// Version Version when this attachment was created/modified/deleted
	Version *int `json:"version,omitempty"`
}

AttachmentOperation defines model for AttachmentOperation.

type AttachmentOperationOperation

type AttachmentOperationOperation string

AttachmentOperationOperation Operation to perform on the attachment

const (
	Delete   AttachmentOperationOperation = "delete"
	Download AttachmentOperationOperation = "download"
)

Defines values for AttachmentOperationOperation.

func (AttachmentOperationOperation) Valid

Valid indicates whether the value is a known member of the AttachmentOperationOperation enum.

type AuthResponse

type AuthResponse struct {
	ExpiresAt    int64  `json:"expiresAt"`
	RefreshToken string `json:"refreshToken"`
	Token        string `json:"token"`
}

AuthResponse defines model for AuthResponse.

type BuildInfo

type BuildInfo struct {
	BuildTime *string `json:"build_time,omitempty"`
	Commit    *string `json:"commit,omitempty"`
	GoVersion *string `json:"go_version,omitempty"`
}

BuildInfo defines model for BuildInfo.

type ChangeLog

type ChangeLog struct {
	CompareVersionA *string             `json:"compare_version_a,omitempty"`
	CompareVersionB *string             `json:"compare_version_b,omitempty"`
	FormChanges     *bool               `json:"form_changes,omitempty"`
	ModifiedForms   *[]FormModification `json:"modified_forms,omitempty"`
	NewForms        *[]FormDiff         `json:"new_forms,omitempty"`
	RemovedForms    *[]FormDiff         `json:"removed_forms,omitempty"`
	UiChanges       *bool               `json:"ui_changes,omitempty"`
}

ChangeLog defines model for ChangeLog.

type ChangePasswordHTTPResponse

type ChangePasswordHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Message *string `json:"message,omitempty"`
	}
	ApplicationproblemJSON400 *ProblemDetail
	ApplicationproblemJSON401 *ProblemDetail
}

func ParseChangePasswordHTTPResponse

func ParseChangePasswordHTTPResponse(rsp *http.Response) (*ChangePasswordHTTPResponse, error)

ParseChangePasswordHTTPResponse parses an HTTP response from a ChangePasswordWithResponse call

func (ChangePasswordHTTPResponse) Status

Status returns HTTPResponse.Status

func (ChangePasswordHTTPResponse) StatusCode

func (r ChangePasswordHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChangePasswordJSONBody

type ChangePasswordJSONBody struct {
	// CurrentPassword Current password for verification
	CurrentPassword string `json:"currentPassword"`

	// NewPassword New password to set
	NewPassword string `json:"newPassword"`
}

ChangePasswordJSONBody defines parameters for ChangePassword.

type ChangePasswordJSONRequestBody

type ChangePasswordJSONRequestBody ChangePasswordJSONBody

ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.

type ChangePasswordParams

type ChangePasswordParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

ChangePasswordParams defines parameters for ChangePassword.

type CheckAttachmentExistsHTTPResponse

type CheckAttachmentExistsHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCheckAttachmentExistsHTTPResponse

func ParseCheckAttachmentExistsHTTPResponse(rsp *http.Response) (*CheckAttachmentExistsHTTPResponse, error)

ParseCheckAttachmentExistsHTTPResponse parses an HTTP response from a CheckAttachmentExistsWithResponse call

func (CheckAttachmentExistsHTTPResponse) Status

Status returns HTTPResponse.Status

func (CheckAttachmentExistsHTTPResponse) StatusCode

func (r CheckAttachmentExistsHTTPResponse) StatusCode() int

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) ChangePassword

func (c *Client) ChangePassword(ctx context.Context, params *ChangePasswordParams, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangePasswordWithBody

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

func (*Client) CheckAttachmentExists

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

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateUserWithBody

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

func (*Client) DeleteUser

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

func (*Client) DownloadAppBundleFile

func (c *Client) DownloadAppBundleFile(ctx context.Context, path string, params *DownloadAppBundleFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DownloadAttachment

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

func (*Client) GetAppBundleChanges

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

func (*Client) GetAppBundleManifest

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

func (*Client) GetAppBundleVersions

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

func (*Client) GetAttachmentManifest

func (c *Client) GetAttachmentManifest(ctx context.Context, params *GetAttachmentManifestParams, body GetAttachmentManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAttachmentManifestWithBody

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

func (*Client) GetAttachmentsExportZip

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

func (*Client) GetHealth

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

func (*Client) GetParquetExportZip

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

func (*Client) GetRawJsonExportZip

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

func (*Client) GetVersion

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

func (*Client) ListUsers

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

func (*Client) Login

func (c *Client) Login(ctx context.Context, params *LoginParams, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LoginWithBody

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

func (*Client) PushAppBundleWithBody

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

func (*Client) RefreshToken

func (c *Client) RefreshToken(ctx context.Context, params *RefreshTokenParams, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RefreshTokenWithBody

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

func (*Client) ResetUserPassword

func (c *Client) ResetUserPassword(ctx context.Context, params *ResetUserPasswordParams, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResetUserPasswordWithBody

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

func (*Client) SwitchAppBundleVersion

func (c *Client) SwitchAppBundleVersion(ctx context.Context, version string, params *SwitchAppBundleVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SyncPull

func (c *Client) SyncPull(ctx context.Context, params *SyncPullParams, body SyncPullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SyncPullWithBody

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

func (*Client) SyncPush

func (c *Client) SyncPush(ctx context.Context, params *SyncPushParams, body SyncPushJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SyncPushWithBody

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

func (*Client) UploadAttachmentWithBody

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

type ClientInterface

type ClientInterface interface {
	// GetAppBundleChanges request
	GetAppBundleChanges(ctx context.Context, params *GetAppBundleChangesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadAppBundleFile request
	DownloadAppBundleFile(ctx context.Context, path string, params *DownloadAppBundleFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAppBundleManifest request
	GetAppBundleManifest(ctx context.Context, params *GetAppBundleManifestParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// SwitchAppBundleVersion request
	SwitchAppBundleVersion(ctx context.Context, version string, params *SwitchAppBundleVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAppBundleVersions request
	GetAppBundleVersions(ctx context.Context, params *GetAppBundleVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	GetAttachmentManifest(ctx context.Context, params *GetAttachmentManifestParams, body GetAttachmentManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadAttachment request
	DownloadAttachment(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckAttachmentExists request
	CheckAttachmentExists(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	Login(ctx context.Context, params *LoginParams, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	RefreshToken(ctx context.Context, params *RefreshTokenParams, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	SyncPull(ctx context.Context, params *SyncPullParams, body SyncPullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	SyncPush(ctx context.Context, params *SyncPushParams, body SyncPushJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsers request
	ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ChangePassword(ctx context.Context, params *ChangePasswordParams, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateUser(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ResetUserPassword(ctx context.Context, params *ResetUserPasswordParams, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	// GetHealth request
	GetHealth(ctx context.Context, 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) ChangePasswordWithBodyWithResponse

func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, params *ChangePasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordHTTPResponse, error)

ChangePasswordWithBodyWithResponse request with arbitrary body returning *ChangePasswordHTTPResponse

func (*ClientWithResponses) ChangePasswordWithResponse

func (*ClientWithResponses) CheckAttachmentExistsWithResponse

func (c *ClientWithResponses) CheckAttachmentExistsWithResponse(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*CheckAttachmentExistsHTTPResponse, error)

CheckAttachmentExistsWithResponse request returning *CheckAttachmentExistsHTTPResponse

func (*ClientWithResponses) CreateUserWithBodyWithResponse

func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, params *CreateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserHTTPResponse, error)

CreateUserWithBodyWithResponse request with arbitrary body returning *CreateUserHTTPResponse

func (*ClientWithResponses) CreateUserWithResponse

func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserHTTPResponse, error)

func (*ClientWithResponses) DeleteUserWithResponse

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, username string, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*DeleteUserHTTPResponse, error)

DeleteUserWithResponse request returning *DeleteUserHTTPResponse

func (*ClientWithResponses) DownloadAppBundleFileWithResponse

func (c *ClientWithResponses) DownloadAppBundleFileWithResponse(ctx context.Context, path string, params *DownloadAppBundleFileParams, reqEditors ...RequestEditorFn) (*DownloadAppBundleFileHTTPResponse, error)

DownloadAppBundleFileWithResponse request returning *DownloadAppBundleFileHTTPResponse

func (*ClientWithResponses) DownloadAttachmentWithResponse

func (c *ClientWithResponses) DownloadAttachmentWithResponse(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*DownloadAttachmentHTTPResponse, error)

DownloadAttachmentWithResponse request returning *DownloadAttachmentHTTPResponse

func (*ClientWithResponses) GetAppBundleChangesWithResponse

func (c *ClientWithResponses) GetAppBundleChangesWithResponse(ctx context.Context, params *GetAppBundleChangesParams, reqEditors ...RequestEditorFn) (*GetAppBundleChangesHTTPResponse, error)

GetAppBundleChangesWithResponse request returning *GetAppBundleChangesHTTPResponse

func (*ClientWithResponses) GetAppBundleManifestWithResponse

func (c *ClientWithResponses) GetAppBundleManifestWithResponse(ctx context.Context, params *GetAppBundleManifestParams, reqEditors ...RequestEditorFn) (*GetAppBundleManifestHTTPResponse, error)

GetAppBundleManifestWithResponse request returning *GetAppBundleManifestHTTPResponse

func (*ClientWithResponses) GetAppBundleVersionsWithResponse

func (c *ClientWithResponses) GetAppBundleVersionsWithResponse(ctx context.Context, params *GetAppBundleVersionsParams, reqEditors ...RequestEditorFn) (*GetAppBundleVersionsHTTPResponse, error)

GetAppBundleVersionsWithResponse request returning *GetAppBundleVersionsHTTPResponse

func (*ClientWithResponses) GetAttachmentManifestWithBodyWithResponse

func (c *ClientWithResponses) GetAttachmentManifestWithBodyWithResponse(ctx context.Context, params *GetAttachmentManifestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAttachmentManifestHTTPResponse, error)

GetAttachmentManifestWithBodyWithResponse request with arbitrary body returning *GetAttachmentManifestHTTPResponse

func (*ClientWithResponses) GetAttachmentsExportZipWithResponse

func (c *ClientWithResponses) GetAttachmentsExportZipWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAttachmentsExportZipHTTPResponse, error)

GetAttachmentsExportZipWithResponse request returning *GetAttachmentsExportZipHTTPResponse

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthHTTPResponse, error)

GetHealthWithResponse request returning *GetHealthHTTPResponse

func (*ClientWithResponses) GetParquetExportZipWithResponse

func (c *ClientWithResponses) GetParquetExportZipWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetParquetExportZipHTTPResponse, error)

GetParquetExportZipWithResponse request returning *GetParquetExportZipHTTPResponse

func (*ClientWithResponses) GetRawJsonExportZipWithResponse

func (c *ClientWithResponses) GetRawJsonExportZipWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRawJsonExportZipHTTPResponse, error)

GetRawJsonExportZipWithResponse request returning *GetRawJsonExportZipHTTPResponse

func (*ClientWithResponses) GetVersionWithResponse

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionHTTPResponse, error)

GetVersionWithResponse request returning *GetVersionHTTPResponse

func (*ClientWithResponses) ListUsersWithResponse

func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersHTTPResponse, error)

ListUsersWithResponse request returning *ListUsersHTTPResponse

func (*ClientWithResponses) LoginWithBodyWithResponse

func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, params *LoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginHTTPResponse, error)

LoginWithBodyWithResponse request with arbitrary body returning *LoginHTTPResponse

func (*ClientWithResponses) LoginWithResponse

func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, params *LoginParams, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginHTTPResponse, error)

func (*ClientWithResponses) PushAppBundleWithBodyWithResponse

func (c *ClientWithResponses) PushAppBundleWithBodyWithResponse(ctx context.Context, params *PushAppBundleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PushAppBundleHTTPResponse, error)

PushAppBundleWithBodyWithResponse request with arbitrary body returning *PushAppBundleHTTPResponse

func (*ClientWithResponses) RefreshTokenWithBodyWithResponse

func (c *ClientWithResponses) RefreshTokenWithBodyWithResponse(ctx context.Context, params *RefreshTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshTokenHTTPResponse, error)

RefreshTokenWithBodyWithResponse request with arbitrary body returning *RefreshTokenHTTPResponse

func (*ClientWithResponses) RefreshTokenWithResponse

func (c *ClientWithResponses) RefreshTokenWithResponse(ctx context.Context, params *RefreshTokenParams, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshTokenHTTPResponse, error)

func (*ClientWithResponses) ResetUserPasswordWithBodyWithResponse

func (c *ClientWithResponses) ResetUserPasswordWithBodyWithResponse(ctx context.Context, params *ResetUserPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetUserPasswordHTTPResponse, error)

ResetUserPasswordWithBodyWithResponse request with arbitrary body returning *ResetUserPasswordHTTPResponse

func (*ClientWithResponses) ResetUserPasswordWithResponse

func (*ClientWithResponses) SwitchAppBundleVersionWithResponse

func (c *ClientWithResponses) SwitchAppBundleVersionWithResponse(ctx context.Context, version string, params *SwitchAppBundleVersionParams, reqEditors ...RequestEditorFn) (*SwitchAppBundleVersionHTTPResponse, error)

SwitchAppBundleVersionWithResponse request returning *SwitchAppBundleVersionHTTPResponse

func (*ClientWithResponses) SyncPullWithBodyWithResponse

func (c *ClientWithResponses) SyncPullWithBodyWithResponse(ctx context.Context, params *SyncPullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncPullHTTPResponse, error)

SyncPullWithBodyWithResponse request with arbitrary body returning *SyncPullHTTPResponse

func (*ClientWithResponses) SyncPullWithResponse

func (c *ClientWithResponses) SyncPullWithResponse(ctx context.Context, params *SyncPullParams, body SyncPullJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncPullHTTPResponse, error)

func (*ClientWithResponses) SyncPushWithBodyWithResponse

func (c *ClientWithResponses) SyncPushWithBodyWithResponse(ctx context.Context, params *SyncPushParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncPushHTTPResponse, error)

SyncPushWithBodyWithResponse request with arbitrary body returning *SyncPushHTTPResponse

func (*ClientWithResponses) SyncPushWithResponse

func (c *ClientWithResponses) SyncPushWithResponse(ctx context.Context, params *SyncPushParams, body SyncPushJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncPushHTTPResponse, error)

func (*ClientWithResponses) UploadAttachmentWithBodyWithResponse

func (c *ClientWithResponses) UploadAttachmentWithBodyWithResponse(ctx context.Context, attachmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadAttachmentHTTPResponse, error)

UploadAttachmentWithBodyWithResponse request with arbitrary body returning *UploadAttachmentHTTPResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetAppBundleChangesWithResponse request
	GetAppBundleChangesWithResponse(ctx context.Context, params *GetAppBundleChangesParams, reqEditors ...RequestEditorFn) (*GetAppBundleChangesHTTPResponse, error)

	// DownloadAppBundleFileWithResponse request
	DownloadAppBundleFileWithResponse(ctx context.Context, path string, params *DownloadAppBundleFileParams, reqEditors ...RequestEditorFn) (*DownloadAppBundleFileHTTPResponse, error)

	// GetAppBundleManifestWithResponse request
	GetAppBundleManifestWithResponse(ctx context.Context, params *GetAppBundleManifestParams, reqEditors ...RequestEditorFn) (*GetAppBundleManifestHTTPResponse, error)

	// PushAppBundleWithBodyWithResponse request with any body
	PushAppBundleWithBodyWithResponse(ctx context.Context, params *PushAppBundleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PushAppBundleHTTPResponse, error)

	// SwitchAppBundleVersionWithResponse request
	SwitchAppBundleVersionWithResponse(ctx context.Context, version string, params *SwitchAppBundleVersionParams, reqEditors ...RequestEditorFn) (*SwitchAppBundleVersionHTTPResponse, error)

	// GetAppBundleVersionsWithResponse request
	GetAppBundleVersionsWithResponse(ctx context.Context, params *GetAppBundleVersionsParams, reqEditors ...RequestEditorFn) (*GetAppBundleVersionsHTTPResponse, error)

	// GetAttachmentsExportZipWithResponse request
	GetAttachmentsExportZipWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAttachmentsExportZipHTTPResponse, error)

	// GetAttachmentManifestWithBodyWithResponse request with any body
	GetAttachmentManifestWithBodyWithResponse(ctx context.Context, params *GetAttachmentManifestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAttachmentManifestHTTPResponse, error)

	GetAttachmentManifestWithResponse(ctx context.Context, params *GetAttachmentManifestParams, body GetAttachmentManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAttachmentManifestHTTPResponse, error)

	// DownloadAttachmentWithResponse request
	DownloadAttachmentWithResponse(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*DownloadAttachmentHTTPResponse, error)

	// CheckAttachmentExistsWithResponse request
	CheckAttachmentExistsWithResponse(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*CheckAttachmentExistsHTTPResponse, error)

	// UploadAttachmentWithBodyWithResponse request with any body
	UploadAttachmentWithBodyWithResponse(ctx context.Context, attachmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadAttachmentHTTPResponse, error)

	// LoginWithBodyWithResponse request with any body
	LoginWithBodyWithResponse(ctx context.Context, params *LoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginHTTPResponse, error)

	LoginWithResponse(ctx context.Context, params *LoginParams, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginHTTPResponse, error)

	// RefreshTokenWithBodyWithResponse request with any body
	RefreshTokenWithBodyWithResponse(ctx context.Context, params *RefreshTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshTokenHTTPResponse, error)

	RefreshTokenWithResponse(ctx context.Context, params *RefreshTokenParams, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshTokenHTTPResponse, error)

	// GetParquetExportZipWithResponse request
	GetParquetExportZipWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetParquetExportZipHTTPResponse, error)

	// GetRawJsonExportZipWithResponse request
	GetRawJsonExportZipWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRawJsonExportZipHTTPResponse, error)

	// SyncPullWithBodyWithResponse request with any body
	SyncPullWithBodyWithResponse(ctx context.Context, params *SyncPullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncPullHTTPResponse, error)

	SyncPullWithResponse(ctx context.Context, params *SyncPullParams, body SyncPullJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncPullHTTPResponse, error)

	// SyncPushWithBodyWithResponse request with any body
	SyncPushWithBodyWithResponse(ctx context.Context, params *SyncPushParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncPushHTTPResponse, error)

	SyncPushWithResponse(ctx context.Context, params *SyncPushParams, body SyncPushJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncPushHTTPResponse, error)

	// ListUsersWithResponse request
	ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersHTTPResponse, error)

	// ChangePasswordWithBodyWithResponse request with any body
	ChangePasswordWithBodyWithResponse(ctx context.Context, params *ChangePasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordHTTPResponse, error)

	ChangePasswordWithResponse(ctx context.Context, params *ChangePasswordParams, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordHTTPResponse, error)

	// CreateUserWithBodyWithResponse request with any body
	CreateUserWithBodyWithResponse(ctx context.Context, params *CreateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserHTTPResponse, error)

	CreateUserWithResponse(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserHTTPResponse, error)

	// ResetUserPasswordWithBodyWithResponse request with any body
	ResetUserPasswordWithBodyWithResponse(ctx context.Context, params *ResetUserPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetUserPasswordHTTPResponse, error)

	ResetUserPasswordWithResponse(ctx context.Context, params *ResetUserPasswordParams, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetUserPasswordHTTPResponse, error)

	// DeleteUserWithResponse request
	DeleteUserWithResponse(ctx context.Context, username string, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*DeleteUserHTTPResponse, error)

	// GetVersionWithResponse request
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionHTTPResponse, error)

	// GetHealthWithResponse request
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthHTTPResponse, error)
}

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

type CreateUserHTTPResponse

type CreateUserHTTPResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON201                   *UserResponse
	ApplicationproblemJSON400 *ProblemDetail
	ApplicationproblemJSON401 *ProblemDetail
	ApplicationproblemJSON403 *ProblemDetail
	ApplicationproblemJSON409 *ProblemDetail
}

func ParseCreateUserHTTPResponse

func ParseCreateUserHTTPResponse(rsp *http.Response) (*CreateUserHTTPResponse, error)

ParseCreateUserHTTPResponse parses an HTTP response from a CreateUserWithResponse call

func (CreateUserHTTPResponse) Status

func (r CreateUserHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (CreateUserHTTPResponse) StatusCode

func (r CreateUserHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUserJSONBody

type CreateUserJSONBody struct {
	// Password New user's password
	Password string `json:"password"`

	// Role User's role
	Role CreateUserJSONBodyRole `json:"role"`

	// Username New user's username
	Username string `json:"username"`
}

CreateUserJSONBody defines parameters for CreateUser.

type CreateUserJSONBodyRole

type CreateUserJSONBodyRole string

CreateUserJSONBodyRole defines parameters for CreateUser.

const (
	CreateUserJSONBodyRoleAdmin     CreateUserJSONBodyRole = "admin"
	CreateUserJSONBodyRoleReadOnly  CreateUserJSONBodyRole = "read-only"
	CreateUserJSONBodyRoleReadWrite CreateUserJSONBodyRole = "read-write"
)

Defines values for CreateUserJSONBodyRole.

func (CreateUserJSONBodyRole) Valid

func (e CreateUserJSONBodyRole) Valid() bool

Valid indicates whether the value is a known member of the CreateUserJSONBodyRole enum.

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody CreateUserJSONBody

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserParams

type CreateUserParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

CreateUserParams defines parameters for CreateUser.

type DatabaseInfo

type DatabaseInfo struct {
	DatabaseName *string `json:"database_name,omitempty"`
	Type         *string `json:"type,omitempty"`
	Version      *string `json:"version,omitempty"`
}

DatabaseInfo defines model for DatabaseInfo.

type DeleteUserHTTPResponse

type DeleteUserHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Message *string `json:"message,omitempty"`
	}
	ApplicationproblemJSON400 *ProblemDetail
	ApplicationproblemJSON401 *ProblemDetail
	ApplicationproblemJSON403 *ProblemDetail
	ApplicationproblemJSON404 *ProblemDetail
}

func ParseDeleteUserHTTPResponse

func ParseDeleteUserHTTPResponse(rsp *http.Response) (*DeleteUserHTTPResponse, error)

ParseDeleteUserHTTPResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserHTTPResponse) Status

func (r DeleteUserHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserHTTPResponse) StatusCode

func (r DeleteUserHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserParams

type DeleteUserParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

DeleteUserParams defines parameters for DeleteUser.

type DownloadAppBundleFileHTTPResponse

type DownloadAppBundleFileHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDownloadAppBundleFileHTTPResponse

func ParseDownloadAppBundleFileHTTPResponse(rsp *http.Response) (*DownloadAppBundleFileHTTPResponse, error)

ParseDownloadAppBundleFileHTTPResponse parses an HTTP response from a DownloadAppBundleFileWithResponse call

func (DownloadAppBundleFileHTTPResponse) Status

Status returns HTTPResponse.Status

func (DownloadAppBundleFileHTTPResponse) StatusCode

func (r DownloadAppBundleFileHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DownloadAppBundleFileParams

type DownloadAppBundleFileParams struct {
	// Preview If true, returns the file from the latest version including unreleased changes
	Preview     *bool   `form:"preview,omitempty" json:"preview,omitempty"`
	IfNoneMatch *string `json:"if-none-match,omitempty"`

	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

DownloadAppBundleFileParams defines parameters for DownloadAppBundleFile.

type DownloadAttachmentHTTPResponse

type DownloadAttachmentHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDownloadAttachmentHTTPResponse

func ParseDownloadAttachmentHTTPResponse(rsp *http.Response) (*DownloadAttachmentHTTPResponse, error)

ParseDownloadAttachmentHTTPResponse parses an HTTP response from a DownloadAttachmentWithResponse call

func (DownloadAttachmentHTTPResponse) Status

Status returns HTTPResponse.Status

func (DownloadAttachmentHTTPResponse) StatusCode

func (r DownloadAttachmentHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ErrorResponse

type ErrorResponse struct {
	Error *string `json:"error,omitempty"`
}

ErrorResponse defines model for ErrorResponse.

type FieldChange

type FieldChange struct {
	Field *string `json:"field,omitempty"`
	Type  *string `json:"type,omitempty"`
}

FieldChange defines model for FieldChange.

type Forbidden

type Forbidden = ErrorResponse

Forbidden defines model for Forbidden.

type FormDiff

type FormDiff struct {
	Form *string `json:"form,omitempty"`
}

FormDiff defines model for FormDiff.

type FormModification

type FormModification struct {
	AddedFields   *[]FieldChange `json:"added_fields,omitempty"`
	CoreChanged   *bool          `json:"core_changed,omitempty"`
	Form          *string        `json:"form,omitempty"`
	RemovedFields *[]FieldChange `json:"removed_fields,omitempty"`
	SchemaChanged *bool          `json:"schema_changed,omitempty"`
	UiChanged     *bool          `json:"ui_changed,omitempty"`
}

FormModification defines model for FormModification.

type GetAppBundleChangesHTTPResponse

type GetAppBundleChangesHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ChangeLog
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetAppBundleChangesHTTPResponse

func ParseGetAppBundleChangesHTTPResponse(rsp *http.Response) (*GetAppBundleChangesHTTPResponse, error)

ParseGetAppBundleChangesHTTPResponse parses an HTTP response from a GetAppBundleChangesWithResponse call

func (GetAppBundleChangesHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetAppBundleChangesHTTPResponse) StatusCode

func (r GetAppBundleChangesHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAppBundleChangesParams

type GetAppBundleChangesParams struct {
	// Current The current version (defaults to latest)
	Current *string `form:"current,omitempty" json:"current,omitempty"`

	// Target The target version to compare against (defaults to previous version)
	Target *string `form:"target,omitempty" json:"target,omitempty"`

	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

GetAppBundleChangesParams defines parameters for GetAppBundleChanges.

type GetAppBundleManifestHTTPResponse

type GetAppBundleManifestHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AppBundleManifest
}

func ParseGetAppBundleManifestHTTPResponse

func ParseGetAppBundleManifestHTTPResponse(rsp *http.Response) (*GetAppBundleManifestHTTPResponse, error)

ParseGetAppBundleManifestHTTPResponse parses an HTTP response from a GetAppBundleManifestWithResponse call

func (GetAppBundleManifestHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetAppBundleManifestHTTPResponse) StatusCode

func (r GetAppBundleManifestHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAppBundleManifestParams

type GetAppBundleManifestParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

GetAppBundleManifestParams defines parameters for GetAppBundleManifest.

type GetAppBundleVersionsHTTPResponse

type GetAppBundleVersionsHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AppBundleVersions
}

func ParseGetAppBundleVersionsHTTPResponse

func ParseGetAppBundleVersionsHTTPResponse(rsp *http.Response) (*GetAppBundleVersionsHTTPResponse, error)

ParseGetAppBundleVersionsHTTPResponse parses an HTTP response from a GetAppBundleVersionsWithResponse call

func (GetAppBundleVersionsHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetAppBundleVersionsHTTPResponse) StatusCode

func (r GetAppBundleVersionsHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAppBundleVersionsParams

type GetAppBundleVersionsParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

GetAppBundleVersionsParams defines parameters for GetAppBundleVersions.

type GetAttachmentManifestHTTPResponse

type GetAttachmentManifestHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AttachmentManifestResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetAttachmentManifestHTTPResponse

func ParseGetAttachmentManifestHTTPResponse(rsp *http.Response) (*GetAttachmentManifestHTTPResponse, error)

ParseGetAttachmentManifestHTTPResponse parses an HTTP response from a GetAttachmentManifestWithResponse call

func (GetAttachmentManifestHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetAttachmentManifestHTTPResponse) StatusCode

func (r GetAttachmentManifestHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAttachmentManifestJSONRequestBody

type GetAttachmentManifestJSONRequestBody = AttachmentManifestRequest

GetAttachmentManifestJSONRequestBody defines body for GetAttachmentManifest for application/json ContentType.

type GetAttachmentManifestParams

type GetAttachmentManifestParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

GetAttachmentManifestParams defines parameters for GetAttachmentManifest.

type GetAttachmentsExportZipHTTPResponse

type GetAttachmentsExportZipHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON500      *InternalServerError
	JSON503      *ErrorResponse
}

func ParseGetAttachmentsExportZipHTTPResponse

func ParseGetAttachmentsExportZipHTTPResponse(rsp *http.Response) (*GetAttachmentsExportZipHTTPResponse, error)

ParseGetAttachmentsExportZipHTTPResponse parses an HTTP response from a GetAttachmentsExportZipWithResponse call

func (GetAttachmentsExportZipHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetAttachmentsExportZipHTTPResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHealth200Status

type GetHealth200Status string

type GetHealth503Status

type GetHealth503Status string

type GetHealthHTTPResponse

type GetHealthHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Status *GetHealth200Status `json:"status,omitempty"`

		// Timestamp Current server time
		Timestamp *time.Time `json:"timestamp,omitempty"`

		// Version Current API version
		Version *string `json:"version,omitempty"`
	}
	JSON503 *struct {
		// Error Description of the error
		Error  *string             `json:"error,omitempty"`
		Status *GetHealth503Status `json:"status,omitempty"`

		// Timestamp Current server time
		Timestamp *time.Time `json:"timestamp,omitempty"`
	}
}

func ParseGetHealthHTTPResponse

func ParseGetHealthHTTPResponse(rsp *http.Response) (*GetHealthHTTPResponse, error)

ParseGetHealthHTTPResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthHTTPResponse) Status

func (r GetHealthHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthHTTPResponse) StatusCode

func (r GetHealthHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetParquetExportZipHTTPResponse

type GetParquetExportZipHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON500      *InternalServerError
}

func ParseGetParquetExportZipHTTPResponse

func ParseGetParquetExportZipHTTPResponse(rsp *http.Response) (*GetParquetExportZipHTTPResponse, error)

ParseGetParquetExportZipHTTPResponse parses an HTTP response from a GetParquetExportZipWithResponse call

func (GetParquetExportZipHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetParquetExportZipHTTPResponse) StatusCode

func (r GetParquetExportZipHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRawJsonExportZipHTTPResponse

type GetRawJsonExportZipHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON500      *InternalServerError
}

func ParseGetRawJsonExportZipHTTPResponse

func ParseGetRawJsonExportZipHTTPResponse(rsp *http.Response) (*GetRawJsonExportZipHTTPResponse, error)

ParseGetRawJsonExportZipHTTPResponse parses an HTTP response from a GetRawJsonExportZipWithResponse call

func (GetRawJsonExportZipHTTPResponse) Status

Status returns HTTPResponse.Status

func (GetRawJsonExportZipHTTPResponse) StatusCode

func (r GetRawJsonExportZipHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVersionHTTPResponse

type GetVersionHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SystemVersionInfo
	JSON500      *ErrorResponse
}

func ParseGetVersionHTTPResponse

func ParseGetVersionHTTPResponse(rsp *http.Response) (*GetVersionHTTPResponse, error)

ParseGetVersionHTTPResponse parses an HTTP response from a GetVersionWithResponse call

func (GetVersionHTTPResponse) Status

func (r GetVersionHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (GetVersionHTTPResponse) StatusCode

func (r GetVersionHTTPResponse) 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 InternalServerError

type InternalServerError = ErrorResponse

InternalServerError defines model for InternalServerError.

type ListUsersHTTPResponse

type ListUsersHTTPResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *[]UserResponse
	ApplicationproblemJSON401 *ProblemDetail
	ApplicationproblemJSON403 *ProblemDetail
}

func ParseListUsersHTTPResponse

func ParseListUsersHTTPResponse(rsp *http.Response) (*ListUsersHTTPResponse, error)

ParseListUsersHTTPResponse parses an HTTP response from a ListUsersWithResponse call

func (ListUsersHTTPResponse) Status

func (r ListUsersHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (ListUsersHTTPResponse) StatusCode

func (r ListUsersHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsersParams

type ListUsersParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

ListUsersParams defines parameters for ListUsers.

type LoginHTTPResponse

type LoginHTTPResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *AuthResponse
	ApplicationproblemJSON400 *ProblemDetail
	ApplicationproblemJSON401 *ProblemDetail
}

func ParseLoginHTTPResponse

func ParseLoginHTTPResponse(rsp *http.Response) (*LoginHTTPResponse, error)

ParseLoginHTTPResponse parses an HTTP response from a LoginWithResponse call

func (LoginHTTPResponse) Status

func (r LoginHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (LoginHTTPResponse) StatusCode

func (r LoginHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginJSONBody

type LoginJSONBody struct {
	// Password User's password
	Password string `json:"password"`

	// Username User's username
	Username string `json:"username"`
}

LoginJSONBody defines parameters for Login.

type LoginJSONRequestBody

type LoginJSONRequestBody LoginJSONBody

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginParams

type LoginParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

LoginParams defines parameters for Login.

type Observation

type Observation struct {
	// Author Optional author/creator identifier for the observation (e.g. username)
	Author    *string   `json:"author,omitempty"`
	CreatedAt time.Time `json:"created_at"`

	// Data Arbitrary JSON object containing form data
	Data    map[string]interface{} `json:"data"`
	Deleted bool                   `json:"deleted"`

	// DeviceId Optional client device identifier for the observation
	DeviceId    *string `json:"device_id,omitempty"`
	FormType    string  `json:"form_type"`
	FormVersion string  `json:"form_version"`

	// Geolocation Optional geolocation data for the observation
	Geolocation *struct {
		// Accuracy Horizontal accuracy in meters
		Accuracy *float64 `json:"accuracy,omitempty"`

		// Altitude Elevation in meters above sea level
		Altitude *float64 `json:"altitude,omitempty"`

		// AltitudeAccuracy Vertical accuracy in meters
		AltitudeAccuracy *float64 `json:"altitude_accuracy,omitempty"`

		// Latitude Latitude in decimal degrees
		Latitude *float64 `json:"latitude,omitempty"`

		// Longitude Longitude in decimal degrees
		Longitude *float64 `json:"longitude,omitempty"`

		// Timestamp When the GPS fix was obtained (ISO 8601)
		Timestamp *time.Time `json:"timestamp,omitempty"`
	} `json:"geolocation,omitempty"`
	ObservationId string     `json:"observation_id"`
	SyncedAt      *time.Time `json:"synced_at,omitempty"`

	// Tags Optional list of string tags (labeling, extensions, data cleaning)
	Tags      *[]string `json:"tags,omitempty"`
	UpdatedAt time.Time `json:"updated_at"`
}

Observation defines model for Observation.

type ProblemDetail

type ProblemDetail struct {
	Detail string `json:"detail"`
	Errors *[]struct {
		Field   *string `json:"field,omitempty"`
		Message *string `json:"message,omitempty"`
	} `json:"errors,omitempty"`
	Instance *string `json:"instance,omitempty"`
	Status   int     `json:"status"`
	Title    string  `json:"title"`
	Type     string  `json:"type"`
}

ProblemDetail defines model for ProblemDetail.

type PushAppBundleHTTPResponse

type PushAppBundleHTTPResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *AppBundlePushResponse
	ApplicationproblemJSON400 *ProblemDetail
	ApplicationproblemJSON401 *ProblemDetail
	ApplicationproblemJSON403 *ProblemDetail
	ApplicationproblemJSON413 *ProblemDetail
}

func ParsePushAppBundleHTTPResponse

func ParsePushAppBundleHTTPResponse(rsp *http.Response) (*PushAppBundleHTTPResponse, error)

ParsePushAppBundleHTTPResponse parses an HTTP response from a PushAppBundleWithResponse call

func (PushAppBundleHTTPResponse) Status

func (r PushAppBundleHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (PushAppBundleHTTPResponse) StatusCode

func (r PushAppBundleHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PushAppBundleMultipartBody

type PushAppBundleMultipartBody struct {
	// Bundle ZIP file containing the new app bundle
	Bundle *openapi_types.File `json:"bundle,omitempty"`
}

PushAppBundleMultipartBody defines parameters for PushAppBundle.

type PushAppBundleMultipartRequestBody

type PushAppBundleMultipartRequestBody PushAppBundleMultipartBody

PushAppBundleMultipartRequestBody defines body for PushAppBundle for multipart/form-data ContentType.

type PushAppBundleParams

type PushAppBundleParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

PushAppBundleParams defines parameters for PushAppBundle.

type RefreshTokenHTTPResponse

type RefreshTokenHTTPResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *AuthResponse
	ApplicationproblemJSON400 *ProblemDetail
	ApplicationproblemJSON401 *ProblemDetail
}

func ParseRefreshTokenHTTPResponse

func ParseRefreshTokenHTTPResponse(rsp *http.Response) (*RefreshTokenHTTPResponse, error)

ParseRefreshTokenHTTPResponse parses an HTTP response from a RefreshTokenWithResponse call

func (RefreshTokenHTTPResponse) Status

func (r RefreshTokenHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (RefreshTokenHTTPResponse) StatusCode

func (r RefreshTokenHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RefreshTokenJSONBody

type RefreshTokenJSONBody struct {
	// RefreshToken Refresh token obtained from login or previous refresh
	RefreshToken string `json:"refreshToken"`
}

RefreshTokenJSONBody defines parameters for RefreshToken.

type RefreshTokenJSONRequestBody

type RefreshTokenJSONRequestBody RefreshTokenJSONBody

RefreshTokenJSONRequestBody defines body for RefreshToken for application/json ContentType.

type RefreshTokenParams

type RefreshTokenParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

RefreshTokenParams defines parameters for RefreshToken.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResetUserPasswordHTTPResponse

type ResetUserPasswordHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Message *string `json:"message,omitempty"`
	}
	ApplicationproblemJSON400 *ProblemDetail
	ApplicationproblemJSON401 *ProblemDetail
	ApplicationproblemJSON403 *ProblemDetail
	ApplicationproblemJSON404 *ProblemDetail
}

func ParseResetUserPasswordHTTPResponse

func ParseResetUserPasswordHTTPResponse(rsp *http.Response) (*ResetUserPasswordHTTPResponse, error)

ParseResetUserPasswordHTTPResponse parses an HTTP response from a ResetUserPasswordWithResponse call

func (ResetUserPasswordHTTPResponse) Status

Status returns HTTPResponse.Status

func (ResetUserPasswordHTTPResponse) StatusCode

func (r ResetUserPasswordHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResetUserPasswordJSONBody

type ResetUserPasswordJSONBody struct {
	// NewPassword New password for the user
	NewPassword string `json:"newPassword"`

	// Username Username of the user whose password is being reset
	Username string `json:"username"`
}

ResetUserPasswordJSONBody defines parameters for ResetUserPassword.

type ResetUserPasswordJSONRequestBody

type ResetUserPasswordJSONRequestBody ResetUserPasswordJSONBody

ResetUserPasswordJSONRequestBody defines body for ResetUserPassword for application/json ContentType.

type ResetUserPasswordParams

type ResetUserPasswordParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

ResetUserPasswordParams defines parameters for ResetUserPassword.

type ServerInfo

type ServerInfo struct {
	Version *string `json:"version,omitempty"`
}

ServerInfo defines model for ServerInfo.

type SwitchAppBundleVersionHTTPResponse

type SwitchAppBundleVersionHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Message *string `json:"message,omitempty"`
	}
	ApplicationproblemJSON400 *ProblemDetail
	ApplicationproblemJSON401 *ProblemDetail
	ApplicationproblemJSON403 *ProblemDetail
	ApplicationproblemJSON404 *ProblemDetail
}

func ParseSwitchAppBundleVersionHTTPResponse

func ParseSwitchAppBundleVersionHTTPResponse(rsp *http.Response) (*SwitchAppBundleVersionHTTPResponse, error)

ParseSwitchAppBundleVersionHTTPResponse parses an HTTP response from a SwitchAppBundleVersionWithResponse call

func (SwitchAppBundleVersionHTTPResponse) Status

Status returns HTTPResponse.Status

func (SwitchAppBundleVersionHTTPResponse) StatusCode

func (r SwitchAppBundleVersionHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SwitchAppBundleVersionParams

type SwitchAppBundleVersionParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

SwitchAppBundleVersionParams defines parameters for SwitchAppBundleVersion.

type SyncPullHTTPResponse

type SyncPullHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SyncPullResponse
}

func ParseSyncPullHTTPResponse

func ParseSyncPullHTTPResponse(rsp *http.Response) (*SyncPullHTTPResponse, error)

ParseSyncPullHTTPResponse parses an HTTP response from a SyncPullWithResponse call

func (SyncPullHTTPResponse) Status

func (r SyncPullHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (SyncPullHTTPResponse) StatusCode

func (r SyncPullHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SyncPullJSONRequestBody

type SyncPullJSONRequestBody = SyncPullRequest

SyncPullJSONRequestBody defines body for SyncPull for application/json ContentType.

type SyncPullParams

type SyncPullParams struct {
	// SchemaType Filter by schemaType
	SchemaType *string `form:"schemaType,omitempty" json:"schemaType,omitempty"`

	// Limit Maximum number of records to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

SyncPullParams defines parameters for SyncPull.

type SyncPullRequest

type SyncPullRequest struct {
	ClientId    string    `json:"client_id"`
	SchemaTypes *[]string `json:"schema_types,omitempty"`

	// Since Optional pagination cursor indicating the last seen change
	Since *struct {
		Id      *string `json:"id,omitempty"`
		Version *int    `json:"version,omitempty"`
	} `json:"since,omitempty"`
}

SyncPullRequest defines model for SyncPullRequest.

type SyncPullResponse

type SyncPullResponse struct {
	// ChangeCutoff Version number of the last change included in this response. Use this as the next 'since.version' for pagination.
	ChangeCutoff int `json:"change_cutoff"`

	// CurrentVersion Current database version number that increments with each update
	CurrentVersion int `json:"current_version"`

	// HasMore Indicates if there are more records available beyond this response
	HasMore           *bool         `json:"has_more,omitempty"`
	Records           []Observation `json:"records"`
	SyncFormatVersion *string       `json:"sync_format_version,omitempty"`
}

SyncPullResponse defines model for SyncPullResponse.

type SyncPushHTTPResponse

type SyncPushHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SyncPushResponse
}

func ParseSyncPushHTTPResponse

func ParseSyncPushHTTPResponse(rsp *http.Response) (*SyncPushHTTPResponse, error)

ParseSyncPushHTTPResponse parses an HTTP response from a SyncPushWithResponse call

func (SyncPushHTTPResponse) Status

func (r SyncPushHTTPResponse) Status() string

Status returns HTTPResponse.Status

func (SyncPushHTTPResponse) StatusCode

func (r SyncPushHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SyncPushJSONRequestBody

type SyncPushJSONRequestBody = SyncPushRequest

SyncPushJSONRequestBody defines body for SyncPush for application/json ContentType.

type SyncPushParams

type SyncPushParams struct {
	// XOdeVersion Required client version header using semantic versioning (MAJOR.MINOR.PATCH). Major version must be compatible with the server.
	XOdeVersion string `json:"x-ode-version"`
}

SyncPushParams defines parameters for SyncPush.

type SyncPushRequest

type SyncPushRequest struct {
	ClientId       string             `json:"client_id"`
	Records        []Observation      `json:"records"`
	TransmissionId openapi_types.UUID `json:"transmission_id"`
}

SyncPushRequest defines model for SyncPushRequest.

type SyncPushResponse

type SyncPushResponse struct {
	// CurrentVersion Current database version number after processing the push
	CurrentVersion int                       `json:"current_version"`
	FailedRecords  *[]map[string]interface{} `json:"failed_records,omitempty"`
	SuccessCount   int                       `json:"success_count"`
	Warnings       *[]struct {
		Code    string `json:"code"`
		Id      string `json:"id"`
		Message string `json:"message"`
	} `json:"warnings,omitempty"`
}

SyncPushResponse defines model for SyncPushResponse.

type SystemInfo

type SystemInfo struct {
	Architecture *string `json:"architecture,omitempty"`
	Cpus         *int    `json:"cpus,omitempty"`
	Os           *string `json:"os,omitempty"`
}

SystemInfo defines model for SystemInfo.

type SystemVersionInfo

type SystemVersionInfo struct {
	Build    *BuildInfo    `json:"build,omitempty"`
	Database *DatabaseInfo `json:"database,omitempty"`
	Server   *ServerInfo   `json:"server,omitempty"`
	System   *SystemInfo   `json:"system,omitempty"`
}

SystemVersionInfo defines model for SystemVersionInfo.

type Unauthorized

type Unauthorized = ErrorResponse

Unauthorized defines model for Unauthorized.

type UploadAttachmentHTTPResponse

type UploadAttachmentHTTPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Status *string `json:"status,omitempty"`
	}
}

func ParseUploadAttachmentHTTPResponse

func ParseUploadAttachmentHTTPResponse(rsp *http.Response) (*UploadAttachmentHTTPResponse, error)

ParseUploadAttachmentHTTPResponse parses an HTTP response from a UploadAttachmentWithResponse call

func (UploadAttachmentHTTPResponse) Status

Status returns HTTPResponse.Status

func (UploadAttachmentHTTPResponse) StatusCode

func (r UploadAttachmentHTTPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadAttachmentMultipartBody

type UploadAttachmentMultipartBody struct {
	// File The binary file to upload
	File openapi_types.File `json:"file"`
}

UploadAttachmentMultipartBody defines parameters for UploadAttachment.

type UploadAttachmentMultipartRequestBody

type UploadAttachmentMultipartRequestBody UploadAttachmentMultipartBody

UploadAttachmentMultipartRequestBody defines body for UploadAttachment for multipart/form-data ContentType.

type UserResponse

type UserResponse struct {
	CreatedAt time.Time        `json:"createdAt"`
	Role      UserResponseRole `json:"role"`
	Username  string           `json:"username"`
}

UserResponse defines model for UserResponse.

type UserResponseRole

type UserResponseRole string

UserResponseRole defines model for UserResponse.Role.

const (
	UserResponseRoleAdmin     UserResponseRole = "admin"
	UserResponseRoleReadOnly  UserResponseRole = "read-only"
	UserResponseRoleReadWrite UserResponseRole = "read-write"
)

Defines values for UserResponseRole.

func (UserResponseRole) Valid

func (e UserResponseRole) Valid() bool

Valid indicates whether the value is a known member of the UserResponseRole enum.

Jump to

Keyboard shortcuts

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