files_sdk

package module
v1.2.1218 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 17 Imported by: 2

README

Files.com Go Client

The Files.com Go client library provides convenient access to the Files.com API from applications written in the Go language.

Installation

Make sure your project is using Go Modules (it will have a go.mod file in its root if it already is):

go mod init

Then, reference files-sdk-go in a Go program with import:

import (
    "github.com/Files-com/files-sdk-go"
    "github.com/Files-com/files-sdk-go/folder"
)

Run any of the normal go commands (build/install/test). The Go toolchain will resolve and fetch the files module automatically.

Documentation

Setting API Key
Setting by ENV
export FILES_API_KEY="XXXX-XXXX..."
Set Global Variable
import (
    "github.com/Files-com/files-sdk-go"
)

 files_sdk.APIKey = "XXXX-XXXX..."
Set Per Client
import (
    "github.com/Files-com/files-sdk-go"
    "github.com/Files-com/files-sdk-go/file"
)

config := files_sdk.Config{APIKey: "XXXX-XXXX..."}
client := file.Client{Config: config}
List
import (
	files_sdk "github.com/Files-com/files-sdk-go"
	folder "github.com/Files-com/files-sdk-go/folder"
    "fmt"
)

func main() {
    params := files_sdk.FolderListForParams{}
    it, err := folder.ListFor(context.Background(), params)

    if err != nil {
        // deal with error
    }

    for it.Next() {
        entry := it.Folder()
        fmt.Println(entry.Path)
    }
}

Upload a File
import (
	files_sdk "github.com/Files-com/files-sdk-go"
	file "github.com/Files-com/files-sdk-go/file"
)

func main() {
    client := file.Client{}
    uploadPath := "file-to-upload.txt"
    destinationPath := nil // Defaults to filename of uploadPath
    fileEntry, err := client.UploadFile(context.Background(), uploadPath, destinationPath)
    if err != nil {
        panic(err)
    }
}
Via io.Reader
import file "github.com/Files-com/files-sdk-go/file"

func main() {
    client := file.Client{}
    io := strings.NewReader("my file contents")
    destinationPath := "my-file.txt"
    fileEntry, err := client.Upload(context.Background(), io, destinationPath)
    if err != nil {
        panic(err)
    }
}
Download a File
import file "github.com/Files-com/files-sdk-go/file"

func main() {
    client := file.Client{}
    downloadPath := "file-to-download.txt"
    fileEntry, err := client.DownloadToFile(context.Background(), files_sdk.FileDownloadParams{Path: "file-to-download.txt"}, downloadPath)
    if err != nil {
        panic(err)
    }
}

Documentation

Index

Constants

View Source
const (
	ProductionEndpoint = "https://{SUBDOMAIN}.files.com"
	UserAgent          = "Files.com Go SDK"
	DefaultDomain      = "app"
	APIPath            = "/api/rest/v1"
)

Variables

View Source
var APIKey string

Functions

func Call

func Call(ctx context.Context, method string, config Config, resource string, params url.Values) (*[]byte, *http.Response, error)

func CallRaw

func CallRaw(params *CallParams) (*http.Response, error)

func ParseResponse added in v1.0.15

func ParseResponse(res *http.Response) (*[]byte, *http.Response, error)

Types

type AccountLineItem

type AccountLineItem struct {
	Id                int64     `json:"id,omitempty"`
	Amount            float32   `json:"amount,omitempty"`
	Balance           float32   `json:"balance,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	Currency          string    `json:"currency,omitempty"`
	DownloadUri       string    `json:"download_uri,omitempty"`
	InvoiceLineItems  string    `json:"invoice_line_items,omitempty"`
	Method            string    `json:"method,omitempty"`
	PaymentLineItems  string    `json:"payment_line_items,omitempty"`
	PaymentReversedAt time.Time `json:"payment_reversed_at,omitempty"`
	PaymentType       string    `json:"payment_type,omitempty"`
	SiteName          string    `json:"site_name,omitempty"`
	Type              string    `json:"type,omitempty"`
	UpdatedAt         time.Time `json:"updated_at,omitempty"`
}

func (*AccountLineItem) UnmarshalJSON

func (a *AccountLineItem) UnmarshalJSON(data []byte) error

type AccountLineItemCollection

type AccountLineItemCollection []AccountLineItem

func (*AccountLineItemCollection) ToSlice added in v1.0.167

func (a *AccountLineItemCollection) ToSlice() *[]interface{}

func (*AccountLineItemCollection) UnmarshalJSON

func (a *AccountLineItemCollection) UnmarshalJSON(data []byte) error

type Action

type Action struct {
	Id          int64     `json:"id,omitempty"`
	Path        string    `json:"path,omitempty"`
	When        time.Time `json:"when,omitempty"`
	Destination string    `json:"destination,omitempty"`
	Display     string    `json:"display,omitempty"`
	Ip          string    `json:"ip,omitempty"`
	Source      string    `json:"source,omitempty"`
	Targets     []string  `json:"targets,omitempty"`
	UserId      int64     `json:"user_id,omitempty"`
	Username    string    `json:"username,omitempty"`
	Action      string    `json:"action,omitempty"`
	FailureType string    `json:"failure_type,omitempty"`
	Interface   string    `json:"interface,omitempty"`
}

func (*Action) UnmarshalJSON

func (a *Action) UnmarshalJSON(data []byte) error

type ActionCollection

type ActionCollection []Action

func (*ActionCollection) ToSlice added in v1.0.167

func (a *ActionCollection) ToSlice() *[]interface{}

func (*ActionCollection) UnmarshalJSON

func (a *ActionCollection) UnmarshalJSON(data []byte) error

type ActionNotificationExport added in v1.0.182

type ActionNotificationExport struct {
	Id                 int64     `json:"id,omitempty"`
	ExportVersion      string    `json:"export_version,omitempty"`
	StartAt            time.Time `json:"start_at,omitempty"`
	EndAt              time.Time `json:"end_at,omitempty"`
	Status             string    `json:"status,omitempty"`
	QueryPath          string    `json:"query_path,omitempty"`
	QueryFolder        string    `json:"query_folder,omitempty"`
	QueryMessage       string    `json:"query_message,omitempty"`
	QueryRequestMethod string    `json:"query_request_method,omitempty"`
	QueryRequestUrl    string    `json:"query_request_url,omitempty"`
	QueryStatus        string    `json:"query_status,omitempty"`
	QuerySuccess       *bool     `json:"query_success,omitempty"`
	ResultsUrl         string    `json:"results_url,omitempty"`
	UserId             int64     `json:"user_id,omitempty"`
}

func (*ActionNotificationExport) UnmarshalJSON added in v1.0.182

func (a *ActionNotificationExport) UnmarshalJSON(data []byte) error

type ActionNotificationExportCollection added in v1.0.182

type ActionNotificationExportCollection []ActionNotificationExport

func (*ActionNotificationExportCollection) ToSlice added in v1.0.182

func (a *ActionNotificationExportCollection) ToSlice() *[]interface{}

func (*ActionNotificationExportCollection) UnmarshalJSON added in v1.0.182

func (a *ActionNotificationExportCollection) UnmarshalJSON(data []byte) error

type ActionNotificationExportCreateParams added in v1.0.182

type ActionNotificationExportCreateParams struct {
	UserId             int64     `url:"user_id,omitempty" required:"false"`
	StartAt            time.Time `url:"start_at,omitempty" required:"false"`
	EndAt              time.Time `url:"end_at,omitempty" required:"false"`
	QueryMessage       string    `url:"query_message,omitempty" required:"false"`
	QueryRequestMethod string    `url:"query_request_method,omitempty" required:"false"`
	QueryRequestUrl    string    `url:"query_request_url,omitempty" required:"false"`
	QueryStatus        string    `url:"query_status,omitempty" required:"false"`
	QuerySuccess       *bool     `url:"query_success,omitempty" required:"false"`
	QueryPath          string    `url:"query_path,omitempty" required:"false"`
	QueryFolder        string    `url:"query_folder,omitempty" required:"false"`
}

type ActionNotificationExportFindParams added in v1.0.182

type ActionNotificationExportFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type ActionNotificationExportResult added in v1.0.182

type ActionNotificationExportResult struct {
	Id             int64  `json:"id,omitempty"`
	CreatedAt      int64  `json:"created_at,omitempty"`
	Status         int64  `json:"status,omitempty"`
	Message        string `json:"message,omitempty"`
	Success        *bool  `json:"success,omitempty"`
	RequestHeaders string `json:"request_headers,omitempty"`
	RequestMethod  string `json:"request_method,omitempty"`
	RequestUrl     string `json:"request_url,omitempty"`
	Path           string `json:"path,omitempty"`
	Folder         string `json:"folder,omitempty"`
}

func (*ActionNotificationExportResult) UnmarshalJSON added in v1.0.182

func (a *ActionNotificationExportResult) UnmarshalJSON(data []byte) error

type ActionNotificationExportResultCollection added in v1.0.182

type ActionNotificationExportResultCollection []ActionNotificationExportResult

func (*ActionNotificationExportResultCollection) ToSlice added in v1.0.182

func (a *ActionNotificationExportResultCollection) ToSlice() *[]interface{}

func (*ActionNotificationExportResultCollection) UnmarshalJSON added in v1.0.182

func (a *ActionNotificationExportResultCollection) UnmarshalJSON(data []byte) error

type ActionNotificationExportResultListParams added in v1.0.182

type ActionNotificationExportResultListParams struct {
	UserId                     int64  `url:"user_id,omitempty" required:"false"`
	Cursor                     string `url:"cursor,omitempty" required:"false"`
	PerPage                    int64  `url:"per_page,omitempty" required:"false"`
	ActionNotificationExportId int64  `url:"action_notification_export_id,omitempty" required:"true"`
	lib.ListParams
}

type ActionWebhookFailure added in v1.0.1032

type ActionWebhookFailure struct {
}

func (*ActionWebhookFailure) UnmarshalJSON added in v1.0.1032

func (a *ActionWebhookFailure) UnmarshalJSON(data []byte) error

type ActionWebhookFailureCollection added in v1.0.1032

type ActionWebhookFailureCollection []ActionWebhookFailure

func (*ActionWebhookFailureCollection) ToSlice added in v1.0.1032

func (a *ActionWebhookFailureCollection) ToSlice() *[]interface{}

func (*ActionWebhookFailureCollection) UnmarshalJSON added in v1.0.1032

func (a *ActionWebhookFailureCollection) UnmarshalJSON(data []byte) error

type ActionWebhookFailureRetryParams added in v1.0.1032

type ActionWebhookFailureRetryParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

retry Action Webhook Failure

type ApiKey

type ApiKey struct {
	Id               int64     `json:"id,omitempty"`
	DescriptiveLabel string    `json:"descriptive_label,omitempty"`
	CreatedAt        time.Time `json:"created_at,omitempty"`
	ExpiresAt        time.Time `json:"expires_at,omitempty"`
	Key              string    `json:"key,omitempty"`
	LastUseAt        time.Time `json:"last_use_at,omitempty"`
	Name             string    `json:"name,omitempty"`
	Path             string    `json:"path,omitempty"`
	PermissionSet    string    `json:"permission_set,omitempty"`
	Platform         string    `json:"platform,omitempty"`
	UserId           int64     `json:"user_id,omitempty"`
}

func (*ApiKey) UnmarshalJSON

func (a *ApiKey) UnmarshalJSON(data []byte) error

type ApiKeyCollection

type ApiKeyCollection []ApiKey

func (*ApiKeyCollection) ToSlice added in v1.0.167

func (a *ApiKeyCollection) ToSlice() *[]interface{}

func (*ApiKeyCollection) UnmarshalJSON

func (a *ApiKeyCollection) UnmarshalJSON(data []byte) error

type ApiKeyCreateParams

type ApiKeyCreateParams struct {
	UserId        int64                   `url:"user_id,omitempty" required:"false"`
	Name          string                  `url:"name,omitempty" required:"false"`
	ExpiresAt     time.Time               `url:"expires_at,omitempty" required:"false"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false"`
	Path          string                  `url:"path,omitempty" required:"false"`
}

type ApiKeyDeleteParams

type ApiKeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type ApiKeyFindParams

type ApiKeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type ApiKeyListParams

type ApiKeyListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}

type ApiKeyPermissionSetEnum added in v1.0.838

type ApiKeyPermissionSetEnum string

func (ApiKeyPermissionSetEnum) Enum added in v1.0.838

func (ApiKeyPermissionSetEnum) String added in v1.0.838

func (u ApiKeyPermissionSetEnum) String() string

type ApiKeyUpdateCurrentParams

type ApiKeyUpdateCurrentParams struct {
	ExpiresAt     time.Time               `url:"expires_at,omitempty" required:"false"`
	Name          string                  `url:"name,omitempty" required:"false"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false"`
}

type ApiKeyUpdateParams

type ApiKeyUpdateParams struct {
	Id            int64                   `url:"-,omitempty" required:"true"`
	Name          string                  `url:"name,omitempty" required:"false"`
	ExpiresAt     time.Time               `url:"expires_at,omitempty" required:"false"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false"`
}

type App

type App struct {
	Name                string `json:"name,omitempty"`
	ExtendedDescription string `json:"extended_description,omitempty"`
	ShortDescription    string `json:"short_description,omitempty"`
	DocumentationLinks  string `json:"documentation_links,omitempty"`
	IconUrl             string `json:"icon_url,omitempty"`
	LogoUrl             string `json:"logo_url,omitempty"`
	ScreenshotListUrls  string `json:"screenshot_list_urls,omitempty"`
	LogoThumbnailUrl    string `json:"logo_thumbnail_url,omitempty"`
	SsoStrategyType     string `json:"sso_strategy_type,omitempty"`
	RemoteServerType    string `json:"remote_server_type,omitempty"`
	FolderBehaviorType  string `json:"folder_behavior_type,omitempty"`
	ExternalHomepageUrl string `json:"external_homepage_url,omitempty"`
	MarketingYoutubeUrl string `json:"marketing_youtube_url,omitempty"`
	TutorialYoutubeUrl  string `json:"tutorial_youtube_url,omitempty"`
	AppType             string `json:"app_type,omitempty"`
	Featured            *bool  `json:"featured,omitempty"`
}

func (*App) UnmarshalJSON

func (a *App) UnmarshalJSON(data []byte) error

type AppCollection

type AppCollection []App

func (*AppCollection) ToSlice added in v1.0.167

func (a *AppCollection) ToSlice() *[]interface{}

func (*AppCollection) UnmarshalJSON

func (a *AppCollection) UnmarshalJSON(data []byte) error

type AppListParams

type AppListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}

type As2Key

type As2Key struct {
	Id                 int64     `json:"id,omitempty"`
	As2PartnershipName string    `json:"as2_partnership_name,omitempty"`
	CreatedAt          time.Time `json:"created_at,omitempty"`
	Fingerprint        string    `json:"fingerprint,omitempty"`
	UserId             int64     `json:"user_id,omitempty"`
	PublicKey          string    `json:"public_key,omitempty"`
}

func (*As2Key) UnmarshalJSON

func (a *As2Key) UnmarshalJSON(data []byte) error

type As2KeyCollection

type As2KeyCollection []As2Key

func (*As2KeyCollection) ToSlice added in v1.0.167

func (a *As2KeyCollection) ToSlice() *[]interface{}

func (*As2KeyCollection) UnmarshalJSON

func (a *As2KeyCollection) UnmarshalJSON(data []byte) error

type As2KeyCreateParams

type As2KeyCreateParams struct {
	UserId             int64  `url:"user_id,omitempty" required:"false"`
	As2PartnershipName string `url:"as2_partnership_name,omitempty" required:"true"`
	PublicKey          string `url:"public_key,omitempty" required:"true"`
}

type As2KeyDeleteParams

type As2KeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type As2KeyFindParams

type As2KeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type As2KeyListParams

type As2KeyListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type As2KeyUpdateParams

type As2KeyUpdateParams struct {
	Id                 int64  `url:"-,omitempty" required:"true"`
	As2PartnershipName string `url:"as2_partnership_name,omitempty" required:"true"`
}

type Auto

type Auto struct {
	Dynamic json.RawMessage `json:"dynamic,omitempty"`
}

func (*Auto) UnmarshalJSON

func (a *Auto) UnmarshalJSON(data []byte) error

type AutoCollection

type AutoCollection []Auto

func (*AutoCollection) ToSlice added in v1.0.167

func (a *AutoCollection) ToSlice() *[]interface{}

func (*AutoCollection) UnmarshalJSON

func (a *AutoCollection) UnmarshalJSON(data []byte) error

type Automation

type Automation struct {
	Id                     int64           `json:"id,omitempty"`
	Automation             string          `json:"automation,omitempty"`
	Trigger                string          `json:"trigger,omitempty"`
	Interval               string          `json:"interval,omitempty"`
	Name                   string          `json:"name,omitempty"`
	Schedule               json.RawMessage `json:"schedule,omitempty"`
	Source                 string          `json:"source,omitempty"`
	Destinations           string          `json:"destinations,omitempty"`
	DestinationReplaceFrom string          `json:"destination_replace_from,omitempty"`
	DestinationReplaceTo   string          `json:"destination_replace_to,omitempty"`
	Description            string          `json:"description,omitempty"`
	Path                   string          `json:"path,omitempty"`
	UserId                 int64           `json:"user_id,omitempty"`
	UserIds                []int64         `json:"user_ids,omitempty"`
	GroupIds               []int64         `json:"group_ids,omitempty"`
	WebhookUrl             string          `json:"webhook_url,omitempty"`
	TriggerActions         string          `json:"trigger_actions,omitempty"`
	TriggerActionPath      string          `json:"trigger_action_path,omitempty"`
	Value                  json.RawMessage `json:"value,omitempty"`
	Destination            string          `json:"destination,omitempty"`
}

func (*Automation) UnmarshalJSON

func (a *Automation) UnmarshalJSON(data []byte) error

type AutomationCollection

type AutomationCollection []Automation

func (*AutomationCollection) ToSlice added in v1.0.167

func (a *AutomationCollection) ToSlice() *[]interface{}

func (*AutomationCollection) UnmarshalJSON

func (a *AutomationCollection) UnmarshalJSON(data []byte) error

type AutomationCreateParams

type AutomationCreateParams struct {
	Automation             AutomationEnum        `url:"automation,omitempty" required:"true"`
	Source                 string                `url:"source,omitempty" required:"false"`
	Destination            string                `url:"destination,omitempty" required:"false"`
	Destinations           []string              `url:"destinations,omitempty" required:"false"`
	DestinationReplaceFrom string                `url:"destination_replace_from,omitempty" required:"false"`
	DestinationReplaceTo   string                `url:"destination_replace_to,omitempty" required:"false"`
	Interval               string                `url:"interval,omitempty" required:"false"`
	Path                   string                `url:"path,omitempty" required:"false"`
	UserIds                string                `url:"user_ids,omitempty" required:"false"`
	GroupIds               string                `url:"group_ids,omitempty" required:"false"`
	Schedule               json.RawMessage       `url:"schedule,omitempty" required:"false"`
	Description            string                `url:"description,omitempty" required:"false"`
	Name                   string                `url:"name,omitempty" required:"false"`
	Trigger                AutomationTriggerEnum `url:"trigger,omitempty" required:"false"`
	TriggerActions         []string              `url:"trigger_actions,omitempty" required:"false"`
	TriggerActionPath      string                `url:"trigger_action_path,omitempty" required:"false"`
	Value                  json.RawMessage       `url:"value,omitempty" required:"false"`
}

type AutomationDeleteParams

type AutomationDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type AutomationEnum added in v1.0.838

type AutomationEnum string

func (AutomationEnum) Enum added in v1.0.838

func (u AutomationEnum) Enum() map[string]AutomationEnum

func (AutomationEnum) String added in v1.0.838

func (u AutomationEnum) String() string

type AutomationFindParams

type AutomationFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type AutomationListParams

type AutomationListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Automation string          `url:"automation,omitempty" required:"false"`
	lib.ListParams
}

type AutomationTriggerEnum added in v1.0.838

type AutomationTriggerEnum string

func (AutomationTriggerEnum) Enum added in v1.0.838

func (AutomationTriggerEnum) String added in v1.0.838

func (u AutomationTriggerEnum) String() string

type AutomationUpdateParams

type AutomationUpdateParams struct {
	Id                     int64                 `url:"-,omitempty" required:"true"`
	Automation             AutomationEnum        `url:"automation,omitempty" required:"true"`
	Source                 string                `url:"source,omitempty" required:"false"`
	Destination            string                `url:"destination,omitempty" required:"false"`
	Destinations           []string              `url:"destinations,omitempty" required:"false"`
	DestinationReplaceFrom string                `url:"destination_replace_from,omitempty" required:"false"`
	DestinationReplaceTo   string                `url:"destination_replace_to,omitempty" required:"false"`
	Interval               string                `url:"interval,omitempty" required:"false"`
	Path                   string                `url:"path,omitempty" required:"false"`
	UserIds                string                `url:"user_ids,omitempty" required:"false"`
	GroupIds               string                `url:"group_ids,omitempty" required:"false"`
	Schedule               json.RawMessage       `url:"schedule,omitempty" required:"false"`
	Description            string                `url:"description,omitempty" required:"false"`
	Name                   string                `url:"name,omitempty" required:"false"`
	Trigger                AutomationTriggerEnum `url:"trigger,omitempty" required:"false"`
	TriggerActions         []string              `url:"trigger_actions,omitempty" required:"false"`
	TriggerActionPath      string                `url:"trigger_action_path,omitempty" required:"false"`
	Value                  json.RawMessage       `url:"value,omitempty" required:"false"`
}

type BandwidthSnapshot added in v1.0.2

type BandwidthSnapshot struct {
	Id                int64     `json:"id,omitempty"`
	BytesReceived     float32   `json:"bytes_received,omitempty"`
	BytesSent         float32   `json:"bytes_sent,omitempty"`
	SyncBytesReceived float32   `json:"sync_bytes_received,omitempty"`
	SyncBytesSent     float32   `json:"sync_bytes_sent,omitempty"`
	RequestsGet       float32   `json:"requests_get,omitempty"`
	RequestsPut       float32   `json:"requests_put,omitempty"`
	RequestsOther     float32   `json:"requests_other,omitempty"`
	LoggedAt          time.Time `json:"logged_at,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	UpdatedAt         time.Time `json:"updated_at,omitempty"`
}

func (*BandwidthSnapshot) UnmarshalJSON added in v1.0.2

func (b *BandwidthSnapshot) UnmarshalJSON(data []byte) error

type BandwidthSnapshotCollection added in v1.0.2

type BandwidthSnapshotCollection []BandwidthSnapshot

func (*BandwidthSnapshotCollection) ToSlice added in v1.0.167

func (b *BandwidthSnapshotCollection) ToSlice() *[]interface{}

func (*BandwidthSnapshotCollection) UnmarshalJSON added in v1.0.2

func (b *BandwidthSnapshotCollection) UnmarshalJSON(data []byte) error

type BandwidthSnapshotListParams added in v1.0.2

type BandwidthSnapshotListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}

type Behavior

type Behavior struct {
	Id             int64           `json:"id,omitempty"`
	Path           string          `json:"path,omitempty"`
	AttachmentUrl  string          `json:"attachment_url,omitempty"`
	Behavior       string          `json:"behavior,omitempty"`
	Name           string          `json:"name,omitempty"`
	Description    string          `json:"description,omitempty"`
	Value          json.RawMessage `json:"value,omitempty"`
	AttachmentFile io.Reader       `json:"attachment_file,omitempty"`
}

func (*Behavior) UnmarshalJSON

func (b *Behavior) UnmarshalJSON(data []byte) error

type BehaviorCollection

type BehaviorCollection []Behavior

func (*BehaviorCollection) ToSlice added in v1.0.167

func (b *BehaviorCollection) ToSlice() *[]interface{}

func (*BehaviorCollection) UnmarshalJSON

func (b *BehaviorCollection) UnmarshalJSON(data []byte) error

type BehaviorCreateParams

type BehaviorCreateParams struct {
	Value          string    `url:"value,omitempty" required:"false"`
	AttachmentFile io.Writer `url:"attachment_file,omitempty" required:"false"`
	Name           string    `url:"name,omitempty" required:"false"`
	Description    string    `url:"description,omitempty" required:"false"`
	Path           string    `url:"path,omitempty" required:"true"`
	Behavior       string    `url:"behavior,omitempty" required:"true"`
}

type BehaviorDeleteParams

type BehaviorDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type BehaviorFindParams

type BehaviorFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type BehaviorListForParams

type BehaviorListForParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Path       string          `url:"-,omitempty" required:"true"`
	Recursive  string          `url:"recursive,omitempty" required:"false"`
	Behavior   string          `url:"behavior,omitempty" required:"false"`
	lib.ListParams
}

type BehaviorListParams

type BehaviorListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Behavior   string          `url:"behavior,omitempty" required:"false"`
	lib.ListParams
}

type BehaviorUpdateParams

type BehaviorUpdateParams struct {
	Id             int64     `url:"-,omitempty" required:"true"`
	Value          string    `url:"value,omitempty" required:"false"`
	AttachmentFile io.Writer `url:"attachment_file,omitempty" required:"false"`
	Name           string    `url:"name,omitempty" required:"false"`
	Description    string    `url:"description,omitempty" required:"false"`
	Behavior       string    `url:"behavior,omitempty" required:"false"`
	Path           string    `url:"path,omitempty" required:"false"`
}

type BehaviorWebhookTestParams

type BehaviorWebhookTestParams struct {
	Url      string          `url:"url,omitempty" required:"true"`
	Method   string          `url:"method,omitempty" required:"false"`
	Encoding string          `url:"encoding,omitempty" required:"false"`
	Headers  json.RawMessage `url:"headers,omitempty" required:"false"`
	Body     json.RawMessage `url:"body,omitempty" required:"false"`
	Action   string          `url:"action,omitempty" required:"false"`
}

type Bundle

type Bundle struct {
	Code                  string    `json:"code,omitempty"`
	Url                   string    `json:"url,omitempty"`
	Description           string    `json:"description,omitempty"`
	PasswordProtected     *bool     `json:"password_protected,omitempty"`
	PreviewOnly           *bool     `json:"preview_only,omitempty"`
	RequireRegistration   *bool     `json:"require_registration,omitempty"`
	RequireShareRecipient *bool     `json:"require_share_recipient,omitempty"`
	ClickwrapBody         string    `json:"clickwrap_body,omitempty"`
	FormFieldSet          string    `json:"form_field_set,omitempty"`
	Id                    int64     `json:"id,omitempty"`
	CreatedAt             time.Time `json:"created_at,omitempty"`
	ExpiresAt             time.Time `json:"expires_at,omitempty"`
	MaxUses               int64     `json:"max_uses,omitempty"`
	Note                  string    `json:"note,omitempty"`
	UserId                int64     `json:"user_id,omitempty"`
	Username              string    `json:"username,omitempty"`
	ClickwrapId           int64     `json:"clickwrap_id,omitempty"`
	InboxId               int64     `json:"inbox_id,omitempty"`
	HasInbox              *bool     `json:"has_inbox,omitempty"`
	Paths                 []string  `json:"paths,omitempty"`
	Password              string    `json:"password,omitempty"`
	FormFieldSetId        int64     `json:"form_field_set_id,omitempty"`
}

func (*Bundle) UnmarshalJSON

func (b *Bundle) UnmarshalJSON(data []byte) error

type BundleCollection

type BundleCollection []Bundle

func (*BundleCollection) ToSlice added in v1.0.167

func (b *BundleCollection) ToSlice() *[]interface{}

func (*BundleCollection) UnmarshalJSON

func (b *BundleCollection) UnmarshalJSON(data []byte) error

type BundleCreateParams

type BundleCreateParams struct {
	UserId                int64     `url:"user_id,omitempty" required:"false"`
	Paths                 []string  `url:"paths,omitempty" required:"true"`
	Password              string    `url:"password,omitempty" required:"false"`
	FormFieldSetId        int64     `url:"form_field_set_id,omitempty" required:"false"`
	ExpiresAt             time.Time `url:"expires_at,omitempty" required:"false"`
	MaxUses               int64     `url:"max_uses,omitempty" required:"false"`
	Description           string    `url:"description,omitempty" required:"false"`
	Note                  string    `url:"note,omitempty" required:"false"`
	Code                  string    `url:"code,omitempty" required:"false"`
	PreviewOnly           *bool     `url:"preview_only,omitempty" required:"false"`
	RequireRegistration   *bool     `url:"require_registration,omitempty" required:"false"`
	ClickwrapId           int64     `url:"clickwrap_id,omitempty" required:"false"`
	InboxId               int64     `url:"inbox_id,omitempty" required:"false"`
	RequireShareRecipient *bool     `url:"require_share_recipient,omitempty" required:"false"`
}

type BundleDeleteParams

type BundleDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type BundleDownload

type BundleDownload struct {
	BundleRegistration string    `json:"bundle_registration,omitempty"`
	DownloadMethod     string    `json:"download_method,omitempty"`
	Path               string    `json:"path,omitempty"`
	CreatedAt          time.Time `json:"created_at,omitempty"`
}

func (*BundleDownload) UnmarshalJSON

func (b *BundleDownload) UnmarshalJSON(data []byte) error

type BundleDownloadCollection

type BundleDownloadCollection []BundleDownload

func (*BundleDownloadCollection) ToSlice added in v1.0.167

func (b *BundleDownloadCollection) ToSlice() *[]interface{}

func (*BundleDownloadCollection) UnmarshalJSON

func (b *BundleDownloadCollection) UnmarshalJSON(data []byte) error

type BundleDownloadListParams

type BundleDownloadListParams struct {
	Cursor               string          `url:"cursor,omitempty" required:"false"`
	PerPage              int64           `url:"per_page,omitempty" required:"false"`
	SortBy               json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter               json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt             json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq           json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike           json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt             json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq           json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	BundleId             int64           `url:"bundle_id,omitempty" required:"false"`
	BundleRegistrationId int64           `url:"bundle_registration_id,omitempty" required:"false"`
	lib.ListParams
}

type BundleFindParams

type BundleFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type BundleListParams

type BundleListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}

type BundleRecipient

type BundleRecipient struct {
	Company          string    `json:"company,omitempty"`
	Name             string    `json:"name,omitempty"`
	Note             string    `json:"note,omitempty"`
	Recipient        string    `json:"recipient,omitempty"`
	SentAt           time.Time `json:"sent_at,omitempty"`
	UserId           int64     `json:"user_id,omitempty"`
	BundleId         int64     `json:"bundle_id,omitempty"`
	ShareAfterCreate *bool     `json:"share_after_create,omitempty"`
}

func (*BundleRecipient) UnmarshalJSON

func (b *BundleRecipient) UnmarshalJSON(data []byte) error

type BundleRecipientCollection

type BundleRecipientCollection []BundleRecipient

func (*BundleRecipientCollection) ToSlice added in v1.0.167

func (b *BundleRecipientCollection) ToSlice() *[]interface{}

func (*BundleRecipientCollection) UnmarshalJSON

func (b *BundleRecipientCollection) UnmarshalJSON(data []byte) error

type BundleRecipientCreateParams added in v1.0.129

type BundleRecipientCreateParams struct {
	UserId           int64  `url:"user_id,omitempty" required:"false"`
	BundleId         int64  `url:"bundle_id,omitempty" required:"true"`
	Recipient        string `url:"recipient,omitempty" required:"true"`
	Name             string `url:"name,omitempty" required:"false"`
	Company          string `url:"company,omitempty" required:"false"`
	Note             string `url:"note,omitempty" required:"false"`
	ShareAfterCreate *bool  `url:"share_after_create,omitempty" required:"false"`
}

type BundleRecipientListParams

type BundleRecipientListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	BundleId   int64           `url:"bundle_id,omitempty" required:"true"`
	lib.ListParams
}

type BundleRegistration added in v1.0.104

type BundleRegistration struct {
	Code              string `json:"code,omitempty"`
	Name              string `json:"name,omitempty"`
	Company           string `json:"company,omitempty"`
	Email             string `json:"email,omitempty"`
	Ip                string `json:"ip,omitempty"`
	InboxCode         string `json:"inbox_code,omitempty"`
	ClickwrapBody     string `json:"clickwrap_body,omitempty"`
	FormFieldSetId    int64  `json:"form_field_set_id,omitempty"`
	FormFieldData     string `json:"form_field_data,omitempty"`
	BundleId          int64  `json:"bundle_id,omitempty"`
	BundleRecipientId int64  `json:"bundle_recipient_id,omitempty"`
}

func (*BundleRegistration) UnmarshalJSON added in v1.0.104

func (b *BundleRegistration) UnmarshalJSON(data []byte) error

type BundleRegistrationCollection added in v1.0.104

type BundleRegistrationCollection []BundleRegistration

func (*BundleRegistrationCollection) ToSlice added in v1.0.167

func (b *BundleRegistrationCollection) ToSlice() *[]interface{}

func (*BundleRegistrationCollection) UnmarshalJSON added in v1.0.104

func (b *BundleRegistrationCollection) UnmarshalJSON(data []byte) error

type BundleRegistrationListParams added in v1.0.158

type BundleRegistrationListParams struct {
	UserId   int64  `url:"user_id,omitempty" required:"false"`
	Cursor   string `url:"cursor,omitempty" required:"false"`
	PerPage  int64  `url:"per_page,omitempty" required:"false"`
	BundleId int64  `url:"bundle_id,omitempty" required:"false"`
	lib.ListParams
}

type BundleShareParams

type BundleShareParams struct {
	Id         int64    `url:"-,omitempty" required:"true"`
	To         []string `url:"to,omitempty" required:"false"`
	Note       string   `url:"note,omitempty" required:"false"`
	Recipients []string `url:"recipients,omitempty" required:"false"`
}

Send email(s) with a link to bundle

type BundleUpdateParams

type BundleUpdateParams struct {
	Id                    int64     `url:"-,omitempty" required:"true"`
	Paths                 []string  `url:"paths,omitempty" required:"false"`
	Password              string    `url:"password,omitempty" required:"false"`
	FormFieldSetId        int64     `url:"form_field_set_id,omitempty" required:"false"`
	ClickwrapId           int64     `url:"clickwrap_id,omitempty" required:"false"`
	Code                  string    `url:"code,omitempty" required:"false"`
	Description           string    `url:"description,omitempty" required:"false"`
	ExpiresAt             time.Time `url:"expires_at,omitempty" required:"false"`
	InboxId               int64     `url:"inbox_id,omitempty" required:"false"`
	MaxUses               int64     `url:"max_uses,omitempty" required:"false"`
	Note                  string    `url:"note,omitempty" required:"false"`
	PreviewOnly           *bool     `url:"preview_only,omitempty" required:"false"`
	RequireRegistration   *bool     `url:"require_registration,omitempty" required:"false"`
	RequireShareRecipient *bool     `url:"require_share_recipient,omitempty" required:"false"`
}

type CallParams added in v1.0.541

type CallParams struct {
	Method  string
	Config  Config
	Uri     string
	Params  *url.Values
	BodyIo  io.ReadCloser
	Headers *http.Header
	context.Context
}

type Clickwrap

type Clickwrap struct {
	Id             int64  `json:"id,omitempty"`
	Name           string `json:"name,omitempty"`
	Body           string `json:"body,omitempty"`
	UseWithUsers   string `json:"use_with_users,omitempty"`
	UseWithBundles string `json:"use_with_bundles,omitempty"`
	UseWithInboxes string `json:"use_with_inboxes,omitempty"`
}

func (*Clickwrap) UnmarshalJSON

func (c *Clickwrap) UnmarshalJSON(data []byte) error

type ClickwrapCollection

type ClickwrapCollection []Clickwrap

func (*ClickwrapCollection) ToSlice added in v1.0.167

func (c *ClickwrapCollection) ToSlice() *[]interface{}

func (*ClickwrapCollection) UnmarshalJSON

func (c *ClickwrapCollection) UnmarshalJSON(data []byte) error

type ClickwrapCreateParams

type ClickwrapCreateParams struct {
	Name           string                      `url:"name,omitempty" required:"false"`
	Body           string                      `url:"body,omitempty" required:"false"`
	UseWithBundles ClickwrapUseWithBundlesEnum `url:"use_with_bundles,omitempty" required:"false"`
	UseWithInboxes ClickwrapUseWithInboxesEnum `url:"use_with_inboxes,omitempty" required:"false"`
	UseWithUsers   ClickwrapUseWithUsersEnum   `url:"use_with_users,omitempty" required:"false"`
}

type ClickwrapDeleteParams

type ClickwrapDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type ClickwrapFindParams

type ClickwrapFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type ClickwrapListParams

type ClickwrapListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type ClickwrapUpdateParams

type ClickwrapUpdateParams struct {
	Id             int64                       `url:"-,omitempty" required:"true"`
	Name           string                      `url:"name,omitempty" required:"false"`
	Body           string                      `url:"body,omitempty" required:"false"`
	UseWithBundles ClickwrapUseWithBundlesEnum `url:"use_with_bundles,omitempty" required:"false"`
	UseWithInboxes ClickwrapUseWithInboxesEnum `url:"use_with_inboxes,omitempty" required:"false"`
	UseWithUsers   ClickwrapUseWithUsersEnum   `url:"use_with_users,omitempty" required:"false"`
}

type ClickwrapUseWithBundlesEnum added in v1.0.838

type ClickwrapUseWithBundlesEnum string

func (ClickwrapUseWithBundlesEnum) Enum added in v1.0.838

func (ClickwrapUseWithBundlesEnum) String added in v1.0.838

type ClickwrapUseWithInboxesEnum added in v1.0.838

type ClickwrapUseWithInboxesEnum string

func (ClickwrapUseWithInboxesEnum) Enum added in v1.0.838

func (ClickwrapUseWithInboxesEnum) String added in v1.0.838

type ClickwrapUseWithUsersEnum added in v1.0.838

type ClickwrapUseWithUsersEnum string

func (ClickwrapUseWithUsersEnum) Enum added in v1.0.838

func (ClickwrapUseWithUsersEnum) String added in v1.0.838

func (u ClickwrapUseWithUsersEnum) String() string

type Config

type Config struct {
	APIKey    string `header:"X-FilesAPI-Key"`
	SessionId string `header:"X-FilesAPI-Auth"`
	Endpoint  string
	Subdomain string

	AdditionalHeaders map[string]string

	Debug *bool
	// contains filtered or unexported fields
}
var GlobalConfig Config

func (*Config) GetAPIKey

func (s *Config) GetAPIKey() string

func (*Config) GetHttpClient

func (s *Config) GetHttpClient() HttpClient

func (*Config) GetRawClient added in v1.0.541

func (s *Config) GetRawClient() *retryablehttp.Client

func (*Config) InDebug added in v1.0.183

func (s *Config) InDebug() bool

func (*Config) Logger

func (s *Config) Logger() retryablehttp.Logger

func (*Config) RootPath

func (s *Config) RootPath() string

func (*Config) SetHeaders

func (s *Config) SetHeaders(headers *http.Header)

func (*Config) SetHttpClient added in v1.0.541

func (s *Config) SetHttpClient(client *http.Client)

func (*Config) SetLogger added in v1.0.183

func (s *Config) SetLogger(l Logger)

type Data added in v1.0.150

type Data struct {
	U2fSIgnRequests               []U2fSignRequests `json:"u2f_sign_requests"`
	PartialSessionId              string            `json:"partial_session_id"`
	TwoFactorAuthenticationMethod []string          `json:"two_factor_authentication_methods"`
}

type DnsRecord

type DnsRecord struct {
	Id     string `json:"id,omitempty"`
	Domain string `json:"domain,omitempty"`
	Rrtype string `json:"rrtype,omitempty"`
	Value  string `json:"value,omitempty"`
}

func (*DnsRecord) UnmarshalJSON

func (d *DnsRecord) UnmarshalJSON(data []byte) error

type DnsRecordCollection

type DnsRecordCollection []DnsRecord

func (*DnsRecordCollection) ToSlice added in v1.0.167

func (d *DnsRecordCollection) ToSlice() *[]interface{}

func (*DnsRecordCollection) UnmarshalJSON

func (d *DnsRecordCollection) UnmarshalJSON(data []byte) error

type DnsRecordListParams

type DnsRecordListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type Errors

type Errors struct {
	Fields   []string `json:"fields,omitempty"`
	Messages []string `json:"messages,omitempty"`
}

func (*Errors) UnmarshalJSON

func (e *Errors) UnmarshalJSON(data []byte) error

type ErrorsCollection

type ErrorsCollection []Errors

func (*ErrorsCollection) ToSlice added in v1.0.167

func (e *ErrorsCollection) ToSlice() *[]interface{}

func (*ErrorsCollection) UnmarshalJSON

func (e *ErrorsCollection) UnmarshalJSON(data []byte) error

type EtagsParam

type EtagsParam struct {
	Etag string `url:"etag,omitempty"`
	Part string `url:"part,omitempty"`
}

type ExternalEvent added in v1.0.10

type ExternalEvent struct {
	Id               int64     `json:"id,omitempty"`
	EventType        string    `json:"event_type,omitempty"`
	Status           string    `json:"status,omitempty"`
	Body             string    `json:"body,omitempty"`
	CreatedAt        time.Time `json:"created_at,omitempty"`
	BodyUrl          string    `json:"body_url,omitempty"`
	FolderBehaviorId int64     `json:"folder_behavior_id,omitempty"`
	SuccessfulFiles  int64     `json:"successful_files,omitempty"`
	ErroredFiles     int64     `json:"errored_files,omitempty"`
	BytesSynced      int64     `json:"bytes_synced,omitempty"`
	RemoteServerType string    `json:"remote_server_type,omitempty"`
}

func (*ExternalEvent) UnmarshalJSON added in v1.0.10

func (e *ExternalEvent) UnmarshalJSON(data []byte) error

type ExternalEventCollection added in v1.0.10

type ExternalEventCollection []ExternalEvent

func (*ExternalEventCollection) ToSlice added in v1.0.167

func (e *ExternalEventCollection) ToSlice() *[]interface{}

func (*ExternalEventCollection) UnmarshalJSON added in v1.0.10

func (e *ExternalEventCollection) UnmarshalJSON(data []byte) error

type ExternalEventCreateParams added in v1.0.820

type ExternalEventCreateParams struct {
	Status ExternalEventStatusEnum `url:"status,omitempty" required:"true"`
	Body   string                  `url:"body,omitempty" required:"true"`
}

type ExternalEventFindParams added in v1.0.327

type ExternalEventFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type ExternalEventListParams added in v1.0.10

type ExternalEventListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}

type ExternalEventStatusEnum added in v1.0.838

type ExternalEventStatusEnum string

func (ExternalEventStatusEnum) Enum added in v1.0.838

func (ExternalEventStatusEnum) String added in v1.0.838

func (u ExternalEventStatusEnum) String() string

type File

type File struct {
	Path             string    `json:"path,omitempty"`
	DisplayName      string    `json:"display_name,omitempty"`
	Type             string    `json:"type,omitempty"`
	Size             int64     `json:"size,omitempty"`
	Mtime            time.Time `json:"mtime,omitempty"`
	ProvidedMtime    time.Time `json:"provided_mtime,omitempty"`
	Crc32            string    `json:"crc32,omitempty"`
	Md5              string    `json:"md5,omitempty"`
	MimeType         string    `json:"mime_type,omitempty"`
	Region           string    `json:"region,omitempty"`
	Permissions      string    `json:"permissions,omitempty"`
	SubfoldersLocked *bool     `json:"subfolders_locked?,omitempty"`
	DownloadUri      string    `json:"download_uri,omitempty"`
	PriorityColor    string    `json:"priority_color,omitempty"`
	PreviewId        int64     `json:"preview_id,omitempty"`
	Preview          string    `json:"preview,omitempty"`
	Action           string    `json:"action,omitempty"`
	Length           int64     `json:"length,omitempty"`
	MkdirParents     *bool     `json:"mkdir_parents,omitempty"`
	Part             int64     `json:"part,omitempty"`
	Parts            int64     `json:"parts,omitempty"`
	Ref              string    `json:"ref,omitempty"`
	Restart          int64     `json:"restart,omitempty"`
	Structure        string    `json:"structure,omitempty"`
	WithRename       *bool     `json:"with_rename,omitempty"`
}

func (File) ToFolder added in v1.1.1140

func (f File) ToFolder() (Folder, error)

func (*File) UnmarshalJSON

func (f *File) UnmarshalJSON(data []byte) error

type FileAction

type FileAction struct {
	Status          string `json:"status,omitempty"`
	FileMigrationId int64  `json:"file_migration_id,omitempty"`
}

func (*FileAction) UnmarshalJSON

func (f *FileAction) UnmarshalJSON(data []byte) error

type FileActionCollection

type FileActionCollection []FileAction

func (*FileActionCollection) ToSlice added in v1.0.167

func (f *FileActionCollection) ToSlice() *[]interface{}

func (*FileActionCollection) UnmarshalJSON

func (f *FileActionCollection) UnmarshalJSON(data []byte) error

type FileBeginUploadParams added in v1.2.1207

type FileBeginUploadParams struct {
	Path         string `url:"-,omitempty" required:"true"`
	MkdirParents *bool  `url:"mkdir_parents,omitempty" required:"false"`
	Part         int64  `url:"part,omitempty" required:"false"`
	Parts        int64  `url:"parts,omitempty" required:"false"`
	Ref          string `url:"ref,omitempty" required:"false"`
	Restart      int64  `url:"restart,omitempty" required:"false"`
	WithRename   *bool  `url:"with_rename,omitempty" required:"false"`
}

Begin file upload

type FileCollection

type FileCollection []File

func (*FileCollection) ToSlice added in v1.0.167

func (f *FileCollection) ToSlice() *[]interface{}

func (*FileCollection) UnmarshalJSON

func (f *FileCollection) UnmarshalJSON(data []byte) error

type FileComment

type FileComment struct {
	Id        int64  `json:"id,omitempty"`
	Body      string `json:"body,omitempty"`
	Reactions string `json:"reactions,omitempty"`
	Path      string `json:"path,omitempty"`
}

func (*FileComment) UnmarshalJSON

func (f *FileComment) UnmarshalJSON(data []byte) error

type FileCommentCollection

type FileCommentCollection []FileComment

func (*FileCommentCollection) ToSlice added in v1.0.167

func (f *FileCommentCollection) ToSlice() *[]interface{}

func (*FileCommentCollection) UnmarshalJSON

func (f *FileCommentCollection) UnmarshalJSON(data []byte) error

type FileCommentCreateParams

type FileCommentCreateParams struct {
	Body string `url:"body,omitempty" required:"true"`
	Path string `url:"path,omitempty" required:"true"`
}

type FileCommentDeleteParams

type FileCommentDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type FileCommentListForParams

type FileCommentListForParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	Path    string `url:"-,omitempty" required:"true"`
	lib.ListParams
}

type FileCommentReaction

type FileCommentReaction struct {
	Id            int64  `json:"id,omitempty"`
	Emoji         string `json:"emoji,omitempty"`
	UserId        int64  `json:"user_id,omitempty"`
	FileCommentId int64  `json:"file_comment_id,omitempty"`
}

func (*FileCommentReaction) UnmarshalJSON

func (f *FileCommentReaction) UnmarshalJSON(data []byte) error

type FileCommentReactionCollection

type FileCommentReactionCollection []FileCommentReaction

func (*FileCommentReactionCollection) ToSlice added in v1.0.167

func (f *FileCommentReactionCollection) ToSlice() *[]interface{}

func (*FileCommentReactionCollection) UnmarshalJSON

func (f *FileCommentReactionCollection) UnmarshalJSON(data []byte) error

type FileCommentReactionCreateParams

type FileCommentReactionCreateParams struct {
	UserId        int64  `url:"user_id,omitempty" required:"false"`
	FileCommentId int64  `url:"file_comment_id,omitempty" required:"true"`
	Emoji         string `url:"emoji,omitempty" required:"true"`
}

type FileCommentReactionDeleteParams

type FileCommentReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type FileCommentUpdateParams

type FileCommentUpdateParams struct {
	Id   int64  `url:"-,omitempty" required:"true"`
	Body string `url:"body,omitempty" required:"true"`
}

type FileCopyParams added in v1.2.1207

type FileCopyParams struct {
	Path        string `url:"-,omitempty" required:"true"`
	Destination string `url:"destination,omitempty" required:"true"`
	Structure   *bool  `url:"structure,omitempty" required:"false"`
}

Copy file/folder

type FileCreateParams

type FileCreateParams struct {
	Path          string       `url:"-,omitempty" required:"true"`
	Action        string       `url:"action,omitempty" required:"false"`
	EtagsParam    []EtagsParam `url:"etags,omitempty" required:"false"`
	Length        int64        `url:"length,omitempty" required:"false"`
	MkdirParents  *bool        `url:"mkdir_parents,omitempty" required:"false"`
	Part          int64        `url:"part,omitempty" required:"false"`
	Parts         int64        `url:"parts,omitempty" required:"false"`
	ProvidedMtime time.Time    `url:"provided_mtime,omitempty" required:"false"`
	Ref           string       `url:"ref,omitempty" required:"false"`
	Restart       int64        `url:"restart,omitempty" required:"false"`
	Size          int64        `url:"size,omitempty" required:"false"`
	Structure     string       `url:"structure,omitempty" required:"false"`
	WithRename    *bool        `url:"with_rename,omitempty" required:"false"`
}

type FileDeleteParams

type FileDeleteParams struct {
	Path      string `url:"-,omitempty" required:"true"`
	Recursive *bool  `url:"recursive,omitempty" required:"false"`
}

type FileDownloadParams

type FileDownloadParams struct {
	Path              string               `url:"-,omitempty" required:"true"`
	Action            string               `url:"action,omitempty" required:"false"`
	PreviewSize       string               `url:"preview_size,omitempty" required:"false"`
	WithPreviews      *bool                `url:"with_previews,omitempty" required:"false"`
	WithPriorityColor *bool                `url:"with_priority_color,omitempty" required:"false"`
	Writer            io.Writer            `url:"-,omitempty" required:"false"`
	OnDownload        func(*http.Response) `url:"-,omitempty" required:"false"`
}

Download file

type FileMetadataParams added in v1.2.1207

type FileMetadataParams struct {
	Path              string `url:"-,omitempty" required:"true"`
	PreviewSize       string `url:"preview_size,omitempty" required:"false"`
	WithPreviews      *bool  `url:"with_previews,omitempty" required:"false"`
	WithPriorityColor *bool  `url:"with_priority_color,omitempty" required:"false"`
}

Return metadata for file/folder

type FileMigration added in v1.0.1053

type FileMigration struct {
	Id         int64  `json:"id,omitempty"`
	Path       string `json:"path,omitempty"`
	DestPath   string `json:"dest_path,omitempty"`
	FilesMoved int64  `json:"files_moved,omitempty"`
	FilesTotal int64  `json:"files_total,omitempty"`
	Operation  string `json:"operation,omitempty"`
	Region     string `json:"region,omitempty"`
	Status     string `json:"status,omitempty"`
	LogUrl     string `json:"log_url,omitempty"`
}

func (*FileMigration) UnmarshalJSON added in v1.0.1053

func (f *FileMigration) UnmarshalJSON(data []byte) error

type FileMigrationCollection added in v1.0.1053

type FileMigrationCollection []FileMigration

func (*FileMigrationCollection) ToSlice added in v1.0.1053

func (f *FileMigrationCollection) ToSlice() *[]interface{}

func (*FileMigrationCollection) UnmarshalJSON added in v1.0.1053

func (f *FileMigrationCollection) UnmarshalJSON(data []byte) error

type FileMigrationFindParams added in v1.0.1053

type FileMigrationFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type FileMoveParams added in v1.2.1207

type FileMoveParams struct {
	Path        string `url:"-,omitempty" required:"true"`
	Destination string `url:"destination,omitempty" required:"true"`
}

Move file/folder

type FileUpdateParams

type FileUpdateParams struct {
	Path          string    `url:"-,omitempty" required:"true"`
	ProvidedMtime time.Time `url:"provided_mtime,omitempty" required:"false"`
	PriorityColor string    `url:"priority_color,omitempty" required:"false"`
}

type FileUploadPart added in v1.0.19

type FileUploadPart struct {
	Send               json.RawMessage `json:"send,omitempty"`
	Action             string          `json:"action,omitempty"`
	AskAboutOverwrites *bool           `json:"ask_about_overwrites,omitempty"`
	AvailableParts     int64           `json:"available_parts,omitempty"`
	Expires            string          `json:"expires,omitempty"`
	Headers            json.RawMessage `json:"headers,omitempty"`
	HttpMethod         string          `json:"http_method,omitempty"`
	NextPartsize       int64           `json:"next_partsize,omitempty"`
	ParallelParts      *bool           `json:"parallel_parts,omitempty"`
	Parameters         json.RawMessage `json:"parameters,omitempty"`
	PartNumber         int64           `json:"part_number,omitempty"`
	Partsize           int64           `json:"partsize,omitempty"`
	Path               string          `json:"path,omitempty"`
	Ref                string          `json:"ref,omitempty"`
	UploadUri          string          `json:"upload_uri,omitempty"`
}

func (*FileUploadPart) UnmarshalJSON added in v1.0.19

func (f *FileUploadPart) UnmarshalJSON(data []byte) error

type FileUploadPartCollection added in v1.0.19

type FileUploadPartCollection []FileUploadPart

func (*FileUploadPartCollection) ToSlice added in v1.0.167

func (f *FileUploadPartCollection) ToSlice() *[]interface{}

func (*FileUploadPartCollection) UnmarshalJSON added in v1.0.19

func (f *FileUploadPartCollection) UnmarshalJSON(data []byte) error

type Folder

type Folder struct {
	Path             string    `json:"path,omitempty"`
	DisplayName      string    `json:"display_name,omitempty"`
	Type             string    `json:"type,omitempty"`
	Size             int64     `json:"size,omitempty"`
	Mtime            time.Time `json:"mtime,omitempty"`
	ProvidedMtime    time.Time `json:"provided_mtime,omitempty"`
	Crc32            string    `json:"crc32,omitempty"`
	Md5              string    `json:"md5,omitempty"`
	MimeType         string    `json:"mime_type,omitempty"`
	Region           string    `json:"region,omitempty"`
	Permissions      string    `json:"permissions,omitempty"`
	SubfoldersLocked *bool     `json:"subfolders_locked?,omitempty"`
	DownloadUri      string    `json:"download_uri,omitempty"`
	PriorityColor    string    `json:"priority_color,omitempty"`
	PreviewId        int64     `json:"preview_id,omitempty"`
	Preview          string    `json:"preview,omitempty"`
}

func (*Folder) ToFile added in v1.1.1140

func (f *Folder) ToFile() (File, error)

func (*Folder) UnmarshalJSON

func (f *Folder) UnmarshalJSON(data []byte) error

type FolderCollection

type FolderCollection []Folder

func (*FolderCollection) ToSlice added in v1.0.167

func (f *FolderCollection) ToSlice() *[]interface{}

func (*FolderCollection) UnmarshalJSON

func (f *FolderCollection) UnmarshalJSON(data []byte) error

type FolderCreateParams

type FolderCreateParams struct {
	Path string `url:"-,omitempty" required:"true"`
}

type FolderListForParams

type FolderListForParams struct {
	Cursor            string `url:"cursor,omitempty" required:"false"`
	PerPage           int64  `url:"per_page,omitempty" required:"false"`
	Path              string `url:"-,omitempty" required:"true"`
	Filter            string `url:"filter,omitempty" required:"false"`
	PreviewSize       string `url:"preview_size,omitempty" required:"false"`
	Search            string `url:"search,omitempty" required:"false"`
	SearchAll         *bool  `url:"search_all,omitempty" required:"false"`
	WithPreviews      *bool  `url:"with_previews,omitempty" required:"false"`
	WithPriorityColor *bool  `url:"with_priority_color,omitempty" required:"false"`
	lib.ListParams
}

type FormField added in v1.0.104

type FormField struct {
	Id               int64  `json:"id,omitempty"`
	Label            string `json:"label,omitempty"`
	Required         *bool  `json:"required,omitempty"`
	HelpText         string `json:"help_text,omitempty"`
	FieldType        string `json:"field_type,omitempty"`
	OptionsForSelect string `json:"options_for_select,omitempty"`
	DefaultOption    string `json:"default_option,omitempty"`
	FormFieldSetId   int64  `json:"form_field_set_id,omitempty"`
}

func (*FormField) UnmarshalJSON added in v1.0.104

func (f *FormField) UnmarshalJSON(data []byte) error

type FormFieldCollection added in v1.0.104

type FormFieldCollection []FormField

func (*FormFieldCollection) ToSlice added in v1.0.167

func (f *FormFieldCollection) ToSlice() *[]interface{}

func (*FormFieldCollection) UnmarshalJSON added in v1.0.104

func (f *FormFieldCollection) UnmarshalJSON(data []byte) error

type FormFieldSet added in v1.0.104

type FormFieldSet struct {
	Id          int64  `json:"id,omitempty"`
	Title       string `json:"title,omitempty"`
	FormLayout  int64  `json:"form_layout,omitempty"`
	FormFields  string `json:"form_fields,omitempty"`
	SkipName    *bool  `json:"skip_name,omitempty"`
	SkipEmail   *bool  `json:"skip_email,omitempty"`
	SkipCompany *bool  `json:"skip_company,omitempty"`
	UserId      int64  `json:"user_id,omitempty"`
}

func (*FormFieldSet) UnmarshalJSON added in v1.0.104

func (f *FormFieldSet) UnmarshalJSON(data []byte) error

type FormFieldSetCollection added in v1.0.104

type FormFieldSetCollection []FormFieldSet

func (*FormFieldSetCollection) ToSlice added in v1.0.167

func (f *FormFieldSetCollection) ToSlice() *[]interface{}

func (*FormFieldSetCollection) UnmarshalJSON added in v1.0.104

func (f *FormFieldSetCollection) UnmarshalJSON(data []byte) error

type FormFieldSetCreateParams added in v1.0.104

type FormFieldSetCreateParams struct {
	UserId      int64    `url:"user_id,omitempty" required:""`
	Title       string   `url:"title,omitempty" required:""`
	SkipEmail   *bool    `url:"skip_email,omitempty" required:""`
	SkipName    *bool    `url:"skip_name,omitempty" required:""`
	SkipCompany *bool    `url:"skip_company,omitempty" required:""`
	FormFields  []string `url:"form_fields,omitempty" required:""`
}

type FormFieldSetDeleteParams added in v1.0.104

type FormFieldSetDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type FormFieldSetFindParams added in v1.0.104

type FormFieldSetFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type FormFieldSetListParams added in v1.0.104

type FormFieldSetListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type FormFieldSetUpdateParams added in v1.0.104

type FormFieldSetUpdateParams struct {
	Id          int64    `url:"-,omitempty" required:"true"`
	Title       string   `url:"title,omitempty" required:""`
	SkipEmail   *bool    `url:"skip_email,omitempty" required:""`
	SkipName    *bool    `url:"skip_name,omitempty" required:""`
	SkipCompany *bool    `url:"skip_company,omitempty" required:""`
	FormFields  []string `url:"form_fields,omitempty" required:""`
}

type Group

type Group struct {
	Id        int64    `json:"id,omitempty"`
	Name      string   `json:"name,omitempty"`
	AdminIds  string   `json:"admin_ids,omitempty"`
	Notes     string   `json:"notes,omitempty"`
	UserIds   []int64  `json:"user_ids,omitempty"`
	Usernames []string `json:"usernames,omitempty"`
}

func (*Group) UnmarshalJSON

func (g *Group) UnmarshalJSON(data []byte) error

type GroupCollection

type GroupCollection []Group

func (*GroupCollection) ToSlice added in v1.0.167

func (g *GroupCollection) ToSlice() *[]interface{}

func (*GroupCollection) UnmarshalJSON

func (g *GroupCollection) UnmarshalJSON(data []byte) error

type GroupCreateParams

type GroupCreateParams struct {
	Name     string `url:"name,omitempty" required:"false"`
	Notes    string `url:"notes,omitempty" required:"false"`
	UserIds  string `url:"user_ids,omitempty" required:"false"`
	AdminIds string `url:"admin_ids,omitempty" required:"false"`
}

type GroupDeleteParams

type GroupDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type GroupFindParams

type GroupFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type GroupListParams

type GroupListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Ids        string          `url:"ids,omitempty" required:"false"`
	lib.ListParams
}

type GroupUpdateParams

type GroupUpdateParams struct {
	Id       int64  `url:"-,omitempty" required:"true"`
	Name     string `url:"name,omitempty" required:"false"`
	Notes    string `url:"notes,omitempty" required:"false"`
	UserIds  string `url:"user_ids,omitempty" required:"false"`
	AdminIds string `url:"admin_ids,omitempty" required:"false"`
}

type GroupUser

type GroupUser struct {
	GroupName string   `json:"group_name,omitempty"`
	GroupId   int64    `json:"group_id,omitempty"`
	UserId    int64    `json:"user_id,omitempty"`
	Admin     *bool    `json:"admin,omitempty"`
	Usernames []string `json:"usernames,omitempty"`
	Id        int64    `json:"id,omitempty"`
}

func (*GroupUser) UnmarshalJSON

func (g *GroupUser) UnmarshalJSON(data []byte) error

type GroupUserCollection

type GroupUserCollection []GroupUser

func (*GroupUserCollection) ToSlice added in v1.0.167

func (g *GroupUserCollection) ToSlice() *[]interface{}

func (*GroupUserCollection) UnmarshalJSON

func (g *GroupUserCollection) UnmarshalJSON(data []byte) error

type GroupUserCreateParams added in v1.0.163

type GroupUserCreateParams struct {
	GroupId int64 `url:"group_id,omitempty" required:"true"`
	UserId  int64 `url:"user_id,omitempty" required:"true"`
	Admin   *bool `url:"admin,omitempty" required:"false"`
}

type GroupUserDeleteParams

type GroupUserDeleteParams struct {
	Id      int64 `url:"-,omitempty" required:"true"`
	GroupId int64 `url:"group_id,omitempty" required:"true"`
	UserId  int64 `url:"user_id,omitempty" required:"true"`
}

type GroupUserListParams

type GroupUserListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	GroupId int64  `url:"group_id,omitempty" required:"false"`
	lib.ListParams
}

type GroupUserUpdateParams

type GroupUserUpdateParams struct {
	Id      int64 `url:"-,omitempty" required:"true"`
	GroupId int64 `url:"group_id,omitempty" required:"true"`
	UserId  int64 `url:"user_id,omitempty" required:"true"`
	Admin   *bool `url:"admin,omitempty" required:"false"`
}

type History

type History struct {
	Id          int64     `json:"id,omitempty"`
	Path        string    `json:"path,omitempty"`
	When        time.Time `json:"when,omitempty"`
	Destination string    `json:"destination,omitempty"`
	Display     string    `json:"display,omitempty"`
	Ip          string    `json:"ip,omitempty"`
	Source      string    `json:"source,omitempty"`
	Targets     []string  `json:"targets,omitempty"`
	UserId      int64     `json:"user_id,omitempty"`
	Username    string    `json:"username,omitempty"`
	Action      string    `json:"action,omitempty"`
	FailureType string    `json:"failure_type,omitempty"`
	Interface   string    `json:"interface,omitempty"`
}

func (*History) UnmarshalJSON

func (h *History) UnmarshalJSON(data []byte) error

type HistoryCollection

type HistoryCollection []History

func (*HistoryCollection) ToSlice added in v1.0.167

func (h *HistoryCollection) ToSlice() *[]interface{}

func (*HistoryCollection) UnmarshalJSON

func (h *HistoryCollection) UnmarshalJSON(data []byte) error

type HistoryExport

type HistoryExport struct {
	Id                       int64     `json:"id,omitempty"`
	HistoryVersion           string    `json:"history_version,omitempty"`
	StartAt                  time.Time `json:"start_at,omitempty"`
	EndAt                    time.Time `json:"end_at,omitempty"`
	Status                   string    `json:"status,omitempty"`
	QueryAction              string    `json:"query_action,omitempty"`
	QueryInterface           string    `json:"query_interface,omitempty"`
	QueryUserId              string    `json:"query_user_id,omitempty"`
	QueryFileId              string    `json:"query_file_id,omitempty"`
	QueryParentId            string    `json:"query_parent_id,omitempty"`
	QueryPath                string    `json:"query_path,omitempty"`
	QueryFolder              string    `json:"query_folder,omitempty"`
	QuerySrc                 string    `json:"query_src,omitempty"`
	QueryDestination         string    `json:"query_destination,omitempty"`
	QueryIp                  string    `json:"query_ip,omitempty"`
	QueryUsername            string    `json:"query_username,omitempty"`
	QueryFailureType         string    `json:"query_failure_type,omitempty"`
	QueryTargetId            string    `json:"query_target_id,omitempty"`
	QueryTargetName          string    `json:"query_target_name,omitempty"`
	QueryTargetPermission    string    `json:"query_target_permission,omitempty"`
	QueryTargetUserId        string    `json:"query_target_user_id,omitempty"`
	QueryTargetUsername      string    `json:"query_target_username,omitempty"`
	QueryTargetPlatform      string    `json:"query_target_platform,omitempty"`
	QueryTargetPermissionSet string    `json:"query_target_permission_set,omitempty"`
	ResultsUrl               string    `json:"results_url,omitempty"`
	UserId                   int64     `json:"user_id,omitempty"`
}

func (*HistoryExport) UnmarshalJSON

func (h *HistoryExport) UnmarshalJSON(data []byte) error

type HistoryExportCollection

type HistoryExportCollection []HistoryExport

func (*HistoryExportCollection) ToSlice added in v1.0.167

func (h *HistoryExportCollection) ToSlice() *[]interface{}

func (*HistoryExportCollection) UnmarshalJSON

func (h *HistoryExportCollection) UnmarshalJSON(data []byte) error

type HistoryExportCreateParams

type HistoryExportCreateParams struct {
	UserId                   int64     `url:"user_id,omitempty" required:"false"`
	StartAt                  time.Time `url:"start_at,omitempty" required:"false"`
	EndAt                    time.Time `url:"end_at,omitempty" required:"false"`
	QueryAction              string    `url:"query_action,omitempty" required:"false"`
	QueryInterface           string    `url:"query_interface,omitempty" required:"false"`
	QueryUserId              string    `url:"query_user_id,omitempty" required:"false"`
	QueryFileId              string    `url:"query_file_id,omitempty" required:"false"`
	QueryParentId            string    `url:"query_parent_id,omitempty" required:"false"`
	QueryPath                string    `url:"query_path,omitempty" required:"false"`
	QueryFolder              string    `url:"query_folder,omitempty" required:"false"`
	QuerySrc                 string    `url:"query_src,omitempty" required:"false"`
	QueryDestination         string    `url:"query_destination,omitempty" required:"false"`
	QueryIp                  string    `url:"query_ip,omitempty" required:"false"`
	QueryUsername            string    `url:"query_username,omitempty" required:"false"`
	QueryFailureType         string    `url:"query_failure_type,omitempty" required:"false"`
	QueryTargetId            string    `url:"query_target_id,omitempty" required:"false"`
	QueryTargetName          string    `url:"query_target_name,omitempty" required:"false"`
	QueryTargetPermission    string    `url:"query_target_permission,omitempty" required:"false"`
	QueryTargetUserId        string    `url:"query_target_user_id,omitempty" required:"false"`
	QueryTargetUsername      string    `url:"query_target_username,omitempty" required:"false"`
	QueryTargetPlatform      string    `url:"query_target_platform,omitempty" required:"false"`
	QueryTargetPermissionSet string    `url:"query_target_permission_set,omitempty" required:"false"`
}

type HistoryExportFindParams

type HistoryExportFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type HistoryExportResult added in v1.0.5

type HistoryExportResult struct {
	Id                  int64  `json:"id,omitempty"`
	CreatedAt           int64  `json:"created_at,omitempty"`
	UserId              int64  `json:"user_id,omitempty"`
	FileId              int64  `json:"file_id,omitempty"`
	ParentId            int64  `json:"parent_id,omitempty"`
	Path                string `json:"path,omitempty"`
	Folder              string `json:"folder,omitempty"`
	Src                 string `json:"src,omitempty"`
	Destination         string `json:"destination,omitempty"`
	Ip                  string `json:"ip,omitempty"`
	Username            string `json:"username,omitempty"`
	Action              string `json:"action,omitempty"`
	FailureType         string `json:"failure_type,omitempty"`
	Interface           string `json:"interface,omitempty"`
	TargetId            int64  `json:"target_id,omitempty"`
	TargetName          string `json:"target_name,omitempty"`
	TargetPermission    string `json:"target_permission,omitempty"`
	TargetRecursive     *bool  `json:"target_recursive,omitempty"`
	TargetExpiresAt     int64  `json:"target_expires_at,omitempty"`
	TargetPermissionSet string `json:"target_permission_set,omitempty"`
	TargetPlatform      string `json:"target_platform,omitempty"`
	TargetUsername      string `json:"target_username,omitempty"`
	TargetUserId        int64  `json:"target_user_id,omitempty"`
}

func (*HistoryExportResult) UnmarshalJSON added in v1.0.5

func (h *HistoryExportResult) UnmarshalJSON(data []byte) error

type HistoryExportResultCollection added in v1.0.5

type HistoryExportResultCollection []HistoryExportResult

func (*HistoryExportResultCollection) ToSlice added in v1.0.167

func (h *HistoryExportResultCollection) ToSlice() *[]interface{}

func (*HistoryExportResultCollection) UnmarshalJSON added in v1.0.5

func (h *HistoryExportResultCollection) UnmarshalJSON(data []byte) error

type HistoryExportResultListParams added in v1.0.5

type HistoryExportResultListParams struct {
	UserId          int64  `url:"user_id,omitempty" required:"false"`
	Cursor          string `url:"cursor,omitempty" required:"false"`
	PerPage         int64  `url:"per_page,omitempty" required:"false"`
	HistoryExportId int64  `url:"history_export_id,omitempty" required:"true"`
	lib.ListParams
}

type HistoryListForFileParams

type HistoryListForFileParams struct {
	StartAt time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt   time.Time       `url:"end_at,omitempty" required:"false"`
	Display string          `url:"display,omitempty" required:"false"`
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Path    string          `url:"-,omitempty" required:"true"`
	lib.ListParams
}

type HistoryListForFolderParams

type HistoryListForFolderParams struct {
	StartAt time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt   time.Time       `url:"end_at,omitempty" required:"false"`
	Display string          `url:"display,omitempty" required:"false"`
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Path    string          `url:"-,omitempty" required:"true"`
	lib.ListParams
}

type HistoryListForUserParams

type HistoryListForUserParams struct {
	StartAt time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt   time.Time       `url:"end_at,omitempty" required:"false"`
	Display string          `url:"display,omitempty" required:"false"`
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	UserId  int64           `url:"-,omitempty" required:"true"`
	lib.ListParams
}

type HistoryListLoginsParams

type HistoryListLoginsParams struct {
	StartAt time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt   time.Time       `url:"end_at,omitempty" required:"false"`
	Display string          `url:"display,omitempty" required:"false"`
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	lib.ListParams
}

type HistoryListParams

type HistoryListParams struct {
	StartAt    time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt      time.Time       `url:"end_at,omitempty" required:"false"`
	Display    string          `url:"display,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}

type HttpClient

type HttpClient interface {
	Do(*http.Request) (*http.Response, error)
	Get(string) (*http.Response, error)
}

type Image

type Image struct {
	Name string `json:"name,omitempty"`
	Uri  string `json:"uri,omitempty"`
}

func (*Image) UnmarshalJSON

func (i *Image) UnmarshalJSON(data []byte) error

type ImageCollection

type ImageCollection []Image

func (*ImageCollection) ToSlice added in v1.0.167

func (i *ImageCollection) ToSlice() *[]interface{}

func (*ImageCollection) UnmarshalJSON

func (i *ImageCollection) UnmarshalJSON(data []byte) error

type InboxRecipient added in v1.0.129

type InboxRecipient struct {
	Company          string    `json:"company,omitempty"`
	Name             string    `json:"name,omitempty"`
	Note             string    `json:"note,omitempty"`
	Recipient        string    `json:"recipient,omitempty"`
	SentAt           time.Time `json:"sent_at,omitempty"`
	UserId           int64     `json:"user_id,omitempty"`
	InboxId          int64     `json:"inbox_id,omitempty"`
	ShareAfterCreate *bool     `json:"share_after_create,omitempty"`
}

func (*InboxRecipient) UnmarshalJSON added in v1.0.129

func (i *InboxRecipient) UnmarshalJSON(data []byte) error

type InboxRecipientCollection added in v1.0.129

type InboxRecipientCollection []InboxRecipient

func (*InboxRecipientCollection) ToSlice added in v1.0.167

func (i *InboxRecipientCollection) ToSlice() *[]interface{}

func (*InboxRecipientCollection) UnmarshalJSON added in v1.0.129

func (i *InboxRecipientCollection) UnmarshalJSON(data []byte) error

type InboxRecipientCreateParams added in v1.0.129

type InboxRecipientCreateParams struct {
	UserId           int64  `url:"user_id,omitempty" required:"false"`
	InboxId          int64  `url:"inbox_id,omitempty" required:"true"`
	Recipient        string `url:"recipient,omitempty" required:"true"`
	Name             string `url:"name,omitempty" required:"false"`
	Company          string `url:"company,omitempty" required:"false"`
	Note             string `url:"note,omitempty" required:"false"`
	ShareAfterCreate *bool  `url:"share_after_create,omitempty" required:"false"`
}

type InboxRecipientListParams added in v1.0.129

type InboxRecipientListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	InboxId    int64           `url:"inbox_id,omitempty" required:"true"`
	lib.ListParams
}

type InboxRegistration added in v1.0.104

type InboxRegistration struct {
	Code             string `json:"code,omitempty"`
	Name             string `json:"name,omitempty"`
	Company          string `json:"company,omitempty"`
	Email            string `json:"email,omitempty"`
	ClickwrapBody    string `json:"clickwrap_body,omitempty"`
	FormFieldSetId   int64  `json:"form_field_set_id,omitempty"`
	FormFieldData    string `json:"form_field_data,omitempty"`
	InboxId          int64  `json:"inbox_id,omitempty"`
	InboxRecipientId int64  `json:"inbox_recipient_id,omitempty"`
}

func (*InboxRegistration) UnmarshalJSON added in v1.0.104

func (i *InboxRegistration) UnmarshalJSON(data []byte) error

type InboxRegistrationCollection added in v1.0.104

type InboxRegistrationCollection []InboxRegistration

func (*InboxRegistrationCollection) ToSlice added in v1.0.167

func (i *InboxRegistrationCollection) ToSlice() *[]interface{}

func (*InboxRegistrationCollection) UnmarshalJSON added in v1.0.104

func (i *InboxRegistrationCollection) UnmarshalJSON(data []byte) error

type InboxRegistrationListParams added in v1.0.158

type InboxRegistrationListParams struct {
	Cursor           string `url:"cursor,omitempty" required:"false"`
	PerPage          int64  `url:"per_page,omitempty" required:"false"`
	FolderBehaviorId int64  `url:"folder_behavior_id,omitempty" required:"false"`
	lib.ListParams
}

type InboxUpload added in v1.0.104

type InboxUpload struct {
	InboxRegistration string    `json:"inbox_registration,omitempty"`
	Path              string    `json:"path,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
}

func (*InboxUpload) UnmarshalJSON added in v1.0.104

func (i *InboxUpload) UnmarshalJSON(data []byte) error

type InboxUploadCollection added in v1.0.104

type InboxUploadCollection []InboxUpload

func (*InboxUploadCollection) ToSlice added in v1.0.167

func (i *InboxUploadCollection) ToSlice() *[]interface{}

func (*InboxUploadCollection) UnmarshalJSON added in v1.0.104

func (i *InboxUploadCollection) UnmarshalJSON(data []byte) error

type InboxUploadListParams added in v1.0.104

type InboxUploadListParams struct {
	Cursor              string          `url:"cursor,omitempty" required:"false"`
	PerPage             int64           `url:"per_page,omitempty" required:"false"`
	SortBy              json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter              json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt            json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq          json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike          json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt            json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq          json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	InboxRegistrationId int64           `url:"inbox_registration_id,omitempty" required:"false"`
	InboxId             int64           `url:"inbox_id,omitempty" required:"false"`
	lib.ListParams
}

type Invoice

type Invoice struct {
	Id                int64     `json:"id,omitempty"`
	Amount            float32   `json:"amount,omitempty"`
	Balance           float32   `json:"balance,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	Currency          string    `json:"currency,omitempty"`
	DownloadUri       string    `json:"download_uri,omitempty"`
	InvoiceLineItems  string    `json:"invoice_line_items,omitempty"`
	Method            string    `json:"method,omitempty"`
	PaymentLineItems  string    `json:"payment_line_items,omitempty"`
	PaymentReversedAt time.Time `json:"payment_reversed_at,omitempty"`
	PaymentType       string    `json:"payment_type,omitempty"`
	SiteName          string    `json:"site_name,omitempty"`
	Type              string    `json:"type,omitempty"`
	UpdatedAt         time.Time `json:"updated_at,omitempty"`
}

func (*Invoice) UnmarshalJSON

func (i *Invoice) UnmarshalJSON(data []byte) error

type InvoiceCollection

type InvoiceCollection []Invoice

func (*InvoiceCollection) ToSlice added in v1.0.167

func (i *InvoiceCollection) ToSlice() *[]interface{}

func (*InvoiceCollection) UnmarshalJSON

func (i *InvoiceCollection) UnmarshalJSON(data []byte) error

type InvoiceFindParams

type InvoiceFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type InvoiceLineItem

type InvoiceLineItem struct {
	Amount         float32   `json:"amount,omitempty"`
	CreatedAt      time.Time `json:"created_at,omitempty"`
	Description    string    `json:"description,omitempty"`
	Type           string    `json:"type,omitempty"`
	ServiceEndAt   time.Time `json:"service_end_at,omitempty"`
	ServiceStartAt time.Time `json:"service_start_at,omitempty"`
	UpdatedAt      time.Time `json:"updated_at,omitempty"`
	Plan           string    `json:"plan,omitempty"`
	Site           string    `json:"site,omitempty"`
}

func (*InvoiceLineItem) UnmarshalJSON

func (i *InvoiceLineItem) UnmarshalJSON(data []byte) error

type InvoiceLineItemCollection

type InvoiceLineItemCollection []InvoiceLineItem

func (*InvoiceLineItemCollection) ToSlice added in v1.0.167

func (i *InvoiceLineItemCollection) ToSlice() *[]interface{}

func (*InvoiceLineItemCollection) UnmarshalJSON

func (i *InvoiceLineItemCollection) UnmarshalJSON(data []byte) error

type InvoiceListParams

type InvoiceListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type IpAddress

type IpAddress struct {
	Id             string   `json:"id,omitempty"`
	AssociatedWith string   `json:"associated_with,omitempty"`
	GroupId        int64    `json:"group_id,omitempty"`
	IpAddresses    []string `json:"ip_addresses,omitempty"`
}

func (*IpAddress) UnmarshalJSON

func (i *IpAddress) UnmarshalJSON(data []byte) error

type IpAddressCollection

type IpAddressCollection []IpAddress

func (*IpAddressCollection) ToSlice added in v1.0.167

func (i *IpAddressCollection) ToSlice() *[]interface{}

func (*IpAddressCollection) UnmarshalJSON

func (i *IpAddressCollection) UnmarshalJSON(data []byte) error

type IpAddressGetReservedParams

type IpAddressGetReservedParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
}

type IpAddressListParams

type IpAddressListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type Lock

type Lock struct {
	Path                 string `json:"path,omitempty"`
	Timeout              int64  `json:"timeout,omitempty"`
	Depth                string `json:"depth,omitempty"`
	Recursive            *bool  `json:"recursive,omitempty"`
	Owner                string `json:"owner,omitempty"`
	Scope                string `json:"scope,omitempty"`
	Exclusive            *bool  `json:"exclusive,omitempty"`
	Token                string `json:"token,omitempty"`
	Type                 string `json:"type,omitempty"`
	AllowAccessByAnyUser *bool  `json:"allow_access_by_any_user,omitempty"`
	UserId               int64  `json:"user_id,omitempty"`
	Username             string `json:"username,omitempty"`
}

func (*Lock) UnmarshalJSON

func (l *Lock) UnmarshalJSON(data []byte) error

type LockCollection

type LockCollection []Lock

func (*LockCollection) ToSlice added in v1.0.167

func (l *LockCollection) ToSlice() *[]interface{}

func (*LockCollection) UnmarshalJSON

func (l *LockCollection) UnmarshalJSON(data []byte) error

type LockCreateParams

type LockCreateParams struct {
	Path                 string `url:"-,omitempty" required:"true"`
	AllowAccessByAnyUser *bool  `url:"allow_access_by_any_user,omitempty" required:"false"`
	Exclusive            *bool  `url:"exclusive,omitempty" required:"false"`
	Recursive            string `url:"recursive,omitempty" required:"false"`
	Timeout              int64  `url:"timeout,omitempty" required:"false"`
}

type LockDeleteParams

type LockDeleteParams struct {
	Path  string `url:"-,omitempty" required:"true"`
	Token string `url:"token,omitempty" required:"true"`
}

type LockListForParams

type LockListForParams struct {
	Cursor          string `url:"cursor,omitempty" required:"false"`
	PerPage         int64  `url:"per_page,omitempty" required:"false"`
	Path            string `url:"-,omitempty" required:"true"`
	IncludeChildren *bool  `url:"include_children,omitempty" required:"false"`
	lib.ListParams
}

type Logger added in v1.0.183

type Logger interface {
	Printf(string, ...interface{})
}

type Message

type Message struct {
	Id        int64  `json:"id,omitempty"`
	Subject   string `json:"subject,omitempty"`
	Body      string `json:"body,omitempty"`
	Comments  string `json:"comments,omitempty"`
	UserId    int64  `json:"user_id,omitempty"`
	ProjectId int64  `json:"project_id,omitempty"`
}

func (*Message) UnmarshalJSON

func (m *Message) UnmarshalJSON(data []byte) error

type MessageCollection

type MessageCollection []Message

func (*MessageCollection) ToSlice added in v1.0.167

func (m *MessageCollection) ToSlice() *[]interface{}

func (*MessageCollection) UnmarshalJSON

func (m *MessageCollection) UnmarshalJSON(data []byte) error

type MessageComment

type MessageComment struct {
	Id        int64  `json:"id,omitempty"`
	Body      string `json:"body,omitempty"`
	Reactions string `json:"reactions,omitempty"`
	UserId    int64  `json:"user_id,omitempty"`
}

func (*MessageComment) UnmarshalJSON

func (m *MessageComment) UnmarshalJSON(data []byte) error

type MessageCommentCollection

type MessageCommentCollection []MessageComment

func (*MessageCommentCollection) ToSlice added in v1.0.167

func (m *MessageCommentCollection) ToSlice() *[]interface{}

func (*MessageCommentCollection) UnmarshalJSON

func (m *MessageCommentCollection) UnmarshalJSON(data []byte) error

type MessageCommentCreateParams

type MessageCommentCreateParams struct {
	UserId int64  `url:"user_id,omitempty" required:"false"`
	Body   string `url:"body,omitempty" required:"true"`
}

type MessageCommentDeleteParams

type MessageCommentDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type MessageCommentFindParams

type MessageCommentFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type MessageCommentListParams

type MessageCommentListParams struct {
	UserId    int64  `url:"user_id,omitempty" required:"false"`
	Cursor    string `url:"cursor,omitempty" required:"false"`
	PerPage   int64  `url:"per_page,omitempty" required:"false"`
	MessageId int64  `url:"message_id,omitempty" required:"true"`
	lib.ListParams
}

type MessageCommentReaction

type MessageCommentReaction struct {
	Id     int64  `json:"id,omitempty"`
	Emoji  string `json:"emoji,omitempty"`
	UserId int64  `json:"user_id,omitempty"`
}

func (*MessageCommentReaction) UnmarshalJSON

func (m *MessageCommentReaction) UnmarshalJSON(data []byte) error

type MessageCommentReactionCollection

type MessageCommentReactionCollection []MessageCommentReaction

func (*MessageCommentReactionCollection) ToSlice added in v1.0.167

func (m *MessageCommentReactionCollection) ToSlice() *[]interface{}

func (*MessageCommentReactionCollection) UnmarshalJSON

func (m *MessageCommentReactionCollection) UnmarshalJSON(data []byte) error

type MessageCommentReactionCreateParams

type MessageCommentReactionCreateParams struct {
	UserId int64  `url:"user_id,omitempty" required:"false"`
	Emoji  string `url:"emoji,omitempty" required:"true"`
}

type MessageCommentReactionDeleteParams

type MessageCommentReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type MessageCommentReactionFindParams

type MessageCommentReactionFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type MessageCommentReactionListParams

type MessageCommentReactionListParams struct {
	UserId           int64  `url:"user_id,omitempty" required:"false"`
	Cursor           string `url:"cursor,omitempty" required:"false"`
	PerPage          int64  `url:"per_page,omitempty" required:"false"`
	MessageCommentId int64  `url:"message_comment_id,omitempty" required:"true"`
	lib.ListParams
}

type MessageCommentUpdateParams

type MessageCommentUpdateParams struct {
	Id   int64  `url:"-,omitempty" required:"true"`
	Body string `url:"body,omitempty" required:"true"`
}

type MessageCreateParams

type MessageCreateParams struct {
	UserId    int64  `url:"user_id,omitempty" required:"false"`
	ProjectId int64  `url:"project_id,omitempty" required:"true"`
	Subject   string `url:"subject,omitempty" required:"true"`
	Body      string `url:"body,omitempty" required:"true"`
}

type MessageDeleteParams

type MessageDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type MessageFindParams

type MessageFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type MessageListParams

type MessageListParams struct {
	UserId    int64  `url:"user_id,omitempty" required:"false"`
	Cursor    string `url:"cursor,omitempty" required:"false"`
	PerPage   int64  `url:"per_page,omitempty" required:"false"`
	ProjectId int64  `url:"project_id,omitempty" required:"true"`
	lib.ListParams
}

type MessageReaction

type MessageReaction struct {
	Id     int64  `json:"id,omitempty"`
	Emoji  string `json:"emoji,omitempty"`
	UserId int64  `json:"user_id,omitempty"`
}

func (*MessageReaction) UnmarshalJSON

func (m *MessageReaction) UnmarshalJSON(data []byte) error

type MessageReactionCollection

type MessageReactionCollection []MessageReaction

func (*MessageReactionCollection) ToSlice added in v1.0.167

func (m *MessageReactionCollection) ToSlice() *[]interface{}

func (*MessageReactionCollection) UnmarshalJSON

func (m *MessageReactionCollection) UnmarshalJSON(data []byte) error

type MessageReactionCreateParams

type MessageReactionCreateParams struct {
	UserId int64  `url:"user_id,omitempty" required:"false"`
	Emoji  string `url:"emoji,omitempty" required:"true"`
}

type MessageReactionDeleteParams

type MessageReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type MessageReactionFindParams

type MessageReactionFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type MessageReactionListParams

type MessageReactionListParams struct {
	UserId    int64  `url:"user_id,omitempty" required:"false"`
	Cursor    string `url:"cursor,omitempty" required:"false"`
	PerPage   int64  `url:"per_page,omitempty" required:"false"`
	MessageId int64  `url:"message_id,omitempty" required:"true"`
	lib.ListParams
}

type MessageUpdateParams

type MessageUpdateParams struct {
	Id        int64  `url:"-,omitempty" required:"true"`
	ProjectId int64  `url:"project_id,omitempty" required:"true"`
	Subject   string `url:"subject,omitempty" required:"true"`
	Body      string `url:"body,omitempty" required:"true"`
}

type Notification

type Notification struct {
	Id                 int64  `json:"id,omitempty"`
	Path               string `json:"path,omitempty"`
	GroupId            int64  `json:"group_id,omitempty"`
	GroupName          string `json:"group_name,omitempty"`
	NotifyUserActions  *bool  `json:"notify_user_actions,omitempty"`
	NotifyOnCopy       *bool  `json:"notify_on_copy,omitempty"`
	Recursive          *bool  `json:"recursive,omitempty"`
	SendInterval       string `json:"send_interval,omitempty"`
	Unsubscribed       *bool  `json:"unsubscribed,omitempty"`
	UnsubscribedReason string `json:"unsubscribed_reason,omitempty"`
	UserId             int64  `json:"user_id,omitempty"`
	Username           string `json:"username,omitempty"`
	SuppressedEmail    *bool  `json:"suppressed_email,omitempty"`
}

func (*Notification) UnmarshalJSON

func (n *Notification) UnmarshalJSON(data []byte) error

type NotificationCollection

type NotificationCollection []Notification

func (*NotificationCollection) ToSlice added in v1.0.167

func (n *NotificationCollection) ToSlice() *[]interface{}

func (*NotificationCollection) UnmarshalJSON

func (n *NotificationCollection) UnmarshalJSON(data []byte) error

type NotificationCreateParams

type NotificationCreateParams struct {
	UserId            int64  `url:"user_id,omitempty" required:"false"`
	NotifyOnCopy      *bool  `url:"notify_on_copy,omitempty" required:"false"`
	NotifyUserActions *bool  `url:"notify_user_actions,omitempty" required:"false"`
	Recursive         *bool  `url:"recursive,omitempty" required:"false"`
	SendInterval      string `url:"send_interval,omitempty" required:"false"`
	GroupId           int64  `url:"group_id,omitempty" required:"false"`
	Path              string `url:"path,omitempty" required:"false"`
	Username          string `url:"username,omitempty" required:"false"`
}

type NotificationDeleteParams

type NotificationDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type NotificationFindParams

type NotificationFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type NotificationListParams

type NotificationListParams struct {
	UserId           int64           `url:"user_id,omitempty" required:"false"`
	Cursor           string          `url:"cursor,omitempty" required:"false"`
	PerPage          int64           `url:"per_page,omitempty" required:"false"`
	SortBy           json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter           json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt         json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq       json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike       json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt         json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq       json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	GroupId          int64           `url:"group_id,omitempty" required:"false"`
	Path             string          `url:"path,omitempty" required:"false"`
	IncludeAncestors *bool           `url:"include_ancestors,omitempty" required:"false"`
	lib.ListParams
}

type NotificationUpdateParams

type NotificationUpdateParams struct {
	Id                int64  `url:"-,omitempty" required:"true"`
	NotifyOnCopy      *bool  `url:"notify_on_copy,omitempty" required:"false"`
	NotifyUserActions *bool  `url:"notify_user_actions,omitempty" required:"false"`
	Recursive         *bool  `url:"recursive,omitempty" required:"false"`
	SendInterval      string `url:"send_interval,omitempty" required:"false"`
}

type NullLogger

type NullLogger struct{}

func (NullLogger) Printf

func (n NullLogger) Printf(_ string, _ ...interface{})

type Payment

type Payment struct {
	Id                int64     `json:"id,omitempty"`
	Amount            float32   `json:"amount,omitempty"`
	Balance           float32   `json:"balance,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	Currency          string    `json:"currency,omitempty"`
	DownloadUri       string    `json:"download_uri,omitempty"`
	InvoiceLineItems  string    `json:"invoice_line_items,omitempty"`
	Method            string    `json:"method,omitempty"`
	PaymentLineItems  string    `json:"payment_line_items,omitempty"`
	PaymentReversedAt time.Time `json:"payment_reversed_at,omitempty"`
	PaymentType       string    `json:"payment_type,omitempty"`
	SiteName          string    `json:"site_name,omitempty"`
	Type              string    `json:"type,omitempty"`
	UpdatedAt         time.Time `json:"updated_at,omitempty"`
}

func (*Payment) UnmarshalJSON

func (p *Payment) UnmarshalJSON(data []byte) error

type PaymentCollection

type PaymentCollection []Payment

func (*PaymentCollection) ToSlice added in v1.0.167

func (p *PaymentCollection) ToSlice() *[]interface{}

func (*PaymentCollection) UnmarshalJSON

func (p *PaymentCollection) UnmarshalJSON(data []byte) error

type PaymentFindParams

type PaymentFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type PaymentLineItem

type PaymentLineItem struct {
	Amount    float32   `json:"amount,omitempty"`
	CreatedAt time.Time `json:"created_at,omitempty"`
	InvoiceId int64     `json:"invoice_id,omitempty"`
	PaymentId int64     `json:"payment_id,omitempty"`
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

func (*PaymentLineItem) UnmarshalJSON

func (p *PaymentLineItem) UnmarshalJSON(data []byte) error

type PaymentLineItemCollection

type PaymentLineItemCollection []PaymentLineItem

func (*PaymentLineItemCollection) ToSlice added in v1.0.167

func (p *PaymentLineItemCollection) ToSlice() *[]interface{}

func (*PaymentLineItemCollection) UnmarshalJSON

func (p *PaymentLineItemCollection) UnmarshalJSON(data []byte) error

type PaymentListParams

type PaymentListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type Permission

type Permission struct {
	Id         int64  `json:"id,omitempty"`
	Path       string `json:"path,omitempty"`
	UserId     int64  `json:"user_id,omitempty"`
	Username   string `json:"username,omitempty"`
	GroupId    int64  `json:"group_id,omitempty"`
	GroupName  string `json:"group_name,omitempty"`
	Permission string `json:"permission,omitempty"`
	Recursive  *bool  `json:"recursive,omitempty"`
}

func (*Permission) UnmarshalJSON

func (p *Permission) UnmarshalJSON(data []byte) error

type PermissionCollection

type PermissionCollection []Permission

func (*PermissionCollection) ToSlice added in v1.0.167

func (p *PermissionCollection) ToSlice() *[]interface{}

func (*PermissionCollection) UnmarshalJSON

func (p *PermissionCollection) UnmarshalJSON(data []byte) error

type PermissionCreateParams

type PermissionCreateParams struct {
	GroupId    int64  `url:"group_id,omitempty" required:"false"`
	Path       string `url:"path,omitempty" required:"false"`
	Permission string `url:"permission,omitempty" required:"false"`
	Recursive  *bool  `url:"recursive,omitempty" required:"false"`
	UserId     int64  `url:"user_id,omitempty" required:"false"`
	Username   string `url:"username,omitempty" required:"false"`
}

type PermissionDeleteParams

type PermissionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type PermissionListParams

type PermissionListParams struct {
	Cursor        string          `url:"cursor,omitempty" required:"false"`
	PerPage       int64           `url:"per_page,omitempty" required:"false"`
	SortBy        json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter        json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt      json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq    json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike    json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt      json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq    json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Path          string          `url:"path,omitempty" required:"false"`
	GroupId       string          `url:"group_id,omitempty" required:"false"`
	UserId        string          `url:"user_id,omitempty" required:"false"`
	IncludeGroups *bool           `url:"include_groups,omitempty" required:"false"`
	lib.ListParams
}

type Preview

type Preview struct {
	Id          int64  `json:"id,omitempty"`
	Status      string `json:"status,omitempty"`
	DownloadUri string `json:"download_uri,omitempty"`
	Type        string `json:"type,omitempty"`
	Size        int64  `json:"size,omitempty"`
}

func (*Preview) UnmarshalJSON

func (p *Preview) UnmarshalJSON(data []byte) error

type PreviewCollection

type PreviewCollection []Preview

func (*PreviewCollection) ToSlice added in v1.0.167

func (p *PreviewCollection) ToSlice() *[]interface{}

func (*PreviewCollection) UnmarshalJSON

func (p *PreviewCollection) UnmarshalJSON(data []byte) error

type Project

type Project struct {
	Id           int64  `json:"id,omitempty"`
	GlobalAccess string `json:"global_access,omitempty"`
}

func (*Project) UnmarshalJSON

func (p *Project) UnmarshalJSON(data []byte) error

type ProjectCollection

type ProjectCollection []Project

func (*ProjectCollection) ToSlice added in v1.0.167

func (p *ProjectCollection) ToSlice() *[]interface{}

func (*ProjectCollection) UnmarshalJSON

func (p *ProjectCollection) UnmarshalJSON(data []byte) error

type ProjectCreateParams

type ProjectCreateParams struct {
	GlobalAccess string `url:"global_access,omitempty" required:"true"`
}

type ProjectDeleteParams

type ProjectDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type ProjectFindParams

type ProjectFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type ProjectListParams

type ProjectListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type ProjectUpdateParams

type ProjectUpdateParams struct {
	Id           int64  `url:"-,omitempty" required:"true"`
	GlobalAccess string `url:"global_access,omitempty" required:"true"`
}

type PublicIpAddress

type PublicIpAddress struct {
	IpAddress  string `json:"ip_address,omitempty"`
	ServerName string `json:"server_name,omitempty"`
}

func (*PublicIpAddress) UnmarshalJSON

func (p *PublicIpAddress) UnmarshalJSON(data []byte) error

type PublicIpAddressCollection

type PublicIpAddressCollection []PublicIpAddress

func (*PublicIpAddressCollection) ToSlice added in v1.0.167

func (p *PublicIpAddressCollection) ToSlice() *[]interface{}

func (*PublicIpAddressCollection) UnmarshalJSON

func (p *PublicIpAddressCollection) UnmarshalJSON(data []byte) error

type PublicKey

type PublicKey struct {
	Id          int64     `json:"id,omitempty"`
	Title       string    `json:"title,omitempty"`
	CreatedAt   time.Time `json:"created_at,omitempty"`
	Fingerprint string    `json:"fingerprint,omitempty"`
	UserId      int64     `json:"user_id,omitempty"`
	PublicKey   string    `json:"public_key,omitempty"`
}

func (*PublicKey) UnmarshalJSON

func (p *PublicKey) UnmarshalJSON(data []byte) error

type PublicKeyCollection

type PublicKeyCollection []PublicKey

func (*PublicKeyCollection) ToSlice added in v1.0.167

func (p *PublicKeyCollection) ToSlice() *[]interface{}

func (*PublicKeyCollection) UnmarshalJSON

func (p *PublicKeyCollection) UnmarshalJSON(data []byte) error

type PublicKeyCreateParams

type PublicKeyCreateParams struct {
	UserId    int64  `url:"user_id,omitempty" required:"false"`
	Title     string `url:"title,omitempty" required:"true"`
	PublicKey string `url:"public_key,omitempty" required:"true"`
}

type PublicKeyDeleteParams

type PublicKeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type PublicKeyFindParams

type PublicKeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type PublicKeyListParams

type PublicKeyListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type PublicKeyUpdateParams

type PublicKeyUpdateParams struct {
	Id    int64  `url:"-,omitempty" required:"true"`
	Title string `url:"title,omitempty" required:"true"`
}

type QParam

type QParam struct {
	Username             string `url:"username,omitempty"`
	Email                string `url:"email,omitempty"`
	Notes                string `url:"notes,omitempty"`
	Admin                string `url:"admin,omitempty"`
	AllowedIps           string `url:"allowed_ips,omitempty"`
	PasswordValidityDays string `url:"password_validity_days,omitempty"`
	SslRequired          string `url:"ssl_required,omitempty"`
}

type RemoteServer

type RemoteServer struct {
	Id                                int64  `json:"id,omitempty"`
	AuthenticationMethod              string `json:"authentication_method,omitempty"`
	Hostname                          string `json:"hostname,omitempty"`
	RemoteHomePath                    string `json:"remote_home_path,omitempty"`
	Name                              string `json:"name,omitempty"`
	Port                              int64  `json:"port,omitempty"`
	MaxConnections                    int64  `json:"max_connections,omitempty"`
	S3Bucket                          string `json:"s3_bucket,omitempty"`
	S3Region                          string `json:"s3_region,omitempty"`
	ServerCertificate                 string `json:"server_certificate,omitempty"`
	ServerHostKey                     string `json:"server_host_key,omitempty"`
	ServerType                        string `json:"server_type,omitempty"`
	Ssl                               string `json:"ssl,omitempty"`
	Username                          string `json:"username,omitempty"`
	GoogleCloudStorageBucket          string `json:"google_cloud_storage_bucket,omitempty"`
	GoogleCloudStorageProjectId       string `json:"google_cloud_storage_project_id,omitempty"`
	BackblazeB2S3Endpoint             string `json:"backblaze_b2_s3_endpoint,omitempty"`
	BackblazeB2Bucket                 string `json:"backblaze_b2_bucket,omitempty"`
	WasabiBucket                      string `json:"wasabi_bucket,omitempty"`
	WasabiRegion                      string `json:"wasabi_region,omitempty"`
	RackspaceUsername                 string `json:"rackspace_username,omitempty"`
	RackspaceRegion                   string `json:"rackspace_region,omitempty"`
	RackspaceContainer                string `json:"rackspace_container,omitempty"`
	AuthSetupLink                     string `json:"auth_setup_link,omitempty"`
	AuthStatus                        string `json:"auth_status,omitempty"`
	AuthAccountName                   string `json:"auth_account_name,omitempty"`
	OneDriveAccountType               string `json:"one_drive_account_type,omitempty"`
	AzureBlobStorageAccount           string `json:"azure_blob_storage_account,omitempty"`
	AzureBlobStorageContainer         string `json:"azure_blob_storage_container,omitempty"`
	S3CompatibleBucket                string `json:"s3_compatible_bucket,omitempty"`
	S3CompatibleRegion                string `json:"s3_compatible_region,omitempty"`
	S3CompatibleEndpoint              string `json:"s3_compatible_endpoint,omitempty"`
	EnableDedicatedIps                *bool  `json:"enable_dedicated_ips,omitempty"`
	AwsAccessKey                      string `json:"aws_access_key,omitempty"`
	AwsSecretKey                      string `json:"aws_secret_key,omitempty"`
	Password                          string `json:"password,omitempty"`
	PrivateKey                        string `json:"private_key,omitempty"`
	SslCertificate                    string `json:"ssl_certificate,omitempty"`
	GoogleCloudStorageCredentialsJson string `json:"google_cloud_storage_credentials_json,omitempty"`
	WasabiAccessKey                   string `json:"wasabi_access_key,omitempty"`
	WasabiSecretKey                   string `json:"wasabi_secret_key,omitempty"`
	BackblazeB2KeyId                  string `json:"backblaze_b2_key_id,omitempty"`
	BackblazeB2ApplicationKey         string `json:"backblaze_b2_application_key,omitempty"`
	RackspaceApiKey                   string `json:"rackspace_api_key,omitempty"`
	ResetAuthentication               *bool  `json:"reset_authentication,omitempty"`
	AzureBlobStorageAccessKey         string `json:"azure_blob_storage_access_key,omitempty"`
	S3CompatibleAccessKey             string `json:"s3_compatible_access_key,omitempty"`
	S3CompatibleSecretKey             string `json:"s3_compatible_secret_key,omitempty"`
}

func (*RemoteServer) UnmarshalJSON

func (r *RemoteServer) UnmarshalJSON(data []byte) error

type RemoteServerCollection

type RemoteServerCollection []RemoteServer

func (*RemoteServerCollection) ToSlice added in v1.0.167

func (r *RemoteServerCollection) ToSlice() *[]interface{}

func (*RemoteServerCollection) UnmarshalJSON

func (r *RemoteServerCollection) UnmarshalJSON(data []byte) error

type RemoteServerCreateParams

type RemoteServerCreateParams struct {
	AwsAccessKey                      string                              `url:"aws_access_key,omitempty" required:"false"`
	AwsSecretKey                      string                              `url:"aws_secret_key,omitempty" required:"false"`
	Password                          string                              `url:"password,omitempty" required:"false"`
	PrivateKey                        string                              `url:"private_key,omitempty" required:"false"`
	SslCertificate                    string                              `url:"ssl_certificate,omitempty" required:"false"`
	GoogleCloudStorageCredentialsJson string                              `url:"google_cloud_storage_credentials_json,omitempty" required:"false"`
	WasabiAccessKey                   string                              `url:"wasabi_access_key,omitempty" required:"false"`
	WasabiSecretKey                   string                              `url:"wasabi_secret_key,omitempty" required:"false"`
	BackblazeB2KeyId                  string                              `url:"backblaze_b2_key_id,omitempty" required:"false"`
	BackblazeB2ApplicationKey         string                              `url:"backblaze_b2_application_key,omitempty" required:"false"`
	RackspaceApiKey                   string                              `url:"rackspace_api_key,omitempty" required:"false"`
	ResetAuthentication               *bool                               `url:"reset_authentication,omitempty" required:"false"`
	AzureBlobStorageAccessKey         string                              `url:"azure_blob_storage_access_key,omitempty" required:"false"`
	Hostname                          string                              `url:"hostname,omitempty" required:"false"`
	Name                              string                              `url:"name,omitempty" required:"false"`
	MaxConnections                    int64                               `url:"max_connections,omitempty" required:"false"`
	Port                              int64                               `url:"port,omitempty" required:"false"`
	S3Bucket                          string                              `url:"s3_bucket,omitempty" required:"false"`
	S3Region                          string                              `url:"s3_region,omitempty" required:"false"`
	ServerCertificate                 RemoteServerServerCertificateEnum   `url:"server_certificate,omitempty" required:"false"`
	ServerHostKey                     string                              `url:"server_host_key,omitempty" required:"false"`
	ServerType                        RemoteServerServerTypeEnum          `url:"server_type,omitempty" required:"false"`
	Ssl                               RemoteServerSslEnum                 `url:"ssl,omitempty" required:"false"`
	Username                          string                              `url:"username,omitempty" required:"false"`
	GoogleCloudStorageBucket          string                              `url:"google_cloud_storage_bucket,omitempty" required:"false"`
	GoogleCloudStorageProjectId       string                              `url:"google_cloud_storage_project_id,omitempty" required:"false"`
	BackblazeB2Bucket                 string                              `url:"backblaze_b2_bucket,omitempty" required:"false"`
	BackblazeB2S3Endpoint             string                              `url:"backblaze_b2_s3_endpoint,omitempty" required:"false"`
	WasabiBucket                      string                              `url:"wasabi_bucket,omitempty" required:"false"`
	WasabiRegion                      string                              `url:"wasabi_region,omitempty" required:"false"`
	RackspaceUsername                 string                              `url:"rackspace_username,omitempty" required:"false"`
	RackspaceRegion                   string                              `url:"rackspace_region,omitempty" required:"false"`
	RackspaceContainer                string                              `url:"rackspace_container,omitempty" required:"false"`
	OneDriveAccountType               RemoteServerOneDriveAccountTypeEnum `url:"one_drive_account_type,omitempty" required:"false"`
	AzureBlobStorageAccount           string                              `url:"azure_blob_storage_account,omitempty" required:"false"`
	AzureBlobStorageContainer         string                              `url:"azure_blob_storage_container,omitempty" required:"false"`
	S3CompatibleBucket                string                              `url:"s3_compatible_bucket,omitempty" required:"false"`
	S3CompatibleRegion                string                              `url:"s3_compatible_region,omitempty" required:"false"`
	S3CompatibleEndpoint              string                              `url:"s3_compatible_endpoint,omitempty" required:"false"`
	EnableDedicatedIps                *bool                               `url:"enable_dedicated_ips,omitempty" required:"false"`
	S3CompatibleAccessKey             string                              `url:"s3_compatible_access_key,omitempty" required:"false"`
	S3CompatibleSecretKey             string                              `url:"s3_compatible_secret_key,omitempty" required:"false"`
}

type RemoteServerDeleteParams

type RemoteServerDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type RemoteServerFindParams

type RemoteServerFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type RemoteServerListParams

type RemoteServerListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type RemoteServerOneDriveAccountTypeEnum added in v1.0.838

type RemoteServerOneDriveAccountTypeEnum string

func (RemoteServerOneDriveAccountTypeEnum) Enum added in v1.0.838

func (RemoteServerOneDriveAccountTypeEnum) String added in v1.0.838

type RemoteServerServerCertificateEnum added in v1.0.838

type RemoteServerServerCertificateEnum string

func (RemoteServerServerCertificateEnum) Enum added in v1.0.838

func (RemoteServerServerCertificateEnum) String added in v1.0.838

type RemoteServerServerTypeEnum added in v1.0.838

type RemoteServerServerTypeEnum string

func (RemoteServerServerTypeEnum) Enum added in v1.0.838

func (RemoteServerServerTypeEnum) String added in v1.0.838

type RemoteServerSslEnum added in v1.0.838

type RemoteServerSslEnum string

func (RemoteServerSslEnum) Enum added in v1.0.838

func (RemoteServerSslEnum) String added in v1.0.838

func (u RemoteServerSslEnum) String() string

type RemoteServerUpdateParams

type RemoteServerUpdateParams struct {
	Id                                int64                               `url:"-,omitempty" required:"true"`
	AwsAccessKey                      string                              `url:"aws_access_key,omitempty" required:"false"`
	AwsSecretKey                      string                              `url:"aws_secret_key,omitempty" required:"false"`
	Password                          string                              `url:"password,omitempty" required:"false"`
	PrivateKey                        string                              `url:"private_key,omitempty" required:"false"`
	SslCertificate                    string                              `url:"ssl_certificate,omitempty" required:"false"`
	GoogleCloudStorageCredentialsJson string                              `url:"google_cloud_storage_credentials_json,omitempty" required:"false"`
	WasabiAccessKey                   string                              `url:"wasabi_access_key,omitempty" required:"false"`
	WasabiSecretKey                   string                              `url:"wasabi_secret_key,omitempty" required:"false"`
	BackblazeB2KeyId                  string                              `url:"backblaze_b2_key_id,omitempty" required:"false"`
	BackblazeB2ApplicationKey         string                              `url:"backblaze_b2_application_key,omitempty" required:"false"`
	RackspaceApiKey                   string                              `url:"rackspace_api_key,omitempty" required:"false"`
	ResetAuthentication               *bool                               `url:"reset_authentication,omitempty" required:"false"`
	AzureBlobStorageAccessKey         string                              `url:"azure_blob_storage_access_key,omitempty" required:"false"`
	Hostname                          string                              `url:"hostname,omitempty" required:"false"`
	Name                              string                              `url:"name,omitempty" required:"false"`
	MaxConnections                    int64                               `url:"max_connections,omitempty" required:"false"`
	Port                              int64                               `url:"port,omitempty" required:"false"`
	S3Bucket                          string                              `url:"s3_bucket,omitempty" required:"false"`
	S3Region                          string                              `url:"s3_region,omitempty" required:"false"`
	ServerCertificate                 RemoteServerServerCertificateEnum   `url:"server_certificate,omitempty" required:"false"`
	ServerHostKey                     string                              `url:"server_host_key,omitempty" required:"false"`
	ServerType                        RemoteServerServerTypeEnum          `url:"server_type,omitempty" required:"false"`
	Ssl                               RemoteServerSslEnum                 `url:"ssl,omitempty" required:"false"`
	Username                          string                              `url:"username,omitempty" required:"false"`
	GoogleCloudStorageBucket          string                              `url:"google_cloud_storage_bucket,omitempty" required:"false"`
	GoogleCloudStorageProjectId       string                              `url:"google_cloud_storage_project_id,omitempty" required:"false"`
	BackblazeB2Bucket                 string                              `url:"backblaze_b2_bucket,omitempty" required:"false"`
	BackblazeB2S3Endpoint             string                              `url:"backblaze_b2_s3_endpoint,omitempty" required:"false"`
	WasabiBucket                      string                              `url:"wasabi_bucket,omitempty" required:"false"`
	WasabiRegion                      string                              `url:"wasabi_region,omitempty" required:"false"`
	RackspaceUsername                 string                              `url:"rackspace_username,omitempty" required:"false"`
	RackspaceRegion                   string                              `url:"rackspace_region,omitempty" required:"false"`
	RackspaceContainer                string                              `url:"rackspace_container,omitempty" required:"false"`
	OneDriveAccountType               RemoteServerOneDriveAccountTypeEnum `url:"one_drive_account_type,omitempty" required:"false"`
	AzureBlobStorageAccount           string                              `url:"azure_blob_storage_account,omitempty" required:"false"`
	AzureBlobStorageContainer         string                              `url:"azure_blob_storage_container,omitempty" required:"false"`
	S3CompatibleBucket                string                              `url:"s3_compatible_bucket,omitempty" required:"false"`
	S3CompatibleRegion                string                              `url:"s3_compatible_region,omitempty" required:"false"`
	S3CompatibleEndpoint              string                              `url:"s3_compatible_endpoint,omitempty" required:"false"`
	EnableDedicatedIps                *bool                               `url:"enable_dedicated_ips,omitempty" required:"false"`
	S3CompatibleAccessKey             string                              `url:"s3_compatible_access_key,omitempty" required:"false"`
	S3CompatibleSecretKey             string                              `url:"s3_compatible_secret_key,omitempty" required:"false"`
}

type Request

type Request struct {
	Id              int64  `json:"id,omitempty"`
	Path            string `json:"path,omitempty"`
	Source          string `json:"source,omitempty"`
	Destination     string `json:"destination,omitempty"`
	AutomationId    string `json:"automation_id,omitempty"`
	UserDisplayName string `json:"user_display_name,omitempty"`
	UserIds         string `json:"user_ids,omitempty"`
	GroupIds        string `json:"group_ids,omitempty"`
}

func (*Request) UnmarshalJSON

func (r *Request) UnmarshalJSON(data []byte) error

type RequestCollection

type RequestCollection []Request

func (*RequestCollection) ToSlice added in v1.0.167

func (r *RequestCollection) ToSlice() *[]interface{}

func (*RequestCollection) UnmarshalJSON

func (r *RequestCollection) UnmarshalJSON(data []byte) error

type RequestCreateParams

type RequestCreateParams struct {
	Path        string `url:"path,omitempty" required:"true"`
	Destination string `url:"destination,omitempty" required:"true"`
	UserIds     string `url:"user_ids,omitempty" required:"false"`
	GroupIds    string `url:"group_ids,omitempty" required:"false"`
}

type RequestDeleteParams

type RequestDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type RequestGetFolderParams added in v1.0.4

type RequestGetFolderParams struct {
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Mine    *bool           `url:"mine,omitempty" required:"false"`
	Path    string          `url:"-,omitempty" required:"true"`
}

type RequestListParams

type RequestListParams struct {
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Mine    *bool           `url:"mine,omitempty" required:"false"`
	Path    string          `url:"path,omitempty" required:"false"`
	lib.ListParams
}

type ResponseError

type ResponseError struct {
	Type         string          `json:"type"`
	Title        string          `json:"title"`
	ErrorMessage string          `json:"error"`
	HttpCode     int             `json:"http-code"`
	Errors       []ResponseError `json:"errors"`
	Data         Data            `json:"data"`
}

func (ResponseError) Error

func (e ResponseError) Error() string

func (ResponseError) IsNil

func (e ResponseError) IsNil() bool

func (*ResponseError) UnmarshalJSON

func (e *ResponseError) UnmarshalJSON(data []byte) error

type Session

type Session struct {
	Id                    string `json:"id,omitempty"`
	Language              string `json:"language,omitempty"`
	LoginToken            string `json:"login_token,omitempty"`
	LoginTokenDomain      string `json:"login_token_domain,omitempty"`
	MaxDirListingSize     int64  `json:"max_dir_listing_size,omitempty"`
	MultipleRegions       *bool  `json:"multiple_regions,omitempty"`
	ReadOnly              *bool  `json:"read_only,omitempty"`
	RootPath              string `json:"root_path,omitempty"`
	SiteId                int64  `json:"site_id,omitempty"`
	SslRequired           *bool  `json:"ssl_required,omitempty"`
	TlsDisabled           *bool  `json:"tls_disabled,omitempty"`
	TwoFactorSetupNeeded  *bool  `json:"two_factor_setup_needed,omitempty"`
	Allowed2faMethodSms   *bool  `json:"allowed_2fa_method_sms,omitempty"`
	Allowed2faMethodTotp  *bool  `json:"allowed_2fa_method_totp,omitempty"`
	Allowed2faMethodU2f   *bool  `json:"allowed_2fa_method_u2f,omitempty"`
	Allowed2faMethodYubi  *bool  `json:"allowed_2fa_method_yubi,omitempty"`
	UseProvidedModifiedAt *bool  `json:"use_provided_modified_at,omitempty"`
	WindowsModeFtp        *bool  `json:"windows_mode_ftp,omitempty"`
	Username              string `json:"username,omitempty"`
	Password              string `json:"password,omitempty"`
	Otp                   string `json:"otp,omitempty"`
	PartialSessionId      string `json:"partial_session_id,omitempty"`
}

func (*Session) UnmarshalJSON

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

type SessionCollection

type SessionCollection []Session

func (*SessionCollection) ToSlice added in v1.0.167

func (s *SessionCollection) ToSlice() *[]interface{}

func (*SessionCollection) UnmarshalJSON

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

type SessionCreateParams

type SessionCreateParams struct {
	Username         string `url:"username,omitempty" required:"false"`
	Password         string `url:"password,omitempty" required:"false"`
	Otp              string `url:"otp,omitempty" required:"false"`
	PartialSessionId string `url:"partial_session_id,omitempty" required:"false"`
}

type SettingsChange

type SettingsChange struct {
	ChangeDetails json.RawMessage `json:"change_details,omitempty"`
	CreatedAt     time.Time       `json:"created_at,omitempty"`
	UserId        int64           `json:"user_id,omitempty"`
}

func (*SettingsChange) UnmarshalJSON

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

type SettingsChangeCollection

type SettingsChangeCollection []SettingsChange

func (*SettingsChangeCollection) ToSlice added in v1.0.167

func (s *SettingsChangeCollection) ToSlice() *[]interface{}

func (*SettingsChangeCollection) UnmarshalJSON

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

type SettingsChangeListParams

type SettingsChangeListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}

type SignRequest added in v1.0.150

type SignRequest struct {
	Version   string `json:"version"`
	KeyHandle string `json:"keyHandle"`
}

type Site

type Site struct {
	Name                                 string    `json:"name,omitempty"`
	Allowed2faMethodSms                  *bool     `json:"allowed_2fa_method_sms,omitempty"`
	Allowed2faMethodTotp                 *bool     `json:"allowed_2fa_method_totp,omitempty"`
	Allowed2faMethodU2f                  *bool     `json:"allowed_2fa_method_u2f,omitempty"`
	Allowed2faMethodYubi                 *bool     `json:"allowed_2fa_method_yubi,omitempty"`
	AdminUserId                          int64     `json:"admin_user_id,omitempty"`
	AllowBundleNames                     *bool     `json:"allow_bundle_names,omitempty"`
	AllowedCountries                     string    `json:"allowed_countries,omitempty"`
	AllowedIps                           string    `json:"allowed_ips,omitempty"`
	AskAboutOverwrites                   *bool     `json:"ask_about_overwrites,omitempty"`
	BundleExpiration                     int64     `json:"bundle_expiration,omitempty"`
	BundlePasswordRequired               *bool     `json:"bundle_password_required,omitempty"`
	BundleRequireShareRecipient          *bool     `json:"bundle_require_share_recipient,omitempty"`
	Color2Left                           string    `json:"color2_left,omitempty"`
	Color2Link                           string    `json:"color2_link,omitempty"`
	Color2Text                           string    `json:"color2_text,omitempty"`
	Color2Top                            string    `json:"color2_top,omitempty"`
	Color2TopText                        string    `json:"color2_top_text,omitempty"`
	ContactName                          string    `json:"contact_name,omitempty"`
	CreatedAt                            time.Time `json:"created_at,omitempty"`
	Currency                             string    `json:"currency,omitempty"`
	CustomNamespace                      *bool     `json:"custom_namespace,omitempty"`
	DaysToRetainBackups                  int64     `json:"days_to_retain_backups,omitempty"`
	DefaultTimeZone                      string    `json:"default_time_zone,omitempty"`
	DesktopApp                           *bool     `json:"desktop_app,omitempty"`
	DesktopAppSessionIpPinning           *bool     `json:"desktop_app_session_ip_pinning,omitempty"`
	DesktopAppSessionLifetime            int64     `json:"desktop_app_session_lifetime,omitempty"`
	MobileApp                            *bool     `json:"mobile_app,omitempty"`
	MobileAppSessionIpPinning            *bool     `json:"mobile_app_session_ip_pinning,omitempty"`
	MobileAppSessionLifetime             int64     `json:"mobile_app_session_lifetime,omitempty"`
	DisallowedCountries                  string    `json:"disallowed_countries,omitempty"`
	DisableNotifications                 *bool     `json:"disable_notifications,omitempty"`
	DisablePasswordReset                 *bool     `json:"disable_password_reset,omitempty"`
	Domain                               string    `json:"domain,omitempty"`
	Email                                string    `json:"email,omitempty"`
	FtpEnabled                           *bool     `json:"ftp_enabled,omitempty"`
	ReplyToEmail                         string    `json:"reply_to_email,omitempty"`
	NonSsoGroupsAllowed                  *bool     `json:"non_sso_groups_allowed,omitempty"`
	NonSsoUsersAllowed                   *bool     `json:"non_sso_users_allowed,omitempty"`
	FolderPermissionsGroupsOnly          *bool     `json:"folder_permissions_groups_only,omitempty"`
	Hipaa                                *bool     `json:"hipaa,omitempty"`
	Icon128                              string    `json:"icon128,omitempty"`
	Icon16                               string    `json:"icon16,omitempty"`
	Icon32                               string    `json:"icon32,omitempty"`
	Icon48                               string    `json:"icon48,omitempty"`
	ImmutableFilesSetAt                  time.Time `json:"immutable_files_set_at,omitempty"`
	IncludePasswordInWelcomeEmail        *bool     `json:"include_password_in_welcome_email,omitempty"`
	Language                             string    `json:"language,omitempty"`
	LdapBaseDn                           string    `json:"ldap_base_dn,omitempty"`
	LdapDomain                           string    `json:"ldap_domain,omitempty"`
	LdapEnabled                          *bool     `json:"ldap_enabled,omitempty"`
	LdapGroupAction                      string    `json:"ldap_group_action,omitempty"`
	LdapGroupExclusion                   string    `json:"ldap_group_exclusion,omitempty"`
	LdapGroupInclusion                   string    `json:"ldap_group_inclusion,omitempty"`
	LdapHost                             string    `json:"ldap_host,omitempty"`
	LdapHost2                            string    `json:"ldap_host_2,omitempty"`
	LdapHost3                            string    `json:"ldap_host_3,omitempty"`
	LdapPort                             int64     `json:"ldap_port,omitempty"`
	LdapSecure                           *bool     `json:"ldap_secure,omitempty"`
	LdapType                             string    `json:"ldap_type,omitempty"`
	LdapUserAction                       string    `json:"ldap_user_action,omitempty"`
	LdapUserIncludeGroups                string    `json:"ldap_user_include_groups,omitempty"`
	LdapUsername                         string    `json:"ldap_username,omitempty"`
	LdapUsernameField                    string    `json:"ldap_username_field,omitempty"`
	LoginHelpText                        string    `json:"login_help_text,omitempty"`
	MaxPriorPasswords                    int64     `json:"max_prior_passwords,omitempty"`
	NextBillingAmount                    float32   `json:"next_billing_amount,omitempty"`
	NextBillingDate                      string    `json:"next_billing_date,omitempty"`
	OfficeIntegrationAvailable           *bool     `json:"office_integration_available,omitempty"`
	OncehubLink                          string    `json:"oncehub_link,omitempty"`
	OptOutGlobal                         *bool     `json:"opt_out_global,omitempty"`
	OverageNotifiedAt                    time.Time `json:"overage_notified_at,omitempty"`
	OverageNotify                        *bool     `json:"overage_notify,omitempty"`
	Overdue                              *bool     `json:"overdue,omitempty"`
	PasswordMinLength                    int64     `json:"password_min_length,omitempty"`
	PasswordRequireLetter                *bool     `json:"password_require_letter,omitempty"`
	PasswordRequireMixed                 *bool     `json:"password_require_mixed,omitempty"`
	PasswordRequireNumber                *bool     `json:"password_require_number,omitempty"`
	PasswordRequireSpecial               *bool     `json:"password_require_special,omitempty"`
	PasswordRequireUnbreached            *bool     `json:"password_require_unbreached,omitempty"`
	PasswordRequirementsApplyToBundles   *bool     `json:"password_requirements_apply_to_bundles,omitempty"`
	PasswordValidityDays                 int64     `json:"password_validity_days,omitempty"`
	Phone                                string    `json:"phone,omitempty"`
	Require2fa                           *bool     `json:"require_2fa,omitempty"`
	Require2faStopTime                   time.Time `json:"require_2fa_stop_time,omitempty"`
	Require2faUserType                   string    `json:"require_2fa_user_type,omitempty"`
	Session                              string    `json:"session,omitempty"`
	SessionPinnedByIp                    *bool     `json:"session_pinned_by_ip,omitempty"`
	SftpEnabled                          *bool     `json:"sftp_enabled,omitempty"`
	SftpUserRootEnabled                  *bool     `json:"sftp_user_root_enabled,omitempty"`
	SharingEnabled                       *bool     `json:"sharing_enabled,omitempty"`
	ShowRequestAccessLink                *bool     `json:"show_request_access_link,omitempty"`
	SiteFooter                           string    `json:"site_footer,omitempty"`
	SiteHeader                           string    `json:"site_header,omitempty"`
	SmtpAddress                          string    `json:"smtp_address,omitempty"`
	SmtpAuthentication                   string    `json:"smtp_authentication,omitempty"`
	SmtpFrom                             string    `json:"smtp_from,omitempty"`
	SmtpPort                             int64     `json:"smtp_port,omitempty"`
	SmtpUsername                         string    `json:"smtp_username,omitempty"`
	SessionExpiry                        float32   `json:"session_expiry,omitempty"`
	SslRequired                          *bool     `json:"ssl_required,omitempty"`
	Subdomain                            string    `json:"subdomain,omitempty"`
	SwitchToPlanDate                     time.Time `json:"switch_to_plan_date,omitempty"`
	TlsDisabled                          *bool     `json:"tls_disabled,omitempty"`
	TrialDaysLeft                        int64     `json:"trial_days_left,omitempty"`
	TrialUntil                           time.Time `json:"trial_until,omitempty"`
	UpdatedAt                            time.Time `json:"updated_at,omitempty"`
	UseProvidedModifiedAt                *bool     `json:"use_provided_modified_at,omitempty"`
	User                                 string    `json:"user,omitempty"`
	UserLockout                          *bool     `json:"user_lockout,omitempty"`
	UserLockoutLockPeriod                int64     `json:"user_lockout_lock_period,omitempty"`
	UserLockoutTries                     int64     `json:"user_lockout_tries,omitempty"`
	UserLockoutWithin                    int64     `json:"user_lockout_within,omitempty"`
	UserRequestsEnabled                  *bool     `json:"user_requests_enabled,omitempty"`
	WelcomeCustomText                    string    `json:"welcome_custom_text,omitempty"`
	WelcomeEmailCc                       string    `json:"welcome_email_cc,omitempty"`
	WelcomeEmailEnabled                  *bool     `json:"welcome_email_enabled,omitempty"`
	WelcomeScreen                        string    `json:"welcome_screen,omitempty"`
	WindowsModeFtp                       *bool     `json:"windows_mode_ftp,omitempty"`
	DisableUsersFromInactivityPeriodDays int64     `json:"disable_users_from_inactivity_period_days,omitempty"`
}

func (*Site) UnmarshalJSON

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

type SiteCollection

type SiteCollection []Site

func (*SiteCollection) ToSlice added in v1.0.167

func (s *SiteCollection) ToSlice() *[]interface{}

func (*SiteCollection) UnmarshalJSON

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

type SiteUpdateParams

type SiteUpdateParams struct {
	Name                                 string    `url:"name,omitempty" required:"false"`
	Subdomain                            string    `url:"subdomain,omitempty" required:"false"`
	Domain                               string    `url:"domain,omitempty" required:"false"`
	Email                                string    `url:"email,omitempty" required:"false"`
	ReplyToEmail                         string    `url:"reply_to_email,omitempty" required:"false"`
	AllowBundleNames                     *bool     `url:"allow_bundle_names,omitempty" required:"false"`
	BundleExpiration                     int64     `url:"bundle_expiration,omitempty" required:"false"`
	OverageNotify                        *bool     `url:"overage_notify,omitempty" required:"false"`
	WelcomeEmailEnabled                  *bool     `url:"welcome_email_enabled,omitempty" required:"false"`
	AskAboutOverwrites                   *bool     `url:"ask_about_overwrites,omitempty" required:"false"`
	ShowRequestAccessLink                *bool     `url:"show_request_access_link,omitempty" required:"false"`
	WelcomeEmailCc                       string    `url:"welcome_email_cc,omitempty" required:"false"`
	WelcomeCustomText                    string    `url:"welcome_custom_text,omitempty" required:"false"`
	Language                             string    `url:"language,omitempty" required:"false"`
	WindowsModeFtp                       *bool     `url:"windows_mode_ftp,omitempty" required:"false"`
	DefaultTimeZone                      string    `url:"default_time_zone,omitempty" required:"false"`
	DesktopApp                           *bool     `url:"desktop_app,omitempty" required:"false"`
	DesktopAppSessionIpPinning           *bool     `url:"desktop_app_session_ip_pinning,omitempty" required:"false"`
	DesktopAppSessionLifetime            int64     `url:"desktop_app_session_lifetime,omitempty" required:"false"`
	MobileApp                            *bool     `url:"mobile_app,omitempty" required:"false"`
	MobileAppSessionIpPinning            *bool     `url:"mobile_app_session_ip_pinning,omitempty" required:"false"`
	MobileAppSessionLifetime             int64     `url:"mobile_app_session_lifetime,omitempty" required:"false"`
	FolderPermissionsGroupsOnly          *bool     `url:"folder_permissions_groups_only,omitempty" required:"false"`
	WelcomeScreen                        string    `url:"welcome_screen,omitempty" required:"false"`
	OfficeIntegrationAvailable           *bool     `url:"office_integration_available,omitempty" required:"false"`
	SessionExpiry                        float32   `url:"session_expiry,omitempty" required:"false"`
	SslRequired                          *bool     `url:"ssl_required,omitempty" required:"false"`
	TlsDisabled                          *bool     `url:"tls_disabled,omitempty" required:"false"`
	UserLockout                          *bool     `url:"user_lockout,omitempty" required:"false"`
	UserLockoutTries                     int64     `url:"user_lockout_tries,omitempty" required:"false"`
	UserLockoutWithin                    int64     `url:"user_lockout_within,omitempty" required:"false"`
	UserLockoutLockPeriod                int64     `url:"user_lockout_lock_period,omitempty" required:"false"`
	IncludePasswordInWelcomeEmail        *bool     `url:"include_password_in_welcome_email,omitempty" required:"false"`
	AllowedCountries                     string    `url:"allowed_countries,omitempty" required:"false"`
	AllowedIps                           string    `url:"allowed_ips,omitempty" required:"false"`
	DisallowedCountries                  string    `url:"disallowed_countries,omitempty" required:"false"`
	DaysToRetainBackups                  int64     `url:"days_to_retain_backups,omitempty" required:"false"`
	MaxPriorPasswords                    int64     `url:"max_prior_passwords,omitempty" required:"false"`
	PasswordValidityDays                 int64     `url:"password_validity_days,omitempty" required:"false"`
	PasswordMinLength                    int64     `url:"password_min_length,omitempty" required:"false"`
	PasswordRequireLetter                *bool     `url:"password_require_letter,omitempty" required:"false"`
	PasswordRequireMixed                 *bool     `url:"password_require_mixed,omitempty" required:"false"`
	PasswordRequireSpecial               *bool     `url:"password_require_special,omitempty" required:"false"`
	PasswordRequireNumber                *bool     `url:"password_require_number,omitempty" required:"false"`
	PasswordRequireUnbreached            *bool     `url:"password_require_unbreached,omitempty" required:"false"`
	SftpUserRootEnabled                  *bool     `url:"sftp_user_root_enabled,omitempty" required:"false"`
	DisablePasswordReset                 *bool     `url:"disable_password_reset,omitempty" required:"false"`
	ImmutableFiles                       *bool     `url:"immutable_files,omitempty" required:"false"`
	SessionPinnedByIp                    *bool     `url:"session_pinned_by_ip,omitempty" required:"false"`
	BundlePasswordRequired               *bool     `url:"bundle_password_required,omitempty" required:"false"`
	BundleRequireShareRecipient          *bool     `url:"bundle_require_share_recipient,omitempty" required:"false"`
	PasswordRequirementsApplyToBundles   *bool     `url:"password_requirements_apply_to_bundles,omitempty" required:"false"`
	OptOutGlobal                         *bool     `url:"opt_out_global,omitempty" required:"false"`
	UseProvidedModifiedAt                *bool     `url:"use_provided_modified_at,omitempty" required:"false"`
	CustomNamespace                      *bool     `url:"custom_namespace,omitempty" required:"false"`
	DisableUsersFromInactivityPeriodDays int64     `url:"disable_users_from_inactivity_period_days,omitempty" required:"false"`
	NonSsoGroupsAllowed                  *bool     `url:"non_sso_groups_allowed,omitempty" required:"false"`
	NonSsoUsersAllowed                   *bool     `url:"non_sso_users_allowed,omitempty" required:"false"`
	SharingEnabled                       *bool     `url:"sharing_enabled,omitempty" required:"false"`
	UserRequestsEnabled                  *bool     `url:"user_requests_enabled,omitempty" required:"false"`
	FtpEnabled                           *bool     `url:"ftp_enabled,omitempty" required:"false"`
	SftpEnabled                          *bool     `url:"sftp_enabled,omitempty" required:"false"`
	Allowed2faMethodSms                  *bool     `url:"allowed_2fa_method_sms,omitempty" required:"false"`
	Allowed2faMethodU2f                  *bool     `url:"allowed_2fa_method_u2f,omitempty" required:"false"`
	Allowed2faMethodTotp                 *bool     `url:"allowed_2fa_method_totp,omitempty" required:"false"`
	Allowed2faMethodYubi                 *bool     `url:"allowed_2fa_method_yubi,omitempty" required:"false"`
	Require2fa                           *bool     `url:"require_2fa,omitempty" required:"false"`
	Require2faUserType                   string    `url:"require_2fa_user_type,omitempty" required:"false"`
	Color2Top                            string    `url:"color2_top,omitempty" required:"false"`
	Color2Left                           string    `url:"color2_left,omitempty" required:"false"`
	Color2Link                           string    `url:"color2_link,omitempty" required:"false"`
	Color2Text                           string    `url:"color2_text,omitempty" required:"false"`
	Color2TopText                        string    `url:"color2_top_text,omitempty" required:"false"`
	SiteHeader                           string    `url:"site_header,omitempty" required:"false"`
	SiteFooter                           string    `url:"site_footer,omitempty" required:"false"`
	LoginHelpText                        string    `url:"login_help_text,omitempty" required:"false"`
	SmtpAddress                          string    `url:"smtp_address,omitempty" required:"false"`
	SmtpAuthentication                   string    `url:"smtp_authentication,omitempty" required:"false"`
	SmtpFrom                             string    `url:"smtp_from,omitempty" required:"false"`
	SmtpUsername                         string    `url:"smtp_username,omitempty" required:"false"`
	SmtpPort                             int64     `url:"smtp_port,omitempty" required:"false"`
	LdapEnabled                          *bool     `url:"ldap_enabled,omitempty" required:"false"`
	LdapType                             string    `url:"ldap_type,omitempty" required:"false"`
	LdapHost                             string    `url:"ldap_host,omitempty" required:"false"`
	LdapHost2                            string    `url:"ldap_host_2,omitempty" required:"false"`
	LdapHost3                            string    `url:"ldap_host_3,omitempty" required:"false"`
	LdapPort                             int64     `url:"ldap_port,omitempty" required:"false"`
	LdapSecure                           *bool     `url:"ldap_secure,omitempty" required:"false"`
	LdapUsername                         string    `url:"ldap_username,omitempty" required:"false"`
	LdapUsernameField                    string    `url:"ldap_username_field,omitempty" required:"false"`
	LdapDomain                           string    `url:"ldap_domain,omitempty" required:"false"`
	LdapUserAction                       string    `url:"ldap_user_action,omitempty" required:"false"`
	LdapGroupAction                      string    `url:"ldap_group_action,omitempty" required:"false"`
	LdapUserIncludeGroups                string    `url:"ldap_user_include_groups,omitempty" required:"false"`
	LdapGroupExclusion                   string    `url:"ldap_group_exclusion,omitempty" required:"false"`
	LdapGroupInclusion                   string    `url:"ldap_group_inclusion,omitempty" required:"false"`
	LdapBaseDn                           string    `url:"ldap_base_dn,omitempty" required:"false"`
	Icon16File                           io.Writer `url:"icon16_file,omitempty" required:"false"`
	Icon16Delete                         *bool     `url:"icon16_delete,omitempty" required:"false"`
	Icon32File                           io.Writer `url:"icon32_file,omitempty" required:"false"`
	Icon32Delete                         *bool     `url:"icon32_delete,omitempty" required:"false"`
	Icon48File                           io.Writer `url:"icon48_file,omitempty" required:"false"`
	Icon48Delete                         *bool     `url:"icon48_delete,omitempty" required:"false"`
	Icon128File                          io.Writer `url:"icon128_file,omitempty" required:"false"`
	Icon128Delete                        *bool     `url:"icon128_delete,omitempty" required:"false"`
	LogoFile                             io.Writer `url:"logo_file,omitempty" required:"false"`
	LogoDelete                           *bool     `url:"logo_delete,omitempty" required:"false"`
	Disable2faWithDelay                  *bool     `url:"disable_2fa_with_delay,omitempty" required:"false"`
	LdapPasswordChange                   string    `url:"ldap_password_change,omitempty" required:"false"`
	LdapPasswordChangeConfirmation       string    `url:"ldap_password_change_confirmation,omitempty" required:"false"`
	SmtpPassword                         string    `url:"smtp_password,omitempty" required:"false"`
}

type SsoStrategy

type SsoStrategy struct {
	Protocol                       string `json:"protocol,omitempty"`
	Provider                       string `json:"provider,omitempty"`
	Label                          string `json:"label,omitempty"`
	LogoUrl                        string `json:"logo_url,omitempty"`
	Id                             int64  `json:"id,omitempty"`
	SamlProviderCertFingerprint    string `json:"saml_provider_cert_fingerprint,omitempty"`
	SamlProviderIssuerUrl          string `json:"saml_provider_issuer_url,omitempty"`
	SamlProviderMetadataContent    string `json:"saml_provider_metadata_content,omitempty"`
	SamlProviderMetadataUrl        string `json:"saml_provider_metadata_url,omitempty"`
	SamlProviderSloTargetUrl       string `json:"saml_provider_slo_target_url,omitempty"`
	SamlProviderSsoTargetUrl       string `json:"saml_provider_sso_target_url,omitempty"`
	ScimAuthenticationMethod       string `json:"scim_authentication_method,omitempty"`
	ScimUsername                   string `json:"scim_username,omitempty"`
	ScimOauthAccessToken           string `json:"scim_oauth_access_token,omitempty"`
	ScimOauthAccessTokenExpiresAt  string `json:"scim_oauth_access_token_expires_at,omitempty"`
	Subdomain                      string `json:"subdomain,omitempty"`
	ProvisionUsers                 *bool  `json:"provision_users,omitempty"`
	ProvisionGroups                *bool  `json:"provision_groups,omitempty"`
	DeprovisionUsers               *bool  `json:"deprovision_users,omitempty"`
	DeprovisionGroups              *bool  `json:"deprovision_groups,omitempty"`
	DeprovisionBehavior            string `json:"deprovision_behavior,omitempty"`
	ProvisionGroupDefault          string `json:"provision_group_default,omitempty"`
	ProvisionGroupExclusion        string `json:"provision_group_exclusion,omitempty"`
	ProvisionGroupInclusion        string `json:"provision_group_inclusion,omitempty"`
	ProvisionGroupRequired         string `json:"provision_group_required,omitempty"`
	ProvisionEmailSignupGroups     string `json:"provision_email_signup_groups,omitempty"`
	ProvisionSiteAdminGroups       string `json:"provision_site_admin_groups,omitempty"`
	ProvisionAttachmentsPermission *bool  `json:"provision_attachments_permission,omitempty"`
	ProvisionDavPermission         *bool  `json:"provision_dav_permission,omitempty"`
	ProvisionFtpPermission         *bool  `json:"provision_ftp_permission,omitempty"`
	ProvisionSftpPermission        *bool  `json:"provision_sftp_permission,omitempty"`
	ProvisionTimeZone              string `json:"provision_time_zone,omitempty"`
	ProvisionCompany               string `json:"provision_company,omitempty"`
	LdapBaseDn                     string `json:"ldap_base_dn,omitempty"`
	LdapDomain                     string `json:"ldap_domain,omitempty"`
	Enabled                        *bool  `json:"enabled,omitempty"`
	LdapHost                       string `json:"ldap_host,omitempty"`
	LdapHost2                      string `json:"ldap_host_2,omitempty"`
	LdapHost3                      string `json:"ldap_host_3,omitempty"`
	LdapPort                       int64  `json:"ldap_port,omitempty"`
	LdapSecure                     *bool  `json:"ldap_secure,omitempty"`
	LdapUsername                   string `json:"ldap_username,omitempty"`
	LdapUsernameField              string `json:"ldap_username_field,omitempty"`
}

func (*SsoStrategy) UnmarshalJSON

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

type SsoStrategyCollection

type SsoStrategyCollection []SsoStrategy

func (*SsoStrategyCollection) ToSlice added in v1.0.167

func (s *SsoStrategyCollection) ToSlice() *[]interface{}

func (*SsoStrategyCollection) UnmarshalJSON

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

type SsoStrategyFindParams

type SsoStrategyFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type SsoStrategyListParams

type SsoStrategyListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type Status

type Status struct {
	Code          int64  `json:"code,omitempty"`
	Message       string `json:"message,omitempty"`
	Status        string `json:"status,omitempty"`
	Data          string `json:"data,omitempty"`
	Errors        string `json:"errors,omitempty"`
	ClickwrapId   int64  `json:"clickwrap_id,omitempty"`
	ClickwrapBody string `json:"clickwrap_body,omitempty"`
}

func (*Status) UnmarshalJSON

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

type StatusCollection

type StatusCollection []Status

func (*StatusCollection) ToSlice added in v1.0.167

func (s *StatusCollection) ToSlice() *[]interface{}

func (*StatusCollection) UnmarshalJSON

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

type Style

type Style struct {
	Id        int64     `json:"id,omitempty"`
	Path      string    `json:"path,omitempty"`
	Thumbnail string    `json:"thumbnail,omitempty"`
	File      io.Reader `json:"file,omitempty"`
}

func (*Style) UnmarshalJSON

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

type StyleCollection

type StyleCollection []Style

func (*StyleCollection) ToSlice added in v1.0.167

func (s *StyleCollection) ToSlice() *[]interface{}

func (*StyleCollection) UnmarshalJSON

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

type StyleDeleteParams

type StyleDeleteParams struct {
	Path string `url:"-,omitempty" required:"true"`
}

type StyleFindParams

type StyleFindParams struct {
	Path string `url:"-,omitempty" required:"true"`
}

type StyleUpdateParams

type StyleUpdateParams struct {
	Path string    `url:"-,omitempty" required:"true"`
	File io.Writer `url:"file,omitempty" required:"true"`
}

type SyncJob added in v1.0.174

type SyncJob struct {
	QueuedAt             time.Time `json:"queued_at,omitempty"`
	UpdatedAt            time.Time `json:"updated_at,omitempty"`
	Status               string    `json:"status,omitempty"`
	RegionalWorkerStatus string    `json:"regional_worker_status,omitempty"`
	Uuid                 string    `json:"uuid,omitempty"`
	FolderBehaviorId     int64     `json:"folder_behavior_id,omitempty"`
}

func (*SyncJob) UnmarshalJSON added in v1.0.174

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

type SyncJobCollection added in v1.0.174

type SyncJobCollection []SyncJob

func (*SyncJobCollection) ToSlice added in v1.0.174

func (s *SyncJobCollection) ToSlice() *[]interface{}

func (*SyncJobCollection) UnmarshalJSON added in v1.0.174

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

type SyncJobListParams added in v1.0.174

type SyncJobListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type U2fSignRequests added in v1.0.150

type U2fSignRequests struct {
	AppId       string      `json:"app_id"`
	Challenge   string      `json:"challenge"`
	SignRequest SignRequest `json:"sign_request"`
}

type UsageDailySnapshot

type UsageDailySnapshot struct {
	Id                 int64     `json:"id,omitempty"`
	Date               date.Date `json:"date,omitempty"`
	CurrentStorage     int64     `json:"current_storage,omitempty"`
	UsageByTopLevelDir []string  `json:"usage_by_top_level_dir,omitempty"`
}

func (*UsageDailySnapshot) UnmarshalJSON

func (u *UsageDailySnapshot) UnmarshalJSON(data []byte) error

type UsageDailySnapshotCollection

type UsageDailySnapshotCollection []UsageDailySnapshot

func (*UsageDailySnapshotCollection) ToSlice added in v1.0.167

func (u *UsageDailySnapshotCollection) ToSlice() *[]interface{}

func (*UsageDailySnapshotCollection) UnmarshalJSON

func (u *UsageDailySnapshotCollection) UnmarshalJSON(data []byte) error

type UsageDailySnapshotListParams

type UsageDailySnapshotListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}

type UsageSnapshot

type UsageSnapshot struct {
	Id                           int64           `json:"id,omitempty"`
	StartAt                      time.Time       `json:"start_at,omitempty"`
	EndAt                        time.Time       `json:"end_at,omitempty"`
	CreatedAt                    time.Time       `json:"created_at,omitempty"`
	HighWaterUserCount           float32         `json:"high_water_user_count,omitempty"`
	CurrentStorage               float32         `json:"current_storage,omitempty"`
	HighWaterStorage             float32         `json:"high_water_storage,omitempty"`
	TotalDownloads               int64           `json:"total_downloads,omitempty"`
	TotalUploads                 int64           `json:"total_uploads,omitempty"`
	UpdatedAt                    time.Time       `json:"updated_at,omitempty"`
	UsageByTopLevelDir           json.RawMessage `json:"usage_by_top_level_dir,omitempty"`
	RootStorage                  float32         `json:"root_storage,omitempty"`
	DeletedFilesCountedInMinimum float32         `json:"deleted_files_counted_in_minimum,omitempty"`
	DeletedFilesStorage          float32         `json:"deleted_files_storage,omitempty"`
}

func (*UsageSnapshot) UnmarshalJSON

func (u *UsageSnapshot) UnmarshalJSON(data []byte) error

type UsageSnapshotCollection

type UsageSnapshotCollection []UsageSnapshot

func (*UsageSnapshotCollection) ToSlice added in v1.0.167

func (u *UsageSnapshotCollection) ToSlice() *[]interface{}

func (*UsageSnapshotCollection) UnmarshalJSON

func (u *UsageSnapshotCollection) UnmarshalJSON(data []byte) error

type UsageSnapshotListParams

type UsageSnapshotListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type User

type User struct {
	Id                         int64     `json:"id,omitempty"`
	Username                   string    `json:"username,omitempty"`
	AdminGroupIds              []int64   `json:"admin_group_ids,omitempty"`
	AllowedIps                 string    `json:"allowed_ips,omitempty"`
	AttachmentsPermission      *bool     `json:"attachments_permission,omitempty"`
	ApiKeysCount               int64     `json:"api_keys_count,omitempty"`
	AuthenticateUntil          time.Time `json:"authenticate_until,omitempty"`
	AuthenticationMethod       string    `json:"authentication_method,omitempty"`
	AvatarUrl                  string    `json:"avatar_url,omitempty"`
	BillingPermission          *bool     `json:"billing_permission,omitempty"`
	BypassSiteAllowedIps       *bool     `json:"bypass_site_allowed_ips,omitempty"`
	BypassInactiveDisable      *bool     `json:"bypass_inactive_disable,omitempty"`
	CreatedAt                  time.Time `json:"created_at,omitempty"`
	DavPermission              *bool     `json:"dav_permission,omitempty"`
	Disabled                   *bool     `json:"disabled,omitempty"`
	Email                      string    `json:"email,omitempty"`
	FtpPermission              *bool     `json:"ftp_permission,omitempty"`
	GroupIds                   string    `json:"group_ids,omitempty"`
	HeaderText                 string    `json:"header_text,omitempty"`
	Language                   string    `json:"language,omitempty"`
	LastLoginAt                time.Time `json:"last_login_at,omitempty"`
	LastProtocolCipher         string    `json:"last_protocol_cipher,omitempty"`
	LockoutExpires             time.Time `json:"lockout_expires,omitempty"`
	Name                       string    `json:"name,omitempty"`
	Company                    string    `json:"company,omitempty"`
	Notes                      string    `json:"notes,omitempty"`
	NotificationDailySendTime  int64     `json:"notification_daily_send_time,omitempty"`
	OfficeIntegrationEnabled   *bool     `json:"office_integration_enabled,omitempty"`
	PasswordSetAt              time.Time `json:"password_set_at,omitempty"`
	PasswordValidityDays       int64     `json:"password_validity_days,omitempty"`
	PublicKeysCount            int64     `json:"public_keys_count,omitempty"`
	ReceiveAdminAlerts         *bool     `json:"receive_admin_alerts,omitempty"`
	Require2fa                 string    `json:"require_2fa,omitempty"`
	Active2fa                  *bool     `json:"active_2fa,omitempty"`
	RequirePasswordChange      *bool     `json:"require_password_change,omitempty"`
	PasswordExpired            *bool     `json:"password_expired,omitempty"`
	RestapiPermission          *bool     `json:"restapi_permission,omitempty"`
	SelfManaged                *bool     `json:"self_managed,omitempty"`
	SftpPermission             *bool     `json:"sftp_permission,omitempty"`
	SiteAdmin                  *bool     `json:"site_admin,omitempty"`
	SkipWelcomeScreen          *bool     `json:"skip_welcome_screen,omitempty"`
	SslRequired                string    `json:"ssl_required,omitempty"`
	SsoStrategyId              int64     `json:"sso_strategy_id,omitempty"`
	SubscribeToNewsletter      *bool     `json:"subscribe_to_newsletter,omitempty"`
	ExternallyManaged          *bool     `json:"externally_managed,omitempty"`
	TimeZone                   string    `json:"time_zone,omitempty"`
	TypeOf2fa                  string    `json:"type_of_2fa,omitempty"`
	UserRoot                   string    `json:"user_root,omitempty"`
	AvatarFile                 io.Reader `json:"avatar_file,omitempty"`
	AvatarDelete               *bool     `json:"avatar_delete,omitempty"`
	ChangePassword             string    `json:"change_password,omitempty"`
	ChangePasswordConfirmation string    `json:"change_password_confirmation,omitempty"`
	GrantPermission            string    `json:"grant_permission,omitempty"`
	GroupId                    int64     `json:"group_id,omitempty"`
	ImportedPasswordHash       string    `json:"imported_password_hash,omitempty"`
	Password                   string    `json:"password,omitempty"`
	PasswordConfirmation       string    `json:"password_confirmation,omitempty"`
	AnnouncementsRead          *bool     `json:"announcements_read,omitempty"`
}

func (*User) UnmarshalJSON

func (u *User) UnmarshalJSON(data []byte) error

type UserAuthenticationMethodEnum added in v1.0.838

type UserAuthenticationMethodEnum string

func (UserAuthenticationMethodEnum) Enum added in v1.0.838

func (UserAuthenticationMethodEnum) String added in v1.0.838

type UserCipherUse

type UserCipherUse struct {
	Id             int64     `json:"id,omitempty"`
	ProtocolCipher string    `json:"protocol_cipher,omitempty"`
	CreatedAt      time.Time `json:"created_at,omitempty"`
	Interface      string    `json:"interface,omitempty"`
	UpdatedAt      time.Time `json:"updated_at,omitempty"`
	UserId         int64     `json:"user_id,omitempty"`
}

func (*UserCipherUse) UnmarshalJSON

func (u *UserCipherUse) UnmarshalJSON(data []byte) error

type UserCipherUseCollection

type UserCipherUseCollection []UserCipherUse

func (*UserCipherUseCollection) ToSlice added in v1.0.167

func (u *UserCipherUseCollection) ToSlice() *[]interface{}

func (*UserCipherUseCollection) UnmarshalJSON

func (u *UserCipherUseCollection) UnmarshalJSON(data []byte) error

type UserCipherUseListParams

type UserCipherUseListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type UserCollection

type UserCollection []User

func (*UserCollection) ToSlice added in v1.0.167

func (u *UserCollection) ToSlice() *[]interface{}

func (*UserCollection) UnmarshalJSON

func (u *UserCollection) UnmarshalJSON(data []byte) error

type UserCreateParams

type UserCreateParams struct {
	AvatarFile                 io.Writer                    `url:"avatar_file,omitempty" required:"false"`
	AvatarDelete               *bool                        `url:"avatar_delete,omitempty" required:"false"`
	ChangePassword             string                       `url:"change_password,omitempty" required:"false"`
	ChangePasswordConfirmation string                       `url:"change_password_confirmation,omitempty" required:"false"`
	Email                      string                       `url:"email,omitempty" required:"false"`
	GrantPermission            string                       `url:"grant_permission,omitempty" required:"false"`
	GroupId                    int64                        `url:"group_id,omitempty" required:"false"`
	GroupIds                   string                       `url:"group_ids,omitempty" required:"false"`
	ImportedPasswordHash       string                       `url:"imported_password_hash,omitempty" required:"false"`
	Password                   string                       `url:"password,omitempty" required:"false"`
	PasswordConfirmation       string                       `url:"password_confirmation,omitempty" required:"false"`
	AnnouncementsRead          *bool                        `url:"announcements_read,omitempty" required:"false"`
	AllowedIps                 string                       `url:"allowed_ips,omitempty" required:"false"`
	AttachmentsPermission      *bool                        `url:"attachments_permission,omitempty" required:"false"`
	AuthenticateUntil          time.Time                    `url:"authenticate_until,omitempty" required:"false"`
	AuthenticationMethod       UserAuthenticationMethodEnum `url:"authentication_method,omitempty" required:"false"`
	BillingPermission          *bool                        `url:"billing_permission,omitempty" required:"false"`
	BypassInactiveDisable      *bool                        `url:"bypass_inactive_disable,omitempty" required:"false"`
	BypassSiteAllowedIps       *bool                        `url:"bypass_site_allowed_ips,omitempty" required:"false"`
	DavPermission              *bool                        `url:"dav_permission,omitempty" required:"false"`
	Disabled                   *bool                        `url:"disabled,omitempty" required:"false"`
	FtpPermission              *bool                        `url:"ftp_permission,omitempty" required:"false"`
	HeaderText                 string                       `url:"header_text,omitempty" required:"false"`
	Language                   string                       `url:"language,omitempty" required:"false"`
	NotificationDailySendTime  int64                        `url:"notification_daily_send_time,omitempty" required:"false"`
	Name                       string                       `url:"name,omitempty" required:"false"`
	Company                    string                       `url:"company,omitempty" required:"false"`
	Notes                      string                       `url:"notes,omitempty" required:"false"`
	OfficeIntegrationEnabled   *bool                        `url:"office_integration_enabled,omitempty" required:"false"`
	PasswordValidityDays       int64                        `url:"password_validity_days,omitempty" required:"false"`
	ReceiveAdminAlerts         *bool                        `url:"receive_admin_alerts,omitempty" required:"false"`
	RequirePasswordChange      *bool                        `url:"require_password_change,omitempty" required:"false"`
	RestapiPermission          *bool                        `url:"restapi_permission,omitempty" required:"false"`
	SelfManaged                *bool                        `url:"self_managed,omitempty" required:"false"`
	SftpPermission             *bool                        `url:"sftp_permission,omitempty" required:"false"`
	SiteAdmin                  *bool                        `url:"site_admin,omitempty" required:"false"`
	SkipWelcomeScreen          *bool                        `url:"skip_welcome_screen,omitempty" required:"false"`
	SslRequired                UserSslRequiredEnum          `url:"ssl_required,omitempty" required:"false"`
	SsoStrategyId              int64                        `url:"sso_strategy_id,omitempty" required:"false"`
	SubscribeToNewsletter      *bool                        `url:"subscribe_to_newsletter,omitempty" required:"false"`
	Require2fa                 UserRequire2faEnum           `url:"require_2fa,omitempty" required:"false"`
	TimeZone                   string                       `url:"time_zone,omitempty" required:"false"`
	UserRoot                   string                       `url:"user_root,omitempty" required:"false"`
	Username                   string                       `url:"username,omitempty" required:"false"`
}

type UserDeleteParams

type UserDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type UserFindParams

type UserFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type UserListParams

type UserListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Ids        string          `url:"ids,omitempty" required:"false"`
	QParam     QParam          `url:"q,omitempty" required:"false"`
	Search     string          `url:"search,omitempty" required:"false"`
	lib.ListParams
}

type UserRequest

type UserRequest struct {
	Id      int64  `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`
	Email   string `json:"email,omitempty"`
	Details string `json:"details,omitempty"`
}

func (*UserRequest) UnmarshalJSON

func (u *UserRequest) UnmarshalJSON(data []byte) error

type UserRequestCollection

type UserRequestCollection []UserRequest

func (*UserRequestCollection) ToSlice added in v1.0.167

func (u *UserRequestCollection) ToSlice() *[]interface{}

func (*UserRequestCollection) UnmarshalJSON

func (u *UserRequestCollection) UnmarshalJSON(data []byte) error

type UserRequestCreateParams

type UserRequestCreateParams struct {
	Name    string `url:"name,omitempty" required:"true"`
	Email   string `url:"email,omitempty" required:"true"`
	Details string `url:"details,omitempty" required:"true"`
}

type UserRequestDeleteParams

type UserRequestDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type UserRequestFindParams

type UserRequestFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

type UserRequestListParams

type UserRequestListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}

type UserRequire2faEnum added in v1.0.838

type UserRequire2faEnum string

func (UserRequire2faEnum) Enum added in v1.0.838

func (UserRequire2faEnum) String added in v1.0.838

func (u UserRequire2faEnum) String() string

type UserResendWelcomeEmailParams

type UserResendWelcomeEmailParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

Resend user welcome email

type UserSslRequiredEnum added in v1.0.838

type UserSslRequiredEnum string

func (UserSslRequiredEnum) Enum added in v1.0.838

func (UserSslRequiredEnum) String added in v1.0.838

func (u UserSslRequiredEnum) String() string

type UserUnlockParams

type UserUnlockParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

Unlock user who has been locked out due to failed logins

type UserUpdateParams

type UserUpdateParams struct {
	Id                         int64                        `url:"-,omitempty" required:"true"`
	AvatarFile                 io.Writer                    `url:"avatar_file,omitempty" required:"false"`
	AvatarDelete               *bool                        `url:"avatar_delete,omitempty" required:"false"`
	ChangePassword             string                       `url:"change_password,omitempty" required:"false"`
	ChangePasswordConfirmation string                       `url:"change_password_confirmation,omitempty" required:"false"`
	Email                      string                       `url:"email,omitempty" required:"false"`
	GrantPermission            string                       `url:"grant_permission,omitempty" required:"false"`
	GroupId                    int64                        `url:"group_id,omitempty" required:"false"`
	GroupIds                   string                       `url:"group_ids,omitempty" required:"false"`
	ImportedPasswordHash       string                       `url:"imported_password_hash,omitempty" required:"false"`
	Password                   string                       `url:"password,omitempty" required:"false"`
	PasswordConfirmation       string                       `url:"password_confirmation,omitempty" required:"false"`
	AnnouncementsRead          *bool                        `url:"announcements_read,omitempty" required:"false"`
	AllowedIps                 string                       `url:"allowed_ips,omitempty" required:"false"`
	AttachmentsPermission      *bool                        `url:"attachments_permission,omitempty" required:"false"`
	AuthenticateUntil          time.Time                    `url:"authenticate_until,omitempty" required:"false"`
	AuthenticationMethod       UserAuthenticationMethodEnum `url:"authentication_method,omitempty" required:"false"`
	BillingPermission          *bool                        `url:"billing_permission,omitempty" required:"false"`
	BypassInactiveDisable      *bool                        `url:"bypass_inactive_disable,omitempty" required:"false"`
	BypassSiteAllowedIps       *bool                        `url:"bypass_site_allowed_ips,omitempty" required:"false"`
	DavPermission              *bool                        `url:"dav_permission,omitempty" required:"false"`
	Disabled                   *bool                        `url:"disabled,omitempty" required:"false"`
	FtpPermission              *bool                        `url:"ftp_permission,omitempty" required:"false"`
	HeaderText                 string                       `url:"header_text,omitempty" required:"false"`
	Language                   string                       `url:"language,omitempty" required:"false"`
	NotificationDailySendTime  int64                        `url:"notification_daily_send_time,omitempty" required:"false"`
	Name                       string                       `url:"name,omitempty" required:"false"`
	Company                    string                       `url:"company,omitempty" required:"false"`
	Notes                      string                       `url:"notes,omitempty" required:"false"`
	OfficeIntegrationEnabled   *bool                        `url:"office_integration_enabled,omitempty" required:"false"`
	PasswordValidityDays       int64                        `url:"password_validity_days,omitempty" required:"false"`
	ReceiveAdminAlerts         *bool                        `url:"receive_admin_alerts,omitempty" required:"false"`
	RequirePasswordChange      *bool                        `url:"require_password_change,omitempty" required:"false"`
	RestapiPermission          *bool                        `url:"restapi_permission,omitempty" required:"false"`
	SelfManaged                *bool                        `url:"self_managed,omitempty" required:"false"`
	SftpPermission             *bool                        `url:"sftp_permission,omitempty" required:"false"`
	SiteAdmin                  *bool                        `url:"site_admin,omitempty" required:"false"`
	SkipWelcomeScreen          *bool                        `url:"skip_welcome_screen,omitempty" required:"false"`
	SslRequired                UserSslRequiredEnum          `url:"ssl_required,omitempty" required:"false"`
	SsoStrategyId              int64                        `url:"sso_strategy_id,omitempty" required:"false"`
	SubscribeToNewsletter      *bool                        `url:"subscribe_to_newsletter,omitempty" required:"false"`
	Require2fa                 UserRequire2faEnum           `url:"require_2fa,omitempty" required:"false"`
	TimeZone                   string                       `url:"time_zone,omitempty" required:"false"`
	UserRoot                   string                       `url:"user_root,omitempty" required:"false"`
	Username                   string                       `url:"username,omitempty" required:"false"`
}

type UserUser2faResetParams

type UserUser2faResetParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}

Trigger 2FA Reset process for user who has lost access to their existing 2FA methods

type WebhookTest added in v1.0.162

type WebhookTest struct {
	Code          int64           `json:"code,omitempty"`
	Message       string          `json:"message,omitempty"`
	Status        string          `json:"status,omitempty"`
	Data          string          `json:"data,omitempty"`
	Success       *bool           `json:"success,omitempty"`
	Url           string          `json:"url,omitempty"`
	Method        string          `json:"method,omitempty"`
	Encoding      string          `json:"encoding,omitempty"`
	Headers       json.RawMessage `json:"headers,omitempty"`
	Body          json.RawMessage `json:"body,omitempty"`
	RawBody       string          `json:"raw_body,omitempty"`
	FileAsBody    *bool           `json:"file_as_body,omitempty"`
	FileFormField string          `json:"file_form_field,omitempty"`
	Action        string          `json:"action,omitempty"`
}

func (*WebhookTest) UnmarshalJSON added in v1.0.162

func (w *WebhookTest) UnmarshalJSON(data []byte) error

type WebhookTestCollection added in v1.0.162

type WebhookTestCollection []WebhookTest

func (*WebhookTestCollection) ToSlice added in v1.0.167

func (w *WebhookTestCollection) ToSlice() *[]interface{}

func (*WebhookTestCollection) UnmarshalJSON added in v1.0.162

func (w *WebhookTestCollection) UnmarshalJSON(data []byte) error

type WebhookTestCreateParams added in v1.0.162

type WebhookTestCreateParams struct {
	Url           string          `url:"url,omitempty" required:"true"`
	Method        string          `url:"method,omitempty" required:"false"`
	Encoding      string          `url:"encoding,omitempty" required:"false"`
	Headers       json.RawMessage `url:"headers,omitempty" required:"false"`
	Body          json.RawMessage `url:"body,omitempty" required:"false"`
	RawBody       string          `url:"raw_body,omitempty" required:"false"`
	FileAsBody    *bool           `url:"file_as_body,omitempty" required:"false"`
	FileFormField string          `url:"file_form_field,omitempty" required:"false"`
	Action        string          `url:"action,omitempty" required:"false"`
}

Jump to

Keyboard shortcuts

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