files_sdk

package module
v2.0.198-beta Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 16 Imported by: 4

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/v2"
    "github.com/Files-com/files-sdk-go/v2/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/v2"
)

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

config := files_sdk.Config{APIKey: "XXXX-XXXX..."}
client := file.Client{Config: config}
List
import (
	files_sdk "github.com/Files-com/files-sdk-go/v2"
	folder "github.com/Files-com/files-sdk-go/v2/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/v2"
	file "github.com/Files-com/files-sdk-go/v2/file"
)

func main() {
    client := file.Client{}
    uploadPath := "file-to-upload.txt"
    destinationPath := "file-to-upload.txt"
    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/v2/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/v2/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)
    }
}
Docker
docker build . --tag files-sdk-go:latest
docker run --workdir /app --volume ${PWD}:/app -it files-sdk-go

Documentation

Index

Constants

View Source
const (
	UserAgent   = "Files.com Go SDK"
	DefaultSite = "app"
	APIPath     = "/api/rest/v1"
)
View Source
const (
	DestinationExists = "processing-failure/destination-exists"
)
View Source
const (
	ProductionEndpoint = "https://{SUBDOMAIN}.files.com"
)

Variables

View Source
var VERSION string

Functions

func APIError

func APIError(callbacks ...func(ResponseError) ResponseError) func(res *http.Response) error

func Call

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

func CallRaw

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

func FeatureFlags

func FeatureFlags() map[string]bool

func IsDestinationExistsError

func IsDestinationExistsError(err error) bool

func ParseResponse

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

func Resource

func Resource(ctx context.Context, config Config, resource lib.Resource, opt ...RequestResponseOption) error

func WrapRequestOptions

func WrapRequestOptions(client HttpClient, request *http.Request, opts ...RequestResponseOption) (*http.Response, error)

Types

type AccountLineItem

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

func (AccountLineItem) Identifier

func (a AccountLineItem) Identifier() interface{}

func (*AccountLineItem) UnmarshalJSON

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

type AccountLineItemCollection

type AccountLineItemCollection []AccountLineItem

func (*AccountLineItemCollection) ToSlice

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:"id"`
	Path        string     `json:"path,omitempty" path:"path"`
	When        *time.Time `json:"when,omitempty" path:"when"`
	Destination string     `json:"destination,omitempty" path:"destination"`
	Display     string     `json:"display,omitempty" path:"display"`
	Ip          string     `json:"ip,omitempty" path:"ip"`
	Source      string     `json:"source,omitempty" path:"source"`
	Targets     []string   `json:"targets,omitempty" path:"targets"`
	UserId      int64      `json:"user_id,omitempty" path:"user_id"`
	Username    string     `json:"username,omitempty" path:"username"`
	Action      string     `json:"action,omitempty" path:"action"`
	FailureType string     `json:"failure_type,omitempty" path:"failure_type"`
	Interface   string     `json:"interface,omitempty" path:"interface"`
}

func (Action) Identifier

func (a Action) Identifier() interface{}

func (*Action) UnmarshalJSON

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

type ActionCollection

type ActionCollection []Action

func (*ActionCollection) ToSlice

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

func (*ActionCollection) UnmarshalJSON

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

type ActionNotificationExport

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

func (ActionNotificationExport) Identifier

func (a ActionNotificationExport) Identifier() interface{}

func (*ActionNotificationExport) UnmarshalJSON

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

type ActionNotificationExportCollection

type ActionNotificationExportCollection []ActionNotificationExport

func (*ActionNotificationExportCollection) ToSlice

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

func (*ActionNotificationExportCollection) UnmarshalJSON

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

type ActionNotificationExportCreateParams

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

type ActionNotificationExportFindParams

type ActionNotificationExportFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type ActionNotificationExportResult

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

func (ActionNotificationExportResult) Identifier

func (a ActionNotificationExportResult) Identifier() interface{}

func (*ActionNotificationExportResult) UnmarshalJSON

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

type ActionNotificationExportResultCollection

type ActionNotificationExportResultCollection []ActionNotificationExportResult

func (*ActionNotificationExportResultCollection) ToSlice

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

func (*ActionNotificationExportResultCollection) UnmarshalJSON

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

type ActionNotificationExportResultListParams

type ActionNotificationExportResultListParams struct {
	UserId                     int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	ActionNotificationExportId int64 `` /* 145-byte string literal not displayed */
	ListParams
}

type ActionWebhookFailure

type ActionWebhookFailure struct {
}

func (*ActionWebhookFailure) UnmarshalJSON

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

type ActionWebhookFailureCollection

type ActionWebhookFailureCollection []ActionWebhookFailure

func (*ActionWebhookFailureCollection) ToSlice

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

func (*ActionWebhookFailureCollection) UnmarshalJSON

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

type ActionWebhookFailureRetryParams

type ActionWebhookFailureRetryParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

retry Action Webhook Failure

type ApiKey

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

func (ApiKey) Identifier

func (a ApiKey) Identifier() interface{}

func (*ApiKey) UnmarshalJSON

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

type ApiKeyCollection

type ApiKeyCollection []ApiKey

func (*ApiKeyCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	Name          string                  `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Description   string                  `url:"description,omitempty" required:"false" json:"description,omitempty" path:"description"`
	ExpiresAt     *time.Time              `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty" path:"expires_at"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false" json:"permission_set,omitempty" path:"permission_set"`
	Path          string                  `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
}

type ApiKeyDeleteParams

type ApiKeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type ApiKeyFindParams

type ApiKeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type ApiKeyListParams

type ApiKeyListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type ApiKeyPermissionSetEnum

type ApiKeyPermissionSetEnum string

func (ApiKeyPermissionSetEnum) Enum

func (ApiKeyPermissionSetEnum) String

func (u ApiKeyPermissionSetEnum) String() string

type ApiKeyUpdateCurrentParams

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

type ApiKeyUpdateParams

type ApiKeyUpdateParams struct {
	Id            int64                   `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Name          string                  `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Description   string                  `url:"description,omitempty" required:"false" json:"description,omitempty" path:"description"`
	ExpiresAt     *time.Time              `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty" path:"expires_at"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false" json:"permission_set,omitempty" path:"permission_set"`
}

type App

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

func (*App) UnmarshalJSON

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

type AppCollection

type AppCollection []App

func (*AppCollection) ToSlice

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

func (*AppCollection) UnmarshalJSON

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

type AppListParams

type AppListParams struct {
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

type As2IncomingMessage

type As2IncomingMessage struct {
	Id                          int64           `json:"id,omitempty" path:"id"`
	As2PartnerId                int64           `json:"as2_partner_id,omitempty" path:"as2_partner_id"`
	As2StationId                int64           `json:"as2_station_id,omitempty" path:"as2_station_id"`
	Uuid                        string          `json:"uuid,omitempty" path:"uuid"`
	ContentType                 string          `json:"content_type,omitempty" path:"content_type"`
	HttpHeaders                 json.RawMessage `json:"http_headers,omitempty" path:"http_headers"`
	ActivityLog                 string          `json:"activity_log,omitempty" path:"activity_log"`
	ProcessingResult            string          `json:"processing_result,omitempty" path:"processing_result"`
	ProcessingResultDescription string          `json:"processing_result_description,omitempty" path:"processing_result_description"`
	Mic                         string          `json:"mic,omitempty" path:"mic"`
	MicAlgo                     string          `json:"mic_algo,omitempty" path:"mic_algo"`
	As2To                       string          `json:"as2_to,omitempty" path:"as2_to"`
	As2From                     string          `json:"as2_from,omitempty" path:"as2_from"`
	MessageId                   string          `json:"message_id,omitempty" path:"message_id"`
	Subject                     string          `json:"subject,omitempty" path:"subject"`
	Date                        string          `json:"date,omitempty" path:"date"`
	BodySize                    string          `json:"body_size,omitempty" path:"body_size"`
	AttachmentFilename          string          `json:"attachment_filename,omitempty" path:"attachment_filename"`
	Ip                          string          `json:"ip,omitempty" path:"ip"`
	CreatedAt                   *time.Time      `json:"created_at,omitempty" path:"created_at"`
	HttpResponseCode            string          `json:"http_response_code,omitempty" path:"http_response_code"`
	HttpResponseHeaders         json.RawMessage `json:"http_response_headers,omitempty" path:"http_response_headers"`
	RecipientSerial             string          `json:"recipient_serial,omitempty" path:"recipient_serial"`
	HexRecipientSerial          string          `json:"hex_recipient_serial,omitempty" path:"hex_recipient_serial"`
	RecipientIssuer             string          `json:"recipient_issuer,omitempty" path:"recipient_issuer"`
	MessageReceived             *bool           `json:"message_received,omitempty" path:"message_received"`
	MessageDecrypted            *bool           `json:"message_decrypted,omitempty" path:"message_decrypted"`
	MessageSignatureVerified    *bool           `json:"message_signature_verified,omitempty" path:"message_signature_verified"`
	MessageProcessingSuccess    *bool           `json:"message_processing_success,omitempty" path:"message_processing_success"`
	MessageMdnReturned          *bool           `json:"message_mdn_returned,omitempty" path:"message_mdn_returned"`
	EncryptedUri                string          `json:"encrypted_uri,omitempty" path:"encrypted_uri"`
	SmimeSignedUri              string          `json:"smime_signed_uri,omitempty" path:"smime_signed_uri"`
	SmimeUri                    string          `json:"smime_uri,omitempty" path:"smime_uri"`
	RawUri                      string          `json:"raw_uri,omitempty" path:"raw_uri"`
	MdnResponseUri              string          `json:"mdn_response_uri,omitempty" path:"mdn_response_uri"`
}

func (As2IncomingMessage) Identifier

func (a As2IncomingMessage) Identifier() interface{}

func (*As2IncomingMessage) UnmarshalJSON

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

type As2IncomingMessageCollection

type As2IncomingMessageCollection []As2IncomingMessage

func (*As2IncomingMessageCollection) ToSlice

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

func (*As2IncomingMessageCollection) UnmarshalJSON

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

type As2IncomingMessageListParams

type As2IncomingMessageListParams struct {
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt     json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt     json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	As2PartnerId int64           `url:"as2_partner_id,omitempty" required:"false" json:"as2_partner_id,omitempty" path:"as2_partner_id"`
	ListParams
}

type As2OutgoingMessage

type As2OutgoingMessage struct {
	Id                          int64           `json:"id,omitempty" path:"id"`
	As2PartnerId                int64           `json:"as2_partner_id,omitempty" path:"as2_partner_id"`
	As2StationId                int64           `json:"as2_station_id,omitempty" path:"as2_station_id"`
	Uuid                        string          `json:"uuid,omitempty" path:"uuid"`
	HttpHeaders                 json.RawMessage `json:"http_headers,omitempty" path:"http_headers"`
	ActivityLog                 string          `json:"activity_log,omitempty" path:"activity_log"`
	ProcessingResult            string          `json:"processing_result,omitempty" path:"processing_result"`
	ProcessingResultDescription string          `json:"processing_result_description,omitempty" path:"processing_result_description"`
	Mic                         string          `json:"mic,omitempty" path:"mic"`
	MicSha256                   string          `json:"mic_sha_256,omitempty" path:"mic_sha_256"`
	As2To                       string          `json:"as2_to,omitempty" path:"as2_to"`
	As2From                     string          `json:"as2_from,omitempty" path:"as2_from"`
	Date                        string          `json:"date,omitempty" path:"date"`
	MessageId                   string          `json:"message_id,omitempty" path:"message_id"`
	BodySize                    string          `json:"body_size,omitempty" path:"body_size"`
	AttachmentFilename          string          `json:"attachment_filename,omitempty" path:"attachment_filename"`
	CreatedAt                   *time.Time      `json:"created_at,omitempty" path:"created_at"`
	HttpResponseCode            string          `json:"http_response_code,omitempty" path:"http_response_code"`
	HttpResponseHeaders         json.RawMessage `json:"http_response_headers,omitempty" path:"http_response_headers"`
	HttpTransmissionDuration    string          `json:"http_transmission_duration,omitempty" path:"http_transmission_duration"`
	MdnReceived                 *bool           `json:"mdn_received,omitempty" path:"mdn_received"`
	MdnValid                    *bool           `json:"mdn_valid,omitempty" path:"mdn_valid"`
	MdnSignatureVerified        *bool           `json:"mdn_signature_verified,omitempty" path:"mdn_signature_verified"`
	MdnMessageIdMatched         *bool           `json:"mdn_message_id_matched,omitempty" path:"mdn_message_id_matched"`
	MdnMicMatched               *bool           `json:"mdn_mic_matched,omitempty" path:"mdn_mic_matched"`
	MdnProcessingSuccess        *bool           `json:"mdn_processing_success,omitempty" path:"mdn_processing_success"`
	RawUri                      string          `json:"raw_uri,omitempty" path:"raw_uri"`
	SmimeUri                    string          `json:"smime_uri,omitempty" path:"smime_uri"`
	SmimeSignedUri              string          `json:"smime_signed_uri,omitempty" path:"smime_signed_uri"`
	EncryptedUri                string          `json:"encrypted_uri,omitempty" path:"encrypted_uri"`
	MdnResponseUri              string          `json:"mdn_response_uri,omitempty" path:"mdn_response_uri"`
}

func (As2OutgoingMessage) Identifier

func (a As2OutgoingMessage) Identifier() interface{}

func (*As2OutgoingMessage) UnmarshalJSON

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

type As2OutgoingMessageCollection

type As2OutgoingMessageCollection []As2OutgoingMessage

func (*As2OutgoingMessageCollection) ToSlice

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

func (*As2OutgoingMessageCollection) UnmarshalJSON

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

type As2OutgoingMessageListParams

type As2OutgoingMessageListParams struct {
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt     json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt     json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	As2PartnerId int64           `url:"as2_partner_id,omitempty" required:"false" json:"as2_partner_id,omitempty" path:"as2_partner_id"`
	ListParams
}

type As2Partner

type As2Partner struct {
	Id                         int64  `json:"id,omitempty" path:"id"`
	As2StationId               int64  `json:"as2_station_id,omitempty" path:"as2_station_id"`
	Name                       string `json:"name,omitempty" path:"name"`
	Uri                        string `json:"uri,omitempty" path:"uri"`
	ServerCertificate          string `json:"server_certificate,omitempty" path:"server_certificate"`
	EnableDedicatedIps         *bool  `json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	HexPublicCertificateSerial string `json:"hex_public_certificate_serial,omitempty" path:"hex_public_certificate_serial"`
	PublicCertificateMd5       string `json:"public_certificate_md5,omitempty" path:"public_certificate_md5"`
	PublicCertificateSubject   string `json:"public_certificate_subject,omitempty" path:"public_certificate_subject"`
	PublicCertificateIssuer    string `json:"public_certificate_issuer,omitempty" path:"public_certificate_issuer"`
	PublicCertificateSerial    string `json:"public_certificate_serial,omitempty" path:"public_certificate_serial"`
	PublicCertificateNotBefore string `json:"public_certificate_not_before,omitempty" path:"public_certificate_not_before"`
	PublicCertificateNotAfter  string `json:"public_certificate_not_after,omitempty" path:"public_certificate_not_after"`
	PublicCertificate          string `json:"public_certificate,omitempty" path:"public_certificate"`
}

func (As2Partner) Identifier

func (a As2Partner) Identifier() interface{}

func (*As2Partner) UnmarshalJSON

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

type As2PartnerCollection

type As2PartnerCollection []As2Partner

func (*As2PartnerCollection) ToSlice

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

func (*As2PartnerCollection) UnmarshalJSON

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

type As2PartnerCreateParams

type As2PartnerCreateParams struct {
	Name               string `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	Uri                string `url:"uri,omitempty" required:"true" json:"uri,omitempty" path:"uri"`
	PublicCertificate  string `url:"public_certificate,omitempty" required:"true" json:"public_certificate,omitempty" path:"public_certificate"`
	As2StationId       int64  `url:"as2_station_id,omitempty" required:"true" json:"as2_station_id,omitempty" path:"as2_station_id"`
	ServerCertificate  string `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty" path:"server_certificate"`
	EnableDedicatedIps *bool  `url:"enable_dedicated_ips,omitempty" required:"false" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
}

type As2PartnerDeleteParams

type As2PartnerDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type As2PartnerFindParams

type As2PartnerFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type As2PartnerListParams

type As2PartnerListParams struct {
	ListParams
}

type As2PartnerUpdateParams

type As2PartnerUpdateParams struct {
	Id                 int64  `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Name               string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Uri                string `url:"uri,omitempty" required:"false" json:"uri,omitempty" path:"uri"`
	ServerCertificate  string `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty" path:"server_certificate"`
	PublicCertificate  string `url:"public_certificate,omitempty" required:"false" json:"public_certificate,omitempty" path:"public_certificate"`
	EnableDedicatedIps *bool  `url:"enable_dedicated_ips,omitempty" required:"false" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
}

type As2Station

type As2Station struct {
	Id                         int64  `json:"id,omitempty" path:"id"`
	Name                       string `json:"name,omitempty" path:"name"`
	Uri                        string `json:"uri,omitempty" path:"uri"`
	Domain                     string `json:"domain,omitempty" path:"domain"`
	HexPublicCertificateSerial string `json:"hex_public_certificate_serial,omitempty" path:"hex_public_certificate_serial"`
	PublicCertificateMd5       string `json:"public_certificate_md5,omitempty" path:"public_certificate_md5"`
	PrivateKeyMd5              string `json:"private_key_md5,omitempty" path:"private_key_md5"`
	PublicCertificateSubject   string `json:"public_certificate_subject,omitempty" path:"public_certificate_subject"`
	PublicCertificateIssuer    string `json:"public_certificate_issuer,omitempty" path:"public_certificate_issuer"`
	PublicCertificateSerial    string `json:"public_certificate_serial,omitempty" path:"public_certificate_serial"`
	PublicCertificateNotBefore string `json:"public_certificate_not_before,omitempty" path:"public_certificate_not_before"`
	PublicCertificateNotAfter  string `json:"public_certificate_not_after,omitempty" path:"public_certificate_not_after"`
	PrivateKeyPasswordMd5      string `json:"private_key_password_md5,omitempty" path:"private_key_password_md5"`
	PublicCertificate          string `json:"public_certificate,omitempty" path:"public_certificate"`
	PrivateKey                 string `json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassword         string `json:"private_key_password,omitempty" path:"private_key_password"`
}

func (As2Station) Identifier

func (a As2Station) Identifier() interface{}

func (*As2Station) UnmarshalJSON

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

type As2StationCollection

type As2StationCollection []As2Station

func (*As2StationCollection) ToSlice

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

func (*As2StationCollection) UnmarshalJSON

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

type As2StationCreateParams

type As2StationCreateParams struct {
	Name               string `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	PublicCertificate  string `url:"public_certificate,omitempty" required:"true" json:"public_certificate,omitempty" path:"public_certificate"`
	PrivateKey         string `url:"private_key,omitempty" required:"true" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassword string `url:"private_key_password,omitempty" required:"false" json:"private_key_password,omitempty" path:"private_key_password"`
}

type As2StationDeleteParams

type As2StationDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type As2StationFindParams

type As2StationFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type As2StationListParams

type As2StationListParams struct {
	ListParams
}

type As2StationUpdateParams

type As2StationUpdateParams struct {
	Id                 int64  `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Name               string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	PublicCertificate  string `url:"public_certificate,omitempty" required:"false" json:"public_certificate,omitempty" path:"public_certificate"`
	PrivateKey         string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassword string `url:"private_key_password,omitempty" required:"false" json:"private_key_password,omitempty" path:"private_key_password"`
}

type Auto

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

func (*Auto) UnmarshalJSON

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

type AutoCollection

type AutoCollection []Auto

func (*AutoCollection) ToSlice

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" path:"id"`
	Automation             string          `json:"automation,omitempty" path:"automation"`
	Deleted                *bool           `json:"deleted,omitempty" path:"deleted"`
	Disabled               *bool           `json:"disabled,omitempty" path:"disabled"`
	Trigger                string          `json:"trigger,omitempty" path:"trigger"`
	Interval               string          `json:"interval,omitempty" path:"interval"`
	LastModifiedAt         *time.Time      `json:"last_modified_at,omitempty" path:"last_modified_at"`
	Name                   string          `json:"name,omitempty" path:"name"`
	Schedule               json.RawMessage `json:"schedule,omitempty" path:"schedule"`
	Source                 string          `json:"source,omitempty" path:"source"`
	Destinations           []string        `json:"destinations,omitempty" path:"destinations"`
	DestinationReplaceFrom string          `json:"destination_replace_from,omitempty" path:"destination_replace_from"`
	DestinationReplaceTo   string          `json:"destination_replace_to,omitempty" path:"destination_replace_to"`
	Description            string          `json:"description,omitempty" path:"description"`
	RecurringDay           int64           `json:"recurring_day,omitempty" path:"recurring_day"`
	Path                   string          `json:"path,omitempty" path:"path"`
	UserId                 int64           `json:"user_id,omitempty" path:"user_id"`
	SyncIds                []int64         `json:"sync_ids,omitempty" path:"sync_ids"`
	UserIds                []int64         `json:"user_ids,omitempty" path:"user_ids"`
	GroupIds               []int64         `json:"group_ids,omitempty" path:"group_ids"`
	WebhookUrl             string          `json:"webhook_url,omitempty" path:"webhook_url"`
	TriggerActions         []string        `json:"trigger_actions,omitempty" path:"trigger_actions"`
	Value                  json.RawMessage `json:"value,omitempty" path:"value"`
	Destination            string          `json:"destination,omitempty" path:"destination"`
}

func (Automation) Identifier

func (a Automation) Identifier() interface{}

func (*Automation) UnmarshalJSON

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

type AutomationCollection

type AutomationCollection []Automation

func (*AutomationCollection) ToSlice

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

func (*AutomationCollection) UnmarshalJSON

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

type AutomationCreateParams

type AutomationCreateParams struct {
	Source                 string                `url:"source,omitempty" required:"false" json:"source,omitempty" path:"source"`
	Destination            string                `url:"destination,omitempty" required:"false" json:"destination,omitempty" path:"destination"`
	Destinations           []string              `url:"destinations,omitempty" required:"false" json:"destinations,omitempty" path:"destinations"`
	DestinationReplaceFrom string                `` /* 131-byte string literal not displayed */
	DestinationReplaceTo   string                `url:"destination_replace_to,omitempty" required:"false" json:"destination_replace_to,omitempty" path:"destination_replace_to"`
	Interval               string                `url:"interval,omitempty" required:"false" json:"interval,omitempty" path:"interval"`
	Path                   string                `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	SyncIds                string                `url:"sync_ids,omitempty" required:"false" json:"sync_ids,omitempty" path:"sync_ids"`
	UserIds                string                `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty" path:"user_ids"`
	GroupIds               string                `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty" path:"group_ids"`
	Schedule               json.RawMessage       `url:"schedule,omitempty" required:"false" json:"schedule,omitempty" path:"schedule"`
	Description            string                `url:"description,omitempty" required:"false" json:"description,omitempty" path:"description"`
	Disabled               *bool                 `url:"disabled,omitempty" required:"false" json:"disabled,omitempty" path:"disabled"`
	Name                   string                `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Trigger                AutomationTriggerEnum `url:"trigger,omitempty" required:"false" json:"trigger,omitempty" path:"trigger"`
	TriggerActions         []string              `url:"trigger_actions,omitempty" required:"false" json:"trigger_actions,omitempty" path:"trigger_actions"`
	Value                  json.RawMessage       `url:"value,omitempty" required:"false" json:"value,omitempty" path:"value"`
	RecurringDay           int64                 `url:"recurring_day,omitempty" required:"false" json:"recurring_day,omitempty" path:"recurring_day"`
	Automation             AutomationEnum        `url:"automation,omitempty" required:"true" json:"automation,omitempty" path:"automation"`
}

type AutomationDeleteParams

type AutomationDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type AutomationEnum

type AutomationEnum string

func (AutomationEnum) Enum

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

func (AutomationEnum) String

func (u AutomationEnum) String() string

type AutomationFindParams

type AutomationFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type AutomationListParams

type AutomationListParams struct {
	SortBy      json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Automation  string          `url:"automation,omitempty" required:"false" json:"automation,omitempty" path:"automation"`
	Filter      json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt    json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq  json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt    json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq  json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	WithDeleted *bool           `url:"with_deleted,omitempty" required:"false" json:"with_deleted,omitempty" path:"with_deleted"`
	ListParams
}

type AutomationRun

type AutomationRun struct {
	Id                int64      `json:"id,omitempty" path:"id"`
	AutomationId      int64      `json:"automation_id,omitempty" path:"automation_id"`
	CompletedAt       *time.Time `json:"completed_at,omitempty" path:"completed_at"`
	CreatedAt         *time.Time `json:"created_at,omitempty" path:"created_at"`
	Status            string     `json:"status,omitempty" path:"status"`
	StatusMessagesUrl string     `json:"status_messages_url,omitempty" path:"status_messages_url"`
}

func (AutomationRun) Identifier

func (a AutomationRun) Identifier() interface{}

func (*AutomationRun) UnmarshalJSON

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

type AutomationRunCollection

type AutomationRunCollection []AutomationRun

func (*AutomationRunCollection) ToSlice

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

func (*AutomationRunCollection) UnmarshalJSON

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

type AutomationRunFindParams

type AutomationRunFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type AutomationRunListParams

type AutomationRunListParams struct {
	UserId       int64           `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	AutomationId int64           `url:"automation_id,omitempty" required:"true" json:"automation_id,omitempty" path:"automation_id"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	ListParams
}

type AutomationTriggerEnum

type AutomationTriggerEnum string

func (AutomationTriggerEnum) Enum

func (AutomationTriggerEnum) String

func (u AutomationTriggerEnum) String() string

type AutomationUpdateParams

type AutomationUpdateParams struct {
	Id                     int64                 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Source                 string                `url:"source,omitempty" required:"false" json:"source,omitempty" path:"source"`
	Destination            string                `url:"destination,omitempty" required:"false" json:"destination,omitempty" path:"destination"`
	Destinations           []string              `url:"destinations,omitempty" required:"false" json:"destinations,omitempty" path:"destinations"`
	DestinationReplaceFrom string                `` /* 131-byte string literal not displayed */
	DestinationReplaceTo   string                `url:"destination_replace_to,omitempty" required:"false" json:"destination_replace_to,omitempty" path:"destination_replace_to"`
	Interval               string                `url:"interval,omitempty" required:"false" json:"interval,omitempty" path:"interval"`
	Path                   string                `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	SyncIds                string                `url:"sync_ids,omitempty" required:"false" json:"sync_ids,omitempty" path:"sync_ids"`
	UserIds                string                `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty" path:"user_ids"`
	GroupIds               string                `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty" path:"group_ids"`
	Schedule               json.RawMessage       `url:"schedule,omitempty" required:"false" json:"schedule,omitempty" path:"schedule"`
	Description            string                `url:"description,omitempty" required:"false" json:"description,omitempty" path:"description"`
	Disabled               *bool                 `url:"disabled,omitempty" required:"false" json:"disabled,omitempty" path:"disabled"`
	Name                   string                `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Trigger                AutomationTriggerEnum `url:"trigger,omitempty" required:"false" json:"trigger,omitempty" path:"trigger"`
	TriggerActions         []string              `url:"trigger_actions,omitempty" required:"false" json:"trigger_actions,omitempty" path:"trigger_actions"`
	Value                  json.RawMessage       `url:"value,omitempty" required:"false" json:"value,omitempty" path:"value"`
	RecurringDay           int64                 `url:"recurring_day,omitempty" required:"false" json:"recurring_day,omitempty" path:"recurring_day"`
	Automation             AutomationEnum        `url:"automation,omitempty" required:"false" json:"automation,omitempty" path:"automation"`
}

type BandwidthSnapshot

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

func (BandwidthSnapshot) Identifier

func (b BandwidthSnapshot) Identifier() interface{}

func (*BandwidthSnapshot) UnmarshalJSON

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

type BandwidthSnapshotCollection

type BandwidthSnapshotCollection []BandwidthSnapshot

func (*BandwidthSnapshotCollection) ToSlice

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

func (*BandwidthSnapshotCollection) UnmarshalJSON

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

type BandwidthSnapshotListParams

type BandwidthSnapshotListParams struct {
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type Behavior

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

func (Behavior) Identifier

func (b Behavior) Identifier() interface{}

func (*Behavior) UnmarshalJSON

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

type BehaviorCollection

type BehaviorCollection []Behavior

func (*BehaviorCollection) ToSlice

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" json:"value,omitempty" path:"value"`
	AttachmentFile io.Writer `url:"attachment_file,omitempty" required:"false" json:"attachment_file,omitempty" path:"attachment_file"`
	Name           string    `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Description    string    `url:"description,omitempty" required:"false" json:"description,omitempty" path:"description"`
	Path           string    `url:"path,omitempty" required:"true" json:"path,omitempty" path:"path"`
	Behavior       string    `url:"behavior,omitempty" required:"true" json:"behavior,omitempty" path:"behavior"`
}

type BehaviorDeleteParams

type BehaviorDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type BehaviorFindParams

type BehaviorFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type BehaviorListForParams

type BehaviorListForParams struct {
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Path         string          `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Recursive    string          `url:"recursive,omitempty" required:"false" json:"recursive,omitempty" path:"recursive"`
	Behavior     string          `url:"behavior,omitempty" required:"false" json:"behavior,omitempty" path:"behavior"`
	ListParams
}

type BehaviorListParams

type BehaviorListParams struct {
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Behavior     string          `url:"behavior,omitempty" required:"false" json:"behavior,omitempty" path:"behavior"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

type BehaviorUpdateParams

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

type BehaviorWebhookTestParams

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

type Bundle

type Bundle struct {
	Code                            string          `json:"code,omitempty" path:"code"`
	Url                             string          `json:"url,omitempty" path:"url"`
	Description                     string          `json:"description,omitempty" path:"description"`
	PasswordProtected               *bool           `json:"password_protected,omitempty" path:"password_protected"`
	Permissions                     string          `json:"permissions,omitempty" path:"permissions"`
	PreviewOnly                     *bool           `json:"preview_only,omitempty" path:"preview_only"`
	RequireRegistration             *bool           `json:"require_registration,omitempty" path:"require_registration"`
	RequireShareRecipient           *bool           `json:"require_share_recipient,omitempty" path:"require_share_recipient"`
	ClickwrapBody                   string          `json:"clickwrap_body,omitempty" path:"clickwrap_body"`
	FormFieldSet                    FormFieldSet    `json:"form_field_set,omitempty" path:"form_field_set"`
	SkipName                        *bool           `json:"skip_name,omitempty" path:"skip_name"`
	SkipEmail                       *bool           `json:"skip_email,omitempty" path:"skip_email"`
	SkipCompany                     *bool           `json:"skip_company,omitempty" path:"skip_company"`
	Id                              int64           `json:"id,omitempty" path:"id"`
	CreatedAt                       *time.Time      `json:"created_at,omitempty" path:"created_at"`
	DontSeparateSubmissionsByFolder *bool           `json:"dont_separate_submissions_by_folder,omitempty" path:"dont_separate_submissions_by_folder"`
	ExpiresAt                       *time.Time      `json:"expires_at,omitempty" path:"expires_at"`
	MaxUses                         int64           `json:"max_uses,omitempty" path:"max_uses"`
	Note                            string          `json:"note,omitempty" path:"note"`
	PathTemplate                    string          `json:"path_template,omitempty" path:"path_template"`
	SendEmailReceiptToUploader      *bool           `json:"send_email_receipt_to_uploader,omitempty" path:"send_email_receipt_to_uploader"`
	SnapshotId                      int64           `json:"snapshot_id,omitempty" path:"snapshot_id"`
	UserId                          int64           `json:"user_id,omitempty" path:"user_id"`
	Username                        string          `json:"username,omitempty" path:"username"`
	ClickwrapId                     int64           `json:"clickwrap_id,omitempty" path:"clickwrap_id"`
	InboxId                         int64           `json:"inbox_id,omitempty" path:"inbox_id"`
	WatermarkAttachment             Image           `json:"watermark_attachment,omitempty" path:"watermark_attachment"`
	WatermarkValue                  json.RawMessage `json:"watermark_value,omitempty" path:"watermark_value"`
	HasInbox                        *bool           `json:"has_inbox,omitempty" path:"has_inbox"`
	Paths                           []string        `json:"paths,omitempty" path:"paths"`
	Password                        string          `json:"password,omitempty" path:"password"`
	FormFieldSetId                  int64           `json:"form_field_set_id,omitempty" path:"form_field_set_id"`
	CreateSnapshot                  *bool           `json:"create_snapshot,omitempty" path:"create_snapshot"`
	FinalizeSnapshot                *bool           `json:"finalize_snapshot,omitempty" path:"finalize_snapshot"`
	WatermarkAttachmentFile         io.Reader       `json:"watermark_attachment_file,omitempty" path:"watermark_attachment_file"`
	WatermarkAttachmentDelete       *bool           `json:"watermark_attachment_delete,omitempty" path:"watermark_attachment_delete"`
}

func (Bundle) Identifier

func (b Bundle) Identifier() interface{}

func (*Bundle) UnmarshalJSON

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

type BundleCollection

type BundleCollection []Bundle

func (*BundleCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	Paths                           []string              `url:"paths,omitempty" required:"true" json:"paths,omitempty" path:"paths"`
	Password                        string                `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	FormFieldSetId                  int64                 `url:"form_field_set_id,omitempty" required:"false" json:"form_field_set_id,omitempty" path:"form_field_set_id"`
	CreateSnapshot                  *bool                 `url:"create_snapshot,omitempty" required:"false" json:"create_snapshot,omitempty" path:"create_snapshot"`
	DontSeparateSubmissionsByFolder *bool                 `` /* 164-byte string literal not displayed */
	ExpiresAt                       *time.Time            `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty" path:"expires_at"`
	FinalizeSnapshot                *bool                 `url:"finalize_snapshot,omitempty" required:"false" json:"finalize_snapshot,omitempty" path:"finalize_snapshot"`
	MaxUses                         int64                 `url:"max_uses,omitempty" required:"false" json:"max_uses,omitempty" path:"max_uses"`
	Description                     string                `url:"description,omitempty" required:"false" json:"description,omitempty" path:"description"`
	Note                            string                `url:"note,omitempty" required:"false" json:"note,omitempty" path:"note"`
	Code                            string                `url:"code,omitempty" required:"false" json:"code,omitempty" path:"code"`
	PathTemplate                    string                `url:"path_template,omitempty" required:"false" json:"path_template,omitempty" path:"path_template"`
	Permissions                     BundlePermissionsEnum `url:"permissions,omitempty" required:"false" json:"permissions,omitempty" path:"permissions"`
	PreviewOnly                     *bool                 `url:"preview_only,omitempty" required:"false" json:"preview_only,omitempty" path:"preview_only"`
	RequireRegistration             *bool                 `url:"require_registration,omitempty" required:"false" json:"require_registration,omitempty" path:"require_registration"`
	ClickwrapId                     int64                 `url:"clickwrap_id,omitempty" required:"false" json:"clickwrap_id,omitempty" path:"clickwrap_id"`
	InboxId                         int64                 `url:"inbox_id,omitempty" required:"false" json:"inbox_id,omitempty" path:"inbox_id"`
	RequireShareRecipient           *bool                 `` /* 128-byte string literal not displayed */
	SendEmailReceiptToUploader      *bool                 `` /* 149-byte string literal not displayed */
	SkipEmail                       *bool                 `url:"skip_email,omitempty" required:"false" json:"skip_email,omitempty" path:"skip_email"`
	SkipName                        *bool                 `url:"skip_name,omitempty" required:"false" json:"skip_name,omitempty" path:"skip_name"`
	SkipCompany                     *bool                 `url:"skip_company,omitempty" required:"false" json:"skip_company,omitempty" path:"skip_company"`
	SnapshotId                      int64                 `url:"snapshot_id,omitempty" required:"false" json:"snapshot_id,omitempty" path:"snapshot_id"`
	WatermarkAttachmentFile         io.Writer             `` /* 134-byte string literal not displayed */
}

type BundleDeleteParams

type BundleDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type BundleDownload

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

func (BundleDownload) Identifier

func (b BundleDownload) Identifier() interface{}

func (*BundleDownload) UnmarshalJSON

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

type BundleDownloadCollection

type BundleDownloadCollection []BundleDownload

func (*BundleDownloadCollection) ToSlice

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

func (*BundleDownloadCollection) UnmarshalJSON

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

type BundleDownloadListParams

type BundleDownloadListParams struct {
	SortBy               json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter               json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt             json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq           json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt             json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq           json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	BundleId             int64           `url:"bundle_id,omitempty" required:"false" json:"bundle_id,omitempty" path:"bundle_id"`
	BundleRegistrationId int64           `url:"bundle_registration_id,omitempty" required:"false" json:"bundle_registration_id,omitempty" path:"bundle_registration_id"`
	ListParams
}

type BundleFindParams

type BundleFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type BundleListParams

type BundleListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type BundleNotification

type BundleNotification struct {
	BundleId             int64 `json:"bundle_id,omitempty" path:"bundle_id"`
	Id                   int64 `json:"id,omitempty" path:"id"`
	NotifyOnRegistration *bool `json:"notify_on_registration,omitempty" path:"notify_on_registration"`
	NotifyOnUpload       *bool `json:"notify_on_upload,omitempty" path:"notify_on_upload"`
	UserId               int64 `json:"user_id,omitempty" path:"user_id"`
}

func (BundleNotification) Identifier

func (b BundleNotification) Identifier() interface{}

func (*BundleNotification) UnmarshalJSON

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

type BundleNotificationCollection

type BundleNotificationCollection []BundleNotification

func (*BundleNotificationCollection) ToSlice

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

func (*BundleNotificationCollection) UnmarshalJSON

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

type BundleNotificationCreateParams

type BundleNotificationCreateParams struct {
	UserId               int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	NotifyOnRegistration *bool `url:"notify_on_registration,omitempty" required:"false" json:"notify_on_registration,omitempty" path:"notify_on_registration"`
	NotifyOnUpload       *bool `url:"notify_on_upload,omitempty" required:"false" json:"notify_on_upload,omitempty" path:"notify_on_upload"`
	BundleId             int64 `url:"bundle_id,omitempty" required:"true" json:"bundle_id,omitempty" path:"bundle_id"`
}

type BundleNotificationDeleteParams

type BundleNotificationDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type BundleNotificationFindParams

type BundleNotificationFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type BundleNotificationListParams

type BundleNotificationListParams struct {
	UserId   int64           `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	SortBy   json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	BundleId string          `url:"bundle_id,omitempty" required:"false" json:"bundle_id,omitempty" path:"bundle_id"`
	Filter   json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	ListParams
}

type BundleNotificationUpdateParams

type BundleNotificationUpdateParams struct {
	Id                   int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	NotifyOnRegistration *bool `url:"notify_on_registration,omitempty" required:"false" json:"notify_on_registration,omitempty" path:"notify_on_registration"`
	NotifyOnUpload       *bool `url:"notify_on_upload,omitempty" required:"false" json:"notify_on_upload,omitempty" path:"notify_on_upload"`
}

type BundlePermissionsEnum

type BundlePermissionsEnum string

func (BundlePermissionsEnum) Enum

func (BundlePermissionsEnum) String

func (u BundlePermissionsEnum) String() string

type BundleRecipient

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

func (*BundleRecipient) UnmarshalJSON

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

type BundleRecipientCollection

type BundleRecipientCollection []BundleRecipient

func (*BundleRecipientCollection) ToSlice

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

func (*BundleRecipientCollection) UnmarshalJSON

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

type BundleRecipientCreateParams

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

type BundleRecipientListParams

type BundleRecipientListParams struct {
	UserId   int64           `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	SortBy   json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter   json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	BundleId int64           `url:"bundle_id,omitempty" required:"true" json:"bundle_id,omitempty" path:"bundle_id"`
	ListParams
}

type BundleRegistration

type BundleRegistration struct {
	Code              string          `json:"code,omitempty" path:"code"`
	Name              string          `json:"name,omitempty" path:"name"`
	Company           string          `json:"company,omitempty" path:"company"`
	Email             string          `json:"email,omitempty" path:"email"`
	Ip                string          `json:"ip,omitempty" path:"ip"`
	InboxCode         string          `json:"inbox_code,omitempty" path:"inbox_code"`
	ClickwrapBody     string          `json:"clickwrap_body,omitempty" path:"clickwrap_body"`
	FormFieldSetId    int64           `json:"form_field_set_id,omitempty" path:"form_field_set_id"`
	FormFieldData     json.RawMessage `json:"form_field_data,omitempty" path:"form_field_data"`
	BundleCode        string          `json:"bundle_code,omitempty" path:"bundle_code"`
	BundleId          int64           `json:"bundle_id,omitempty" path:"bundle_id"`
	BundleRecipientId int64           `json:"bundle_recipient_id,omitempty" path:"bundle_recipient_id"`
	CreatedAt         *time.Time      `json:"created_at,omitempty" path:"created_at"`
}

func (*BundleRegistration) UnmarshalJSON

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

type BundleRegistrationCollection

type BundleRegistrationCollection []BundleRegistration

func (*BundleRegistrationCollection) ToSlice

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

func (*BundleRegistrationCollection) UnmarshalJSON

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

type BundleRegistrationListParams

type BundleRegistrationListParams struct {
	UserId   int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	BundleId int64 `url:"bundle_id,omitempty" required:"false" json:"bundle_id,omitempty" path:"bundle_id"`
	ListParams
}

type BundleShareParams

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

Send email(s) with a link to bundle

type BundleUpdateParams

type BundleUpdateParams struct {
	Id                              int64                 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Paths                           []string              `url:"paths,omitempty" required:"false" json:"paths,omitempty" path:"paths"`
	Password                        string                `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	FormFieldSetId                  int64                 `url:"form_field_set_id,omitempty" required:"false" json:"form_field_set_id,omitempty" path:"form_field_set_id"`
	ClickwrapId                     int64                 `url:"clickwrap_id,omitempty" required:"false" json:"clickwrap_id,omitempty" path:"clickwrap_id"`
	Code                            string                `url:"code,omitempty" required:"false" json:"code,omitempty" path:"code"`
	CreateSnapshot                  *bool                 `url:"create_snapshot,omitempty" required:"false" json:"create_snapshot,omitempty" path:"create_snapshot"`
	Description                     string                `url:"description,omitempty" required:"false" json:"description,omitempty" path:"description"`
	DontSeparateSubmissionsByFolder *bool                 `` /* 164-byte string literal not displayed */
	ExpiresAt                       *time.Time            `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty" path:"expires_at"`
	FinalizeSnapshot                *bool                 `url:"finalize_snapshot,omitempty" required:"false" json:"finalize_snapshot,omitempty" path:"finalize_snapshot"`
	InboxId                         int64                 `url:"inbox_id,omitempty" required:"false" json:"inbox_id,omitempty" path:"inbox_id"`
	MaxUses                         int64                 `url:"max_uses,omitempty" required:"false" json:"max_uses,omitempty" path:"max_uses"`
	Note                            string                `url:"note,omitempty" required:"false" json:"note,omitempty" path:"note"`
	PathTemplate                    string                `url:"path_template,omitempty" required:"false" json:"path_template,omitempty" path:"path_template"`
	Permissions                     BundlePermissionsEnum `url:"permissions,omitempty" required:"false" json:"permissions,omitempty" path:"permissions"`
	PreviewOnly                     *bool                 `url:"preview_only,omitempty" required:"false" json:"preview_only,omitempty" path:"preview_only"`
	RequireRegistration             *bool                 `url:"require_registration,omitempty" required:"false" json:"require_registration,omitempty" path:"require_registration"`
	RequireShareRecipient           *bool                 `` /* 128-byte string literal not displayed */
	SendEmailReceiptToUploader      *bool                 `` /* 149-byte string literal not displayed */
	SkipCompany                     *bool                 `url:"skip_company,omitempty" required:"false" json:"skip_company,omitempty" path:"skip_company"`
	SkipEmail                       *bool                 `url:"skip_email,omitempty" required:"false" json:"skip_email,omitempty" path:"skip_email"`
	SkipName                        *bool                 `url:"skip_name,omitempty" required:"false" json:"skip_name,omitempty" path:"skip_name"`
	WatermarkAttachmentDelete       *bool                 `` /* 140-byte string literal not displayed */
	WatermarkAttachmentFile         io.Writer             `` /* 134-byte string literal not displayed */
}

type CallParams

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

type Clickwrap

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

func (Clickwrap) Identifier

func (c Clickwrap) Identifier() interface{}

func (*Clickwrap) UnmarshalJSON

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

type ClickwrapCollection

type ClickwrapCollection []Clickwrap

func (*ClickwrapCollection) ToSlice

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" json:"name,omitempty" path:"name"`
	Body           string                      `url:"body,omitempty" required:"false" json:"body,omitempty" path:"body"`
	UseWithBundles ClickwrapUseWithBundlesEnum `url:"use_with_bundles,omitempty" required:"false" json:"use_with_bundles,omitempty" path:"use_with_bundles"`
	UseWithInboxes ClickwrapUseWithInboxesEnum `url:"use_with_inboxes,omitempty" required:"false" json:"use_with_inboxes,omitempty" path:"use_with_inboxes"`
	UseWithUsers   ClickwrapUseWithUsersEnum   `url:"use_with_users,omitempty" required:"false" json:"use_with_users,omitempty" path:"use_with_users"`
}

type ClickwrapDeleteParams

type ClickwrapDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type ClickwrapFindParams

type ClickwrapFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type ClickwrapListParams

type ClickwrapListParams struct {
	ListParams
}

type ClickwrapUpdateParams

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

type ClickwrapUseWithBundlesEnum

type ClickwrapUseWithBundlesEnum string

func (ClickwrapUseWithBundlesEnum) Enum

func (ClickwrapUseWithBundlesEnum) String

type ClickwrapUseWithInboxesEnum

type ClickwrapUseWithInboxesEnum string

func (ClickwrapUseWithInboxesEnum) Enum

func (ClickwrapUseWithInboxesEnum) String

type ClickwrapUseWithUsersEnum

type ClickwrapUseWithUsersEnum string

func (ClickwrapUseWithUsersEnum) Enum

func (ClickwrapUseWithUsersEnum) String

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
	UserAgent string
	Environment
	FeatureFlags map[string]bool
	// contains filtered or unexported fields
}
var GlobalConfig Config

func (*Config) FeatureFlag

func (c *Config) FeatureFlag(flag string) bool

func (*Config) GetAPIKey

func (c *Config) GetAPIKey() string

func (*Config) GetHttpClient

func (c *Config) GetHttpClient() HttpClient

func (*Config) GetRawClient

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

func (*Config) InDebug

func (c *Config) InDebug() bool

func (*Config) LogPath

func (c *Config) LogPath(path string, args map[string]interface{})

func (*Config) Logger

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

func (*Config) RootPath

func (c *Config) RootPath() string

func (*Config) SetHeaders

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

func (*Config) SetHttpClient

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

func (*Config) SetLogger

func (c *Config) SetLogger(l Logger)

type Data

type Data struct {
	U2fSIgnRequests               []U2fSignRequests `json:"u2f_sign_requests,omitempty"`
	PartialSessionId              string            `json:"partial_session_id,omitempty"`
	TwoFactorAuthenticationMethod []string          `json:"two_factor_authentication_methods,omitempty"`
	// Download Request Status
	BytesTransferred int64     `json:"bytes_transferred"`
	Status           string    `json:"status"`
	StartedAt        time.Time `json:"started_at"`
	CompletedAt      time.Time `json:"completed_at"`
	TouchedAt        time.Time `json:"touched_at"`
}

type DnsRecord

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

func (DnsRecord) Identifier

func (d DnsRecord) Identifier() interface{}

func (*DnsRecord) UnmarshalJSON

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

type DnsRecordCollection

type DnsRecordCollection []DnsRecord

func (*DnsRecordCollection) ToSlice

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

func (*DnsRecordCollection) UnmarshalJSON

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

type DnsRecordListParams

type DnsRecordListParams struct {
	ListParams
}

type Environment

type Environment int64
const (
	Production Environment = iota
	Staging
	Local
)

func NewEnvironment

func NewEnvironment(env string) Environment

func (Environment) Endpoint

func (e Environment) Endpoint() string

func (Environment) String

func (e Environment) String() string

type Errors

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

func (*Errors) UnmarshalJSON

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

type ErrorsCollection

type ErrorsCollection []Errors

func (*ErrorsCollection) ToSlice

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" json:"etag,omitempty" path:"etag"`
	Part string `url:"part,omitempty" json:"part,omitempty" path:"part"`
}

type ExternalEvent

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

func (ExternalEvent) Identifier

func (e ExternalEvent) Identifier() interface{}

func (*ExternalEvent) UnmarshalJSON

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

type ExternalEventCollection

type ExternalEventCollection []ExternalEvent

func (*ExternalEventCollection) ToSlice

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

func (*ExternalEventCollection) UnmarshalJSON

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

type ExternalEventCreateParams

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

type ExternalEventFindParams

type ExternalEventFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type ExternalEventListParams

type ExternalEventListParams struct {
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt     json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type ExternalEventStatusEnum

type ExternalEventStatusEnum string

func (ExternalEventStatusEnum) Enum

func (ExternalEventStatusEnum) String

func (u ExternalEventStatusEnum) String() string

type File

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

func (File) Identifier

func (f File) Identifier() interface{}

func (File) Iterable

func (f File) Iterable() bool

func (File) String

func (f File) String() string

func (File) ToFolder

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" path:"status"`
	FileMigrationId int64  `json:"file_migration_id,omitempty" path:"file_migration_id"`
}

func (*FileAction) UnmarshalJSON

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

type FileActionCollection

type FileActionCollection []FileAction

func (*FileActionCollection) ToSlice

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

func (*FileActionCollection) UnmarshalJSON

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

type FileBeginUploadParams

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

Begin file upload

type FileCollection

type FileCollection []File

func (*FileCollection) ToSlice

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" path:"id"`
	Body      string   `json:"body,omitempty" path:"body"`
	Reactions []string `json:"reactions,omitempty" path:"reactions"`
	Path      string   `json:"path,omitempty" path:"path"`
}

func (FileComment) Identifier

func (f FileComment) Identifier() interface{}

func (*FileComment) UnmarshalJSON

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

type FileCommentCollection

type FileCommentCollection []FileComment

func (*FileCommentCollection) ToSlice

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" json:"body,omitempty" path:"body"`
	Path string `url:"path,omitempty" required:"true" json:"path,omitempty" path:"path"`
}

type FileCommentDeleteParams

type FileCommentDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type FileCommentListForParams

type FileCommentListForParams struct {
	Path string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	ListParams
}

type FileCommentReaction

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

func (FileCommentReaction) Identifier

func (f FileCommentReaction) Identifier() interface{}

func (*FileCommentReaction) UnmarshalJSON

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

type FileCommentReactionCollection

type FileCommentReactionCollection []FileCommentReaction

func (*FileCommentReactionCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	FileCommentId int64  `url:"file_comment_id,omitempty" required:"true" json:"file_comment_id,omitempty" path:"file_comment_id"`
	Emoji         string `url:"emoji,omitempty" required:"true" json:"emoji,omitempty" path:"emoji"`
}

type FileCommentReactionDeleteParams

type FileCommentReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type FileCommentUpdateParams

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

type FileCopyParams

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

Copy file/folder

type FileCreateParams

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

type FileDeleteParams

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

type FileDownloadParams

type FileDownloadParams struct {
	Path              string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Action            string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	PreviewSize       string `url:"preview_size,omitempty" required:"false" json:"preview_size,omitempty" path:"preview_size"`
	WithPreviews      *bool  `url:"with_previews,omitempty" required:"false" json:"with_previews,omitempty" path:"with_previews"`
	WithPriorityColor *bool  `url:"with_priority_color,omitempty" required:"false" json:"with_priority_color,omitempty" path:"with_priority_color"`
	File              File   `url:"-,omitempty" required:"false" json:"-,omitempty"`
}

Download file

type FileFindParams

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

type FileMigration

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

func (FileMigration) Identifier

func (f FileMigration) Identifier() interface{}

func (*FileMigration) UnmarshalJSON

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

type FileMigrationCollection

type FileMigrationCollection []FileMigration

func (*FileMigrationCollection) ToSlice

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

func (*FileMigrationCollection) UnmarshalJSON

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

type FileMigrationFindParams

type FileMigrationFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type FileMoveParams

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

Move file/folder

type FileUpdateParams

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

type FileUploadPart

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

func (FileUploadPart) Identifier

func (f FileUploadPart) Identifier() interface{}

func (*FileUploadPart) UnmarshalJSON

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

type FileUploadPartCollection

type FileUploadPartCollection []FileUploadPart

func (*FileUploadPartCollection) ToSlice

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

func (*FileUploadPartCollection) UnmarshalJSON

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

type FilesMigrationLog

type FilesMigrationLog struct {
	Type      string    `json:"type"`
	Timestamp time.Time `json:"timestamp"`
	Operation string    `json:"operation"`
	Status    string    `json:"status"`
	FileType  string    `json:"file_type"`
	Path      string    `json:"path"`
	DestPath  string    `json:"dest_path"`
}

type FilesMigrationLogIter

type FilesMigrationLogIter struct {
	context.Context
	Config
	FileMigration
	// contains filtered or unexported fields
}

func (*FilesMigrationLogIter) Current

func (l *FilesMigrationLogIter) Current() interface{}

func (*FilesMigrationLogIter) Err

func (l *FilesMigrationLogIter) Err() error

func (FilesMigrationLogIter) Init

func (*FilesMigrationLogIter) Next

func (l *FilesMigrationLogIter) Next() bool

type Folder

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

func (Folder) Identifier

func (f Folder) Identifier() interface{}

func (*Folder) ToFile

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

func (*Folder) UnmarshalJSON

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

type FolderCollection

type FolderCollection []Folder

func (*FolderCollection) ToSlice

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:"false" json:"-,omitempty" path:"path"`
	MkdirParents  *bool      `url:"mkdir_parents,omitempty" required:"false" json:"mkdir_parents,omitempty" path:"mkdir_parents"`
	ProvidedMtime *time.Time `url:"provided_mtime,omitempty" required:"false" json:"provided_mtime,omitempty" path:"provided_mtime"`
}

type FolderListForParams

type FolderListForParams struct {
	Path               string                              `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Filter             string                              `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	PreviewSize        string                              `url:"preview_size,omitempty" required:"false" json:"preview_size,omitempty" path:"preview_size"`
	SortBy             json.RawMessage                     `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Search             string                              `url:"search,omitempty" required:"false" json:"search,omitempty" path:"search"`
	SearchAll          *bool                               `url:"search_all,omitempty" required:"false" json:"search_all,omitempty" path:"search_all"`
	WithPreviews       *bool                               `url:"with_previews,omitempty" required:"false" json:"with_previews,omitempty" path:"with_previews"`
	WithPriorityColor  *bool                               `url:"with_priority_color,omitempty" required:"false" json:"with_priority_color,omitempty" path:"with_priority_color"`
	ConcurrencyManager lib.ConcurrencyManagerWithSubWorker `url:"-" required:"false" json:"-"`
	ListParams
}

type FormField

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

func (FormField) Identifier

func (f FormField) Identifier() interface{}

func (*FormField) UnmarshalJSON

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

type FormFieldCollection

type FormFieldCollection []FormField

func (*FormFieldCollection) ToSlice

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

func (*FormFieldCollection) UnmarshalJSON

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

type FormFieldSet

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

func (FormFieldSet) Identifier

func (f FormFieldSet) Identifier() interface{}

func (*FormFieldSet) UnmarshalJSON

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

type FormFieldSetCollection

type FormFieldSetCollection []FormFieldSet

func (*FormFieldSetCollection) ToSlice

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

func (*FormFieldSetCollection) UnmarshalJSON

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

type FormFieldSetCreateParams

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

type FormFieldSetDeleteParams

type FormFieldSetDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type FormFieldSetFindParams

type FormFieldSetFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type FormFieldSetListParams

type FormFieldSetListParams struct {
	UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	ListParams
}

type FormFieldSetUpdateParams

type FormFieldSetUpdateParams struct {
	Id          int64           `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Title       string          `url:"title,omitempty" required:"" json:"title,omitempty" path:"title"`
	SkipEmail   *bool           `url:"skip_email,omitempty" required:"" json:"skip_email,omitempty" path:"skip_email"`
	SkipName    *bool           `url:"skip_name,omitempty" required:"" json:"skip_name,omitempty" path:"skip_name"`
	SkipCompany *bool           `url:"skip_company,omitempty" required:"" json:"skip_company,omitempty" path:"skip_company"`
	FormFields  json.RawMessage `url:"form_fields,omitempty" required:"" json:"form_fields,omitempty" path:"form_fields"`
}

type Group

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

func (Group) Identifier

func (g Group) Identifier() interface{}

func (*Group) UnmarshalJSON

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

type GroupCollection

type GroupCollection []Group

func (*GroupCollection) ToSlice

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" json:"name,omitempty" path:"name"`
	Notes    string `url:"notes,omitempty" required:"false" json:"notes,omitempty" path:"notes"`
	UserIds  string `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty" path:"user_ids"`
	AdminIds string `url:"admin_ids,omitempty" required:"false" json:"admin_ids,omitempty" path:"admin_ids"`
}

type GroupDeleteParams

type GroupDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type GroupFindParams

type GroupFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type GroupListParams

type GroupListParams struct {
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Ids          string          `url:"ids,omitempty" required:"false" json:"ids,omitempty" path:"ids"`
	ListParams
}

type GroupUpdateParams

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

type GroupUser

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

func (GroupUser) Identifier

func (g GroupUser) Identifier() interface{}

func (*GroupUser) UnmarshalJSON

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

type GroupUserCollection

type GroupUserCollection []GroupUser

func (*GroupUserCollection) ToSlice

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

func (*GroupUserCollection) UnmarshalJSON

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

type GroupUserCreateParams

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

type GroupUserDeleteParams

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

type GroupUserListParams

type GroupUserListParams struct {
	UserId  int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	GroupId int64 `url:"group_id,omitempty" required:"false" json:"group_id,omitempty" path:"group_id"`
	ListParams
}

type GroupUserUpdateParams

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

type History

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

func (History) Identifier

func (h History) Identifier() interface{}

func (*History) UnmarshalJSON

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

type HistoryCollection

type HistoryCollection []History

func (*HistoryCollection) ToSlice

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

func (HistoryExport) Identifier

func (h HistoryExport) Identifier() interface{}

func (*HistoryExport) UnmarshalJSON

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

type HistoryExportCollection

type HistoryExportCollection []HistoryExport

func (*HistoryExportCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	StartAt                  *time.Time `url:"start_at,omitempty" required:"false" json:"start_at,omitempty" path:"start_at"`
	EndAt                    *time.Time `url:"end_at,omitempty" required:"false" json:"end_at,omitempty" path:"end_at"`
	QueryAction              string     `url:"query_action,omitempty" required:"false" json:"query_action,omitempty" path:"query_action"`
	QueryInterface           string     `url:"query_interface,omitempty" required:"false" json:"query_interface,omitempty" path:"query_interface"`
	QueryUserId              string     `url:"query_user_id,omitempty" required:"false" json:"query_user_id,omitempty" path:"query_user_id"`
	QueryFileId              string     `url:"query_file_id,omitempty" required:"false" json:"query_file_id,omitempty" path:"query_file_id"`
	QueryParentId            string     `url:"query_parent_id,omitempty" required:"false" json:"query_parent_id,omitempty" path:"query_parent_id"`
	QueryPath                string     `url:"query_path,omitempty" required:"false" json:"query_path,omitempty" path:"query_path"`
	QueryFolder              string     `url:"query_folder,omitempty" required:"false" json:"query_folder,omitempty" path:"query_folder"`
	QuerySrc                 string     `url:"query_src,omitempty" required:"false" json:"query_src,omitempty" path:"query_src"`
	QueryDestination         string     `url:"query_destination,omitempty" required:"false" json:"query_destination,omitempty" path:"query_destination"`
	QueryIp                  string     `url:"query_ip,omitempty" required:"false" json:"query_ip,omitempty" path:"query_ip"`
	QueryUsername            string     `url:"query_username,omitempty" required:"false" json:"query_username,omitempty" path:"query_username"`
	QueryFailureType         string     `url:"query_failure_type,omitempty" required:"false" json:"query_failure_type,omitempty" path:"query_failure_type"`
	QueryTargetId            string     `url:"query_target_id,omitempty" required:"false" json:"query_target_id,omitempty" path:"query_target_id"`
	QueryTargetName          string     `url:"query_target_name,omitempty" required:"false" json:"query_target_name,omitempty" path:"query_target_name"`
	QueryTargetPermission    string     `` /* 128-byte string literal not displayed */
	QueryTargetUserId        string     `url:"query_target_user_id,omitempty" required:"false" json:"query_target_user_id,omitempty" path:"query_target_user_id"`
	QueryTargetUsername      string     `url:"query_target_username,omitempty" required:"false" json:"query_target_username,omitempty" path:"query_target_username"`
	QueryTargetPlatform      string     `url:"query_target_platform,omitempty" required:"false" json:"query_target_platform,omitempty" path:"query_target_platform"`
	QueryTargetPermissionSet string     `` /* 140-byte string literal not displayed */
}

type HistoryExportFindParams

type HistoryExportFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type HistoryExportResult

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

func (HistoryExportResult) Identifier

func (h HistoryExportResult) Identifier() interface{}

func (*HistoryExportResult) UnmarshalJSON

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

type HistoryExportResultCollection

type HistoryExportResultCollection []HistoryExportResult

func (*HistoryExportResultCollection) ToSlice

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

func (*HistoryExportResultCollection) UnmarshalJSON

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

type HistoryExportResultListParams

type HistoryExportResultListParams struct {
	UserId          int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	HistoryExportId int64 `url:"history_export_id,omitempty" required:"true" json:"history_export_id,omitempty" path:"history_export_id"`
	ListParams
}

type HistoryListForFileParams

type HistoryListForFileParams struct {
	StartAt *time.Time      `url:"start_at,omitempty" required:"false" json:"start_at,omitempty" path:"start_at"`
	EndAt   *time.Time      `url:"end_at,omitempty" required:"false" json:"end_at,omitempty" path:"end_at"`
	Display string          `url:"display,omitempty" required:"false" json:"display,omitempty" path:"display"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Path    string          `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	ListParams
}

type HistoryListForFolderParams

type HistoryListForFolderParams struct {
	StartAt *time.Time      `url:"start_at,omitempty" required:"false" json:"start_at,omitempty" path:"start_at"`
	EndAt   *time.Time      `url:"end_at,omitempty" required:"false" json:"end_at,omitempty" path:"end_at"`
	Display string          `url:"display,omitempty" required:"false" json:"display,omitempty" path:"display"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Path    string          `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	ListParams
}

type HistoryListForUserParams

type HistoryListForUserParams struct {
	StartAt *time.Time      `url:"start_at,omitempty" required:"false" json:"start_at,omitempty" path:"start_at"`
	EndAt   *time.Time      `url:"end_at,omitempty" required:"false" json:"end_at,omitempty" path:"end_at"`
	Display string          `url:"display,omitempty" required:"false" json:"display,omitempty" path:"display"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	UserId  int64           `url:"-,omitempty" required:"false" json:"-,omitempty" path:"user_id"`
	ListParams
}

type HistoryListLoginsParams

type HistoryListLoginsParams struct {
	StartAt *time.Time      `url:"start_at,omitempty" required:"false" json:"start_at,omitempty" path:"start_at"`
	EndAt   *time.Time      `url:"end_at,omitempty" required:"false" json:"end_at,omitempty" path:"end_at"`
	Display string          `url:"display,omitempty" required:"false" json:"display,omitempty" path:"display"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

type HistoryListParams

type HistoryListParams struct {
	StartAt      *time.Time      `url:"start_at,omitempty" required:"false" json:"start_at,omitempty" path:"start_at"`
	EndAt        *time.Time      `url:"end_at,omitempty" required:"false" json:"end_at,omitempty" path:"end_at"`
	Display      string          `url:"display,omitempty" required:"false" json:"display,omitempty" path:"display"`
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

type HttpClient

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

type Identifier

type Identifier interface {
	Identifier() interface{}
}

type Image

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

func (*Image) UnmarshalJSON

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

type ImageCollection

type ImageCollection []Image

func (*ImageCollection) ToSlice

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

func (*ImageCollection) UnmarshalJSON

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

type InboxRecipient

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

func (*InboxRecipient) UnmarshalJSON

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

type InboxRecipientCollection

type InboxRecipientCollection []InboxRecipient

func (*InboxRecipientCollection) ToSlice

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

func (*InboxRecipientCollection) UnmarshalJSON

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

type InboxRecipientCreateParams

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

type InboxRecipientListParams

type InboxRecipientListParams struct {
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter  json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	InboxId int64           `url:"inbox_id,omitempty" required:"true" json:"inbox_id,omitempty" path:"inbox_id"`
	ListParams
}

type InboxRegistration

type InboxRegistration struct {
	Code             string          `json:"code,omitempty" path:"code"`
	Name             string          `json:"name,omitempty" path:"name"`
	Company          string          `json:"company,omitempty" path:"company"`
	Email            string          `json:"email,omitempty" path:"email"`
	ClickwrapBody    string          `json:"clickwrap_body,omitempty" path:"clickwrap_body"`
	FormFieldSetId   int64           `json:"form_field_set_id,omitempty" path:"form_field_set_id"`
	FormFieldData    json.RawMessage `json:"form_field_data,omitempty" path:"form_field_data"`
	InboxId          int64           `json:"inbox_id,omitempty" path:"inbox_id"`
	InboxRecipientId int64           `json:"inbox_recipient_id,omitempty" path:"inbox_recipient_id"`
	InboxTitle       string          `json:"inbox_title,omitempty" path:"inbox_title"`
	CreatedAt        *time.Time      `json:"created_at,omitempty" path:"created_at"`
}

func (*InboxRegistration) UnmarshalJSON

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

type InboxRegistrationCollection

type InboxRegistrationCollection []InboxRegistration

func (*InboxRegistrationCollection) ToSlice

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

func (*InboxRegistrationCollection) UnmarshalJSON

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

type InboxRegistrationListParams

type InboxRegistrationListParams struct {
	FolderBehaviorId int64 `url:"folder_behavior_id,omitempty" required:"false" json:"folder_behavior_id,omitempty" path:"folder_behavior_id"`
	ListParams
}

type InboxUpload

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

func (InboxUpload) Identifier

func (i InboxUpload) Identifier() interface{}

func (*InboxUpload) UnmarshalJSON

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

type InboxUploadCollection

type InboxUploadCollection []InboxUpload

func (*InboxUploadCollection) ToSlice

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

func (*InboxUploadCollection) UnmarshalJSON

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

type InboxUploadListParams

type InboxUploadListParams struct {
	SortBy              json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter              json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt            json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq          json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt            json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq          json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	InboxRegistrationId int64           `url:"inbox_registration_id,omitempty" required:"false" json:"inbox_registration_id,omitempty" path:"inbox_registration_id"`
	InboxId             int64           `url:"inbox_id,omitempty" required:"false" json:"inbox_id,omitempty" path:"inbox_id"`
	ListParams
}

type Invoice

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

func (Invoice) Identifier

func (i Invoice) Identifier() interface{}

func (*Invoice) UnmarshalJSON

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

type InvoiceCollection

type InvoiceCollection []Invoice

func (*InvoiceCollection) ToSlice

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:"false" json:"-,omitempty" path:"id"`
}

type InvoiceLineItem

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

func (*InvoiceLineItem) UnmarshalJSON

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

type InvoiceLineItemCollection

type InvoiceLineItemCollection []InvoiceLineItem

func (*InvoiceLineItemCollection) ToSlice

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

func (*InvoiceLineItemCollection) UnmarshalJSON

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

type InvoiceListParams

type InvoiceListParams struct {
	ListParams
}

type IpAddress

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

func (IpAddress) Identifier

func (i IpAddress) Identifier() interface{}

func (*IpAddress) UnmarshalJSON

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

type IpAddressCollection

type IpAddressCollection []IpAddress

func (*IpAddressCollection) ToSlice

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

func (*IpAddressCollection) UnmarshalJSON

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

type IpAddressGetExavaultReservedParams

type IpAddressGetExavaultReservedParams struct {
	ListParams
}

type IpAddressGetReservedParams

type IpAddressGetReservedParams struct {
	ListParams
}

type IpAddressListParams

type IpAddressListParams struct {
	ListParams
}

type Iter

type Iter struct {
	Query
	ListParams   ListParamsContainer
	Params       []interface{}
	CurrentIndex int
	Values       *[]interface{}
	Cursor       string
	Error        error
	OnPageError
	// contains filtered or unexported fields
}

func (*Iter) Current

func (i *Iter) Current() interface{}

func (*Iter) EOFPage

func (i *Iter) EOFPage() bool

func (*Iter) Err

func (i *Iter) Err() error

Err returns the error, if any, that caused the Iter to stop. It must be inspected after Next returns false.

func (*Iter) ExportParams

func (i *Iter) ExportParams() (lib.ExportValues, error)

func (*Iter) GetCursor

func (i *Iter) GetCursor() string

func (*Iter) GetPage

func (i *Iter) GetPage() bool

func (*Iter) GetParams

func (i *Iter) GetParams() *ListParams

func (*Iter) Next

func (i *Iter) Next() bool

Next iterates the results in i.Current() or i.`ResourceName`(). It returns true until there are no results remaining. To adjust the number of results set ListParams.PerPage. To have it auto-paginate set ListParams.MaxPages, default is 1.

To iterate over all results use the following pattern.

for i.Next() {
  i.Current()
}

func (*Iter) NextPage

func (i *Iter) NextPage() bool

func (*Iter) Paging

func (i *Iter) Paging() bool

func (*Iter) Reload

func (i *Iter) Reload(opts ...RequestResponseOption) IterI

Reload ignores any id passed in and creates a new reset Iter

func (*Iter) SetCursor

func (i *Iter) SetCursor(cursor string)

type IterI

type IterI interface {
	Next() bool
	Current() interface{}
	Err() error
}

type IterPagingI

type IterPagingI interface {
	IterI
	EOFPage() bool
}

type Iterable

type Iterable interface {
	Iterable() bool
}

type ListParams

type ListParams struct {
	Page     int64  `json:"page,omitempty" url:"page,omitempty" required:"false"`
	PerPage  int64  `json:"per_page,omitempty" url:"per_page,omitempty" required:"false"`
	Cursor   string `json:"cursor,omitempty" url:"cursor,omitempty" required:"false"`
	MaxPages int64  `json:"-" url:"-"`
}

func (*ListParams) GetListParams

func (p *ListParams) GetListParams() *ListParams

GetListParams returns a ListParams struct (itself). It exists because any structs that embed ListParams will inherit it, and thus implement the ListParamsContainer interface.

type ListParamsContainer

type ListParamsContainer interface {
	GetListParams() *ListParams
}

ListParamsContainer is a general interface for which all list parameter structs should comply. They achieve this by embedding a ListParams struct and inheriting its implementation of this interface.

type Lock

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

func (Lock) Identifier

func (l Lock) Identifier() interface{}

func (*Lock) UnmarshalJSON

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

type LockCollection

type LockCollection []Lock

func (*LockCollection) ToSlice

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:"false" json:"-,omitempty" path:"path"`
	AllowAccessByAnyUser *bool  `` /* 131-byte string literal not displayed */
	Exclusive            *bool  `url:"exclusive,omitempty" required:"false" json:"exclusive,omitempty" path:"exclusive"`
	Recursive            string `url:"recursive,omitempty" required:"false" json:"recursive,omitempty" path:"recursive"`
	Timeout              int64  `url:"timeout,omitempty" required:"false" json:"timeout,omitempty" path:"timeout"`
}

type LockDeleteParams

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

type LockListForParams

type LockListForParams struct {
	Path            string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	IncludeChildren *bool  `url:"include_children,omitempty" required:"false" json:"include_children,omitempty" path:"include_children"`
	ListParams
}

type Logger

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

type Message

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

func (Message) Identifier

func (m Message) Identifier() interface{}

func (*Message) UnmarshalJSON

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

type MessageCollection

type MessageCollection []Message

func (*MessageCollection) ToSlice

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" path:"id"`
	Body      string   `json:"body,omitempty" path:"body"`
	Reactions []string `json:"reactions,omitempty" path:"reactions"`
	UserId    int64    `json:"user_id,omitempty" path:"user_id"`
}

func (MessageComment) Identifier

func (m MessageComment) Identifier() interface{}

func (*MessageComment) UnmarshalJSON

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

type MessageCommentCollection

type MessageCommentCollection []MessageComment

func (*MessageCommentCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	Body   string `url:"body,omitempty" required:"true" json:"body,omitempty" path:"body"`
}

type MessageCommentDeleteParams

type MessageCommentDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type MessageCommentFindParams

type MessageCommentFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type MessageCommentListParams

type MessageCommentListParams struct {
	UserId    int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	MessageId int64 `url:"message_id,omitempty" required:"true" json:"message_id,omitempty" path:"message_id"`
	ListParams
}

type MessageCommentReaction

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

func (MessageCommentReaction) Identifier

func (m MessageCommentReaction) Identifier() interface{}

func (*MessageCommentReaction) UnmarshalJSON

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

type MessageCommentReactionCollection

type MessageCommentReactionCollection []MessageCommentReaction

func (*MessageCommentReactionCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	Emoji  string `url:"emoji,omitempty" required:"true" json:"emoji,omitempty" path:"emoji"`
}

type MessageCommentReactionDeleteParams

type MessageCommentReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type MessageCommentReactionFindParams

type MessageCommentReactionFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type MessageCommentReactionListParams

type MessageCommentReactionListParams struct {
	UserId           int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	MessageCommentId int64 `url:"message_comment_id,omitempty" required:"true" json:"message_comment_id,omitempty" path:"message_comment_id"`
	ListParams
}

type MessageCommentUpdateParams

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

type MessageCreateParams

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

type MessageDeleteParams

type MessageDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type MessageFindParams

type MessageFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type MessageListParams

type MessageListParams struct {
	UserId    int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	ProjectId int64 `url:"project_id,omitempty" required:"true" json:"project_id,omitempty" path:"project_id"`
	ListParams
}

type MessageReaction

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

func (MessageReaction) Identifier

func (m MessageReaction) Identifier() interface{}

func (*MessageReaction) UnmarshalJSON

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

type MessageReactionCollection

type MessageReactionCollection []MessageReaction

func (*MessageReactionCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	Emoji  string `url:"emoji,omitempty" required:"true" json:"emoji,omitempty" path:"emoji"`
}

type MessageReactionDeleteParams

type MessageReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type MessageReactionFindParams

type MessageReactionFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type MessageReactionListParams

type MessageReactionListParams struct {
	UserId    int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	MessageId int64 `url:"message_id,omitempty" required:"true" json:"message_id,omitempty" path:"message_id"`
	ListParams
}

type MessageUpdateParams

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

type Notification

type Notification struct {
	Id                       int64    `json:"id,omitempty" path:"id"`
	Path                     string   `json:"path,omitempty" path:"path"`
	GroupId                  int64    `json:"group_id,omitempty" path:"group_id"`
	GroupName                string   `json:"group_name,omitempty" path:"group_name"`
	TriggeringGroupIds       []int64  `json:"triggering_group_ids,omitempty" path:"triggering_group_ids"`
	TriggeringUserIds        []int64  `json:"triggering_user_ids,omitempty" path:"triggering_user_ids"`
	TriggerByShareRecipients *bool    `json:"trigger_by_share_recipients,omitempty" path:"trigger_by_share_recipients"`
	NotifyUserActions        *bool    `json:"notify_user_actions,omitempty" path:"notify_user_actions"`
	NotifyOnCopy             *bool    `json:"notify_on_copy,omitempty" path:"notify_on_copy"`
	NotifyOnDelete           *bool    `json:"notify_on_delete,omitempty" path:"notify_on_delete"`
	NotifyOnDownload         *bool    `json:"notify_on_download,omitempty" path:"notify_on_download"`
	NotifyOnMove             *bool    `json:"notify_on_move,omitempty" path:"notify_on_move"`
	NotifyOnUpload           *bool    `json:"notify_on_upload,omitempty" path:"notify_on_upload"`
	Recursive                *bool    `json:"recursive,omitempty" path:"recursive"`
	SendInterval             string   `json:"send_interval,omitempty" path:"send_interval"`
	Message                  string   `json:"message,omitempty" path:"message"`
	TriggeringFilenames      []string `json:"triggering_filenames,omitempty" path:"triggering_filenames"`
	Unsubscribed             *bool    `json:"unsubscribed,omitempty" path:"unsubscribed"`
	UnsubscribedReason       string   `json:"unsubscribed_reason,omitempty" path:"unsubscribed_reason"`
	UserId                   int64    `json:"user_id,omitempty" path:"user_id"`
	Username                 string   `json:"username,omitempty" path:"username"`
	SuppressedEmail          *bool    `json:"suppressed_email,omitempty" path:"suppressed_email"`
}

func (Notification) Identifier

func (n Notification) Identifier() interface{}

func (*Notification) UnmarshalJSON

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

type NotificationCollection

type NotificationCollection []Notification

func (*NotificationCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	NotifyOnCopy             *bool    `url:"notify_on_copy,omitempty" required:"false" json:"notify_on_copy,omitempty" path:"notify_on_copy"`
	NotifyOnDelete           *bool    `url:"notify_on_delete,omitempty" required:"false" json:"notify_on_delete,omitempty" path:"notify_on_delete"`
	NotifyOnDownload         *bool    `url:"notify_on_download,omitempty" required:"false" json:"notify_on_download,omitempty" path:"notify_on_download"`
	NotifyOnMove             *bool    `url:"notify_on_move,omitempty" required:"false" json:"notify_on_move,omitempty" path:"notify_on_move"`
	NotifyOnUpload           *bool    `url:"notify_on_upload,omitempty" required:"false" json:"notify_on_upload,omitempty" path:"notify_on_upload"`
	NotifyUserActions        *bool    `url:"notify_user_actions,omitempty" required:"false" json:"notify_user_actions,omitempty" path:"notify_user_actions"`
	Recursive                *bool    `url:"recursive,omitempty" required:"false" json:"recursive,omitempty" path:"recursive"`
	SendInterval             string   `url:"send_interval,omitempty" required:"false" json:"send_interval,omitempty" path:"send_interval"`
	Message                  string   `url:"message,omitempty" required:"false" json:"message,omitempty" path:"message"`
	TriggeringFilenames      []string `url:"triggering_filenames,omitempty" required:"false" json:"triggering_filenames,omitempty" path:"triggering_filenames"`
	TriggeringGroupIds       []int64  `url:"triggering_group_ids,omitempty" required:"false" json:"triggering_group_ids,omitempty" path:"triggering_group_ids"`
	TriggeringUserIds        []int64  `url:"triggering_user_ids,omitempty" required:"false" json:"triggering_user_ids,omitempty" path:"triggering_user_ids"`
	TriggerByShareRecipients *bool    `` /* 140-byte string literal not displayed */
	GroupId                  int64    `url:"group_id,omitempty" required:"false" json:"group_id,omitempty" path:"group_id"`
	Path                     string   `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	Username                 string   `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
}

type NotificationDeleteParams

type NotificationDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type NotificationFindParams

type NotificationFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type NotificationListParams

type NotificationListParams struct {
	UserId           int64           `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	SortBy           json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	GroupId          string          `url:"group_id,omitempty" required:"false" json:"group_id,omitempty" path:"group_id"`
	Filter           json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix     json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Path             string          `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	IncludeAncestors *bool           `url:"include_ancestors,omitempty" required:"false" json:"include_ancestors,omitempty" path:"include_ancestors"`
	ListParams
}

type NotificationUpdateParams

type NotificationUpdateParams struct {
	Id                       int64    `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	NotifyOnCopy             *bool    `url:"notify_on_copy,omitempty" required:"false" json:"notify_on_copy,omitempty" path:"notify_on_copy"`
	NotifyOnDelete           *bool    `url:"notify_on_delete,omitempty" required:"false" json:"notify_on_delete,omitempty" path:"notify_on_delete"`
	NotifyOnDownload         *bool    `url:"notify_on_download,omitempty" required:"false" json:"notify_on_download,omitempty" path:"notify_on_download"`
	NotifyOnMove             *bool    `url:"notify_on_move,omitempty" required:"false" json:"notify_on_move,omitempty" path:"notify_on_move"`
	NotifyOnUpload           *bool    `url:"notify_on_upload,omitempty" required:"false" json:"notify_on_upload,omitempty" path:"notify_on_upload"`
	NotifyUserActions        *bool    `url:"notify_user_actions,omitempty" required:"false" json:"notify_user_actions,omitempty" path:"notify_user_actions"`
	Recursive                *bool    `url:"recursive,omitempty" required:"false" json:"recursive,omitempty" path:"recursive"`
	SendInterval             string   `url:"send_interval,omitempty" required:"false" json:"send_interval,omitempty" path:"send_interval"`
	Message                  string   `url:"message,omitempty" required:"false" json:"message,omitempty" path:"message"`
	TriggeringFilenames      []string `url:"triggering_filenames,omitempty" required:"false" json:"triggering_filenames,omitempty" path:"triggering_filenames"`
	TriggeringGroupIds       []int64  `url:"triggering_group_ids,omitempty" required:"false" json:"triggering_group_ids,omitempty" path:"triggering_group_ids"`
	TriggeringUserIds        []int64  `url:"triggering_user_ids,omitempty" required:"false" json:"triggering_user_ids,omitempty" path:"triggering_user_ids"`
	TriggerByShareRecipients *bool    `` /* 140-byte string literal not displayed */
}

type NullLogger

type NullLogger struct{}

func (NullLogger) Printf

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

type OnPageError

type OnPageError func(error) (*[]interface{}, error)

type Payment

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

func (Payment) Identifier

func (p Payment) Identifier() interface{}

func (*Payment) UnmarshalJSON

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

type PaymentCollection

type PaymentCollection []Payment

func (*PaymentCollection) ToSlice

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:"false" json:"-,omitempty" path:"id"`
}

type PaymentLineItem

type PaymentLineItem struct {
	Amount    string     `json:"amount,omitempty" path:"amount"`
	CreatedAt *time.Time `json:"created_at,omitempty" path:"created_at"`
	InvoiceId int64      `json:"invoice_id,omitempty" path:"invoice_id"`
	PaymentId int64      `json:"payment_id,omitempty" path:"payment_id"`
}

func (*PaymentLineItem) UnmarshalJSON

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

type PaymentLineItemCollection

type PaymentLineItemCollection []PaymentLineItem

func (*PaymentLineItemCollection) ToSlice

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

func (*PaymentLineItemCollection) UnmarshalJSON

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

type PaymentListParams

type PaymentListParams struct {
	ListParams
}

type Permission

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

func (Permission) Identifier

func (p Permission) Identifier() interface{}

func (*Permission) UnmarshalJSON

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

type PermissionCollection

type PermissionCollection []Permission

func (*PermissionCollection) ToSlice

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" json:"group_id,omitempty" path:"group_id"`
	Path       string `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	Permission string `url:"permission,omitempty" required:"false" json:"permission,omitempty" path:"permission"`
	Recursive  *bool  `url:"recursive,omitempty" required:"false" json:"recursive,omitempty" path:"recursive"`
	UserId     int64  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Username   string `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
}

type PermissionDeleteParams

type PermissionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type PermissionListParams

type PermissionListParams struct {
	SortBy        json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter        json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix  json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Path          string          `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	GroupId       string          `url:"group_id,omitempty" required:"false" json:"group_id,omitempty" path:"group_id"`
	UserId        string          `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	IncludeGroups *bool           `url:"include_groups,omitempty" required:"false" json:"include_groups,omitempty" path:"include_groups"`
	ListParams
}

type Preview

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

func (Preview) Identifier

func (p Preview) Identifier() interface{}

func (*Preview) UnmarshalJSON

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

type PreviewCollection

type PreviewCollection []Preview

func (*PreviewCollection) ToSlice

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

func (*PreviewCollection) UnmarshalJSON

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

type Priority

type Priority struct {
	Path  string `json:"path,omitempty" path:"path"`
	Color string `json:"color,omitempty" path:"color"`
}

func (Priority) Identifier

func (p Priority) Identifier() interface{}

func (*Priority) UnmarshalJSON

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

type PriorityCollection

type PriorityCollection []Priority

func (*PriorityCollection) ToSlice

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

func (*PriorityCollection) UnmarshalJSON

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

type PriorityListParams

type PriorityListParams struct {
	Path string `url:"path,omitempty" required:"true" json:"path,omitempty" path:"path"`
	ListParams
}

type Project

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

func (Project) Identifier

func (p Project) Identifier() interface{}

func (*Project) UnmarshalJSON

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

type ProjectCollection

type ProjectCollection []Project

func (*ProjectCollection) ToSlice

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" json:"global_access,omitempty" path:"global_access"`
}

type ProjectDeleteParams

type ProjectDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type ProjectFindParams

type ProjectFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type ProjectListParams

type ProjectListParams struct {
	ListParams
}

type ProjectUpdateParams

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

type PublicIpAddress

type PublicIpAddress struct {
	IpAddress   string `json:"ip_address,omitempty" path:"ip_address"`
	ServerName  string `json:"server_name,omitempty" path:"server_name"`
	FtpEnabled  *bool  `json:"ftp_enabled,omitempty" path:"ftp_enabled"`
	SftpEnabled *bool  `json:"sftp_enabled,omitempty" path:"sftp_enabled"`
}

func (*PublicIpAddress) UnmarshalJSON

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

type PublicIpAddressCollection

type PublicIpAddressCollection []PublicIpAddress

func (*PublicIpAddressCollection) ToSlice

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" path:"id"`
	Title       string     `json:"title,omitempty" path:"title"`
	CreatedAt   *time.Time `json:"created_at,omitempty" path:"created_at"`
	Fingerprint string     `json:"fingerprint,omitempty" path:"fingerprint"`
	UserId      int64      `json:"user_id,omitempty" path:"user_id"`
	PublicKey   string     `json:"public_key,omitempty" path:"public_key"`
}

func (PublicKey) Identifier

func (p PublicKey) Identifier() interface{}

func (*PublicKey) UnmarshalJSON

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

type PublicKeyCollection

type PublicKeyCollection []PublicKey

func (*PublicKeyCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	Title     string `url:"title,omitempty" required:"true" json:"title,omitempty" path:"title"`
	PublicKey string `url:"public_key,omitempty" required:"true" json:"public_key,omitempty" path:"public_key"`
}

type PublicKeyDeleteParams

type PublicKeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type PublicKeyFindParams

type PublicKeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type PublicKeyListParams

type PublicKeyListParams struct {
	UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	ListParams
}

type PublicKeyUpdateParams

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

type QParam

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

type Query

type Query func(params lib.Values, opts ...RequestResponseOption) (*[]interface{}, string, error)

type ReloadIterator

type ReloadIterator interface {
	Reload(opts ...RequestResponseOption) IterI
}

type RemoteBandwidthSnapshot

type RemoteBandwidthSnapshot struct {
	Id                int64      `json:"id,omitempty" path:"id"`
	SyncBytesReceived string     `json:"sync_bytes_received,omitempty" path:"sync_bytes_received"`
	SyncBytesSent     string     `json:"sync_bytes_sent,omitempty" path:"sync_bytes_sent"`
	LoggedAt          *time.Time `json:"logged_at,omitempty" path:"logged_at"`
	RemoteServerId    int64      `json:"remote_server_id,omitempty" path:"remote_server_id"`
}

func (RemoteBandwidthSnapshot) Identifier

func (r RemoteBandwidthSnapshot) Identifier() interface{}

func (*RemoteBandwidthSnapshot) UnmarshalJSON

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

type RemoteBandwidthSnapshotCollection

type RemoteBandwidthSnapshotCollection []RemoteBandwidthSnapshot

func (*RemoteBandwidthSnapshotCollection) ToSlice

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

func (*RemoteBandwidthSnapshotCollection) UnmarshalJSON

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

type RemoteBandwidthSnapshotListParams

type RemoteBandwidthSnapshotListParams struct {
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type RemoteServer

type RemoteServer struct {
	Id                                int64  `json:"id,omitempty" path:"id"`
	Disabled                          *bool  `json:"disabled,omitempty" path:"disabled"`
	AuthenticationMethod              string `json:"authentication_method,omitempty" path:"authentication_method"`
	Hostname                          string `json:"hostname,omitempty" path:"hostname"`
	RemoteHomePath                    string `json:"remote_home_path,omitempty" path:"remote_home_path"`
	Name                              string `json:"name,omitempty" path:"name"`
	Port                              int64  `json:"port,omitempty" path:"port"`
	MaxConnections                    int64  `json:"max_connections,omitempty" path:"max_connections"`
	PinToSiteRegion                   *bool  `json:"pin_to_site_region,omitempty" path:"pin_to_site_region"`
	PinnedRegion                      string `json:"pinned_region,omitempty" path:"pinned_region"`
	S3Bucket                          string `json:"s3_bucket,omitempty" path:"s3_bucket"`
	S3Region                          string `json:"s3_region,omitempty" path:"s3_region"`
	AwsAccessKey                      string `json:"aws_access_key,omitempty" path:"aws_access_key"`
	ServerCertificate                 string `json:"server_certificate,omitempty" path:"server_certificate"`
	ServerHostKey                     string `json:"server_host_key,omitempty" path:"server_host_key"`
	ServerType                        string `json:"server_type,omitempty" path:"server_type"`
	Ssl                               string `json:"ssl,omitempty" path:"ssl"`
	Username                          string `json:"username,omitempty" path:"username"`
	GoogleCloudStorageBucket          string `json:"google_cloud_storage_bucket,omitempty" path:"google_cloud_storage_bucket"`
	GoogleCloudStorageProjectId       string `json:"google_cloud_storage_project_id,omitempty" path:"google_cloud_storage_project_id"`
	BackblazeB2S3Endpoint             string `json:"backblaze_b2_s3_endpoint,omitempty" path:"backblaze_b2_s3_endpoint"`
	BackblazeB2Bucket                 string `json:"backblaze_b2_bucket,omitempty" path:"backblaze_b2_bucket"`
	WasabiBucket                      string `json:"wasabi_bucket,omitempty" path:"wasabi_bucket"`
	WasabiRegion                      string `json:"wasabi_region,omitempty" path:"wasabi_region"`
	WasabiAccessKey                   string `json:"wasabi_access_key,omitempty" path:"wasabi_access_key"`
	RackspaceUsername                 string `json:"rackspace_username,omitempty" path:"rackspace_username"`
	RackspaceRegion                   string `json:"rackspace_region,omitempty" path:"rackspace_region"`
	RackspaceContainer                string `json:"rackspace_container,omitempty" path:"rackspace_container"`
	AuthSetupLink                     string `json:"auth_setup_link,omitempty" path:"auth_setup_link"`
	AuthStatus                        string `json:"auth_status,omitempty" path:"auth_status"`
	AuthAccountName                   string `json:"auth_account_name,omitempty" path:"auth_account_name"`
	OneDriveAccountType               string `json:"one_drive_account_type,omitempty" path:"one_drive_account_type"`
	AzureBlobStorageAccount           string `json:"azure_blob_storage_account,omitempty" path:"azure_blob_storage_account"`
	AzureBlobStorageSasToken          string `json:"azure_blob_storage_sas_token,omitempty" path:"azure_blob_storage_sas_token"`
	AzureBlobStorageContainer         string `json:"azure_blob_storage_container,omitempty" path:"azure_blob_storage_container"`
	AzureFilesStorageAccount          string `json:"azure_files_storage_account,omitempty" path:"azure_files_storage_account"`
	AzureFilesStorageSasToken         string `json:"azure_files_storage_sas_token,omitempty" path:"azure_files_storage_sas_token"`
	AzureFilesStorageShareName        string `json:"azure_files_storage_share_name,omitempty" path:"azure_files_storage_share_name"`
	S3CompatibleBucket                string `json:"s3_compatible_bucket,omitempty" path:"s3_compatible_bucket"`
	S3CompatibleEndpoint              string `json:"s3_compatible_endpoint,omitempty" path:"s3_compatible_endpoint"`
	S3CompatibleRegion                string `json:"s3_compatible_region,omitempty" path:"s3_compatible_region"`
	S3CompatibleAccessKey             string `json:"s3_compatible_access_key,omitempty" path:"s3_compatible_access_key"`
	EnableDedicatedIps                *bool  `json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	FilesAgentPermissionSet           string `json:"files_agent_permission_set,omitempty" path:"files_agent_permission_set"`
	FilesAgentRoot                    string `json:"files_agent_root,omitempty" path:"files_agent_root"`
	FilesAgentApiToken                string `json:"files_agent_api_token,omitempty" path:"files_agent_api_token"`
	FilebaseBucket                    string `json:"filebase_bucket,omitempty" path:"filebase_bucket"`
	FilebaseAccessKey                 string `json:"filebase_access_key,omitempty" path:"filebase_access_key"`
	AwsSecretKey                      string `json:"aws_secret_key,omitempty" path:"aws_secret_key"`
	Password                          string `json:"password,omitempty" path:"password"`
	PrivateKey                        string `json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassphrase              string `json:"private_key_passphrase,omitempty" path:"private_key_passphrase"`
	SslCertificate                    string `json:"ssl_certificate,omitempty" path:"ssl_certificate"`
	GoogleCloudStorageCredentialsJson string `json:"google_cloud_storage_credentials_json,omitempty" path:"google_cloud_storage_credentials_json"`
	WasabiSecretKey                   string `json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key"`
	BackblazeB2KeyId                  string `json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id"`
	BackblazeB2ApplicationKey         string `json:"backblaze_b2_application_key,omitempty" path:"backblaze_b2_application_key"`
	RackspaceApiKey                   string `json:"rackspace_api_key,omitempty" path:"rackspace_api_key"`
	ResetAuthentication               *bool  `json:"reset_authentication,omitempty" path:"reset_authentication"`
	AzureBlobStorageAccessKey         string `json:"azure_blob_storage_access_key,omitempty" path:"azure_blob_storage_access_key"`
	AzureFilesStorageAccessKey        string `json:"azure_files_storage_access_key,omitempty" path:"azure_files_storage_access_key"`
	S3CompatibleSecretKey             string `json:"s3_compatible_secret_key,omitempty" path:"s3_compatible_secret_key"`
	FilebaseSecretKey                 string `json:"filebase_secret_key,omitempty" path:"filebase_secret_key"`
}

func (RemoteServer) Identifier

func (r RemoteServer) Identifier() interface{}

func (*RemoteServer) UnmarshalJSON

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

type RemoteServerCollection

type RemoteServerCollection []RemoteServer

func (*RemoteServerCollection) ToSlice

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

func (*RemoteServerCollection) UnmarshalJSON

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

type RemoteServerConfigurationFile

type RemoteServerConfigurationFile struct {
	Id            int64  `json:"id,omitempty" path:"id"`
	PermissionSet string `json:"permission_set,omitempty" path:"permission_set"`
	ApiToken      string `json:"api_token,omitempty" path:"api_token"`
	Root          string `json:"root,omitempty" path:"root"`
	Port          int64  `json:"port,omitempty" path:"port"`
	Hostname      string `json:"hostname,omitempty" path:"hostname"`
	PublicKey     string `json:"public_key,omitempty" path:"public_key"`
	PrivateKey    string `json:"private_key,omitempty" path:"private_key"`
	Status        string `json:"status,omitempty" path:"status"`
	ConfigVersion string `json:"config_version,omitempty" path:"config_version"`
	ServerHostKey string `json:"server_host_key,omitempty" path:"server_host_key"`
	Subdomain     string `json:"subdomain,omitempty" path:"subdomain"`
}

func (RemoteServerConfigurationFile) Identifier

func (r RemoteServerConfigurationFile) Identifier() interface{}

func (*RemoteServerConfigurationFile) UnmarshalJSON

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

type RemoteServerConfigurationFileCollection

type RemoteServerConfigurationFileCollection []RemoteServerConfigurationFile

func (*RemoteServerConfigurationFileCollection) ToSlice

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

func (*RemoteServerConfigurationFileCollection) UnmarshalJSON

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

type RemoteServerConfigurationFileParams

type RemoteServerConfigurationFileParams struct {
	Id            int64  `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	ApiToken      string `url:"api_token,omitempty" required:"false" json:"api_token,omitempty" path:"api_token"`
	PermissionSet string `url:"permission_set,omitempty" required:"false" json:"permission_set,omitempty" path:"permission_set"`
	Root          string `url:"root,omitempty" required:"false" json:"root,omitempty" path:"root"`
	Hostname      string `url:"hostname,omitempty" required:"false" json:"hostname,omitempty" path:"hostname"`
	Port          int64  `url:"port,omitempty" required:"false" json:"port,omitempty" path:"port"`
	Status        string `url:"status,omitempty" required:"false" json:"status,omitempty" path:"status"`
	ConfigVersion string `url:"config_version,omitempty" required:"false" json:"config_version,omitempty" path:"config_version"`
	PrivateKey    string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
	PublicKey     string `url:"public_key,omitempty" required:"false" json:"public_key,omitempty" path:"public_key"`
	ServerHostKey string `url:"server_host_key,omitempty" required:"false" json:"server_host_key,omitempty" path:"server_host_key"`
	Subdomain     string `url:"subdomain,omitempty" required:"false" json:"subdomain,omitempty" path:"subdomain"`
}

Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)

type RemoteServerCreateParams

type RemoteServerCreateParams struct {
	AwsAccessKey                      string                                  `url:"aws_access_key,omitempty" required:"false" json:"aws_access_key,omitempty" path:"aws_access_key"`
	AwsSecretKey                      string                                  `url:"aws_secret_key,omitempty" required:"false" json:"aws_secret_key,omitempty" path:"aws_secret_key"`
	Password                          string                                  `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	PrivateKey                        string                                  `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassphrase              string                                  `url:"private_key_passphrase,omitempty" required:"false" json:"private_key_passphrase,omitempty" path:"private_key_passphrase"`
	SslCertificate                    string                                  `url:"ssl_certificate,omitempty" required:"false" json:"ssl_certificate,omitempty" path:"ssl_certificate"`
	GoogleCloudStorageCredentialsJson string                                  `` /* 170-byte string literal not displayed */
	WasabiAccessKey                   string                                  `url:"wasabi_access_key,omitempty" required:"false" json:"wasabi_access_key,omitempty" path:"wasabi_access_key"`
	WasabiSecretKey                   string                                  `url:"wasabi_secret_key,omitempty" required:"false" json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key"`
	BackblazeB2KeyId                  string                                  `url:"backblaze_b2_key_id,omitempty" required:"false" json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id"`
	BackblazeB2ApplicationKey         string                                  `` /* 143-byte string literal not displayed */
	RackspaceApiKey                   string                                  `url:"rackspace_api_key,omitempty" required:"false" json:"rackspace_api_key,omitempty" path:"rackspace_api_key"`
	ResetAuthentication               *bool                                   `url:"reset_authentication,omitempty" required:"false" json:"reset_authentication,omitempty" path:"reset_authentication"`
	AzureBlobStorageAccessKey         string                                  `` /* 146-byte string literal not displayed */
	AzureFilesStorageAccessKey        string                                  `` /* 149-byte string literal not displayed */
	Hostname                          string                                  `url:"hostname,omitempty" required:"false" json:"hostname,omitempty" path:"hostname"`
	Name                              string                                  `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	MaxConnections                    int64                                   `url:"max_connections,omitempty" required:"false" json:"max_connections,omitempty" path:"max_connections"`
	PinToSiteRegion                   *bool                                   `url:"pin_to_site_region,omitempty" required:"false" json:"pin_to_site_region,omitempty" path:"pin_to_site_region"`
	Port                              int64                                   `url:"port,omitempty" required:"false" json:"port,omitempty" path:"port"`
	S3Bucket                          string                                  `url:"s3_bucket,omitempty" required:"false" json:"s3_bucket,omitempty" path:"s3_bucket"`
	S3Region                          string                                  `url:"s3_region,omitempty" required:"false" json:"s3_region,omitempty" path:"s3_region"`
	ServerCertificate                 RemoteServerServerCertificateEnum       `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty" path:"server_certificate"`
	ServerHostKey                     string                                  `url:"server_host_key,omitempty" required:"false" json:"server_host_key,omitempty" path:"server_host_key"`
	ServerType                        RemoteServerServerTypeEnum              `url:"server_type,omitempty" required:"false" json:"server_type,omitempty" path:"server_type"`
	Ssl                               RemoteServerSslEnum                     `url:"ssl,omitempty" required:"false" json:"ssl,omitempty" path:"ssl"`
	Username                          string                                  `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
	GoogleCloudStorageBucket          string                                  `` /* 140-byte string literal not displayed */
	GoogleCloudStorageProjectId       string                                  `` /* 152-byte string literal not displayed */
	BackblazeB2Bucket                 string                                  `url:"backblaze_b2_bucket,omitempty" required:"false" json:"backblaze_b2_bucket,omitempty" path:"backblaze_b2_bucket"`
	BackblazeB2S3Endpoint             string                                  `` /* 131-byte string literal not displayed */
	WasabiBucket                      string                                  `url:"wasabi_bucket,omitempty" required:"false" json:"wasabi_bucket,omitempty" path:"wasabi_bucket"`
	WasabiRegion                      string                                  `url:"wasabi_region,omitempty" required:"false" json:"wasabi_region,omitempty" path:"wasabi_region"`
	RackspaceUsername                 string                                  `url:"rackspace_username,omitempty" required:"false" json:"rackspace_username,omitempty" path:"rackspace_username"`
	RackspaceRegion                   string                                  `url:"rackspace_region,omitempty" required:"false" json:"rackspace_region,omitempty" path:"rackspace_region"`
	RackspaceContainer                string                                  `url:"rackspace_container,omitempty" required:"false" json:"rackspace_container,omitempty" path:"rackspace_container"`
	OneDriveAccountType               RemoteServerOneDriveAccountTypeEnum     `url:"one_drive_account_type,omitempty" required:"false" json:"one_drive_account_type,omitempty" path:"one_drive_account_type"`
	AzureBlobStorageAccount           string                                  `` /* 137-byte string literal not displayed */
	AzureBlobStorageContainer         string                                  `` /* 143-byte string literal not displayed */
	AzureBlobStorageSasToken          string                                  `` /* 143-byte string literal not displayed */
	AzureFilesStorageAccount          string                                  `` /* 140-byte string literal not displayed */
	AzureFilesStorageShareName        string                                  `` /* 149-byte string literal not displayed */
	AzureFilesStorageSasToken         string                                  `` /* 146-byte string literal not displayed */
	S3CompatibleBucket                string                                  `url:"s3_compatible_bucket,omitempty" required:"false" json:"s3_compatible_bucket,omitempty" path:"s3_compatible_bucket"`
	S3CompatibleEndpoint              string                                  `url:"s3_compatible_endpoint,omitempty" required:"false" json:"s3_compatible_endpoint,omitempty" path:"s3_compatible_endpoint"`
	S3CompatibleRegion                string                                  `url:"s3_compatible_region,omitempty" required:"false" json:"s3_compatible_region,omitempty" path:"s3_compatible_region"`
	EnableDedicatedIps                *bool                                   `url:"enable_dedicated_ips,omitempty" required:"false" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	S3CompatibleAccessKey             string                                  `` /* 131-byte string literal not displayed */
	S3CompatibleSecretKey             string                                  `` /* 131-byte string literal not displayed */
	FilesAgentRoot                    string                                  `url:"files_agent_root,omitempty" required:"false" json:"files_agent_root,omitempty" path:"files_agent_root"`
	FilesAgentPermissionSet           RemoteServerFilesAgentPermissionSetEnum `` /* 137-byte string literal not displayed */
	FilebaseAccessKey                 string                                  `url:"filebase_access_key,omitempty" required:"false" json:"filebase_access_key,omitempty" path:"filebase_access_key"`
	FilebaseSecretKey                 string                                  `url:"filebase_secret_key,omitempty" required:"false" json:"filebase_secret_key,omitempty" path:"filebase_secret_key"`
	FilebaseBucket                    string                                  `url:"filebase_bucket,omitempty" required:"false" json:"filebase_bucket,omitempty" path:"filebase_bucket"`
}

type RemoteServerDeleteParams

type RemoteServerDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type RemoteServerFilesAgentPermissionSetEnum

type RemoteServerFilesAgentPermissionSetEnum string

func (RemoteServerFilesAgentPermissionSetEnum) Enum

func (RemoteServerFilesAgentPermissionSetEnum) String

type RemoteServerFindConfigurationFileParams

type RemoteServerFindConfigurationFileParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type RemoteServerFindParams

type RemoteServerFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type RemoteServerListParams

type RemoteServerListParams struct {
	ListParams
}

type RemoteServerOneDriveAccountTypeEnum

type RemoteServerOneDriveAccountTypeEnum string

func (RemoteServerOneDriveAccountTypeEnum) Enum

func (RemoteServerOneDriveAccountTypeEnum) String

type RemoteServerServerCertificateEnum

type RemoteServerServerCertificateEnum string

func (RemoteServerServerCertificateEnum) Enum

func (RemoteServerServerCertificateEnum) String

type RemoteServerServerTypeEnum

type RemoteServerServerTypeEnum string

func (RemoteServerServerTypeEnum) Enum

func (RemoteServerServerTypeEnum) String

type RemoteServerSslEnum

type RemoteServerSslEnum string

func (RemoteServerSslEnum) Enum

func (RemoteServerSslEnum) String

func (u RemoteServerSslEnum) String() string

type RemoteServerUpdateParams

type RemoteServerUpdateParams struct {
	Id                                int64                                   `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	AwsAccessKey                      string                                  `url:"aws_access_key,omitempty" required:"false" json:"aws_access_key,omitempty" path:"aws_access_key"`
	AwsSecretKey                      string                                  `url:"aws_secret_key,omitempty" required:"false" json:"aws_secret_key,omitempty" path:"aws_secret_key"`
	Password                          string                                  `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	PrivateKey                        string                                  `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassphrase              string                                  `url:"private_key_passphrase,omitempty" required:"false" json:"private_key_passphrase,omitempty" path:"private_key_passphrase"`
	SslCertificate                    string                                  `url:"ssl_certificate,omitempty" required:"false" json:"ssl_certificate,omitempty" path:"ssl_certificate"`
	GoogleCloudStorageCredentialsJson string                                  `` /* 170-byte string literal not displayed */
	WasabiAccessKey                   string                                  `url:"wasabi_access_key,omitempty" required:"false" json:"wasabi_access_key,omitempty" path:"wasabi_access_key"`
	WasabiSecretKey                   string                                  `url:"wasabi_secret_key,omitempty" required:"false" json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key"`
	BackblazeB2KeyId                  string                                  `url:"backblaze_b2_key_id,omitempty" required:"false" json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id"`
	BackblazeB2ApplicationKey         string                                  `` /* 143-byte string literal not displayed */
	RackspaceApiKey                   string                                  `url:"rackspace_api_key,omitempty" required:"false" json:"rackspace_api_key,omitempty" path:"rackspace_api_key"`
	ResetAuthentication               *bool                                   `url:"reset_authentication,omitempty" required:"false" json:"reset_authentication,omitempty" path:"reset_authentication"`
	AzureBlobStorageAccessKey         string                                  `` /* 146-byte string literal not displayed */
	AzureFilesStorageAccessKey        string                                  `` /* 149-byte string literal not displayed */
	Hostname                          string                                  `url:"hostname,omitempty" required:"false" json:"hostname,omitempty" path:"hostname"`
	Name                              string                                  `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	MaxConnections                    int64                                   `url:"max_connections,omitempty" required:"false" json:"max_connections,omitempty" path:"max_connections"`
	PinToSiteRegion                   *bool                                   `url:"pin_to_site_region,omitempty" required:"false" json:"pin_to_site_region,omitempty" path:"pin_to_site_region"`
	Port                              int64                                   `url:"port,omitempty" required:"false" json:"port,omitempty" path:"port"`
	S3Bucket                          string                                  `url:"s3_bucket,omitempty" required:"false" json:"s3_bucket,omitempty" path:"s3_bucket"`
	S3Region                          string                                  `url:"s3_region,omitempty" required:"false" json:"s3_region,omitempty" path:"s3_region"`
	ServerCertificate                 RemoteServerServerCertificateEnum       `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty" path:"server_certificate"`
	ServerHostKey                     string                                  `url:"server_host_key,omitempty" required:"false" json:"server_host_key,omitempty" path:"server_host_key"`
	ServerType                        RemoteServerServerTypeEnum              `url:"server_type,omitempty" required:"false" json:"server_type,omitempty" path:"server_type"`
	Ssl                               RemoteServerSslEnum                     `url:"ssl,omitempty" required:"false" json:"ssl,omitempty" path:"ssl"`
	Username                          string                                  `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
	GoogleCloudStorageBucket          string                                  `` /* 140-byte string literal not displayed */
	GoogleCloudStorageProjectId       string                                  `` /* 152-byte string literal not displayed */
	BackblazeB2Bucket                 string                                  `url:"backblaze_b2_bucket,omitempty" required:"false" json:"backblaze_b2_bucket,omitempty" path:"backblaze_b2_bucket"`
	BackblazeB2S3Endpoint             string                                  `` /* 131-byte string literal not displayed */
	WasabiBucket                      string                                  `url:"wasabi_bucket,omitempty" required:"false" json:"wasabi_bucket,omitempty" path:"wasabi_bucket"`
	WasabiRegion                      string                                  `url:"wasabi_region,omitempty" required:"false" json:"wasabi_region,omitempty" path:"wasabi_region"`
	RackspaceUsername                 string                                  `url:"rackspace_username,omitempty" required:"false" json:"rackspace_username,omitempty" path:"rackspace_username"`
	RackspaceRegion                   string                                  `url:"rackspace_region,omitempty" required:"false" json:"rackspace_region,omitempty" path:"rackspace_region"`
	RackspaceContainer                string                                  `url:"rackspace_container,omitempty" required:"false" json:"rackspace_container,omitempty" path:"rackspace_container"`
	OneDriveAccountType               RemoteServerOneDriveAccountTypeEnum     `url:"one_drive_account_type,omitempty" required:"false" json:"one_drive_account_type,omitempty" path:"one_drive_account_type"`
	AzureBlobStorageAccount           string                                  `` /* 137-byte string literal not displayed */
	AzureBlobStorageContainer         string                                  `` /* 143-byte string literal not displayed */
	AzureBlobStorageSasToken          string                                  `` /* 143-byte string literal not displayed */
	AzureFilesStorageAccount          string                                  `` /* 140-byte string literal not displayed */
	AzureFilesStorageShareName        string                                  `` /* 149-byte string literal not displayed */
	AzureFilesStorageSasToken         string                                  `` /* 146-byte string literal not displayed */
	S3CompatibleBucket                string                                  `url:"s3_compatible_bucket,omitempty" required:"false" json:"s3_compatible_bucket,omitempty" path:"s3_compatible_bucket"`
	S3CompatibleEndpoint              string                                  `url:"s3_compatible_endpoint,omitempty" required:"false" json:"s3_compatible_endpoint,omitempty" path:"s3_compatible_endpoint"`
	S3CompatibleRegion                string                                  `url:"s3_compatible_region,omitempty" required:"false" json:"s3_compatible_region,omitempty" path:"s3_compatible_region"`
	EnableDedicatedIps                *bool                                   `url:"enable_dedicated_ips,omitempty" required:"false" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	S3CompatibleAccessKey             string                                  `` /* 131-byte string literal not displayed */
	S3CompatibleSecretKey             string                                  `` /* 131-byte string literal not displayed */
	FilesAgentRoot                    string                                  `url:"files_agent_root,omitempty" required:"false" json:"files_agent_root,omitempty" path:"files_agent_root"`
	FilesAgentPermissionSet           RemoteServerFilesAgentPermissionSetEnum `` /* 137-byte string literal not displayed */
	FilebaseAccessKey                 string                                  `url:"filebase_access_key,omitempty" required:"false" json:"filebase_access_key,omitempty" path:"filebase_access_key"`
	FilebaseSecretKey                 string                                  `url:"filebase_secret_key,omitempty" required:"false" json:"filebase_secret_key,omitempty" path:"filebase_secret_key"`
	FilebaseBucket                    string                                  `url:"filebase_bucket,omitempty" required:"false" json:"filebase_bucket,omitempty" path:"filebase_bucket"`
}

type Request

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

func (Request) Identifier

func (r Request) Identifier() interface{}

func (*Request) UnmarshalJSON

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

type RequestCollection

type RequestCollection []Request

func (*RequestCollection) ToSlice

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" json:"path,omitempty" path:"path"`
	Destination string `url:"destination,omitempty" required:"true" json:"destination,omitempty" path:"destination"`
	UserIds     string `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty" path:"user_ids"`
	GroupIds    string `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty" path:"group_ids"`
}

type RequestDeleteParams

type RequestDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type RequestGetFolderParams

type RequestGetFolderParams struct {
	SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Mine   *bool           `url:"mine,omitempty" required:"false" json:"mine,omitempty" path:"mine"`
	Path   string          `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	ListParams
}

type RequestListParams

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

type RequestResponseOption

type RequestResponseOption func(*http.Request, *http.Response) error

func RequestHeadersOption

func RequestHeadersOption(headers *http.Header) RequestResponseOption

func RequestOption

func RequestOption(opt func(req *http.Request) error) RequestResponseOption

func ResponseBodyOption

func ResponseBodyOption(opt func(io.ReadCloser) error) RequestResponseOption

func ResponseOption

func ResponseOption(opt func(req *http.Response) error) RequestResponseOption

func WithContext

func WithContext(ctx context.Context) RequestResponseOption

type ResourceIterator

type ResourceIterator interface {
	Iterate(interface{}, ...RequestResponseOption) (IterI, error)
}

type ResourceLoader

type ResourceLoader interface {
	LoadResource(interface{}, ...RequestResponseOption) (interface{}, error)
}

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

func (e ResponseError) Is(err error) bool

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" path:"id"`
	Language            string `json:"language,omitempty" path:"language"`
	ReadOnly            *bool  `json:"read_only,omitempty" path:"read_only"`
	SftpInsecureCiphers *bool  `json:"sftp_insecure_ciphers,omitempty" path:"sftp_insecure_ciphers"`
	Username            string `json:"username,omitempty" path:"username"`
	Password            string `json:"password,omitempty" path:"password"`
	Otp                 string `json:"otp,omitempty" path:"otp"`
	PartialSessionId    string `json:"partial_session_id,omitempty" path:"partial_session_id"`
}

func (Session) Identifier

func (s Session) Identifier() interface{}

func (*Session) UnmarshalJSON

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

type SessionCollection

type SessionCollection []Session

func (*SessionCollection) ToSlice

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" json:"username,omitempty" path:"username"`
	Password         string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	Otp              string `url:"otp,omitempty" required:"false" json:"otp,omitempty" path:"otp"`
	PartialSessionId string `url:"partial_session_id,omitempty" required:"false" json:"partial_session_id,omitempty" path:"partial_session_id"`
}

type SettingsChange

type SettingsChange struct {
	Changes            []string   `json:"changes,omitempty" path:"changes"`
	CreatedAt          *time.Time `json:"created_at,omitempty" path:"created_at"`
	UserId             int64      `json:"user_id,omitempty" path:"user_id"`
	UserIsFilesSupport *bool      `json:"user_is_files_support,omitempty" path:"user_is_files_support"`
	Username           string     `json:"username,omitempty" path:"username"`
}

func (*SettingsChange) UnmarshalJSON

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

type SettingsChangeCollection

type SettingsChangeCollection []SettingsChange

func (*SettingsChangeCollection) ToSlice

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

func (*SettingsChangeCollection) UnmarshalJSON

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

type SettingsChangeListParams

type SettingsChangeListParams struct {
	SortBy   json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	ApiKeyId string          `url:"api_key_id,omitempty" required:"false" json:"api_key_id,omitempty" path:"api_key_id"`
	UserId   string          `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Filter   json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	ListParams
}

type SftpHostKey

type SftpHostKey struct {
	Id                int64  `json:"id,omitempty" path:"id"`
	Name              string `json:"name,omitempty" path:"name"`
	FingerprintMd5    string `json:"fingerprint_md5,omitempty" path:"fingerprint_md5"`
	FingerprintSha256 string `json:"fingerprint_sha256,omitempty" path:"fingerprint_sha256"`
	PrivateKey        string `json:"private_key,omitempty" path:"private_key"`
}

func (SftpHostKey) Identifier

func (s SftpHostKey) Identifier() interface{}

func (*SftpHostKey) UnmarshalJSON

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

type SftpHostKeyCollection

type SftpHostKeyCollection []SftpHostKey

func (*SftpHostKeyCollection) ToSlice

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

func (*SftpHostKeyCollection) UnmarshalJSON

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

type SftpHostKeyCreateParams

type SftpHostKeyCreateParams struct {
	Name       string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	PrivateKey string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
}

type SftpHostKeyDeleteParams

type SftpHostKeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type SftpHostKeyFindParams

type SftpHostKeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type SftpHostKeyListParams

type SftpHostKeyListParams struct {
	ListParams
}

type SftpHostKeyUpdateParams

type SftpHostKeyUpdateParams struct {
	Id         int64  `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Name       string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	PrivateKey string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
}

type SignRequest

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

type Site

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

func (*Site) UnmarshalJSON

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

type SiteCollection

type SiteCollection []Site

func (*SiteCollection) ToSlice

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" json:"name,omitempty" path:"name"`
	Subdomain                              string          `url:"subdomain,omitempty" required:"false" json:"subdomain,omitempty" path:"subdomain"`
	Domain                                 string          `url:"domain,omitempty" required:"false" json:"domain,omitempty" path:"domain"`
	DomainHstsHeader                       *bool           `url:"domain_hsts_header,omitempty" required:"false" json:"domain_hsts_header,omitempty" path:"domain_hsts_header"`
	DomainLetsencryptChain                 string          `` /* 131-byte string literal not displayed */
	Email                                  string          `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	ReplyToEmail                           string          `url:"reply_to_email,omitempty" required:"false" json:"reply_to_email,omitempty" path:"reply_to_email"`
	AllowBundleNames                       *bool           `url:"allow_bundle_names,omitempty" required:"false" json:"allow_bundle_names,omitempty" path:"allow_bundle_names"`
	BundleExpiration                       int64           `url:"bundle_expiration,omitempty" required:"false" json:"bundle_expiration,omitempty" path:"bundle_expiration"`
	WelcomeEmailEnabled                    *bool           `url:"welcome_email_enabled,omitempty" required:"false" json:"welcome_email_enabled,omitempty" path:"welcome_email_enabled"`
	AskAboutOverwrites                     *bool           `url:"ask_about_overwrites,omitempty" required:"false" json:"ask_about_overwrites,omitempty" path:"ask_about_overwrites"`
	ShowRequestAccessLink                  *bool           `` /* 131-byte string literal not displayed */
	WelcomeEmailCc                         string          `url:"welcome_email_cc,omitempty" required:"false" json:"welcome_email_cc,omitempty" path:"welcome_email_cc"`
	WelcomeEmailSubject                    string          `url:"welcome_email_subject,omitempty" required:"false" json:"welcome_email_subject,omitempty" path:"welcome_email_subject"`
	WelcomeCustomText                      string          `url:"welcome_custom_text,omitempty" required:"false" json:"welcome_custom_text,omitempty" path:"welcome_custom_text"`
	Language                               string          `url:"language,omitempty" required:"false" json:"language,omitempty" path:"language"`
	WindowsModeFtp                         *bool           `url:"windows_mode_ftp,omitempty" required:"false" json:"windows_mode_ftp,omitempty" path:"windows_mode_ftp"`
	DefaultTimeZone                        string          `url:"default_time_zone,omitempty" required:"false" json:"default_time_zone,omitempty" path:"default_time_zone"`
	DesktopApp                             *bool           `url:"desktop_app,omitempty" required:"false" json:"desktop_app,omitempty" path:"desktop_app"`
	DesktopAppSessionIpPinning             *bool           `` /* 149-byte string literal not displayed */
	DesktopAppSessionLifetime              int64           `` /* 143-byte string literal not displayed */
	MobileApp                              *bool           `url:"mobile_app,omitempty" required:"false" json:"mobile_app,omitempty" path:"mobile_app"`
	MobileAppSessionIpPinning              *bool           `` /* 146-byte string literal not displayed */
	MobileAppSessionLifetime               int64           `` /* 140-byte string literal not displayed */
	FolderPermissionsGroupsOnly            *bool           `` /* 149-byte string literal not displayed */
	WelcomeScreen                          string          `url:"welcome_screen,omitempty" required:"false" json:"welcome_screen,omitempty" path:"welcome_screen"`
	OfficeIntegrationAvailable             *bool           `` /* 143-byte string literal not displayed */
	OfficeIntegrationType                  string          `` /* 128-byte string literal not displayed */
	PinAllRemoteServersToSiteRegion        *bool           `` /* 170-byte string literal not displayed */
	MotdText                               string          `url:"motd_text,omitempty" required:"false" json:"motd_text,omitempty" path:"motd_text"`
	MotdUseForFtp                          *bool           `url:"motd_use_for_ftp,omitempty" required:"false" json:"motd_use_for_ftp,omitempty" path:"motd_use_for_ftp"`
	MotdUseForSftp                         *bool           `url:"motd_use_for_sftp,omitempty" required:"false" json:"motd_use_for_sftp,omitempty" path:"motd_use_for_sftp"`
	SessionExpiry                          string          `url:"session_expiry,omitempty" required:"false" json:"session_expiry,omitempty" path:"session_expiry"`
	SslRequired                            *bool           `url:"ssl_required,omitempty" required:"false" json:"ssl_required,omitempty" path:"ssl_required"`
	TlsDisabled                            *bool           `url:"tls_disabled,omitempty" required:"false" json:"tls_disabled,omitempty" path:"tls_disabled"`
	SftpInsecureCiphers                    *bool           `url:"sftp_insecure_ciphers,omitempty" required:"false" json:"sftp_insecure_ciphers,omitempty" path:"sftp_insecure_ciphers"`
	DisableFilesCertificateGeneration      *bool           `` /* 167-byte string literal not displayed */
	UserLockout                            *bool           `url:"user_lockout,omitempty" required:"false" json:"user_lockout,omitempty" path:"user_lockout"`
	UserLockoutTries                       int64           `url:"user_lockout_tries,omitempty" required:"false" json:"user_lockout_tries,omitempty" path:"user_lockout_tries"`
	UserLockoutWithin                      int64           `url:"user_lockout_within,omitempty" required:"false" json:"user_lockout_within,omitempty" path:"user_lockout_within"`
	UserLockoutLockPeriod                  int64           `` /* 131-byte string literal not displayed */
	IncludePasswordInWelcomeEmail          *bool           `` /* 158-byte string literal not displayed */
	AllowedCountries                       string          `url:"allowed_countries,omitempty" required:"false" json:"allowed_countries,omitempty" path:"allowed_countries"`
	AllowedIps                             string          `url:"allowed_ips,omitempty" required:"false" json:"allowed_ips,omitempty" path:"allowed_ips"`
	DisallowedCountries                    string          `url:"disallowed_countries,omitempty" required:"false" json:"disallowed_countries,omitempty" path:"disallowed_countries"`
	DaysToRetainBackups                    int64           `url:"days_to_retain_backups,omitempty" required:"false" json:"days_to_retain_backups,omitempty" path:"days_to_retain_backups"`
	MaxPriorPasswords                      int64           `url:"max_prior_passwords,omitempty" required:"false" json:"max_prior_passwords,omitempty" path:"max_prior_passwords"`
	PasswordValidityDays                   int64           `url:"password_validity_days,omitempty" required:"false" json:"password_validity_days,omitempty" path:"password_validity_days"`
	PasswordMinLength                      int64           `url:"password_min_length,omitempty" required:"false" json:"password_min_length,omitempty" path:"password_min_length"`
	PasswordRequireLetter                  *bool           `` /* 128-byte string literal not displayed */
	PasswordRequireMixed                   *bool           `url:"password_require_mixed,omitempty" required:"false" json:"password_require_mixed,omitempty" path:"password_require_mixed"`
	PasswordRequireSpecial                 *bool           `` /* 131-byte string literal not displayed */
	PasswordRequireNumber                  *bool           `` /* 128-byte string literal not displayed */
	PasswordRequireUnbreached              *bool           `` /* 140-byte string literal not displayed */
	RequireLogoutFromBundlesAndInboxes     *bool           `` /* 176-byte string literal not displayed */
	SftpUserRootEnabled                    *bool           `url:"sftp_user_root_enabled,omitempty" required:"false" json:"sftp_user_root_enabled,omitempty" path:"sftp_user_root_enabled"`
	DisablePasswordReset                   *bool           `url:"disable_password_reset,omitempty" required:"false" json:"disable_password_reset,omitempty" path:"disable_password_reset"`
	ImmutableFiles                         *bool           `url:"immutable_files,omitempty" required:"false" json:"immutable_files,omitempty" path:"immutable_files"`
	SessionPinnedByIp                      *bool           `url:"session_pinned_by_ip,omitempty" required:"false" json:"session_pinned_by_ip,omitempty" path:"session_pinned_by_ip"`
	BundlePasswordRequired                 *bool           `` /* 131-byte string literal not displayed */
	BundleRequireShareRecipient            *bool           `` /* 149-byte string literal not displayed */
	BundleRegistrationNotifications        string          `` /* 158-byte string literal not displayed */
	BundleActivityNotifications            string          `` /* 146-byte string literal not displayed */
	BundleUploadReceiptNotifications       string          `` /* 164-byte string literal not displayed */
	PasswordRequirementsApplyToBundles     *bool           `` /* 173-byte string literal not displayed */
	PreventRootPermissionsForNonSiteAdmins *bool           `` /* 191-byte string literal not displayed */
	OptOutGlobal                           *bool           `url:"opt_out_global,omitempty" required:"false" json:"opt_out_global,omitempty" path:"opt_out_global"`
	UseProvidedModifiedAt                  *bool           `` /* 131-byte string literal not displayed */
	CustomNamespace                        *bool           `url:"custom_namespace,omitempty" required:"false" json:"custom_namespace,omitempty" path:"custom_namespace"`
	DisableUsersFromInactivityPeriodDays   int64           `` /* 182-byte string literal not displayed */
	NonSsoGroupsAllowed                    *bool           `url:"non_sso_groups_allowed,omitempty" required:"false" json:"non_sso_groups_allowed,omitempty" path:"non_sso_groups_allowed"`
	NonSsoUsersAllowed                     *bool           `url:"non_sso_users_allowed,omitempty" required:"false" json:"non_sso_users_allowed,omitempty" path:"non_sso_users_allowed"`
	SharingEnabled                         *bool           `url:"sharing_enabled,omitempty" required:"false" json:"sharing_enabled,omitempty" path:"sharing_enabled"`
	UserRequestsEnabled                    *bool           `url:"user_requests_enabled,omitempty" required:"false" json:"user_requests_enabled,omitempty" path:"user_requests_enabled"`
	UserRequestsNotifyAdmins               *bool           `` /* 140-byte string literal not displayed */
	FtpEnabled                             *bool           `url:"ftp_enabled,omitempty" required:"false" json:"ftp_enabled,omitempty" path:"ftp_enabled"`
	SftpEnabled                            *bool           `url:"sftp_enabled,omitempty" required:"false" json:"sftp_enabled,omitempty" path:"sftp_enabled"`
	SftpHostKeyType                        string          `url:"sftp_host_key_type,omitempty" required:"false" json:"sftp_host_key_type,omitempty" path:"sftp_host_key_type"`
	ActiveSftpHostKeyId                    int64           `` /* 128-byte string literal not displayed */
	BundleWatermarkValue                   json.RawMessage `url:"bundle_watermark_value,omitempty" required:"false" json:"bundle_watermark_value,omitempty" path:"bundle_watermark_value"`
	GroupAdminsCanSetUserPassword          *bool           `` /* 161-byte string literal not displayed */
	Allowed2faMethodSms                    *bool           `url:"allowed_2fa_method_sms,omitempty" required:"false" json:"allowed_2fa_method_sms,omitempty" path:"allowed_2fa_method_sms"`
	Allowed2faMethodU2f                    *bool           `url:"allowed_2fa_method_u2f,omitempty" required:"false" json:"allowed_2fa_method_u2f,omitempty" path:"allowed_2fa_method_u2f"`
	Allowed2faMethodTotp                   *bool           `` /* 128-byte string literal not displayed */
	Allowed2faMethodWebauthn               *bool           `` /* 140-byte string literal not displayed */
	Allowed2faMethodYubi                   *bool           `` /* 128-byte string literal not displayed */
	Allowed2faMethodBypassForFtpSftpDav    *bool           `` /* 185-byte string literal not displayed */
	Require2fa                             *bool           `url:"require_2fa,omitempty" required:"false" json:"require_2fa,omitempty" path:"require_2fa"`
	Require2faUserType                     string          `url:"require_2fa_user_type,omitempty" required:"false" json:"require_2fa_user_type,omitempty" path:"require_2fa_user_type"`
	Color2Top                              string          `url:"color2_top,omitempty" required:"false" json:"color2_top,omitempty" path:"color2_top"`
	Color2Left                             string          `url:"color2_left,omitempty" required:"false" json:"color2_left,omitempty" path:"color2_left"`
	Color2Link                             string          `url:"color2_link,omitempty" required:"false" json:"color2_link,omitempty" path:"color2_link"`
	Color2Text                             string          `url:"color2_text,omitempty" required:"false" json:"color2_text,omitempty" path:"color2_text"`
	Color2TopText                          string          `url:"color2_top_text,omitempty" required:"false" json:"color2_top_text,omitempty" path:"color2_top_text"`
	SiteHeader                             string          `url:"site_header,omitempty" required:"false" json:"site_header,omitempty" path:"site_header"`
	SiteFooter                             string          `url:"site_footer,omitempty" required:"false" json:"site_footer,omitempty" path:"site_footer"`
	LoginHelpText                          string          `url:"login_help_text,omitempty" required:"false" json:"login_help_text,omitempty" path:"login_help_text"`
	SmtpAddress                            string          `url:"smtp_address,omitempty" required:"false" json:"smtp_address,omitempty" path:"smtp_address"`
	SmtpAuthentication                     string          `url:"smtp_authentication,omitempty" required:"false" json:"smtp_authentication,omitempty" path:"smtp_authentication"`
	SmtpFrom                               string          `url:"smtp_from,omitempty" required:"false" json:"smtp_from,omitempty" path:"smtp_from"`
	SmtpUsername                           string          `url:"smtp_username,omitempty" required:"false" json:"smtp_username,omitempty" path:"smtp_username"`
	SmtpPort                               int64           `url:"smtp_port,omitempty" required:"false" json:"smtp_port,omitempty" path:"smtp_port"`
	LdapEnabled                            *bool           `url:"ldap_enabled,omitempty" required:"false" json:"ldap_enabled,omitempty" path:"ldap_enabled"`
	LdapType                               string          `url:"ldap_type,omitempty" required:"false" json:"ldap_type,omitempty" path:"ldap_type"`
	LdapHost                               string          `url:"ldap_host,omitempty" required:"false" json:"ldap_host,omitempty" path:"ldap_host"`
	LdapHost2                              string          `url:"ldap_host_2,omitempty" required:"false" json:"ldap_host_2,omitempty" path:"ldap_host_2"`
	LdapHost3                              string          `url:"ldap_host_3,omitempty" required:"false" json:"ldap_host_3,omitempty" path:"ldap_host_3"`
	LdapPort                               int64           `url:"ldap_port,omitempty" required:"false" json:"ldap_port,omitempty" path:"ldap_port"`
	LdapSecure                             *bool           `url:"ldap_secure,omitempty" required:"false" json:"ldap_secure,omitempty" path:"ldap_secure"`
	LdapUsername                           string          `url:"ldap_username,omitempty" required:"false" json:"ldap_username,omitempty" path:"ldap_username"`
	LdapUsernameField                      string          `url:"ldap_username_field,omitempty" required:"false" json:"ldap_username_field,omitempty" path:"ldap_username_field"`
	LdapDomain                             string          `url:"ldap_domain,omitempty" required:"false" json:"ldap_domain,omitempty" path:"ldap_domain"`
	LdapUserAction                         string          `url:"ldap_user_action,omitempty" required:"false" json:"ldap_user_action,omitempty" path:"ldap_user_action"`
	LdapGroupAction                        string          `url:"ldap_group_action,omitempty" required:"false" json:"ldap_group_action,omitempty" path:"ldap_group_action"`
	LdapUserIncludeGroups                  string          `` /* 131-byte string literal not displayed */
	LdapGroupExclusion                     string          `url:"ldap_group_exclusion,omitempty" required:"false" json:"ldap_group_exclusion,omitempty" path:"ldap_group_exclusion"`
	LdapGroupInclusion                     string          `url:"ldap_group_inclusion,omitempty" required:"false" json:"ldap_group_inclusion,omitempty" path:"ldap_group_inclusion"`
	LdapBaseDn                             string          `url:"ldap_base_dn,omitempty" required:"false" json:"ldap_base_dn,omitempty" path:"ldap_base_dn"`
	UploadsViaEmailAuthentication          *bool           `` /* 155-byte string literal not displayed */
	Icon16File                             io.Writer       `url:"icon16_file,omitempty" required:"false" json:"icon16_file,omitempty" path:"icon16_file"`
	Icon16Delete                           *bool           `url:"icon16_delete,omitempty" required:"false" json:"icon16_delete,omitempty" path:"icon16_delete"`
	Icon32File                             io.Writer       `url:"icon32_file,omitempty" required:"false" json:"icon32_file,omitempty" path:"icon32_file"`
	Icon32Delete                           *bool           `url:"icon32_delete,omitempty" required:"false" json:"icon32_delete,omitempty" path:"icon32_delete"`
	Icon48File                             io.Writer       `url:"icon48_file,omitempty" required:"false" json:"icon48_file,omitempty" path:"icon48_file"`
	Icon48Delete                           *bool           `url:"icon48_delete,omitempty" required:"false" json:"icon48_delete,omitempty" path:"icon48_delete"`
	Icon128File                            io.Writer       `url:"icon128_file,omitempty" required:"false" json:"icon128_file,omitempty" path:"icon128_file"`
	Icon128Delete                          *bool           `url:"icon128_delete,omitempty" required:"false" json:"icon128_delete,omitempty" path:"icon128_delete"`
	LogoFile                               io.Writer       `url:"logo_file,omitempty" required:"false" json:"logo_file,omitempty" path:"logo_file"`
	LogoDelete                             *bool           `url:"logo_delete,omitempty" required:"false" json:"logo_delete,omitempty" path:"logo_delete"`
	BundleWatermarkAttachmentFile          io.Writer       `` /* 155-byte string literal not displayed */
	BundleWatermarkAttachmentDelete        *bool           `` /* 161-byte string literal not displayed */
	Disable2faWithDelay                    *bool           `url:"disable_2fa_with_delay,omitempty" required:"false" json:"disable_2fa_with_delay,omitempty" path:"disable_2fa_with_delay"`
	LdapPasswordChange                     string          `url:"ldap_password_change,omitempty" required:"false" json:"ldap_password_change,omitempty" path:"ldap_password_change"`
	LdapPasswordChangeConfirmation         string          `` /* 158-byte string literal not displayed */
	SmtpPassword                           string          `url:"smtp_password,omitempty" required:"false" json:"smtp_password,omitempty" path:"smtp_password"`
	SessionExpiryMinutes                   int64           `url:"session_expiry_minutes,omitempty" required:"false" json:"session_expiry_minutes,omitempty" path:"session_expiry_minutes"`
}

type Snapshot

type Snapshot struct {
	ExpiresAt   *time.Time `json:"expires_at,omitempty" path:"expires_at"`
	FinalizedAt *time.Time `json:"finalized_at,omitempty" path:"finalized_at"`
	Name        string     `json:"name,omitempty" path:"name"`
	UserId      int64      `json:"user_id,omitempty" path:"user_id"`
	BundleId    int64      `json:"bundle_id,omitempty" path:"bundle_id"`
	Paths       []string   `json:"paths,omitempty" path:"paths"`
	Id          int64      `json:"id,omitempty" path:"id"`
}

func (Snapshot) Identifier

func (s Snapshot) Identifier() interface{}

func (*Snapshot) UnmarshalJSON

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

type SnapshotCollection

type SnapshotCollection []Snapshot

func (*SnapshotCollection) ToSlice

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

func (*SnapshotCollection) UnmarshalJSON

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

type SnapshotCreateParams

type SnapshotCreateParams struct {
	ExpiresAt *time.Time `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty" path:"expires_at"`
	Name      string     `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Paths     []string   `url:"paths,omitempty" required:"false" json:"paths,omitempty" path:"paths"`
}

type SnapshotDeleteParams

type SnapshotDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type SnapshotFindParams

type SnapshotFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type SnapshotListParams

type SnapshotListParams struct {
	ListParams
}

type SnapshotUpdateParams

type SnapshotUpdateParams struct {
	Id        int64      `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	ExpiresAt *time.Time `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty" path:"expires_at"`
	Name      string     `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Paths     []string   `url:"paths,omitempty" required:"false" json:"paths,omitempty" path:"paths"`
}

type SsoStrategy

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

func (SsoStrategy) Identifier

func (s SsoStrategy) Identifier() interface{}

func (*SsoStrategy) UnmarshalJSON

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

type SsoStrategyCollection

type SsoStrategyCollection []SsoStrategy

func (*SsoStrategyCollection) ToSlice

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:"false" json:"-,omitempty" path:"id"`
}

type SsoStrategyListParams

type SsoStrategyListParams struct {
	ListParams
}

type SsoStrategySyncParams

type SsoStrategySyncParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

Synchronize provisioning data with the SSO remote server

type Status

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

func (*Status) UnmarshalJSON

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

type StatusCollection

type StatusCollection []Status

func (*StatusCollection) ToSlice

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:"id"`
	Path      string    `json:"path,omitempty" path:"path"`
	Thumbnail Image     `json:"thumbnail,omitempty" path:"thumbnail"`
	File      io.Reader `json:"file,omitempty" path:"file"`
}

func (Style) Identifier

func (s Style) Identifier() interface{}

func (*Style) UnmarshalJSON

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

type StyleCollection

type StyleCollection []Style

func (*StyleCollection) ToSlice

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:"false" json:"-,omitempty" path:"path"`
}

type StyleFindParams

type StyleFindParams struct {
	Path string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
}

type StyleUpdateParams

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

type TypedIterI

type TypedIterI[T any] interface {
	Next() bool
	Current() interface{}
	Resource() T
	Err() error
}

type U2fSignRequests

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" path:"id"`
	Date                         *date.Date      `json:"date,omitempty" path:"date"`
	ApiUsageAvailable            *bool           `json:"api_usage_available,omitempty" path:"api_usage_available"`
	ReadApiUsage                 int64           `json:"read_api_usage,omitempty" path:"read_api_usage"`
	WriteApiUsage                int64           `json:"write_api_usage,omitempty" path:"write_api_usage"`
	UserCount                    int64           `json:"user_count,omitempty" path:"user_count"`
	CurrentStorage               int64           `json:"current_storage,omitempty" path:"current_storage"`
	DeletedFilesStorage          int64           `json:"deleted_files_storage,omitempty" path:"deleted_files_storage"`
	DeletedFilesCountedInMinimum int64           `json:"deleted_files_counted_in_minimum,omitempty" path:"deleted_files_counted_in_minimum"`
	RootStorage                  int64           `json:"root_storage,omitempty" path:"root_storage"`
	UsageByTopLevelDir           json.RawMessage `json:"usage_by_top_level_dir,omitempty" path:"usage_by_top_level_dir"`
}

func (UsageDailySnapshot) Identifier

func (u UsageDailySnapshot) Identifier() interface{}

func (*UsageDailySnapshot) UnmarshalJSON

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

type UsageDailySnapshotCollection

type UsageDailySnapshotCollection []UsageDailySnapshot

func (*UsageDailySnapshotCollection) ToSlice

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

func (*UsageDailySnapshotCollection) UnmarshalJSON

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

type UsageDailySnapshotListParams

type UsageDailySnapshotListParams struct {
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type UsageSnapshot

type UsageSnapshot struct {
	Id                           int64           `json:"id,omitempty" path:"id"`
	StartAt                      *time.Time      `json:"start_at,omitempty" path:"start_at"`
	EndAt                        *time.Time      `json:"end_at,omitempty" path:"end_at"`
	HighWaterUserCount           string          `json:"high_water_user_count,omitempty" path:"high_water_user_count"`
	CurrentStorage               string          `json:"current_storage,omitempty" path:"current_storage"`
	HighWaterStorage             string          `json:"high_water_storage,omitempty" path:"high_water_storage"`
	UsageByTopLevelDir           json.RawMessage `json:"usage_by_top_level_dir,omitempty" path:"usage_by_top_level_dir"`
	RootStorage                  string          `json:"root_storage,omitempty" path:"root_storage"`
	DeletedFilesCountedInMinimum string          `json:"deleted_files_counted_in_minimum,omitempty" path:"deleted_files_counted_in_minimum"`
	DeletedFilesStorage          string          `json:"deleted_files_storage,omitempty" path:"deleted_files_storage"`
	TotalBillableUsage           string          `json:"total_billable_usage,omitempty" path:"total_billable_usage"`
	TotalBillableTransferUsage   string          `json:"total_billable_transfer_usage,omitempty" path:"total_billable_transfer_usage"`
	BytesSent                    string          `json:"bytes_sent,omitempty" path:"bytes_sent"`
	SyncBytesReceived            string          `json:"sync_bytes_received,omitempty" path:"sync_bytes_received"`
	SyncBytesSent                string          `json:"sync_bytes_sent,omitempty" path:"sync_bytes_sent"`
}

func (UsageSnapshot) Identifier

func (u UsageSnapshot) Identifier() interface{}

func (*UsageSnapshot) UnmarshalJSON

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

type UsageSnapshotCollection

type UsageSnapshotCollection []UsageSnapshot

func (*UsageSnapshotCollection) ToSlice

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

func (*UsageSnapshotCollection) UnmarshalJSON

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

type UsageSnapshotListParams

type UsageSnapshotListParams struct {
	ListParams
}

type User

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

func (User) Identifier

func (u User) Identifier() interface{}

func (*User) UnmarshalJSON

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

type UserAuthenticationMethodEnum

type UserAuthenticationMethodEnum string

func (UserAuthenticationMethodEnum) Enum

func (UserAuthenticationMethodEnum) String

type UserCipherUse

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

func (UserCipherUse) Identifier

func (u UserCipherUse) Identifier() interface{}

func (*UserCipherUse) UnmarshalJSON

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

type UserCipherUseCollection

type UserCipherUseCollection []UserCipherUse

func (*UserCipherUseCollection) ToSlice

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" json:"user_id,omitempty" path:"user_id"`
	ListParams
}

type UserCollection

type UserCollection []User

func (*UserCollection) ToSlice

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" json:"avatar_file,omitempty" path:"avatar_file"`
	AvatarDelete               *bool                        `url:"avatar_delete,omitempty" required:"false" json:"avatar_delete,omitempty" path:"avatar_delete"`
	ChangePassword             string                       `url:"change_password,omitempty" required:"false" json:"change_password,omitempty" path:"change_password"`
	ChangePasswordConfirmation string                       `` /* 143-byte string literal not displayed */
	Email                      string                       `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	GrantPermission            string                       `url:"grant_permission,omitempty" required:"false" json:"grant_permission,omitempty" path:"grant_permission"`
	GroupId                    int64                        `url:"group_id,omitempty" required:"false" json:"group_id,omitempty" path:"group_id"`
	GroupIds                   string                       `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty" path:"group_ids"`
	ImportedPasswordHash       string                       `url:"imported_password_hash,omitempty" required:"false" json:"imported_password_hash,omitempty" path:"imported_password_hash"`
	Password                   string                       `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	PasswordConfirmation       string                       `url:"password_confirmation,omitempty" required:"false" json:"password_confirmation,omitempty" path:"password_confirmation"`
	AnnouncementsRead          *bool                        `url:"announcements_read,omitempty" required:"false" json:"announcements_read,omitempty" path:"announcements_read"`
	AllowedIps                 string                       `url:"allowed_ips,omitempty" required:"false" json:"allowed_ips,omitempty" path:"allowed_ips"`
	AttachmentsPermission      *bool                        `url:"attachments_permission,omitempty" required:"false" json:"attachments_permission,omitempty" path:"attachments_permission"`
	AuthenticateUntil          *time.Time                   `url:"authenticate_until,omitempty" required:"false" json:"authenticate_until,omitempty" path:"authenticate_until"`
	AuthenticationMethod       UserAuthenticationMethodEnum `url:"authentication_method,omitempty" required:"false" json:"authentication_method,omitempty" path:"authentication_method"`
	BillingPermission          *bool                        `url:"billing_permission,omitempty" required:"false" json:"billing_permission,omitempty" path:"billing_permission"`
	BypassInactiveDisable      *bool                        `` /* 128-byte string literal not displayed */
	BypassSiteAllowedIps       *bool                        `` /* 128-byte string literal not displayed */
	DavPermission              *bool                        `url:"dav_permission,omitempty" required:"false" json:"dav_permission,omitempty" path:"dav_permission"`
	Disabled                   *bool                        `url:"disabled,omitempty" required:"false" json:"disabled,omitempty" path:"disabled"`
	FtpPermission              *bool                        `url:"ftp_permission,omitempty" required:"false" json:"ftp_permission,omitempty" path:"ftp_permission"`
	HeaderText                 string                       `url:"header_text,omitempty" required:"false" json:"header_text,omitempty" path:"header_text"`
	Language                   string                       `url:"language,omitempty" required:"false" json:"language,omitempty" path:"language"`
	NotificationDailySendTime  int64                        `` /* 143-byte string literal not displayed */
	Name                       string                       `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Company                    string                       `url:"company,omitempty" required:"false" json:"company,omitempty" path:"company"`
	Notes                      string                       `url:"notes,omitempty" required:"false" json:"notes,omitempty" path:"notes"`
	OfficeIntegrationEnabled   *bool                        `` /* 137-byte string literal not displayed */
	PasswordValidityDays       int64                        `url:"password_validity_days,omitempty" required:"false" json:"password_validity_days,omitempty" path:"password_validity_days"`
	ReceiveAdminAlerts         *bool                        `url:"receive_admin_alerts,omitempty" required:"false" json:"receive_admin_alerts,omitempty" path:"receive_admin_alerts"`
	RequirePasswordChange      *bool                        `` /* 128-byte string literal not displayed */
	RestapiPermission          *bool                        `url:"restapi_permission,omitempty" required:"false" json:"restapi_permission,omitempty" path:"restapi_permission"`
	SelfManaged                *bool                        `url:"self_managed,omitempty" required:"false" json:"self_managed,omitempty" path:"self_managed"`
	SftpPermission             *bool                        `url:"sftp_permission,omitempty" required:"false" json:"sftp_permission,omitempty" path:"sftp_permission"`
	SiteAdmin                  *bool                        `url:"site_admin,omitempty" required:"false" json:"site_admin,omitempty" path:"site_admin"`
	SkipWelcomeScreen          *bool                        `url:"skip_welcome_screen,omitempty" required:"false" json:"skip_welcome_screen,omitempty" path:"skip_welcome_screen"`
	SslRequired                UserSslRequiredEnum          `url:"ssl_required,omitempty" required:"false" json:"ssl_required,omitempty" path:"ssl_required"`
	SsoStrategyId              int64                        `url:"sso_strategy_id,omitempty" required:"false" json:"sso_strategy_id,omitempty" path:"sso_strategy_id"`
	SubscribeToNewsletter      *bool                        `` /* 128-byte string literal not displayed */
	Require2fa                 UserRequire2faEnum           `url:"require_2fa,omitempty" required:"false" json:"require_2fa,omitempty" path:"require_2fa"`
	TimeZone                   string                       `url:"time_zone,omitempty" required:"false" json:"time_zone,omitempty" path:"time_zone"`
	UserRoot                   string                       `url:"user_root,omitempty" required:"false" json:"user_root,omitempty" path:"user_root"`
	Username                   string                       `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
}

type UserDeleteParams

type UserDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type UserFindParams

type UserFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type UserListParams

type UserListParams struct {
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt     json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix json.RawMessage `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	Ids          string          `url:"ids,omitempty" required:"false" json:"ids,omitempty" path:"ids"`
	QParam       QParam          `url:"q,omitempty" required:"false" json:"q,omitempty" path:"q"`
	Search       string          `url:"search,omitempty" required:"false" json:"search,omitempty" path:"search"`
	ListParams
}

type UserRequest

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

func (UserRequest) Identifier

func (u UserRequest) Identifier() interface{}

func (*UserRequest) UnmarshalJSON

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

type UserRequestCollection

type UserRequestCollection []UserRequest

func (*UserRequestCollection) ToSlice

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" json:"name,omitempty" path:"name"`
	Email   string `url:"email,omitempty" required:"true" json:"email,omitempty" path:"email"`
	Details string `url:"details,omitempty" required:"true" json:"details,omitempty" path:"details"`
}

type UserRequestDeleteParams

type UserRequestDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type UserRequestFindParams

type UserRequestFindParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

type UserRequestListParams

type UserRequestListParams struct {
	ListParams
}

type UserRequire2faEnum

type UserRequire2faEnum string

func (UserRequire2faEnum) Enum

func (UserRequire2faEnum) String

func (u UserRequire2faEnum) String() string

type UserResendWelcomeEmailParams

type UserResendWelcomeEmailParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

Resend user welcome email

type UserSslRequiredEnum

type UserSslRequiredEnum string

func (UserSslRequiredEnum) Enum

func (UserSslRequiredEnum) String

func (u UserSslRequiredEnum) String() string

type UserUnlockParams

type UserUnlockParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

Unlock user who has been locked out due to failed logins

type UserUpdateParams

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

type UserUser2faResetParams

type UserUser2faResetParams struct {
	Id int64 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
}

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

type WebhookTest

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

func (*WebhookTest) UnmarshalJSON

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

type WebhookTestCollection

type WebhookTestCollection []WebhookTest

func (*WebhookTestCollection) ToSlice

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

func (*WebhookTestCollection) UnmarshalJSON

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

type WebhookTestCreateParams

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

Jump to

Keyboard shortcuts

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