 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func Call(ctx context.Context, method string, config Config, resource string, ...) (*[]byte, *http.Response, error)
- func CallRaw(params *CallParams) (*http.Response, error)
- func ParseResponse(res *http.Response) (*[]byte, *http.Response, error)
- type AccountLineItem
- type AccountLineItemCollection
- type Action
- type ActionCollection
- type ActionNotificationExport
- type ActionNotificationExportCollection
- type ActionNotificationExportCreateParams
- type ActionNotificationExportFindParams
- type ActionNotificationExportResult
- type ActionNotificationExportResultCollection
- type ActionNotificationExportResultListParams
- type ActionWebhookFailure
- type ActionWebhookFailureCollection
- type ActionWebhookFailureRetryParams
- type ApiKey
- type ApiKeyCollection
- type ApiKeyCreateParams
- type ApiKeyDeleteParams
- type ApiKeyFindParams
- type ApiKeyListParams
- type ApiKeyPermissionSetEnum
- type ApiKeyUpdateCurrentParams
- type ApiKeyUpdateParams
- type App
- type AppCollection
- type AppListParams
- type As2Key
- type As2KeyCollection
- type As2KeyCreateParams
- type As2KeyDeleteParams
- type As2KeyFindParams
- type As2KeyListParams
- type As2KeyUpdateParams
- type Auto
- type AutoCollection
- type Automation
- type AutomationCollection
- type AutomationCreateParams
- type AutomationDeleteParams
- type AutomationEnum
- type AutomationFindParams
- type AutomationListParams
- type AutomationRun
- type AutomationRunCollection
- type AutomationRunFindParams
- type AutomationRunListParams
- type AutomationTriggerEnum
- type AutomationUpdateParams
- type BandwidthSnapshot
- type BandwidthSnapshotCollection
- type BandwidthSnapshotListParams
- type Behavior
- type BehaviorCollection
- type BehaviorCreateParams
- type BehaviorDeleteParams
- type BehaviorFindParams
- type BehaviorListForParams
- type BehaviorListParams
- type BehaviorUpdateParams
- type BehaviorWebhookTestParams
- type Bundle
- type BundleCollection
- type BundleCreateParams
- type BundleDeleteParams
- type BundleDownload
- type BundleDownloadCollection
- type BundleDownloadListParams
- type BundleFindParams
- type BundleListParams
- type BundleRecipient
- type BundleRecipientCollection
- type BundleRecipientCreateParams
- type BundleRecipientListParams
- type BundleRegistration
- type BundleRegistrationCollection
- type BundleRegistrationListParams
- type BundleShareParams
- type BundleUpdateParams
- type CallParams
- type Clickwrap
- type ClickwrapCollection
- type ClickwrapCreateParams
- type ClickwrapDeleteParams
- type ClickwrapFindParams
- type ClickwrapListParams
- type ClickwrapUpdateParams
- type ClickwrapUseWithBundlesEnum
- type ClickwrapUseWithInboxesEnum
- type ClickwrapUseWithUsersEnum
- type Config
- func (s *Config) GetAPIKey() string
- func (s *Config) GetHttpClient() HttpClient
- func (s *Config) GetRawClient() *retryablehttp.Client
- func (s *Config) InDebug() bool
- func (s *Config) Logger() retryablehttp.Logger
- func (s *Config) RootPath() string
- func (s *Config) SetHeaders(headers *http.Header)
- func (s *Config) SetHttpClient(client *http.Client)
- func (s *Config) SetLogger(l Logger)
 
- type Data
- type DnsRecord
- type DnsRecordCollection
- type DnsRecordListParams
- type Errors
- type ErrorsCollection
- type EtagsParam
- type ExternalEvent
- type ExternalEventCollection
- type ExternalEventCreateParams
- type ExternalEventFindParams
- type ExternalEventListParams
- type ExternalEventStatusEnum
- type File
- type FileAction
- type FileActionCollection
- type FileBeginUploadParams
- type FileCollection
- type FileComment
- type FileCommentCollection
- type FileCommentCreateParams
- type FileCommentDeleteParams
- type FileCommentListForParams
- type FileCommentReaction
- type FileCommentReactionCollection
- type FileCommentReactionCreateParams
- type FileCommentReactionDeleteParams
- type FileCommentUpdateParams
- type FileCopyParams
- type FileCreateParams
- type FileDeleteParams
- type FileDownloadParams
- type FileFindParams
- type FileMigration
- type FileMigrationCollection
- type FileMigrationFindParams
- type FileMoveParams
- type FileUpdateParams
- type FileUploadPart
- type FileUploadPartCollection
- type Folder
- type FolderCollection
- type FolderCreateParams
- type FolderListForParams
- type FormField
- type FormFieldCollection
- type FormFieldSet
- type FormFieldSetCollection
- type FormFieldSetCreateParams
- type FormFieldSetDeleteParams
- type FormFieldSetFindParams
- type FormFieldSetListParams
- type FormFieldSetUpdateParams
- type Group
- type GroupCollection
- type GroupCreateParams
- type GroupDeleteParams
- type GroupFindParams
- type GroupListParams
- type GroupUpdateParams
- type GroupUser
- type GroupUserCollection
- type GroupUserCreateParams
- type GroupUserDeleteParams
- type GroupUserListParams
- type GroupUserUpdateParams
- type History
- type HistoryCollection
- type HistoryExport
- type HistoryExportCollection
- type HistoryExportCreateParams
- type HistoryExportFindParams
- type HistoryExportResult
- type HistoryExportResultCollection
- type HistoryExportResultListParams
- type HistoryListForFileParams
- type HistoryListForFolderParams
- type HistoryListForUserParams
- type HistoryListLoginsParams
- type HistoryListParams
- type HttpClient
- type Image
- type ImageCollection
- type InboxRecipient
- type InboxRecipientCollection
- type InboxRecipientCreateParams
- type InboxRecipientListParams
- type InboxRegistration
- type InboxRegistrationCollection
- type InboxRegistrationListParams
- type InboxUpload
- type InboxUploadCollection
- type InboxUploadListParams
- type Invoice
- type InvoiceCollection
- type InvoiceFindParams
- type InvoiceLineItem
- type InvoiceLineItemCollection
- type InvoiceListParams
- type IpAddress
- type IpAddressCollection
- type IpAddressGetReservedParams
- type IpAddressListParams
- type Lock
- type LockCollection
- type LockCreateParams
- type LockDeleteParams
- type LockListForParams
- type Logger
- type Message
- type MessageCollection
- type MessageComment
- type MessageCommentCollection
- type MessageCommentCreateParams
- type MessageCommentDeleteParams
- type MessageCommentFindParams
- type MessageCommentListParams
- type MessageCommentReaction
- type MessageCommentReactionCollection
- type MessageCommentReactionCreateParams
- type MessageCommentReactionDeleteParams
- type MessageCommentReactionFindParams
- type MessageCommentReactionListParams
- type MessageCommentUpdateParams
- type MessageCreateParams
- type MessageDeleteParams
- type MessageFindParams
- type MessageListParams
- type MessageReaction
- type MessageReactionCollection
- type MessageReactionCreateParams
- type MessageReactionDeleteParams
- type MessageReactionFindParams
- type MessageReactionListParams
- type MessageUpdateParams
- type Notification
- type NotificationCollection
- type NotificationCreateParams
- type NotificationDeleteParams
- type NotificationFindParams
- type NotificationListParams
- type NotificationUpdateParams
- type NullLogger
- type Payment
- type PaymentCollection
- type PaymentFindParams
- type PaymentLineItem
- type PaymentLineItemCollection
- type PaymentListParams
- type Permission
- type PermissionCollection
- type PermissionCreateParams
- type PermissionDeleteParams
- type PermissionListParams
- type Preview
- type PreviewCollection
- type Priority
- type PriorityCollection
- type PriorityListParams
- type Project
- type ProjectCollection
- type ProjectCreateParams
- type ProjectDeleteParams
- type ProjectFindParams
- type ProjectListParams
- type ProjectUpdateParams
- type PublicIpAddress
- type PublicIpAddressCollection
- type PublicKey
- type PublicKeyCollection
- type PublicKeyCreateParams
- type PublicKeyDeleteParams
- type PublicKeyFindParams
- type PublicKeyListParams
- type PublicKeyUpdateParams
- type QParam
- type RemoteServer
- type RemoteServerCollection
- type RemoteServerCreateParams
- type RemoteServerDeleteParams
- type RemoteServerFindParams
- type RemoteServerListParams
- type RemoteServerOneDriveAccountTypeEnum
- type RemoteServerServerCertificateEnum
- type RemoteServerServerTypeEnum
- type RemoteServerSslEnum
- type RemoteServerUpdateParams
- type Request
- type RequestCollection
- type RequestCreateParams
- type RequestDeleteParams
- type RequestGetFolderParams
- type RequestListParams
- type ResponseError
- type Session
- type SessionCollection
- type SessionCreateParams
- type SettingsChange
- type SettingsChangeCollection
- type SettingsChangeListParams
- type SignRequest
- type Site
- type SiteCollection
- type SiteUpdateParams
- type SsoStrategy
- type SsoStrategyCollection
- type SsoStrategyFindParams
- type SsoStrategyListParams
- type Status
- type StatusCollection
- type Style
- type StyleCollection
- type StyleDeleteParams
- type StyleFindParams
- type StyleUpdateParams
- type SyncJob
- type SyncJobCollection
- type SyncJobListParams
- type U2fSignRequests
- type UsageDailySnapshot
- type UsageDailySnapshotCollection
- type UsageDailySnapshotListParams
- type UsageSnapshot
- type UsageSnapshotCollection
- type UsageSnapshotListParams
- type User
- type UserAuthenticationMethodEnum
- type UserCipherUse
- type UserCipherUseCollection
- type UserCipherUseListParams
- type UserCollection
- type UserCreateParams
- type UserDeleteParams
- type UserFindParams
- type UserListParams
- type UserRequest
- type UserRequestCollection
- type UserRequestCreateParams
- type UserRequestDeleteParams
- type UserRequestFindParams
- type UserRequestListParams
- type UserRequire2faEnum
- type UserResendWelcomeEmailParams
- type UserSslRequiredEnum
- type UserUnlockParams
- type UserUpdateParams
- type UserUser2faResetParams
- type WebhookTest
- type WebhookTestCollection
- type WebhookTestCreateParams
Constants ¶
      View Source
      
  
const ( ProductionEndpoint = "https://{SUBDOMAIN}.files.com" UserAgent = "Files.com Go SDK" DefaultDomain = "app" APIPath = "/api/rest/v1" )
Variables ¶
      View Source
      
  
    var APIKey string
    
      View Source
      
  
var VERSION string
    Functions ¶
Types ¶
type AccountLineItem ¶
type AccountLineItem struct {
	Id                int64     `json:"id,omitempty"`
	Amount            float32   `json:"amount,omitempty"`
	Balance           float32   `json:"balance,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	Currency          string    `json:"currency,omitempty"`
	DownloadUri       string    `json:"download_uri,omitempty"`
	InvoiceLineItems  string    `json:"invoice_line_items,omitempty"`
	Method            string    `json:"method,omitempty"`
	PaymentLineItems  string    `json:"payment_line_items,omitempty"`
	PaymentReversedAt time.Time `json:"payment_reversed_at,omitempty"`
	PaymentType       string    `json:"payment_type,omitempty"`
	SiteName          string    `json:"site_name,omitempty"`
	Type              string    `json:"type,omitempty"`
	UpdatedAt         time.Time `json:"updated_at,omitempty"`
}
    func (*AccountLineItem) UnmarshalJSON ¶
func (a *AccountLineItem) UnmarshalJSON(data []byte) error
type AccountLineItemCollection ¶
type AccountLineItemCollection []AccountLineItem
func (*AccountLineItemCollection) ToSlice ¶
func (a *AccountLineItemCollection) ToSlice() *[]interface{}
func (*AccountLineItemCollection) UnmarshalJSON ¶
func (a *AccountLineItemCollection) UnmarshalJSON(data []byte) error
type Action ¶
type Action struct {
	Id          int64     `json:"id,omitempty"`
	Path        string    `json:"path,omitempty"`
	When        time.Time `json:"when,omitempty"`
	Destination string    `json:"destination,omitempty"`
	Display     string    `json:"display,omitempty"`
	Ip          string    `json:"ip,omitempty"`
	Source      string    `json:"source,omitempty"`
	Targets     []string  `json:"targets,omitempty"`
	UserId      int64     `json:"user_id,omitempty"`
	Username    string    `json:"username,omitempty"`
	Action      string    `json:"action,omitempty"`
	FailureType string    `json:"failure_type,omitempty"`
	Interface   string    `json:"interface,omitempty"`
}
    func (*Action) UnmarshalJSON ¶
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"`
	ExportVersion      string    `json:"export_version,omitempty"`
	StartAt            time.Time `json:"start_at,omitempty"`
	EndAt              time.Time `json:"end_at,omitempty"`
	Status             string    `json:"status,omitempty"`
	QueryPath          string    `json:"query_path,omitempty"`
	QueryFolder        string    `json:"query_folder,omitempty"`
	QueryMessage       string    `json:"query_message,omitempty"`
	QueryRequestMethod string    `json:"query_request_method,omitempty"`
	QueryRequestUrl    string    `json:"query_request_url,omitempty"`
	QueryStatus        string    `json:"query_status,omitempty"`
	QuerySuccess       *bool     `json:"query_success,omitempty"`
	ResultsUrl         string    `json:"results_url,omitempty"`
	UserId             int64     `json:"user_id,omitempty"`
}
    func (*ActionNotificationExport) UnmarshalJSON ¶
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"`
	StartAt            time.Time `url:"start_at,omitempty" required:"false"`
	EndAt              time.Time `url:"end_at,omitempty" required:"false"`
	QueryMessage       string    `url:"query_message,omitempty" required:"false"`
	QueryRequestMethod string    `url:"query_request_method,omitempty" required:"false"`
	QueryRequestUrl    string    `url:"query_request_url,omitempty" required:"false"`
	QueryStatus        string    `url:"query_status,omitempty" required:"false"`
	QuerySuccess       *bool     `url:"query_success,omitempty" required:"false"`
	QueryPath          string    `url:"query_path,omitempty" required:"false"`
	QueryFolder        string    `url:"query_folder,omitempty" required:"false"`
}
    type ActionNotificationExportFindParams ¶
type ActionNotificationExportFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type ActionNotificationExportResult ¶
type ActionNotificationExportResult struct {
	Id             int64  `json:"id,omitempty"`
	CreatedAt      int64  `json:"created_at,omitempty"`
	Status         int64  `json:"status,omitempty"`
	Message        string `json:"message,omitempty"`
	Success        *bool  `json:"success,omitempty"`
	RequestHeaders string `json:"request_headers,omitempty"`
	RequestMethod  string `json:"request_method,omitempty"`
	RequestUrl     string `json:"request_url,omitempty"`
	Path           string `json:"path,omitempty"`
	Folder         string `json:"folder,omitempty"`
}
    func (*ActionNotificationExportResult) UnmarshalJSON ¶
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"`
	Cursor                     string `url:"cursor,omitempty" required:"false"`
	PerPage                    int64  `url:"per_page,omitempty" required:"false"`
	ActionNotificationExportId int64  `url:"action_notification_export_id,omitempty" required:"true"`
	lib.ListParams
}
    type ActionWebhookFailure ¶
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:"true"`
}
    retry Action Webhook Failure
type ApiKey ¶
type ApiKey struct {
	Id               int64     `json:"id,omitempty"`
	DescriptiveLabel string    `json:"descriptive_label,omitempty"`
	CreatedAt        time.Time `json:"created_at,omitempty"`
	ExpiresAt        time.Time `json:"expires_at,omitempty"`
	Key              string    `json:"key,omitempty"`
	LastUseAt        time.Time `json:"last_use_at,omitempty"`
	Name             string    `json:"name,omitempty"`
	Path             string    `json:"path,omitempty"`
	PermissionSet    string    `json:"permission_set,omitempty"`
	Platform         string    `json:"platform,omitempty"`
	UserId           int64     `json:"user_id,omitempty"`
}
    func (*ApiKey) UnmarshalJSON ¶
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"`
	Name          string                  `url:"name,omitempty" required:"false"`
	ExpiresAt     time.Time               `url:"expires_at,omitempty" required:"false"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false"`
	Path          string                  `url:"path,omitempty" required:"false"`
}
    type ApiKeyDeleteParams ¶
type ApiKeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type ApiKeyFindParams ¶
type ApiKeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type ApiKeyListParams ¶
type ApiKeyListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}
    type ApiKeyPermissionSetEnum ¶
type ApiKeyPermissionSetEnum string
func (ApiKeyPermissionSetEnum) Enum ¶
func (u ApiKeyPermissionSetEnum) Enum() map[string]ApiKeyPermissionSetEnum
func (ApiKeyPermissionSetEnum) String ¶
func (u ApiKeyPermissionSetEnum) String() string
type ApiKeyUpdateCurrentParams ¶
type ApiKeyUpdateCurrentParams struct {
	ExpiresAt     time.Time               `url:"expires_at,omitempty" required:"false"`
	Name          string                  `url:"name,omitempty" required:"false"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false"`
}
    type ApiKeyUpdateParams ¶
type ApiKeyUpdateParams struct {
	Id            int64                   `url:"-,omitempty" required:"true"`
	Name          string                  `url:"name,omitempty" required:"false"`
	ExpiresAt     time.Time               `url:"expires_at,omitempty" required:"false"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false"`
}
    type App ¶
type App struct {
	Name                string `json:"name,omitempty"`
	ExtendedDescription string `json:"extended_description,omitempty"`
	ShortDescription    string `json:"short_description,omitempty"`
	DocumentationLinks  string `json:"documentation_links,omitempty"`
	IconUrl             string `json:"icon_url,omitempty"`
	LogoUrl             string `json:"logo_url,omitempty"`
	ScreenshotListUrls  string `json:"screenshot_list_urls,omitempty"`
	LogoThumbnailUrl    string `json:"logo_thumbnail_url,omitempty"`
	SsoStrategyType     string `json:"sso_strategy_type,omitempty"`
	RemoteServerType    string `json:"remote_server_type,omitempty"`
	FolderBehaviorType  string `json:"folder_behavior_type,omitempty"`
	ExternalHomepageUrl string `json:"external_homepage_url,omitempty"`
	MarketingYoutubeUrl string `json:"marketing_youtube_url,omitempty"`
	TutorialYoutubeUrl  string `json:"tutorial_youtube_url,omitempty"`
	AppType             string `json:"app_type,omitempty"`
	Featured            *bool  `json:"featured,omitempty"`
}
    func (*App) UnmarshalJSON ¶
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 {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}
    type As2Key ¶
type As2Key struct {
	Id                 int64     `json:"id,omitempty"`
	As2PartnershipName string    `json:"as2_partnership_name,omitempty"`
	CreatedAt          time.Time `json:"created_at,omitempty"`
	Fingerprint        string    `json:"fingerprint,omitempty"`
	UserId             int64     `json:"user_id,omitempty"`
	PublicKey          string    `json:"public_key,omitempty"`
}
    func (*As2Key) UnmarshalJSON ¶
type As2KeyCollection ¶
type As2KeyCollection []As2Key
func (*As2KeyCollection) ToSlice ¶
func (a *As2KeyCollection) ToSlice() *[]interface{}
func (*As2KeyCollection) UnmarshalJSON ¶
func (a *As2KeyCollection) UnmarshalJSON(data []byte) error
type As2KeyCreateParams ¶
type As2KeyDeleteParams ¶
type As2KeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type As2KeyFindParams ¶
type As2KeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type As2KeyListParams ¶
type As2KeyListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type As2KeyUpdateParams ¶
type Auto ¶
type Auto struct {
	Dynamic json.RawMessage `json:"dynamic,omitempty"`
}
    func (*Auto) UnmarshalJSON ¶
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"`
	Automation             string          `json:"automation,omitempty"`
	Trigger                string          `json:"trigger,omitempty"`
	Interval               string          `json:"interval,omitempty"`
	Name                   string          `json:"name,omitempty"`
	Schedule               json.RawMessage `json:"schedule,omitempty"`
	Source                 string          `json:"source,omitempty"`
	Destinations           string          `json:"destinations,omitempty"`
	DestinationReplaceFrom string          `json:"destination_replace_from,omitempty"`
	DestinationReplaceTo   string          `json:"destination_replace_to,omitempty"`
	Description            string          `json:"description,omitempty"`
	Path                   string          `json:"path,omitempty"`
	UserId                 int64           `json:"user_id,omitempty"`
	UserIds                []string        `json:"user_ids,omitempty"`
	GroupIds               []string        `json:"group_ids,omitempty"`
	WebhookUrl             string          `json:"webhook_url,omitempty"`
	TriggerActions         string          `json:"trigger_actions,omitempty"`
	TriggerActionPath      string          `json:"trigger_action_path,omitempty"`
	Value                  json.RawMessage `json:"value,omitempty"`
	Destination            string          `json:"destination,omitempty"`
}
    func (*Automation) UnmarshalJSON ¶
func (a *Automation) UnmarshalJSON(data []byte) error
type AutomationCollection ¶
type AutomationCollection []Automation
func (*AutomationCollection) ToSlice ¶
func (a *AutomationCollection) ToSlice() *[]interface{}
func (*AutomationCollection) UnmarshalJSON ¶
func (a *AutomationCollection) UnmarshalJSON(data []byte) error
type AutomationCreateParams ¶
type AutomationCreateParams struct {
	Automation             AutomationEnum        `url:"automation,omitempty" required:"true"`
	Source                 string                `url:"source,omitempty" required:"false"`
	Destination            string                `url:"destination,omitempty" required:"false"`
	Destinations           []string              `url:"destinations,omitempty" required:"false"`
	DestinationReplaceFrom string                `url:"destination_replace_from,omitempty" required:"false"`
	DestinationReplaceTo   string                `url:"destination_replace_to,omitempty" required:"false"`
	Interval               string                `url:"interval,omitempty" required:"false"`
	Path                   string                `url:"path,omitempty" required:"false"`
	UserIds                string                `url:"user_ids,omitempty" required:"false"`
	GroupIds               string                `url:"group_ids,omitempty" required:"false"`
	Schedule               json.RawMessage       `url:"schedule,omitempty" required:"false"`
	Description            string                `url:"description,omitempty" required:"false"`
	Name                   string                `url:"name,omitempty" required:"false"`
	Trigger                AutomationTriggerEnum `url:"trigger,omitempty" required:"false"`
	TriggerActions         []string              `url:"trigger_actions,omitempty" required:"false"`
	TriggerActionPath      string                `url:"trigger_action_path,omitempty" required:"false"`
	Value                  json.RawMessage       `url:"value,omitempty" required:"false"`
}
    type AutomationDeleteParams ¶
type AutomationDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type AutomationEnum ¶
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:"true"`
}
    type AutomationListParams ¶
type AutomationListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Automation string          `url:"automation,omitempty" required:"false"`
	lib.ListParams
}
    type AutomationRun ¶
type AutomationRun struct {
	Id                int64     `json:"id,omitempty"`
	AutomationId      int64     `json:"automation_id,omitempty"`
	CompletedAt       time.Time `json:"completed_at,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	Status            string    `json:"status,omitempty"`
	StatusMessagesUrl string    `json:"status_messages_url,omitempty"`
}
    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:"true"`
}
    type AutomationRunListParams ¶
type AutomationRunListParams struct {
	UserId       int64           `url:"user_id,omitempty" required:"false"`
	Cursor       string          `url:"cursor,omitempty" required:"false"`
	PerPage      int64           `url:"per_page,omitempty" required:"false"`
	SortBy       json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter       json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt     json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq   json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike   json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt     json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq   json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	AutomationId int64           `url:"automation_id,omitempty" required:"true"`
	lib.ListParams
}
    type AutomationTriggerEnum ¶
type AutomationTriggerEnum string
func (AutomationTriggerEnum) Enum ¶
func (u AutomationTriggerEnum) Enum() map[string]AutomationTriggerEnum
func (AutomationTriggerEnum) String ¶
func (u AutomationTriggerEnum) String() string
type AutomationUpdateParams ¶
type AutomationUpdateParams struct {
	Id                     int64                 `url:"-,omitempty" required:"true"`
	Automation             AutomationEnum        `url:"automation,omitempty" required:"true"`
	Source                 string                `url:"source,omitempty" required:"false"`
	Destination            string                `url:"destination,omitempty" required:"false"`
	Destinations           []string              `url:"destinations,omitempty" required:"false"`
	DestinationReplaceFrom string                `url:"destination_replace_from,omitempty" required:"false"`
	DestinationReplaceTo   string                `url:"destination_replace_to,omitempty" required:"false"`
	Interval               string                `url:"interval,omitempty" required:"false"`
	Path                   string                `url:"path,omitempty" required:"false"`
	UserIds                string                `url:"user_ids,omitempty" required:"false"`
	GroupIds               string                `url:"group_ids,omitempty" required:"false"`
	Schedule               json.RawMessage       `url:"schedule,omitempty" required:"false"`
	Description            string                `url:"description,omitempty" required:"false"`
	Name                   string                `url:"name,omitempty" required:"false"`
	Trigger                AutomationTriggerEnum `url:"trigger,omitempty" required:"false"`
	TriggerActions         []string              `url:"trigger_actions,omitempty" required:"false"`
	TriggerActionPath      string                `url:"trigger_action_path,omitempty" required:"false"`
	Value                  json.RawMessage       `url:"value,omitempty" required:"false"`
}
    type BandwidthSnapshot ¶
type BandwidthSnapshot struct {
	Id                int64     `json:"id,omitempty"`
	BytesReceived     float32   `json:"bytes_received,omitempty"`
	BytesSent         float32   `json:"bytes_sent,omitempty"`
	SyncBytesReceived float32   `json:"sync_bytes_received,omitempty"`
	SyncBytesSent     float32   `json:"sync_bytes_sent,omitempty"`
	RequestsGet       float32   `json:"requests_get,omitempty"`
	RequestsPut       float32   `json:"requests_put,omitempty"`
	RequestsOther     float32   `json:"requests_other,omitempty"`
	LoggedAt          time.Time `json:"logged_at,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	UpdatedAt         time.Time `json:"updated_at,omitempty"`
}
    func (*BandwidthSnapshot) UnmarshalJSON ¶
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 {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}
    type Behavior ¶
type Behavior struct {
	Id             int64           `json:"id,omitempty"`
	Path           string          `json:"path,omitempty"`
	AttachmentUrl  string          `json:"attachment_url,omitempty"`
	Behavior       string          `json:"behavior,omitempty"`
	Name           string          `json:"name,omitempty"`
	Description    string          `json:"description,omitempty"`
	Value          json.RawMessage `json:"value,omitempty"`
	AttachmentFile io.Reader       `json:"attachment_file,omitempty"`
}
    func (*Behavior) UnmarshalJSON ¶
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"`
	AttachmentFile io.Writer `url:"attachment_file,omitempty" required:"false"`
	Name           string    `url:"name,omitempty" required:"false"`
	Description    string    `url:"description,omitempty" required:"false"`
	Path           string    `url:"path,omitempty" required:"true"`
	Behavior       string    `url:"behavior,omitempty" required:"true"`
}
    type BehaviorDeleteParams ¶
type BehaviorDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type BehaviorFindParams ¶
type BehaviorFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type BehaviorListForParams ¶
type BehaviorListForParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Path       string          `url:"-,omitempty" required:"true"`
	Recursive  string          `url:"recursive,omitempty" required:"false"`
	Behavior   string          `url:"behavior,omitempty" required:"false"`
	lib.ListParams
}
    type BehaviorListParams ¶
type BehaviorListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Behavior   string          `url:"behavior,omitempty" required:"false"`
	lib.ListParams
}
    type BehaviorUpdateParams ¶
type BehaviorUpdateParams struct {
	Id             int64     `url:"-,omitempty" required:"true"`
	Value          string    `url:"value,omitempty" required:"false"`
	AttachmentFile io.Writer `url:"attachment_file,omitempty" required:"false"`
	Name           string    `url:"name,omitempty" required:"false"`
	Description    string    `url:"description,omitempty" required:"false"`
	Behavior       string    `url:"behavior,omitempty" required:"false"`
	Path           string    `url:"path,omitempty" required:"false"`
}
    type BehaviorWebhookTestParams ¶
type BehaviorWebhookTestParams struct {
	Url      string          `url:"url,omitempty" required:"true"`
	Method   string          `url:"method,omitempty" required:"false"`
	Encoding string          `url:"encoding,omitempty" required:"false"`
	Headers  json.RawMessage `url:"headers,omitempty" required:"false"`
	Body     json.RawMessage `url:"body,omitempty" required:"false"`
	Action   string          `url:"action,omitempty" required:"false"`
}
    type Bundle ¶
type Bundle struct {
	Code                  string    `json:"code,omitempty"`
	Url                   string    `json:"url,omitempty"`
	Description           string    `json:"description,omitempty"`
	PasswordProtected     *bool     `json:"password_protected,omitempty"`
	PreviewOnly           *bool     `json:"preview_only,omitempty"`
	RequireRegistration   *bool     `json:"require_registration,omitempty"`
	ClickwrapBody         string    `json:"clickwrap_body,omitempty"`
	FormFieldSet          string    `json:"form_field_set,omitempty"`
	Id                    int64     `json:"id,omitempty"`
	CreatedAt             time.Time `json:"created_at,omitempty"`
	ExpiresAt             time.Time `json:"expires_at,omitempty"`
	MaxUses               int64     `json:"max_uses,omitempty"`
	Note                  string    `json:"note,omitempty"`
	UserId                int64     `json:"user_id,omitempty"`
	Username              string    `json:"username,omitempty"`
	ClickwrapId           int64     `json:"clickwrap_id,omitempty"`
	InboxId               int64     `json:"inbox_id,omitempty"`
	HasInbox              *bool     `json:"has_inbox,omitempty"`
	Paths                 []string  `json:"paths,omitempty"`
	Password              string    `json:"password,omitempty"`
	FormFieldSetId        int64     `json:"form_field_set_id,omitempty"`
}
    func (*Bundle) UnmarshalJSON ¶
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"`
	Paths                 []string  `url:"paths,omitempty" required:"true"`
	Password              string    `url:"password,omitempty" required:"false"`
	FormFieldSetId        int64     `url:"form_field_set_id,omitempty" required:"false"`
	ExpiresAt             time.Time `url:"expires_at,omitempty" required:"false"`
	MaxUses               int64     `url:"max_uses,omitempty" required:"false"`
	Description           string    `url:"description,omitempty" required:"false"`
	Note                  string    `url:"note,omitempty" required:"false"`
	Code                  string    `url:"code,omitempty" required:"false"`
	PreviewOnly           *bool     `url:"preview_only,omitempty" required:"false"`
	RequireRegistration   *bool     `url:"require_registration,omitempty" required:"false"`
	ClickwrapId           int64     `url:"clickwrap_id,omitempty" required:"false"`
	InboxId               int64     `url:"inbox_id,omitempty" required:"false"`
}
    type BundleDeleteParams ¶
type BundleDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type BundleDownload ¶
type BundleDownload struct {
	BundleRegistration string    `json:"bundle_registration,omitempty"`
	DownloadMethod     string    `json:"download_method,omitempty"`
	Path               string    `json:"path,omitempty"`
	CreatedAt          time.Time `json:"created_at,omitempty"`
}
    func (*BundleDownload) UnmarshalJSON ¶
func (b *BundleDownload) UnmarshalJSON(data []byte) error
type BundleDownloadCollection ¶
type BundleDownloadCollection []BundleDownload
func (*BundleDownloadCollection) ToSlice ¶
func (b *BundleDownloadCollection) ToSlice() *[]interface{}
func (*BundleDownloadCollection) UnmarshalJSON ¶
func (b *BundleDownloadCollection) UnmarshalJSON(data []byte) error
type BundleDownloadListParams ¶
type BundleDownloadListParams struct {
	Cursor               string          `url:"cursor,omitempty" required:"false"`
	PerPage              int64           `url:"per_page,omitempty" required:"false"`
	SortBy               json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter               json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt             json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq           json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike           json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt             json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq           json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	BundleId             int64           `url:"bundle_id,omitempty" required:"false"`
	BundleRegistrationId int64           `url:"bundle_registration_id,omitempty" required:"false"`
	lib.ListParams
}
    type BundleFindParams ¶
type BundleFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type BundleListParams ¶
type BundleListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}
    type BundleRecipient ¶
type BundleRecipient struct {
	Company          string    `json:"company,omitempty"`
	Name             string    `json:"name,omitempty"`
	Note             string    `json:"note,omitempty"`
	Recipient        string    `json:"recipient,omitempty"`
	SentAt           time.Time `json:"sent_at,omitempty"`
	UserId           int64     `json:"user_id,omitempty"`
	BundleId         int64     `json:"bundle_id,omitempty"`
}
    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"`
	BundleId         int64  `url:"bundle_id,omitempty" required:"true"`
	Recipient        string `url:"recipient,omitempty" required:"true"`
	Name             string `url:"name,omitempty" required:"false"`
	Company          string `url:"company,omitempty" required:"false"`
	Note             string `url:"note,omitempty" required:"false"`
}
    type BundleRecipientListParams ¶
type BundleRecipientListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	BundleId   int64           `url:"bundle_id,omitempty" required:"true"`
	lib.ListParams
}
    type BundleRegistration ¶
type BundleRegistration struct {
	Code              string `json:"code,omitempty"`
	Name              string `json:"name,omitempty"`
	Company           string `json:"company,omitempty"`
	Email             string `json:"email,omitempty"`
	Ip                string `json:"ip,omitempty"`
	InboxCode         string `json:"inbox_code,omitempty"`
	ClickwrapBody     string `json:"clickwrap_body,omitempty"`
	FormFieldSetId    int64  `json:"form_field_set_id,omitempty"`
	FormFieldData     string `json:"form_field_data,omitempty"`
	BundleCode        string `json:"bundle_code,omitempty"`
	BundleId          int64  `json:"bundle_id,omitempty"`
	BundleRecipientId int64  `json:"bundle_recipient_id,omitempty"`
}
    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 BundleUpdateParams ¶
type BundleUpdateParams struct {
	Id                    int64     `url:"-,omitempty" required:"true"`
	Paths                 []string  `url:"paths,omitempty" required:"false"`
	Password              string    `url:"password,omitempty" required:"false"`
	FormFieldSetId        int64     `url:"form_field_set_id,omitempty" required:"false"`
	ClickwrapId           int64     `url:"clickwrap_id,omitempty" required:"false"`
	Code                  string    `url:"code,omitempty" required:"false"`
	Description           string    `url:"description,omitempty" required:"false"`
	ExpiresAt             time.Time `url:"expires_at,omitempty" required:"false"`
	InboxId               int64     `url:"inbox_id,omitempty" required:"false"`
	MaxUses               int64     `url:"max_uses,omitempty" required:"false"`
	Note                  string    `url:"note,omitempty" required:"false"`
	PreviewOnly           *bool     `url:"preview_only,omitempty" required:"false"`
	RequireRegistration   *bool     `url:"require_registration,omitempty" required:"false"`
}
    type CallParams ¶
type Clickwrap ¶
type Clickwrap struct {
	Id             int64  `json:"id,omitempty"`
	Name           string `json:"name,omitempty"`
	Body           string `json:"body,omitempty"`
	UseWithUsers   string `json:"use_with_users,omitempty"`
	UseWithBundles string `json:"use_with_bundles,omitempty"`
	UseWithInboxes string `json:"use_with_inboxes,omitempty"`
}
    func (*Clickwrap) UnmarshalJSON ¶
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"`
	Body           string                      `url:"body,omitempty" required:"false"`
	UseWithBundles ClickwrapUseWithBundlesEnum `url:"use_with_bundles,omitempty" required:"false"`
	UseWithInboxes ClickwrapUseWithInboxesEnum `url:"use_with_inboxes,omitempty" required:"false"`
	UseWithUsers   ClickwrapUseWithUsersEnum   `url:"use_with_users,omitempty" required:"false"`
}
    type ClickwrapDeleteParams ¶
type ClickwrapDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type ClickwrapFindParams ¶
type ClickwrapFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type ClickwrapListParams ¶
type ClickwrapListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type ClickwrapUpdateParams ¶
type ClickwrapUpdateParams struct {
	Id             int64                       `url:"-,omitempty" required:"true"`
	Name           string                      `url:"name,omitempty" required:"false"`
	Body           string                      `url:"body,omitempty" required:"false"`
	UseWithBundles ClickwrapUseWithBundlesEnum `url:"use_with_bundles,omitempty" required:"false"`
	UseWithInboxes ClickwrapUseWithInboxesEnum `url:"use_with_inboxes,omitempty" required:"false"`
	UseWithUsers   ClickwrapUseWithUsersEnum   `url:"use_with_users,omitempty" required:"false"`
}
    type ClickwrapUseWithBundlesEnum ¶
type ClickwrapUseWithBundlesEnum string
func (ClickwrapUseWithBundlesEnum) Enum ¶
func (u ClickwrapUseWithBundlesEnum) Enum() map[string]ClickwrapUseWithBundlesEnum
func (ClickwrapUseWithBundlesEnum) String ¶
func (u ClickwrapUseWithBundlesEnum) String() string
type ClickwrapUseWithInboxesEnum ¶
type ClickwrapUseWithInboxesEnum string
func (ClickwrapUseWithInboxesEnum) Enum ¶
func (u ClickwrapUseWithInboxesEnum) Enum() map[string]ClickwrapUseWithInboxesEnum
func (ClickwrapUseWithInboxesEnum) String ¶
func (u ClickwrapUseWithInboxesEnum) String() string
type ClickwrapUseWithUsersEnum ¶
type ClickwrapUseWithUsersEnum string
func (ClickwrapUseWithUsersEnum) Enum ¶
func (u ClickwrapUseWithUsersEnum) Enum() map[string]ClickwrapUseWithUsersEnum
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
	// contains filtered or unexported fields
}
    var GlobalConfig Config
    func (*Config) GetHttpClient ¶
func (s *Config) GetHttpClient() HttpClient
func (*Config) GetRawClient ¶
func (s *Config) GetRawClient() *retryablehttp.Client
func (*Config) SetHeaders ¶
func (*Config) SetHttpClient ¶
type Data ¶
type Data struct {
	U2fSIgnRequests               []U2fSignRequests `json:"u2f_sign_requests"`
	PartialSessionId              string            `json:"partial_session_id"`
	TwoFactorAuthenticationMethod []string          `json:"two_factor_authentication_methods"`
}
    type DnsRecord ¶
type DnsRecord struct {
	Id     string `json:"id,omitempty"`
	Domain string `json:"domain,omitempty"`
	Rrtype string `json:"rrtype,omitempty"`
	Value  string `json:"value,omitempty"`
}
    func (*DnsRecord) UnmarshalJSON ¶
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 {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type Errors ¶
type Errors struct {
	Fields   []string `json:"fields,omitempty"`
	Messages []string `json:"messages,omitempty"`
}
    func (*Errors) UnmarshalJSON ¶
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 {
}
    type ExternalEvent ¶
type ExternalEvent struct {
	Id               int64     `json:"id,omitempty"`
	EventType        string    `json:"event_type,omitempty"`
	Status           string    `json:"status,omitempty"`
	Body             string    `json:"body,omitempty"`
	CreatedAt        time.Time `json:"created_at,omitempty"`
	BodyUrl          string    `json:"body_url,omitempty"`
	FolderBehaviorId int64     `json:"folder_behavior_id,omitempty"`
	SuccessfulFiles  int64     `json:"successful_files,omitempty"`
	ErroredFiles     int64     `json:"errored_files,omitempty"`
	BytesSynced      int64     `json:"bytes_synced,omitempty"`
	RemoteServerType string    `json:"remote_server_type,omitempty"`
}
    func (*ExternalEvent) UnmarshalJSON ¶
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"`
	Body   string                  `url:"body,omitempty" required:"true"`
}
    type ExternalEventFindParams ¶
type ExternalEventFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type ExternalEventListParams ¶
type ExternalEventListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}
    type ExternalEventStatusEnum ¶
type ExternalEventStatusEnum string
func (ExternalEventStatusEnum) Enum ¶
func (u ExternalEventStatusEnum) Enum() map[string]ExternalEventStatusEnum
func (ExternalEventStatusEnum) String ¶
func (u ExternalEventStatusEnum) String() string
type File ¶
type File struct {
	Path             string    `json:"path,omitempty"`
	DisplayName      string    `json:"display_name,omitempty"`
	Type             string    `json:"type,omitempty"`
	Size             int64     `json:"size,omitempty"`
	Mtime            time.Time `json:"mtime,omitempty"`
	ProvidedMtime    time.Time `json:"provided_mtime,omitempty"`
	Crc32            string    `json:"crc32,omitempty"`
	Md5              string    `json:"md5,omitempty"`
	MimeType         string    `json:"mime_type,omitempty"`
	Region           string    `json:"region,omitempty"`
	Permissions      string    `json:"permissions,omitempty"`
	SubfoldersLocked *bool     `json:"subfolders_locked?,omitempty"`
	DownloadUri      string    `json:"download_uri,omitempty"`
	PriorityColor    string    `json:"priority_color,omitempty"`
	PreviewId        int64     `json:"preview_id,omitempty"`
	Preview          string    `json:"preview,omitempty"`
	Action           string    `json:"action,omitempty"`
	Length           int64     `json:"length,omitempty"`
	MkdirParents     *bool     `json:"mkdir_parents,omitempty"`
	Part             int64     `json:"part,omitempty"`
	Parts            int64     `json:"parts,omitempty"`
	Ref              string    `json:"ref,omitempty"`
	Restart          int64     `json:"restart,omitempty"`
	Structure        string    `json:"structure,omitempty"`
	WithRename       *bool     `json:"with_rename,omitempty"`
}
    func (*File) UnmarshalJSON ¶
type FileAction ¶
type FileAction struct {
	Status          string `json:"status,omitempty"`
	FileMigrationId int64  `json:"file_migration_id,omitempty"`
}
    func (*FileAction) UnmarshalJSON ¶
func (f *FileAction) UnmarshalJSON(data []byte) error
type FileActionCollection ¶
type FileActionCollection []FileAction
func (*FileActionCollection) ToSlice ¶
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:"true"`
	MkdirParents *bool  `url:"mkdir_parents,omitempty" required:"false"`
	Part         int64  `url:"part,omitempty" required:"false"`
	Parts        int64  `url:"parts,omitempty" required:"false"`
	Ref          string `url:"ref,omitempty" required:"false"`
	Restart      int64  `url:"restart,omitempty" required:"false"`
	Size         int64  `url:"size,omitempty" required:"false"`
	WithRename   *bool  `url:"with_rename,omitempty" required:"false"`
}
    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"`
	Body      string `json:"body,omitempty"`
	Reactions string `json:"reactions,omitempty"`
	Path      string `json:"path,omitempty"`
}
    func (*FileComment) UnmarshalJSON ¶
func (f *FileComment) UnmarshalJSON(data []byte) error
type FileCommentCollection ¶
type FileCommentCollection []FileComment
func (*FileCommentCollection) ToSlice ¶
func (f *FileCommentCollection) ToSlice() *[]interface{}
func (*FileCommentCollection) UnmarshalJSON ¶
func (f *FileCommentCollection) UnmarshalJSON(data []byte) error
type FileCommentCreateParams ¶
type FileCommentDeleteParams ¶
type FileCommentDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type FileCommentListForParams ¶
type FileCommentListForParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	Path    string `url:"-,omitempty" required:"true"`
	lib.ListParams
}
    type FileCommentReaction ¶
type FileCommentReaction struct {
	Id            int64  `json:"id,omitempty"`
	Emoji         string `json:"emoji,omitempty"`
	UserId        int64  `json:"user_id,omitempty"`
	FileCommentId int64  `json:"file_comment_id,omitempty"`
}
    func (*FileCommentReaction) UnmarshalJSON ¶
func (f *FileCommentReaction) UnmarshalJSON(data []byte) error
type FileCommentReactionCollection ¶
type FileCommentReactionCollection []FileCommentReaction
func (*FileCommentReactionCollection) ToSlice ¶
func (f *FileCommentReactionCollection) ToSlice() *[]interface{}
func (*FileCommentReactionCollection) UnmarshalJSON ¶
func (f *FileCommentReactionCollection) UnmarshalJSON(data []byte) error
type FileCommentReactionDeleteParams ¶
type FileCommentReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type FileCommentUpdateParams ¶
type FileCopyParams ¶
type FileCopyParams struct {
	Path        string `url:"-,omitempty" required:"true"`
	Destination string `url:"destination,omitempty" required:"true"`
	Structure   *bool  `url:"structure,omitempty" required:"false"`
}
    Copy file/folder
type FileCreateParams ¶
type FileCreateParams struct {
	Path          string       `url:"-,omitempty" required:"true"`
	Action        string       `url:"action,omitempty" required:"false"`
	Length        int64        `url:"length,omitempty" required:"false"`
	MkdirParents  *bool        `url:"mkdir_parents,omitempty" required:"false"`
	Part          int64        `url:"part,omitempty" required:"false"`
	Parts         int64        `url:"parts,omitempty" required:"false"`
	ProvidedMtime time.Time    `url:"provided_mtime,omitempty" required:"false"`
	Ref           string       `url:"ref,omitempty" required:"false"`
	Restart       int64        `url:"restart,omitempty" required:"false"`
	Size          int64        `url:"size,omitempty" required:"false"`
	Structure     string       `url:"structure,omitempty" required:"false"`
	WithRename    *bool        `url:"with_rename,omitempty" required:"false"`
}
    type FileDeleteParams ¶
type FileDownloadParams ¶
type FileDownloadParams struct {
	Path              string               `url:"-,omitempty" required:"true"`
	Action            string               `url:"action,omitempty" required:"false"`
	PreviewSize       string               `url:"preview_size,omitempty" required:"false"`
	WithPreviews      *bool                `url:"with_previews,omitempty" required:"false"`
	WithPriorityColor *bool                `url:"with_priority_color,omitempty" required:"false"`
	Writer            io.Writer            `url:"-,omitempty" required:"false"`
	OnDownload        func(*http.Response) `url:"-,omitempty" required:"false"`
}
    Download file
type FileFindParams ¶
type FileMigration ¶
type FileMigration struct {
	Id         int64  `json:"id,omitempty"`
	Path       string `json:"path,omitempty"`
	DestPath   string `json:"dest_path,omitempty"`
	FilesMoved int64  `json:"files_moved,omitempty"`
	FilesTotal int64  `json:"files_total,omitempty"`
	Operation  string `json:"operation,omitempty"`
	Region     string `json:"region,omitempty"`
	Status     string `json:"status,omitempty"`
	LogUrl     string `json:"log_url,omitempty"`
}
    func (*FileMigration) UnmarshalJSON ¶
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:"true"`
}
    type FileMoveParams ¶
type FileMoveParams struct {
	Path        string `url:"-,omitempty" required:"true"`
	Destination string `url:"destination,omitempty" required:"true"`
}
    Move file/folder
type FileUpdateParams ¶
type FileUploadPart ¶
type FileUploadPart struct {
	Send               json.RawMessage `json:"send,omitempty"`
	Action             string          `json:"action,omitempty"`
	AskAboutOverwrites *bool           `json:"ask_about_overwrites,omitempty"`
	AvailableParts     int64           `json:"available_parts,omitempty"`
	Expires            string          `json:"expires,omitempty"`
	Headers            json.RawMessage `json:"headers,omitempty"`
	HttpMethod         string          `json:"http_method,omitempty"`
	NextPartsize       int64           `json:"next_partsize,omitempty"`
	ParallelParts      *bool           `json:"parallel_parts,omitempty"`
	Parameters         json.RawMessage `json:"parameters,omitempty"`
	PartNumber         int64           `json:"part_number,omitempty"`
	Partsize           int64           `json:"partsize,omitempty"`
	Path               string          `json:"path,omitempty"`
	Ref                string          `json:"ref,omitempty"`
	UploadUri          string          `json:"upload_uri,omitempty"`
}
    func (*FileUploadPart) UnmarshalJSON ¶
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 Folder ¶
type Folder struct {
	Path             string    `json:"path,omitempty"`
	DisplayName      string    `json:"display_name,omitempty"`
	Type             string    `json:"type,omitempty"`
	Size             int64     `json:"size,omitempty"`
	Mtime            time.Time `json:"mtime,omitempty"`
	ProvidedMtime    time.Time `json:"provided_mtime,omitempty"`
	Crc32            string    `json:"crc32,omitempty"`
	Md5              string    `json:"md5,omitempty"`
	MimeType         string    `json:"mime_type,omitempty"`
	Region           string    `json:"region,omitempty"`
	Permissions      string    `json:"permissions,omitempty"`
	SubfoldersLocked *bool     `json:"subfolders_locked?,omitempty"`
	DownloadUri      string    `json:"download_uri,omitempty"`
	PriorityColor    string    `json:"priority_color,omitempty"`
	PreviewId        int64     `json:"preview_id,omitempty"`
	Preview          string    `json:"preview,omitempty"`
}
    func (*Folder) UnmarshalJSON ¶
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:"true"`
}
    type FolderListForParams ¶
type FolderListForParams struct {
	Cursor            string `url:"cursor,omitempty" required:"false"`
	PerPage           int64  `url:"per_page,omitempty" required:"false"`
	Path              string `url:"-,omitempty" required:"true"`
	Filter            string `url:"filter,omitempty" required:"false"`
	PreviewSize       string `url:"preview_size,omitempty" required:"false"`
	Search            string `url:"search,omitempty" required:"false"`
	SearchAll         *bool  `url:"search_all,omitempty" required:"false"`
	WithPreviews      *bool  `url:"with_previews,omitempty" required:"false"`
	WithPriorityColor *bool  `url:"with_priority_color,omitempty" required:"false"`
	lib.ListParams
}
    type FormField ¶
type FormField struct {
	Id               int64  `json:"id,omitempty"`
	Label            string `json:"label,omitempty"`
	Required         *bool  `json:"required,omitempty"`
	HelpText         string `json:"help_text,omitempty"`
	FieldType        string `json:"field_type,omitempty"`
	OptionsForSelect string `json:"options_for_select,omitempty"`
	DefaultOption    string `json:"default_option,omitempty"`
	FormFieldSetId   int64  `json:"form_field_set_id,omitempty"`
}
    func (*FormField) UnmarshalJSON ¶
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"`
	Title       string `json:"title,omitempty"`
	FormLayout  int64  `json:"form_layout,omitempty"`
	FormFields  string `json:"form_fields,omitempty"`
	SkipName    *bool  `json:"skip_name,omitempty"`
	SkipEmail   *bool  `json:"skip_email,omitempty"`
	SkipCompany *bool  `json:"skip_company,omitempty"`
	UserId      int64  `json:"user_id,omitempty"`
}
    func (*FormFieldSet) UnmarshalJSON ¶
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:""`
	Title       string   `url:"title,omitempty" required:""`
	SkipEmail   *bool    `url:"skip_email,omitempty" required:""`
	SkipName    *bool    `url:"skip_name,omitempty" required:""`
	SkipCompany *bool    `url:"skip_company,omitempty" required:""`
	FormFields  []string `url:"form_fields,omitempty" required:""`
}
    type FormFieldSetDeleteParams ¶
type FormFieldSetDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type FormFieldSetFindParams ¶
type FormFieldSetFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type FormFieldSetListParams ¶
type FormFieldSetListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type FormFieldSetUpdateParams ¶
type FormFieldSetUpdateParams struct {
	Id          int64    `url:"-,omitempty" required:"true"`
	Title       string   `url:"title,omitempty" required:""`
	SkipEmail   *bool    `url:"skip_email,omitempty" required:""`
	SkipName    *bool    `url:"skip_name,omitempty" required:""`
	SkipCompany *bool    `url:"skip_company,omitempty" required:""`
	FormFields  []string `url:"form_fields,omitempty" required:""`
}
    type Group ¶
type Group struct {
	Id        int64    `json:"id,omitempty"`
	Name      string   `json:"name,omitempty"`
	AdminIds  string   `json:"admin_ids,omitempty"`
	Notes     string   `json:"notes,omitempty"`
	UserIds   []string `json:"user_ids,omitempty"`
	Usernames []string `json:"usernames,omitempty"`
}
    func (*Group) UnmarshalJSON ¶
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 GroupDeleteParams ¶
type GroupDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type GroupFindParams ¶
type GroupFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type GroupListParams ¶
type GroupListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Ids        string          `url:"ids,omitempty" required:"false"`
	lib.ListParams
}
    type GroupUpdateParams ¶
type GroupUpdateParams struct {
	Id       int64  `url:"-,omitempty" required:"true"`
	Name     string `url:"name,omitempty" required:"false"`
	Notes    string `url:"notes,omitempty" required:"false"`
	UserIds  string `url:"user_ids,omitempty" required:"false"`
	AdminIds string `url:"admin_ids,omitempty" required:"false"`
}
    type GroupUser ¶
type GroupUser struct {
	GroupName string   `json:"group_name,omitempty"`
	GroupId   int64    `json:"group_id,omitempty"`
	UserId    int64    `json:"user_id,omitempty"`
	Admin     *bool    `json:"admin,omitempty"`
	Usernames []string `json:"usernames,omitempty"`
	Id        int64    `json:"id,omitempty"`
}
    func (*GroupUser) UnmarshalJSON ¶
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 GroupUserDeleteParams ¶
type GroupUserListParams ¶
type GroupUserUpdateParams ¶
type History ¶
type History struct {
	Id          int64     `json:"id,omitempty"`
	Path        string    `json:"path,omitempty"`
	When        time.Time `json:"when,omitempty"`
	Destination string    `json:"destination,omitempty"`
	Display     string    `json:"display,omitempty"`
	Ip          string    `json:"ip,omitempty"`
	Source      string    `json:"source,omitempty"`
	Targets     []string  `json:"targets,omitempty"`
	UserId      int64     `json:"user_id,omitempty"`
	Username    string    `json:"username,omitempty"`
	Action      string    `json:"action,omitempty"`
	FailureType string    `json:"failure_type,omitempty"`
	Interface   string    `json:"interface,omitempty"`
}
    func (*History) UnmarshalJSON ¶
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"`
	HistoryVersion           string    `json:"history_version,omitempty"`
	StartAt                  time.Time `json:"start_at,omitempty"`
	EndAt                    time.Time `json:"end_at,omitempty"`
	Status                   string    `json:"status,omitempty"`
	QueryAction              string    `json:"query_action,omitempty"`
	QueryInterface           string    `json:"query_interface,omitempty"`
	QueryUserId              string    `json:"query_user_id,omitempty"`
	QueryFileId              string    `json:"query_file_id,omitempty"`
	QueryParentId            string    `json:"query_parent_id,omitempty"`
	QueryPath                string    `json:"query_path,omitempty"`
	QueryFolder              string    `json:"query_folder,omitempty"`
	QuerySrc                 string    `json:"query_src,omitempty"`
	QueryDestination         string    `json:"query_destination,omitempty"`
	QueryIp                  string    `json:"query_ip,omitempty"`
	QueryUsername            string    `json:"query_username,omitempty"`
	QueryFailureType         string    `json:"query_failure_type,omitempty"`
	QueryTargetId            string    `json:"query_target_id,omitempty"`
	QueryTargetName          string    `json:"query_target_name,omitempty"`
	QueryTargetPermission    string    `json:"query_target_permission,omitempty"`
	QueryTargetUserId        string    `json:"query_target_user_id,omitempty"`
	QueryTargetUsername      string    `json:"query_target_username,omitempty"`
	QueryTargetPlatform      string    `json:"query_target_platform,omitempty"`
	QueryTargetPermissionSet string    `json:"query_target_permission_set,omitempty"`
	ResultsUrl               string    `json:"results_url,omitempty"`
	UserId                   int64     `json:"user_id,omitempty"`
}
    func (*HistoryExport) UnmarshalJSON ¶
func (h *HistoryExport) UnmarshalJSON(data []byte) error
type HistoryExportCollection ¶
type HistoryExportCollection []HistoryExport
func (*HistoryExportCollection) ToSlice ¶
func (h *HistoryExportCollection) ToSlice() *[]interface{}
func (*HistoryExportCollection) UnmarshalJSON ¶
func (h *HistoryExportCollection) UnmarshalJSON(data []byte) error
type HistoryExportCreateParams ¶
type HistoryExportCreateParams struct {
	UserId                   int64     `url:"user_id,omitempty" required:"false"`
	StartAt                  time.Time `url:"start_at,omitempty" required:"false"`
	EndAt                    time.Time `url:"end_at,omitempty" required:"false"`
	QueryAction              string    `url:"query_action,omitempty" required:"false"`
	QueryInterface           string    `url:"query_interface,omitempty" required:"false"`
	QueryUserId              string    `url:"query_user_id,omitempty" required:"false"`
	QueryFileId              string    `url:"query_file_id,omitempty" required:"false"`
	QueryParentId            string    `url:"query_parent_id,omitempty" required:"false"`
	QueryPath                string    `url:"query_path,omitempty" required:"false"`
	QueryFolder              string    `url:"query_folder,omitempty" required:"false"`
	QuerySrc                 string    `url:"query_src,omitempty" required:"false"`
	QueryDestination         string    `url:"query_destination,omitempty" required:"false"`
	QueryIp                  string    `url:"query_ip,omitempty" required:"false"`
	QueryUsername            string    `url:"query_username,omitempty" required:"false"`
	QueryFailureType         string    `url:"query_failure_type,omitempty" required:"false"`
	QueryTargetId            string    `url:"query_target_id,omitempty" required:"false"`
	QueryTargetName          string    `url:"query_target_name,omitempty" required:"false"`
	QueryTargetPermission    string    `url:"query_target_permission,omitempty" required:"false"`
	QueryTargetUserId        string    `url:"query_target_user_id,omitempty" required:"false"`
	QueryTargetUsername      string    `url:"query_target_username,omitempty" required:"false"`
	QueryTargetPlatform      string    `url:"query_target_platform,omitempty" required:"false"`
	QueryTargetPermissionSet string    `url:"query_target_permission_set,omitempty" required:"false"`
}
    type HistoryExportFindParams ¶
type HistoryExportFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type HistoryExportResult ¶
type HistoryExportResult struct {
	Id                  int64  `json:"id,omitempty"`
	CreatedAt           int64  `json:"created_at,omitempty"`
	UserId              int64  `json:"user_id,omitempty"`
	FileId              int64  `json:"file_id,omitempty"`
	ParentId            int64  `json:"parent_id,omitempty"`
	Path                string `json:"path,omitempty"`
	Folder              string `json:"folder,omitempty"`
	Src                 string `json:"src,omitempty"`
	Destination         string `json:"destination,omitempty"`
	Ip                  string `json:"ip,omitempty"`
	Username            string `json:"username,omitempty"`
	Action              string `json:"action,omitempty"`
	FailureType         string `json:"failure_type,omitempty"`
	Interface           string `json:"interface,omitempty"`
	TargetId            int64  `json:"target_id,omitempty"`
	TargetName          string `json:"target_name,omitempty"`
	TargetPermission    string `json:"target_permission,omitempty"`
	TargetRecursive     *bool  `json:"target_recursive,omitempty"`
	TargetExpiresAt     int64  `json:"target_expires_at,omitempty"`
	TargetPermissionSet string `json:"target_permission_set,omitempty"`
	TargetPlatform      string `json:"target_platform,omitempty"`
	TargetUsername      string `json:"target_username,omitempty"`
	TargetUserId        int64  `json:"target_user_id,omitempty"`
}
    func (*HistoryExportResult) UnmarshalJSON ¶
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"`
	Cursor          string `url:"cursor,omitempty" required:"false"`
	PerPage         int64  `url:"per_page,omitempty" required:"false"`
	HistoryExportId int64  `url:"history_export_id,omitempty" required:"true"`
	lib.ListParams
}
    type HistoryListForFileParams ¶
type HistoryListForFileParams struct {
	StartAt time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt   time.Time       `url:"end_at,omitempty" required:"false"`
	Display string          `url:"display,omitempty" required:"false"`
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Path    string          `url:"-,omitempty" required:"true"`
	lib.ListParams
}
    type HistoryListForFolderParams ¶
type HistoryListForFolderParams struct {
	StartAt time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt   time.Time       `url:"end_at,omitempty" required:"false"`
	Display string          `url:"display,omitempty" required:"false"`
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Path    string          `url:"-,omitempty" required:"true"`
	lib.ListParams
}
    type HistoryListForUserParams ¶
type HistoryListForUserParams struct {
	StartAt time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt   time.Time       `url:"end_at,omitempty" required:"false"`
	Display string          `url:"display,omitempty" required:"false"`
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	UserId  int64           `url:"-,omitempty" required:"true"`
	lib.ListParams
}
    type HistoryListLoginsParams ¶
type HistoryListLoginsParams struct {
	StartAt time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt   time.Time       `url:"end_at,omitempty" required:"false"`
	Display string          `url:"display,omitempty" required:"false"`
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	lib.ListParams
}
    type HistoryListParams ¶
type HistoryListParams struct {
	StartAt    time.Time       `url:"start_at,omitempty" required:"false"`
	EndAt      time.Time       `url:"end_at,omitempty" required:"false"`
	Display    string          `url:"display,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}
    type HttpClient ¶
type Image ¶
func (*Image) UnmarshalJSON ¶
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"`
	Name             string    `json:"name,omitempty"`
	Note             string    `json:"note,omitempty"`
	Recipient        string    `json:"recipient,omitempty"`
	SentAt           time.Time `json:"sent_at,omitempty"`
	UserId           int64     `json:"user_id,omitempty"`
	InboxId          int64     `json:"inbox_id,omitempty"`
}
    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 {
	UserId           int64  `url:"user_id,omitempty" required:"false"`
	InboxId          int64  `url:"inbox_id,omitempty" required:"true"`
	Recipient        string `url:"recipient,omitempty" required:"true"`
	Name             string `url:"name,omitempty" required:"false"`
	Company          string `url:"company,omitempty" required:"false"`
	Note             string `url:"note,omitempty" required:"false"`
}
    type InboxRecipientListParams ¶
type InboxRecipientListParams struct {
	UserId     int64           `url:"user_id,omitempty" required:"false"`
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	InboxId    int64           `url:"inbox_id,omitempty" required:"true"`
	lib.ListParams
}
    type InboxRegistration ¶
type InboxRegistration struct {
	Code             string `json:"code,omitempty"`
	Name             string `json:"name,omitempty"`
	Company          string `json:"company,omitempty"`
	Email            string `json:"email,omitempty"`
	ClickwrapBody    string `json:"clickwrap_body,omitempty"`
	FormFieldSetId   int64  `json:"form_field_set_id,omitempty"`
	FormFieldData    string `json:"form_field_data,omitempty"`
	InboxId          int64  `json:"inbox_id,omitempty"`
	InboxRecipientId int64  `json:"inbox_recipient_id,omitempty"`
	InboxTitle       string `json:"inbox_title,omitempty"`
}
    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 {
	Cursor           string `url:"cursor,omitempty" required:"false"`
	PerPage          int64  `url:"per_page,omitempty" required:"false"`
	FolderBehaviorId int64  `url:"folder_behavior_id,omitempty" required:"false"`
	lib.ListParams
}
    type InboxUpload ¶
type InboxUpload struct {
	InboxRegistration string    `json:"inbox_registration,omitempty"`
	Path              string    `json:"path,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
}
    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 {
	Cursor              string          `url:"cursor,omitempty" required:"false"`
	PerPage             int64           `url:"per_page,omitempty" required:"false"`
	SortBy              json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter              json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt            json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq          json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike          json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt            json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq          json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	InboxRegistrationId int64           `url:"inbox_registration_id,omitempty" required:"false"`
	InboxId             int64           `url:"inbox_id,omitempty" required:"false"`
	lib.ListParams
}
    type Invoice ¶
type Invoice struct {
	Id                int64     `json:"id,omitempty"`
	Amount            float32   `json:"amount,omitempty"`
	Balance           float32   `json:"balance,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	Currency          string    `json:"currency,omitempty"`
	DownloadUri       string    `json:"download_uri,omitempty"`
	InvoiceLineItems  string    `json:"invoice_line_items,omitempty"`
	Method            string    `json:"method,omitempty"`
	PaymentLineItems  string    `json:"payment_line_items,omitempty"`
	PaymentReversedAt time.Time `json:"payment_reversed_at,omitempty"`
	PaymentType       string    `json:"payment_type,omitempty"`
	SiteName          string    `json:"site_name,omitempty"`
	Type              string    `json:"type,omitempty"`
	UpdatedAt         time.Time `json:"updated_at,omitempty"`
}
    func (*Invoice) UnmarshalJSON ¶
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:"true"`
}
    type InvoiceLineItem ¶
type InvoiceLineItem struct {
	Amount         float32   `json:"amount,omitempty"`
	CreatedAt      time.Time `json:"created_at,omitempty"`
	Description    string    `json:"description,omitempty"`
	Type           string    `json:"type,omitempty"`
	ServiceEndAt   time.Time `json:"service_end_at,omitempty"`
	ServiceStartAt time.Time `json:"service_start_at,omitempty"`
	UpdatedAt      time.Time `json:"updated_at,omitempty"`
	Plan           string    `json:"plan,omitempty"`
	Site           string    `json:"site,omitempty"`
}
    func (*InvoiceLineItem) UnmarshalJSON ¶
func (i *InvoiceLineItem) UnmarshalJSON(data []byte) error
type InvoiceLineItemCollection ¶
type InvoiceLineItemCollection []InvoiceLineItem
func (*InvoiceLineItemCollection) ToSlice ¶
func (i *InvoiceLineItemCollection) ToSlice() *[]interface{}
func (*InvoiceLineItemCollection) UnmarshalJSON ¶
func (i *InvoiceLineItemCollection) UnmarshalJSON(data []byte) error
type InvoiceListParams ¶
type InvoiceListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type IpAddress ¶
type IpAddress struct {
	Id             string   `json:"id,omitempty"`
	AssociatedWith string   `json:"associated_with,omitempty"`
	GroupId        int64    `json:"group_id,omitempty"`
	IpAddresses    []string `json:"ip_addresses,omitempty"`
}
    func (*IpAddress) UnmarshalJSON ¶
type IpAddressCollection ¶
type IpAddressCollection []IpAddress
func (*IpAddressCollection) ToSlice ¶
func (i *IpAddressCollection) ToSlice() *[]interface{}
func (*IpAddressCollection) UnmarshalJSON ¶
func (i *IpAddressCollection) UnmarshalJSON(data []byte) error
type IpAddressListParams ¶
type IpAddressListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type Lock ¶
type Lock struct {
	Path                 string `json:"path,omitempty"`
	Timeout              int64  `json:"timeout,omitempty"`
	Depth                string `json:"depth,omitempty"`
	Recursive            *bool  `json:"recursive,omitempty"`
	Owner                string `json:"owner,omitempty"`
	Scope                string `json:"scope,omitempty"`
	Exclusive            *bool  `json:"exclusive,omitempty"`
	Token                string `json:"token,omitempty"`
	Type                 string `json:"type,omitempty"`
	AllowAccessByAnyUser *bool  `json:"allow_access_by_any_user,omitempty"`
	UserId               int64  `json:"user_id,omitempty"`
	Username             string `json:"username,omitempty"`
}
    func (*Lock) UnmarshalJSON ¶
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:"true"`
	AllowAccessByAnyUser *bool  `url:"allow_access_by_any_user,omitempty" required:"false"`
	Exclusive            *bool  `url:"exclusive,omitempty" required:"false"`
	Recursive            string `url:"recursive,omitempty" required:"false"`
	Timeout              int64  `url:"timeout,omitempty" required:"false"`
}
    type LockDeleteParams ¶
type LockListForParams ¶
type Message ¶
type Message struct {
	Id        int64  `json:"id,omitempty"`
	Subject   string `json:"subject,omitempty"`
	Body      string `json:"body,omitempty"`
	Comments  string `json:"comments,omitempty"`
	UserId    int64  `json:"user_id,omitempty"`
	ProjectId int64  `json:"project_id,omitempty"`
}
    func (*Message) UnmarshalJSON ¶
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"`
	Body      string `json:"body,omitempty"`
	Reactions string `json:"reactions,omitempty"`
	UserId    int64  `json:"user_id,omitempty"`
}
    func (*MessageComment) UnmarshalJSON ¶
func (m *MessageComment) UnmarshalJSON(data []byte) error
type MessageCommentCollection ¶
type MessageCommentCollection []MessageComment
func (*MessageCommentCollection) ToSlice ¶
func (m *MessageCommentCollection) ToSlice() *[]interface{}
func (*MessageCommentCollection) UnmarshalJSON ¶
func (m *MessageCommentCollection) UnmarshalJSON(data []byte) error
type MessageCommentDeleteParams ¶
type MessageCommentDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type MessageCommentFindParams ¶
type MessageCommentFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type MessageCommentReaction ¶
type MessageCommentReaction struct {
	Id     int64  `json:"id,omitempty"`
	Emoji  string `json:"emoji,omitempty"`
	UserId int64  `json:"user_id,omitempty"`
}
    func (*MessageCommentReaction) UnmarshalJSON ¶
func (m *MessageCommentReaction) UnmarshalJSON(data []byte) error
type MessageCommentReactionCollection ¶
type MessageCommentReactionCollection []MessageCommentReaction
func (*MessageCommentReactionCollection) ToSlice ¶
func (m *MessageCommentReactionCollection) ToSlice() *[]interface{}
func (*MessageCommentReactionCollection) UnmarshalJSON ¶
func (m *MessageCommentReactionCollection) UnmarshalJSON(data []byte) error
type MessageCommentReactionDeleteParams ¶
type MessageCommentReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type MessageCommentReactionFindParams ¶
type MessageCommentReactionFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type MessageCommentReactionListParams ¶
type MessageCommentReactionListParams struct {
	UserId           int64  `url:"user_id,omitempty" required:"false"`
	Cursor           string `url:"cursor,omitempty" required:"false"`
	PerPage          int64  `url:"per_page,omitempty" required:"false"`
	MessageCommentId int64  `url:"message_comment_id,omitempty" required:"true"`
	lib.ListParams
}
    type MessageCreateParams ¶
type MessageDeleteParams ¶
type MessageDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type MessageFindParams ¶
type MessageFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type MessageListParams ¶
type MessageReaction ¶
type MessageReaction struct {
	Id     int64  `json:"id,omitempty"`
	Emoji  string `json:"emoji,omitempty"`
	UserId int64  `json:"user_id,omitempty"`
}
    func (*MessageReaction) UnmarshalJSON ¶
func (m *MessageReaction) UnmarshalJSON(data []byte) error
type MessageReactionCollection ¶
type MessageReactionCollection []MessageReaction
func (*MessageReactionCollection) ToSlice ¶
func (m *MessageReactionCollection) ToSlice() *[]interface{}
func (*MessageReactionCollection) UnmarshalJSON ¶
func (m *MessageReactionCollection) UnmarshalJSON(data []byte) error
type MessageReactionDeleteParams ¶
type MessageReactionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type MessageReactionFindParams ¶
type MessageReactionFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type MessageUpdateParams ¶
type Notification ¶
type Notification struct {
	Id                 int64  `json:"id,omitempty"`
	Path               string `json:"path,omitempty"`
	GroupId            int64  `json:"group_id,omitempty"`
	GroupName          string `json:"group_name,omitempty"`
	NotifyUserActions  *bool  `json:"notify_user_actions,omitempty"`
	NotifyOnCopy       *bool  `json:"notify_on_copy,omitempty"`
	Recursive          *bool  `json:"recursive,omitempty"`
	SendInterval       string `json:"send_interval,omitempty"`
	Unsubscribed       *bool  `json:"unsubscribed,omitempty"`
	UnsubscribedReason string `json:"unsubscribed_reason,omitempty"`
	UserId             int64  `json:"user_id,omitempty"`
	Username           string `json:"username,omitempty"`
	SuppressedEmail    *bool  `json:"suppressed_email,omitempty"`
}
    func (*Notification) UnmarshalJSON ¶
func (n *Notification) UnmarshalJSON(data []byte) error
type NotificationCollection ¶
type NotificationCollection []Notification
func (*NotificationCollection) ToSlice ¶
func (n *NotificationCollection) ToSlice() *[]interface{}
func (*NotificationCollection) UnmarshalJSON ¶
func (n *NotificationCollection) UnmarshalJSON(data []byte) error
type NotificationCreateParams ¶
type NotificationCreateParams struct {
	UserId            int64  `url:"user_id,omitempty" required:"false"`
	NotifyOnCopy      *bool  `url:"notify_on_copy,omitempty" required:"false"`
	NotifyUserActions *bool  `url:"notify_user_actions,omitempty" required:"false"`
	Recursive         *bool  `url:"recursive,omitempty" required:"false"`
	SendInterval      string `url:"send_interval,omitempty" required:"false"`
	GroupId           int64  `url:"group_id,omitempty" required:"false"`
	Path              string `url:"path,omitempty" required:"false"`
	Username          string `url:"username,omitempty" required:"false"`
}
    type NotificationDeleteParams ¶
type NotificationDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type NotificationFindParams ¶
type NotificationFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type NotificationListParams ¶
type NotificationListParams struct {
	UserId           int64           `url:"user_id,omitempty" required:"false"`
	Cursor           string          `url:"cursor,omitempty" required:"false"`
	PerPage          int64           `url:"per_page,omitempty" required:"false"`
	SortBy           json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter           json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt         json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq       json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike       json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt         json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq       json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	GroupId          int64           `url:"group_id,omitempty" required:"false"`
	Path             string          `url:"path,omitempty" required:"false"`
	IncludeAncestors *bool           `url:"include_ancestors,omitempty" required:"false"`
	lib.ListParams
}
    type NotificationUpdateParams ¶
type NotificationUpdateParams struct {
	Id                int64  `url:"-,omitempty" required:"true"`
	NotifyOnCopy      *bool  `url:"notify_on_copy,omitempty" required:"false"`
	NotifyUserActions *bool  `url:"notify_user_actions,omitempty" required:"false"`
	Recursive         *bool  `url:"recursive,omitempty" required:"false"`
	SendInterval      string `url:"send_interval,omitempty" required:"false"`
}
    type NullLogger ¶
type NullLogger struct{}
    func (NullLogger) Printf ¶
func (n NullLogger) Printf(_ string, _ ...interface{})
type Payment ¶
type Payment struct {
	Id                int64     `json:"id,omitempty"`
	Amount            float32   `json:"amount,omitempty"`
	Balance           float32   `json:"balance,omitempty"`
	CreatedAt         time.Time `json:"created_at,omitempty"`
	Currency          string    `json:"currency,omitempty"`
	DownloadUri       string    `json:"download_uri,omitempty"`
	InvoiceLineItems  string    `json:"invoice_line_items,omitempty"`
	Method            string    `json:"method,omitempty"`
	PaymentLineItems  string    `json:"payment_line_items,omitempty"`
	PaymentReversedAt time.Time `json:"payment_reversed_at,omitempty"`
	PaymentType       string    `json:"payment_type,omitempty"`
	SiteName          string    `json:"site_name,omitempty"`
	Type              string    `json:"type,omitempty"`
	UpdatedAt         time.Time `json:"updated_at,omitempty"`
}
    func (*Payment) UnmarshalJSON ¶
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:"true"`
}
    type PaymentLineItem ¶
type PaymentLineItem struct {
	Amount    float32   `json:"amount,omitempty"`
	CreatedAt time.Time `json:"created_at,omitempty"`
	InvoiceId int64     `json:"invoice_id,omitempty"`
	PaymentId int64     `json:"payment_id,omitempty"`
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}
    func (*PaymentLineItem) UnmarshalJSON ¶
func (p *PaymentLineItem) UnmarshalJSON(data []byte) error
type PaymentLineItemCollection ¶
type PaymentLineItemCollection []PaymentLineItem
func (*PaymentLineItemCollection) ToSlice ¶
func (p *PaymentLineItemCollection) ToSlice() *[]interface{}
func (*PaymentLineItemCollection) UnmarshalJSON ¶
func (p *PaymentLineItemCollection) UnmarshalJSON(data []byte) error
type PaymentListParams ¶
type PaymentListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type Permission ¶
type Permission struct {
	Id         int64  `json:"id,omitempty"`
	Path       string `json:"path,omitempty"`
	UserId     int64  `json:"user_id,omitempty"`
	Username   string `json:"username,omitempty"`
	GroupId    int64  `json:"group_id,omitempty"`
	GroupName  string `json:"group_name,omitempty"`
	Permission string `json:"permission,omitempty"`
	Recursive  *bool  `json:"recursive,omitempty"`
}
    func (*Permission) UnmarshalJSON ¶
func (p *Permission) UnmarshalJSON(data []byte) error
type PermissionCollection ¶
type PermissionCollection []Permission
func (*PermissionCollection) ToSlice ¶
func (p *PermissionCollection) ToSlice() *[]interface{}
func (*PermissionCollection) UnmarshalJSON ¶
func (p *PermissionCollection) UnmarshalJSON(data []byte) error
type PermissionCreateParams ¶
type PermissionCreateParams struct {
	GroupId    int64  `url:"group_id,omitempty" required:"false"`
	Path       string `url:"path,omitempty" required:"false"`
	Permission string `url:"permission,omitempty" required:"false"`
	Recursive  *bool  `url:"recursive,omitempty" required:"false"`
	UserId     int64  `url:"user_id,omitempty" required:"false"`
	Username   string `url:"username,omitempty" required:"false"`
}
    type PermissionDeleteParams ¶
type PermissionDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type PermissionListParams ¶
type PermissionListParams struct {
	Cursor        string          `url:"cursor,omitempty" required:"false"`
	PerPage       int64           `url:"per_page,omitempty" required:"false"`
	SortBy        json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter        json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt      json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq    json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike    json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt      json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq    json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Path          string          `url:"path,omitempty" required:"false"`
	GroupId       string          `url:"group_id,omitempty" required:"false"`
	UserId        string          `url:"user_id,omitempty" required:"false"`
	IncludeGroups *bool           `url:"include_groups,omitempty" required:"false"`
	lib.ListParams
}
    type Preview ¶
type Preview struct {
	Id            int64  `json:"id,omitempty"`
	Status        string `json:"status,omitempty"`
	DownloadUri   string `json:"download_uri,omitempty"`
	Type          string `json:"type,omitempty"`
	Size          int64  `json:"size,omitempty"`
	StatusMessage string `json:"status_message,omitempty"`
}
    func (*Preview) UnmarshalJSON ¶
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 ¶
func (*Priority) UnmarshalJSON ¶
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 {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	Path    string `url:"path,omitempty" required:"true"`
	lib.ListParams
}
    type Project ¶
type Project struct {
	Id           int64  `json:"id,omitempty"`
	GlobalAccess string `json:"global_access,omitempty"`
}
    func (*Project) UnmarshalJSON ¶
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"`
}
    type ProjectDeleteParams ¶
type ProjectDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type ProjectFindParams ¶
type ProjectFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type ProjectListParams ¶
type ProjectListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type ProjectUpdateParams ¶
type PublicIpAddress ¶
type PublicIpAddress struct {
	IpAddress   string `json:"ip_address,omitempty"`
	ServerName  string `json:"server_name,omitempty"`
	FtpEnabled  string `json:"ftp_enabled,omitempty"`
	SftpEnabled string `json:"sftp_enabled,omitempty"`
}
    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"`
	Title       string    `json:"title,omitempty"`
	CreatedAt   time.Time `json:"created_at,omitempty"`
	Fingerprint string    `json:"fingerprint,omitempty"`
	UserId      int64     `json:"user_id,omitempty"`
	PublicKey   string    `json:"public_key,omitempty"`
}
    func (*PublicKey) UnmarshalJSON ¶
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 PublicKeyDeleteParams ¶
type PublicKeyDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type PublicKeyFindParams ¶
type PublicKeyFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type PublicKeyListParams ¶
type PublicKeyListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type PublicKeyUpdateParams ¶
type QParam ¶
type QParam struct {
	Username             string `url:"username,omitempty"`
	Email                string `url:"email,omitempty"`
	Notes                string `url:"notes,omitempty"`
	Admin                string `url:"admin,omitempty"`
	AllowedIps           string `url:"allowed_ips,omitempty"`
	PasswordValidityDays string `url:"password_validity_days,omitempty"`
	SslRequired          string `url:"ssl_required,omitempty"`
}
    type RemoteServer ¶
type RemoteServer struct {
	Id                                int64  `json:"id,omitempty"`
	AuthenticationMethod              string `json:"authentication_method,omitempty"`
	Hostname                          string `json:"hostname,omitempty"`
	RemoteHomePath                    string `json:"remote_home_path,omitempty"`
	Name                              string `json:"name,omitempty"`
	Port                              int64  `json:"port,omitempty"`
	MaxConnections                    int64  `json:"max_connections,omitempty"`
	S3Bucket                          string `json:"s3_bucket,omitempty"`
	S3Region                          string `json:"s3_region,omitempty"`
	ServerCertificate                 string `json:"server_certificate,omitempty"`
	ServerHostKey                     string `json:"server_host_key,omitempty"`
	ServerType                        string `json:"server_type,omitempty"`
	Ssl                               string `json:"ssl,omitempty"`
	Username                          string `json:"username,omitempty"`
	GoogleCloudStorageBucket          string `json:"google_cloud_storage_bucket,omitempty"`
	GoogleCloudStorageProjectId       string `json:"google_cloud_storage_project_id,omitempty"`
	BackblazeB2S3Endpoint             string `json:"backblaze_b2_s3_endpoint,omitempty"`
	BackblazeB2Bucket                 string `json:"backblaze_b2_bucket,omitempty"`
	WasabiBucket                      string `json:"wasabi_bucket,omitempty"`
	WasabiRegion                      string `json:"wasabi_region,omitempty"`
	RackspaceUsername                 string `json:"rackspace_username,omitempty"`
	RackspaceRegion                   string `json:"rackspace_region,omitempty"`
	RackspaceContainer                string `json:"rackspace_container,omitempty"`
	AuthSetupLink                     string `json:"auth_setup_link,omitempty"`
	AuthStatus                        string `json:"auth_status,omitempty"`
	AuthAccountName                   string `json:"auth_account_name,omitempty"`
	OneDriveAccountType               string `json:"one_drive_account_type,omitempty"`
	AzureBlobStorageAccount           string `json:"azure_blob_storage_account,omitempty"`
	AzureBlobStorageContainer         string `json:"azure_blob_storage_container,omitempty"`
	S3CompatibleBucket                string `json:"s3_compatible_bucket,omitempty"`
	S3CompatibleEndpoint              string `json:"s3_compatible_endpoint,omitempty"`
	EnableDedicatedIps                *bool  `json:"enable_dedicated_ips,omitempty"`
	AwsAccessKey                      string `json:"aws_access_key,omitempty"`
	AwsSecretKey                      string `json:"aws_secret_key,omitempty"`
	Password                          string `json:"password,omitempty"`
	PrivateKey                        string `json:"private_key,omitempty"`
	SslCertificate                    string `json:"ssl_certificate,omitempty"`
	GoogleCloudStorageCredentialsJson string `json:"google_cloud_storage_credentials_json,omitempty"`
	WasabiAccessKey                   string `json:"wasabi_access_key,omitempty"`
	WasabiSecretKey                   string `json:"wasabi_secret_key,omitempty"`
	BackblazeB2KeyId                  string `json:"backblaze_b2_key_id,omitempty"`
	BackblazeB2ApplicationKey         string `json:"backblaze_b2_application_key,omitempty"`
	RackspaceApiKey                   string `json:"rackspace_api_key,omitempty"`
	ResetAuthentication               *bool  `json:"reset_authentication,omitempty"`
	AzureBlobStorageAccessKey         string `json:"azure_blob_storage_access_key,omitempty"`
	S3CompatibleAccessKey             string `json:"s3_compatible_access_key,omitempty"`
	S3CompatibleSecretKey             string `json:"s3_compatible_secret_key,omitempty"`
}
    func (*RemoteServer) UnmarshalJSON ¶
func (r *RemoteServer) UnmarshalJSON(data []byte) error
type RemoteServerCollection ¶
type RemoteServerCollection []RemoteServer
func (*RemoteServerCollection) ToSlice ¶
func (r *RemoteServerCollection) ToSlice() *[]interface{}
func (*RemoteServerCollection) UnmarshalJSON ¶
func (r *RemoteServerCollection) UnmarshalJSON(data []byte) error
type RemoteServerCreateParams ¶
type RemoteServerCreateParams struct {
	AwsAccessKey                      string                              `url:"aws_access_key,omitempty" required:"false"`
	AwsSecretKey                      string                              `url:"aws_secret_key,omitempty" required:"false"`
	Password                          string                              `url:"password,omitempty" required:"false"`
	PrivateKey                        string                              `url:"private_key,omitempty" required:"false"`
	SslCertificate                    string                              `url:"ssl_certificate,omitempty" required:"false"`
	GoogleCloudStorageCredentialsJson string                              `url:"google_cloud_storage_credentials_json,omitempty" required:"false"`
	WasabiAccessKey                   string                              `url:"wasabi_access_key,omitempty" required:"false"`
	WasabiSecretKey                   string                              `url:"wasabi_secret_key,omitempty" required:"false"`
	BackblazeB2KeyId                  string                              `url:"backblaze_b2_key_id,omitempty" required:"false"`
	BackblazeB2ApplicationKey         string                              `url:"backblaze_b2_application_key,omitempty" required:"false"`
	RackspaceApiKey                   string                              `url:"rackspace_api_key,omitempty" required:"false"`
	ResetAuthentication               *bool                               `url:"reset_authentication,omitempty" required:"false"`
	AzureBlobStorageAccessKey         string                              `url:"azure_blob_storage_access_key,omitempty" required:"false"`
	Hostname                          string                              `url:"hostname,omitempty" required:"false"`
	Name                              string                              `url:"name,omitempty" required:"false"`
	MaxConnections                    int64                               `url:"max_connections,omitempty" required:"false"`
	Port                              int64                               `url:"port,omitempty" required:"false"`
	S3Bucket                          string                              `url:"s3_bucket,omitempty" required:"false"`
	S3Region                          string                              `url:"s3_region,omitempty" required:"false"`
	ServerCertificate                 RemoteServerServerCertificateEnum   `url:"server_certificate,omitempty" required:"false"`
	ServerHostKey                     string                              `url:"server_host_key,omitempty" required:"false"`
	ServerType                        RemoteServerServerTypeEnum          `url:"server_type,omitempty" required:"false"`
	Ssl                               RemoteServerSslEnum                 `url:"ssl,omitempty" required:"false"`
	Username                          string                              `url:"username,omitempty" required:"false"`
	GoogleCloudStorageBucket          string                              `url:"google_cloud_storage_bucket,omitempty" required:"false"`
	GoogleCloudStorageProjectId       string                              `url:"google_cloud_storage_project_id,omitempty" required:"false"`
	BackblazeB2Bucket                 string                              `url:"backblaze_b2_bucket,omitempty" required:"false"`
	BackblazeB2S3Endpoint             string                              `url:"backblaze_b2_s3_endpoint,omitempty" required:"false"`
	WasabiBucket                      string                              `url:"wasabi_bucket,omitempty" required:"false"`
	WasabiRegion                      string                              `url:"wasabi_region,omitempty" required:"false"`
	RackspaceUsername                 string                              `url:"rackspace_username,omitempty" required:"false"`
	RackspaceRegion                   string                              `url:"rackspace_region,omitempty" required:"false"`
	RackspaceContainer                string                              `url:"rackspace_container,omitempty" required:"false"`
	OneDriveAccountType               RemoteServerOneDriveAccountTypeEnum `url:"one_drive_account_type,omitempty" required:"false"`
	AzureBlobStorageAccount           string                              `url:"azure_blob_storage_account,omitempty" required:"false"`
	AzureBlobStorageContainer         string                              `url:"azure_blob_storage_container,omitempty" required:"false"`
	S3CompatibleBucket                string                              `url:"s3_compatible_bucket,omitempty" required:"false"`
	S3CompatibleEndpoint              string                              `url:"s3_compatible_endpoint,omitempty" required:"false"`
	EnableDedicatedIps                *bool                               `url:"enable_dedicated_ips,omitempty" required:"false"`
	S3CompatibleAccessKey             string                              `url:"s3_compatible_access_key,omitempty" required:"false"`
	S3CompatibleSecretKey             string                              `url:"s3_compatible_secret_key,omitempty" required:"false"`
}
    type RemoteServerDeleteParams ¶
type RemoteServerDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type RemoteServerFindParams ¶
type RemoteServerFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type RemoteServerListParams ¶
type RemoteServerListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type RemoteServerOneDriveAccountTypeEnum ¶
type RemoteServerOneDriveAccountTypeEnum string
func (RemoteServerOneDriveAccountTypeEnum) Enum ¶
func (u RemoteServerOneDriveAccountTypeEnum) Enum() map[string]RemoteServerOneDriveAccountTypeEnum
func (RemoteServerOneDriveAccountTypeEnum) String ¶
func (u RemoteServerOneDriveAccountTypeEnum) String() string
type RemoteServerServerCertificateEnum ¶
type RemoteServerServerCertificateEnum string
func (RemoteServerServerCertificateEnum) Enum ¶
func (u RemoteServerServerCertificateEnum) Enum() map[string]RemoteServerServerCertificateEnum
func (RemoteServerServerCertificateEnum) String ¶
func (u RemoteServerServerCertificateEnum) String() string
type RemoteServerServerTypeEnum ¶
type RemoteServerServerTypeEnum string
func (RemoteServerServerTypeEnum) Enum ¶
func (u RemoteServerServerTypeEnum) Enum() map[string]RemoteServerServerTypeEnum
func (RemoteServerServerTypeEnum) String ¶
func (u RemoteServerServerTypeEnum) String() string
type RemoteServerSslEnum ¶
type RemoteServerSslEnum string
func (RemoteServerSslEnum) Enum ¶
func (u RemoteServerSslEnum) Enum() map[string]RemoteServerSslEnum
func (RemoteServerSslEnum) String ¶
func (u RemoteServerSslEnum) String() string
type RemoteServerUpdateParams ¶
type RemoteServerUpdateParams struct {
	Id                                int64                               `url:"-,omitempty" required:"true"`
	AwsAccessKey                      string                              `url:"aws_access_key,omitempty" required:"false"`
	AwsSecretKey                      string                              `url:"aws_secret_key,omitempty" required:"false"`
	Password                          string                              `url:"password,omitempty" required:"false"`
	PrivateKey                        string                              `url:"private_key,omitempty" required:"false"`
	SslCertificate                    string                              `url:"ssl_certificate,omitempty" required:"false"`
	GoogleCloudStorageCredentialsJson string                              `url:"google_cloud_storage_credentials_json,omitempty" required:"false"`
	WasabiAccessKey                   string                              `url:"wasabi_access_key,omitempty" required:"false"`
	WasabiSecretKey                   string                              `url:"wasabi_secret_key,omitempty" required:"false"`
	BackblazeB2KeyId                  string                              `url:"backblaze_b2_key_id,omitempty" required:"false"`
	BackblazeB2ApplicationKey         string                              `url:"backblaze_b2_application_key,omitempty" required:"false"`
	RackspaceApiKey                   string                              `url:"rackspace_api_key,omitempty" required:"false"`
	ResetAuthentication               *bool                               `url:"reset_authentication,omitempty" required:"false"`
	AzureBlobStorageAccessKey         string                              `url:"azure_blob_storage_access_key,omitempty" required:"false"`
	Hostname                          string                              `url:"hostname,omitempty" required:"false"`
	Name                              string                              `url:"name,omitempty" required:"false"`
	MaxConnections                    int64                               `url:"max_connections,omitempty" required:"false"`
	Port                              int64                               `url:"port,omitempty" required:"false"`
	S3Bucket                          string                              `url:"s3_bucket,omitempty" required:"false"`
	S3Region                          string                              `url:"s3_region,omitempty" required:"false"`
	ServerCertificate                 RemoteServerServerCertificateEnum   `url:"server_certificate,omitempty" required:"false"`
	ServerHostKey                     string                              `url:"server_host_key,omitempty" required:"false"`
	ServerType                        RemoteServerServerTypeEnum          `url:"server_type,omitempty" required:"false"`
	Ssl                               RemoteServerSslEnum                 `url:"ssl,omitempty" required:"false"`
	Username                          string                              `url:"username,omitempty" required:"false"`
	GoogleCloudStorageBucket          string                              `url:"google_cloud_storage_bucket,omitempty" required:"false"`
	GoogleCloudStorageProjectId       string                              `url:"google_cloud_storage_project_id,omitempty" required:"false"`
	BackblazeB2Bucket                 string                              `url:"backblaze_b2_bucket,omitempty" required:"false"`
	BackblazeB2S3Endpoint             string                              `url:"backblaze_b2_s3_endpoint,omitempty" required:"false"`
	WasabiBucket                      string                              `url:"wasabi_bucket,omitempty" required:"false"`
	WasabiRegion                      string                              `url:"wasabi_region,omitempty" required:"false"`
	RackspaceUsername                 string                              `url:"rackspace_username,omitempty" required:"false"`
	RackspaceRegion                   string                              `url:"rackspace_region,omitempty" required:"false"`
	RackspaceContainer                string                              `url:"rackspace_container,omitempty" required:"false"`
	OneDriveAccountType               RemoteServerOneDriveAccountTypeEnum `url:"one_drive_account_type,omitempty" required:"false"`
	AzureBlobStorageAccount           string                              `url:"azure_blob_storage_account,omitempty" required:"false"`
	AzureBlobStorageContainer         string                              `url:"azure_blob_storage_container,omitempty" required:"false"`
	S3CompatibleBucket                string                              `url:"s3_compatible_bucket,omitempty" required:"false"`
	S3CompatibleEndpoint              string                              `url:"s3_compatible_endpoint,omitempty" required:"false"`
	EnableDedicatedIps                *bool                               `url:"enable_dedicated_ips,omitempty" required:"false"`
	S3CompatibleAccessKey             string                              `url:"s3_compatible_access_key,omitempty" required:"false"`
	S3CompatibleSecretKey             string                              `url:"s3_compatible_secret_key,omitempty" required:"false"`
}
    type Request ¶
type Request struct {
	Id              int64  `json:"id,omitempty"`
	Path            string `json:"path,omitempty"`
	Source          string `json:"source,omitempty"`
	Destination     string `json:"destination,omitempty"`
	AutomationId    string `json:"automation_id,omitempty"`
	UserDisplayName string `json:"user_display_name,omitempty"`
	UserIds         string `json:"user_ids,omitempty"`
	GroupIds        string `json:"group_ids,omitempty"`
}
    func (*Request) UnmarshalJSON ¶
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 RequestDeleteParams ¶
type RequestDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type RequestGetFolderParams ¶
type RequestGetFolderParams struct {
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Mine    *bool           `url:"mine,omitempty" required:"false"`
	Path    string          `url:"-,omitempty" required:"true"`
}
    type RequestListParams ¶
type RequestListParams struct {
	Cursor  string          `url:"cursor,omitempty" required:"false"`
	PerPage int64           `url:"per_page,omitempty" required:"false"`
	SortBy  json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Mine    *bool           `url:"mine,omitempty" required:"false"`
	Path    string          `url:"path,omitempty" required:"false"`
	lib.ListParams
}
    type ResponseError ¶
type ResponseError struct {
	Type         string          `json:"type"`
	Title        string          `json:"title"`
	ErrorMessage string          `json:"error"`
	HttpCode     int             `json:"http-code"`
	Errors       []ResponseError `json:"errors"`
	Data         Data            `json:"data"`
}
    func (ResponseError) Error ¶
func (e ResponseError) Error() string
func (ResponseError) IsNil ¶
func (e ResponseError) IsNil() bool
func (*ResponseError) UnmarshalJSON ¶
func (e *ResponseError) UnmarshalJSON(data []byte) error
type Session ¶
type Session struct {
	Id                    string `json:"id,omitempty"`
	Language              string `json:"language,omitempty"`
	LoginToken            string `json:"login_token,omitempty"`
	LoginTokenDomain      string `json:"login_token_domain,omitempty"`
	MaxDirListingSize     int64  `json:"max_dir_listing_size,omitempty"`
	MultipleRegions       *bool  `json:"multiple_regions,omitempty"`
	ReadOnly              *bool  `json:"read_only,omitempty"`
	RootPath              string `json:"root_path,omitempty"`
	SftpInsecureCiphers   *bool  `json:"sftp_insecure_ciphers,omitempty"`
	SiteId                int64  `json:"site_id,omitempty"`
	SslRequired           *bool  `json:"ssl_required,omitempty"`
	TlsDisabled           *bool  `json:"tls_disabled,omitempty"`
	TwoFactorSetupNeeded  *bool  `json:"two_factor_setup_needed,omitempty"`
	Allowed2faMethodSms   *bool  `json:"allowed_2fa_method_sms,omitempty"`
	Allowed2faMethodTotp  *bool  `json:"allowed_2fa_method_totp,omitempty"`
	Allowed2faMethodU2f   *bool  `json:"allowed_2fa_method_u2f,omitempty"`
	Allowed2faMethodYubi  *bool  `json:"allowed_2fa_method_yubi,omitempty"`
	UseProvidedModifiedAt *bool  `json:"use_provided_modified_at,omitempty"`
	WindowsModeFtp        *bool  `json:"windows_mode_ftp,omitempty"`
	Username              string `json:"username,omitempty"`
	Password              string `json:"password,omitempty"`
	Otp                   string `json:"otp,omitempty"`
	PartialSessionId      string `json:"partial_session_id,omitempty"`
}
    func (*Session) UnmarshalJSON ¶
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 SettingsChange ¶
type SettingsChange struct {
	ChangeDetails json.RawMessage `json:"change_details,omitempty"`
	CreatedAt     time.Time       `json:"created_at,omitempty"`
	UserId        int64           `json:"user_id,omitempty"`
}
    func (*SettingsChange) UnmarshalJSON ¶
func (s *SettingsChange) UnmarshalJSON(data []byte) error
type SettingsChangeCollection ¶
type SettingsChangeCollection []SettingsChange
func (*SettingsChangeCollection) ToSlice ¶
func (s *SettingsChangeCollection) ToSlice() *[]interface{}
func (*SettingsChangeCollection) UnmarshalJSON ¶
func (s *SettingsChangeCollection) UnmarshalJSON(data []byte) error
type SettingsChangeListParams ¶
type SettingsChangeListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}
    type SignRequest ¶
type Site ¶
type Site struct {
	Name                                 string          `json:"name,omitempty"`
	Allowed2faMethodSms                  *bool           `json:"allowed_2fa_method_sms,omitempty"`
	Allowed2faMethodTotp                 *bool           `json:"allowed_2fa_method_totp,omitempty"`
	Allowed2faMethodU2f                  *bool           `json:"allowed_2fa_method_u2f,omitempty"`
	Allowed2faMethodYubi                 *bool           `json:"allowed_2fa_method_yubi,omitempty"`
	AdminUserId                          int64           `json:"admin_user_id,omitempty"`
	AllowBundleNames                     *bool           `json:"allow_bundle_names,omitempty"`
	AllowedCountries                     string          `json:"allowed_countries,omitempty"`
	AllowedIps                           string          `json:"allowed_ips,omitempty"`
	AskAboutOverwrites                   *bool           `json:"ask_about_overwrites,omitempty"`
	BundleExpiration                     int64           `json:"bundle_expiration,omitempty"`
	BundlePasswordRequired               *bool           `json:"bundle_password_required,omitempty"`
	BundleWatermarkAttachment            string          `json:"bundle_watermark_attachment,omitempty"`
	BundleWatermarkValue                 json.RawMessage `json:"bundle_watermark_value,omitempty"`
	Color2Left                           string          `json:"color2_left,omitempty"`
	Color2Link                           string          `json:"color2_link,omitempty"`
	Color2Text                           string          `json:"color2_text,omitempty"`
	Color2Top                            string          `json:"color2_top,omitempty"`
	Color2TopText                        string          `json:"color2_top_text,omitempty"`
	ContactName                          string          `json:"contact_name,omitempty"`
	CreatedAt                            time.Time       `json:"created_at,omitempty"`
	Currency                             string          `json:"currency,omitempty"`
	CustomNamespace                      *bool           `json:"custom_namespace,omitempty"`
	DaysToRetainBackups                  int64           `json:"days_to_retain_backups,omitempty"`
	DefaultTimeZone                      string          `json:"default_time_zone,omitempty"`
	DesktopApp                           *bool           `json:"desktop_app,omitempty"`
	DesktopAppSessionIpPinning           *bool           `json:"desktop_app_session_ip_pinning,omitempty"`
	DesktopAppSessionLifetime            int64           `json:"desktop_app_session_lifetime,omitempty"`
	MobileApp                            *bool           `json:"mobile_app,omitempty"`
	MobileAppSessionIpPinning            *bool           `json:"mobile_app_session_ip_pinning,omitempty"`
	MobileAppSessionLifetime             int64           `json:"mobile_app_session_lifetime,omitempty"`
	DisallowedCountries                  string          `json:"disallowed_countries,omitempty"`
	DisableNotifications                 *bool           `json:"disable_notifications,omitempty"`
	DisablePasswordReset                 *bool           `json:"disable_password_reset,omitempty"`
	Domain                               string          `json:"domain,omitempty"`
	DomainHstsHeader                     *bool           `json:"domain_hsts_header,omitempty"`
	DomainLetsencryptChain               string          `json:"domain_letsencrypt_chain,omitempty"`
	Email                                string          `json:"email,omitempty"`
	FtpEnabled                           *bool           `json:"ftp_enabled,omitempty"`
	ReplyToEmail                         string          `json:"reply_to_email,omitempty"`
	NonSsoGroupsAllowed                  *bool           `json:"non_sso_groups_allowed,omitempty"`
	NonSsoUsersAllowed                   *bool           `json:"non_sso_users_allowed,omitempty"`
	FolderPermissionsGroupsOnly          *bool           `json:"folder_permissions_groups_only,omitempty"`
	Hipaa                                *bool           `json:"hipaa,omitempty"`
	Icon128                              string          `json:"icon128,omitempty"`
	Icon16                               string          `json:"icon16,omitempty"`
	Icon32                               string          `json:"icon32,omitempty"`
	Icon48                               string          `json:"icon48,omitempty"`
	ImmutableFilesSetAt                  time.Time       `json:"immutable_files_set_at,omitempty"`
	IncludePasswordInWelcomeEmail        *bool           `json:"include_password_in_welcome_email,omitempty"`
	Language                             string          `json:"language,omitempty"`
	LdapBaseDn                           string          `json:"ldap_base_dn,omitempty"`
	LdapDomain                           string          `json:"ldap_domain,omitempty"`
	LdapEnabled                          *bool           `json:"ldap_enabled,omitempty"`
	LdapGroupAction                      string          `json:"ldap_group_action,omitempty"`
	LdapGroupExclusion                   string          `json:"ldap_group_exclusion,omitempty"`
	LdapGroupInclusion                   string          `json:"ldap_group_inclusion,omitempty"`
	LdapHost                             string          `json:"ldap_host,omitempty"`
	LdapHost2                            string          `json:"ldap_host_2,omitempty"`
	LdapHost3                            string          `json:"ldap_host_3,omitempty"`
	LdapPort                             int64           `json:"ldap_port,omitempty"`
	LdapSecure                           *bool           `json:"ldap_secure,omitempty"`
	LdapType                             string          `json:"ldap_type,omitempty"`
	LdapUserAction                       string          `json:"ldap_user_action,omitempty"`
	LdapUserIncludeGroups                string          `json:"ldap_user_include_groups,omitempty"`
	LdapUsername                         string          `json:"ldap_username,omitempty"`
	LdapUsernameField                    string          `json:"ldap_username_field,omitempty"`
	LoginHelpText                        string          `json:"login_help_text,omitempty"`
	Logo                                 string          `json:"logo,omitempty"`
	MaxPriorPasswords                    int64           `json:"max_prior_passwords,omitempty"`
	NextBillingAmount                    float32         `json:"next_billing_amount,omitempty"`
	NextBillingDate                      string          `json:"next_billing_date,omitempty"`
	OfficeIntegrationAvailable           *bool           `json:"office_integration_available,omitempty"`
	OncehubLink                          string          `json:"oncehub_link,omitempty"`
	OptOutGlobal                         *bool           `json:"opt_out_global,omitempty"`
	OverageNotifiedAt                    time.Time       `json:"overage_notified_at,omitempty"`
	OverageNotify                        *bool           `json:"overage_notify,omitempty"`
	Overdue                              *bool           `json:"overdue,omitempty"`
	PasswordMinLength                    int64           `json:"password_min_length,omitempty"`
	PasswordRequireLetter                *bool           `json:"password_require_letter,omitempty"`
	PasswordRequireMixed                 *bool           `json:"password_require_mixed,omitempty"`
	PasswordRequireNumber                *bool           `json:"password_require_number,omitempty"`
	PasswordRequireSpecial               *bool           `json:"password_require_special,omitempty"`
	PasswordRequireUnbreached            *bool           `json:"password_require_unbreached,omitempty"`
	PasswordRequirementsApplyToBundles   *bool           `json:"password_requirements_apply_to_bundles,omitempty"`
	PasswordValidityDays                 int64           `json:"password_validity_days,omitempty"`
	Phone                                string          `json:"phone,omitempty"`
	Require2fa                           *bool           `json:"require_2fa,omitempty"`
	Require2faStopTime                   time.Time       `json:"require_2fa_stop_time,omitempty"`
	Require2faUserType                   string          `json:"require_2fa_user_type,omitempty"`
	Session                              string          `json:"session,omitempty"`
	SessionPinnedByIp                    *bool           `json:"session_pinned_by_ip,omitempty"`
	SftpEnabled                          *bool           `json:"sftp_enabled,omitempty"`
	SftpInsecureCiphers                  *bool           `json:"sftp_insecure_ciphers,omitempty"`
	SftpUserRootEnabled                  *bool           `json:"sftp_user_root_enabled,omitempty"`
	SharingEnabled                       *bool           `json:"sharing_enabled,omitempty"`
	ShowRequestAccessLink                *bool           `json:"show_request_access_link,omitempty"`
	SiteHeader                           string          `json:"site_header,omitempty"`
	SmtpAddress                          string          `json:"smtp_address,omitempty"`
	SmtpAuthentication                   string          `json:"smtp_authentication,omitempty"`
	SmtpFrom                             string          `json:"smtp_from,omitempty"`
	SmtpPort                             int64           `json:"smtp_port,omitempty"`
	SmtpUsername                         string          `json:"smtp_username,omitempty"`
	SessionExpiry                        float32         `json:"session_expiry,omitempty"`
	SslRequired                          *bool           `json:"ssl_required,omitempty"`
	Subdomain                            string          `json:"subdomain,omitempty"`
	SwitchToPlanDate                     time.Time       `json:"switch_to_plan_date,omitempty"`
	TlsDisabled                          *bool           `json:"tls_disabled,omitempty"`
	TrialDaysLeft                        int64           `json:"trial_days_left,omitempty"`
	TrialUntil                           time.Time       `json:"trial_until,omitempty"`
	UpdatedAt                            time.Time       `json:"updated_at,omitempty"`
	UseProvidedModifiedAt                *bool           `json:"use_provided_modified_at,omitempty"`
	User                                 string          `json:"user,omitempty"`
	UserLockout                          *bool           `json:"user_lockout,omitempty"`
	UserLockoutLockPeriod                int64           `json:"user_lockout_lock_period,omitempty"`
	UserLockoutTries                     int64           `json:"user_lockout_tries,omitempty"`
	UserLockoutWithin                    int64           `json:"user_lockout_within,omitempty"`
	UserRequestsEnabled                  *bool           `json:"user_requests_enabled,omitempty"`
	WelcomeCustomText                    string          `json:"welcome_custom_text,omitempty"`
	WelcomeEmailCc                       string          `json:"welcome_email_cc,omitempty"`
	WelcomeEmailEnabled                  *bool           `json:"welcome_email_enabled,omitempty"`
	WelcomeScreen                        string          `json:"welcome_screen,omitempty"`
	WindowsModeFtp                       *bool           `json:"windows_mode_ftp,omitempty"`
	DisableUsersFromInactivityPeriodDays int64           `json:"disable_users_from_inactivity_period_days,omitempty"`
}
    func (*Site) UnmarshalJSON ¶
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"`
	Subdomain                            string    `url:"subdomain,omitempty" required:"false"`
	Domain                               string    `url:"domain,omitempty" required:"false"`
	DomainHstsHeader                     *bool     `url:"domain_hsts_header,omitempty" required:"false"`
	DomainLetsencryptChain               string    `url:"domain_letsencrypt_chain,omitempty" required:"false"`
	Email                                string    `url:"email,omitempty" required:"false"`
	ReplyToEmail                         string    `url:"reply_to_email,omitempty" required:"false"`
	AllowBundleNames                     *bool     `url:"allow_bundle_names,omitempty" required:"false"`
	BundleExpiration                     int64     `url:"bundle_expiration,omitempty" required:"false"`
	OverageNotify                        *bool     `url:"overage_notify,omitempty" required:"false"`
	WelcomeEmailEnabled                  *bool     `url:"welcome_email_enabled,omitempty" required:"false"`
	AskAboutOverwrites                   *bool     `url:"ask_about_overwrites,omitempty" required:"false"`
	ShowRequestAccessLink                *bool     `url:"show_request_access_link,omitempty" required:"false"`
	WelcomeEmailCc                       string    `url:"welcome_email_cc,omitempty" required:"false"`
	WelcomeCustomText                    string    `url:"welcome_custom_text,omitempty" required:"false"`
	Language                             string    `url:"language,omitempty" required:"false"`
	WindowsModeFtp                       *bool     `url:"windows_mode_ftp,omitempty" required:"false"`
	DefaultTimeZone                      string    `url:"default_time_zone,omitempty" required:"false"`
	DesktopApp                           *bool     `url:"desktop_app,omitempty" required:"false"`
	DesktopAppSessionIpPinning           *bool     `url:"desktop_app_session_ip_pinning,omitempty" required:"false"`
	DesktopAppSessionLifetime            int64     `url:"desktop_app_session_lifetime,omitempty" required:"false"`
	MobileApp                            *bool     `url:"mobile_app,omitempty" required:"false"`
	MobileAppSessionIpPinning            *bool     `url:"mobile_app_session_ip_pinning,omitempty" required:"false"`
	MobileAppSessionLifetime             int64     `url:"mobile_app_session_lifetime,omitempty" required:"false"`
	FolderPermissionsGroupsOnly          *bool     `url:"folder_permissions_groups_only,omitempty" required:"false"`
	WelcomeScreen                        string    `url:"welcome_screen,omitempty" required:"false"`
	OfficeIntegrationAvailable           *bool     `url:"office_integration_available,omitempty" required:"false"`
	SessionExpiry                        float32   `url:"session_expiry,omitempty" required:"false"`
	SslRequired                          *bool     `url:"ssl_required,omitempty" required:"false"`
	TlsDisabled                          *bool     `url:"tls_disabled,omitempty" required:"false"`
	SftpInsecureCiphers                  *bool     `url:"sftp_insecure_ciphers,omitempty" required:"false"`
	UserLockout                          *bool     `url:"user_lockout,omitempty" required:"false"`
	UserLockoutTries                     int64     `url:"user_lockout_tries,omitempty" required:"false"`
	UserLockoutWithin                    int64     `url:"user_lockout_within,omitempty" required:"false"`
	UserLockoutLockPeriod                int64     `url:"user_lockout_lock_period,omitempty" required:"false"`
	IncludePasswordInWelcomeEmail        *bool     `url:"include_password_in_welcome_email,omitempty" required:"false"`
	AllowedCountries                     string    `url:"allowed_countries,omitempty" required:"false"`
	AllowedIps                           string    `url:"allowed_ips,omitempty" required:"false"`
	DisallowedCountries                  string    `url:"disallowed_countries,omitempty" required:"false"`
	DaysToRetainBackups                  int64     `url:"days_to_retain_backups,omitempty" required:"false"`
	MaxPriorPasswords                    int64     `url:"max_prior_passwords,omitempty" required:"false"`
	PasswordValidityDays                 int64     `url:"password_validity_days,omitempty" required:"false"`
	PasswordMinLength                    int64     `url:"password_min_length,omitempty" required:"false"`
	PasswordRequireLetter                *bool     `url:"password_require_letter,omitempty" required:"false"`
	PasswordRequireMixed                 *bool     `url:"password_require_mixed,omitempty" required:"false"`
	PasswordRequireSpecial               *bool     `url:"password_require_special,omitempty" required:"false"`
	PasswordRequireNumber                *bool     `url:"password_require_number,omitempty" required:"false"`
	PasswordRequireUnbreached            *bool     `url:"password_require_unbreached,omitempty" required:"false"`
	SftpUserRootEnabled                  *bool     `url:"sftp_user_root_enabled,omitempty" required:"false"`
	DisablePasswordReset                 *bool     `url:"disable_password_reset,omitempty" required:"false"`
	ImmutableFiles                       *bool     `url:"immutable_files,omitempty" required:"false"`
	SessionPinnedByIp                    *bool     `url:"session_pinned_by_ip,omitempty" required:"false"`
	BundlePasswordRequired               *bool     `url:"bundle_password_required,omitempty" required:"false"`
	PasswordRequirementsApplyToBundles   *bool     `url:"password_requirements_apply_to_bundles,omitempty" required:"false"`
	OptOutGlobal                         *bool     `url:"opt_out_global,omitempty" required:"false"`
	UseProvidedModifiedAt                *bool     `url:"use_provided_modified_at,omitempty" required:"false"`
	CustomNamespace                      *bool     `url:"custom_namespace,omitempty" required:"false"`
	DisableUsersFromInactivityPeriodDays int64     `url:"disable_users_from_inactivity_period_days,omitempty" required:"false"`
	NonSsoGroupsAllowed                  *bool     `url:"non_sso_groups_allowed,omitempty" required:"false"`
	NonSsoUsersAllowed                   *bool     `url:"non_sso_users_allowed,omitempty" required:"false"`
	SharingEnabled                       *bool     `url:"sharing_enabled,omitempty" required:"false"`
	UserRequestsEnabled                  *bool     `url:"user_requests_enabled,omitempty" required:"false"`
	FtpEnabled                           *bool     `url:"ftp_enabled,omitempty" required:"false"`
	SftpEnabled                          *bool     `url:"sftp_enabled,omitempty" required:"false"`
	Allowed2faMethodSms                  *bool     `url:"allowed_2fa_method_sms,omitempty" required:"false"`
	Allowed2faMethodU2f                  *bool     `url:"allowed_2fa_method_u2f,omitempty" required:"false"`
	Allowed2faMethodTotp                 *bool     `url:"allowed_2fa_method_totp,omitempty" required:"false"`
	Allowed2faMethodYubi                 *bool     `url:"allowed_2fa_method_yubi,omitempty" required:"false"`
	Require2fa                           *bool     `url:"require_2fa,omitempty" required:"false"`
	Require2faUserType                   string    `url:"require_2fa_user_type,omitempty" required:"false"`
	Color2Top                            string    `url:"color2_top,omitempty" required:"false"`
	Color2Left                           string    `url:"color2_left,omitempty" required:"false"`
	Color2Link                           string    `url:"color2_link,omitempty" required:"false"`
	Color2Text                           string    `url:"color2_text,omitempty" required:"false"`
	Color2TopText                        string    `url:"color2_top_text,omitempty" required:"false"`
	SiteHeader                           string    `url:"site_header,omitempty" required:"false"`
	LoginHelpText                        string    `url:"login_help_text,omitempty" required:"false"`
	SmtpAddress                          string    `url:"smtp_address,omitempty" required:"false"`
	SmtpAuthentication                   string    `url:"smtp_authentication,omitempty" required:"false"`
	SmtpFrom                             string    `url:"smtp_from,omitempty" required:"false"`
	SmtpUsername                         string    `url:"smtp_username,omitempty" required:"false"`
	SmtpPort                             int64     `url:"smtp_port,omitempty" required:"false"`
	LdapEnabled                          *bool     `url:"ldap_enabled,omitempty" required:"false"`
	LdapType                             string    `url:"ldap_type,omitempty" required:"false"`
	LdapHost                             string    `url:"ldap_host,omitempty" required:"false"`
	LdapHost2                            string    `url:"ldap_host_2,omitempty" required:"false"`
	LdapHost3                            string    `url:"ldap_host_3,omitempty" required:"false"`
	LdapPort                             int64     `url:"ldap_port,omitempty" required:"false"`
	LdapSecure                           *bool     `url:"ldap_secure,omitempty" required:"false"`
	LdapUsername                         string    `url:"ldap_username,omitempty" required:"false"`
	LdapUsernameField                    string    `url:"ldap_username_field,omitempty" required:"false"`
	LdapDomain                           string    `url:"ldap_domain,omitempty" required:"false"`
	LdapUserAction                       string    `url:"ldap_user_action,omitempty" required:"false"`
	LdapGroupAction                      string    `url:"ldap_group_action,omitempty" required:"false"`
	LdapUserIncludeGroups                string    `url:"ldap_user_include_groups,omitempty" required:"false"`
	LdapGroupExclusion                   string    `url:"ldap_group_exclusion,omitempty" required:"false"`
	LdapGroupInclusion                   string    `url:"ldap_group_inclusion,omitempty" required:"false"`
	LdapBaseDn                           string    `url:"ldap_base_dn,omitempty" required:"false"`
	Icon16File                           io.Writer `url:"icon16_file,omitempty" required:"false"`
	Icon16Delete                         *bool     `url:"icon16_delete,omitempty" required:"false"`
	Icon32File                           io.Writer `url:"icon32_file,omitempty" required:"false"`
	Icon32Delete                         *bool     `url:"icon32_delete,omitempty" required:"false"`
	Icon48File                           io.Writer `url:"icon48_file,omitempty" required:"false"`
	Icon48Delete                         *bool     `url:"icon48_delete,omitempty" required:"false"`
	Icon128File                          io.Writer `url:"icon128_file,omitempty" required:"false"`
	Icon128Delete                        *bool     `url:"icon128_delete,omitempty" required:"false"`
	LogoFile                             io.Writer `url:"logo_file,omitempty" required:"false"`
	LogoDelete                           *bool     `url:"logo_delete,omitempty" required:"false"`
	BundleWatermarkAttachmentFile        io.Writer `url:"bundle_watermark_attachment_file,omitempty" required:"false"`
	BundleWatermarkAttachmentDelete      *bool     `url:"bundle_watermark_attachment_delete,omitempty" required:"false"`
	Disable2faWithDelay                  *bool     `url:"disable_2fa_with_delay,omitempty" required:"false"`
	LdapPasswordChange                   string    `url:"ldap_password_change,omitempty" required:"false"`
	LdapPasswordChangeConfirmation       string    `url:"ldap_password_change_confirmation,omitempty" required:"false"`
	SmtpPassword                         string    `url:"smtp_password,omitempty" required:"false"`
}
    type SsoStrategy ¶
type SsoStrategy struct {
	Protocol                       string `json:"protocol,omitempty"`
	Provider                       string `json:"provider,omitempty"`
	Label                          string `json:"label,omitempty"`
	LogoUrl                        string `json:"logo_url,omitempty"`
	Id                             int64  `json:"id,omitempty"`
	SamlProviderCertFingerprint    string `json:"saml_provider_cert_fingerprint,omitempty"`
	SamlProviderIssuerUrl          string `json:"saml_provider_issuer_url,omitempty"`
	SamlProviderMetadataContent    string `json:"saml_provider_metadata_content,omitempty"`
	SamlProviderMetadataUrl        string `json:"saml_provider_metadata_url,omitempty"`
	SamlProviderSloTargetUrl       string `json:"saml_provider_slo_target_url,omitempty"`
	SamlProviderSsoTargetUrl       string `json:"saml_provider_sso_target_url,omitempty"`
	ScimAuthenticationMethod       string `json:"scim_authentication_method,omitempty"`
	ScimUsername                   string `json:"scim_username,omitempty"`
	ScimOauthAccessToken           string `json:"scim_oauth_access_token,omitempty"`
	ScimOauthAccessTokenExpiresAt  string `json:"scim_oauth_access_token_expires_at,omitempty"`
	Subdomain                      string `json:"subdomain,omitempty"`
	ProvisionUsers                 *bool  `json:"provision_users,omitempty"`
	ProvisionGroups                *bool  `json:"provision_groups,omitempty"`
	DeprovisionUsers               *bool  `json:"deprovision_users,omitempty"`
	DeprovisionGroups              *bool  `json:"deprovision_groups,omitempty"`
	DeprovisionBehavior            string `json:"deprovision_behavior,omitempty"`
	ProvisionGroupDefault          string `json:"provision_group_default,omitempty"`
	ProvisionGroupExclusion        string `json:"provision_group_exclusion,omitempty"`
	ProvisionGroupInclusion        string `json:"provision_group_inclusion,omitempty"`
	ProvisionGroupRequired         string `json:"provision_group_required,omitempty"`
	ProvisionEmailSignupGroups     string `json:"provision_email_signup_groups,omitempty"`
	ProvisionSiteAdminGroups       string `json:"provision_site_admin_groups,omitempty"`
	ProvisionAttachmentsPermission *bool  `json:"provision_attachments_permission,omitempty"`
	ProvisionDavPermission         *bool  `json:"provision_dav_permission,omitempty"`
	ProvisionFtpPermission         *bool  `json:"provision_ftp_permission,omitempty"`
	ProvisionSftpPermission        *bool  `json:"provision_sftp_permission,omitempty"`
	ProvisionTimeZone              string `json:"provision_time_zone,omitempty"`
	ProvisionCompany               string `json:"provision_company,omitempty"`
	LdapBaseDn                     string `json:"ldap_base_dn,omitempty"`
	LdapDomain                     string `json:"ldap_domain,omitempty"`
	Enabled                        *bool  `json:"enabled,omitempty"`
	LdapHost                       string `json:"ldap_host,omitempty"`
	LdapHost2                      string `json:"ldap_host_2,omitempty"`
	LdapHost3                      string `json:"ldap_host_3,omitempty"`
	LdapPort                       int64  `json:"ldap_port,omitempty"`
	LdapSecure                     *bool  `json:"ldap_secure,omitempty"`
	LdapUsername                   string `json:"ldap_username,omitempty"`
	LdapUsernameField              string `json:"ldap_username_field,omitempty"`
}
    func (*SsoStrategy) UnmarshalJSON ¶
func (s *SsoStrategy) UnmarshalJSON(data []byte) error
type SsoStrategyCollection ¶
type SsoStrategyCollection []SsoStrategy
func (*SsoStrategyCollection) ToSlice ¶
func (s *SsoStrategyCollection) ToSlice() *[]interface{}
func (*SsoStrategyCollection) UnmarshalJSON ¶
func (s *SsoStrategyCollection) UnmarshalJSON(data []byte) error
type SsoStrategyFindParams ¶
type SsoStrategyFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type SsoStrategyListParams ¶
type SsoStrategyListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type Status ¶
type Status struct {
	Code          int64  `json:"code,omitempty"`
	Message       string `json:"message,omitempty"`
	Status        string `json:"status,omitempty"`
	Data          string `json:"data,omitempty"`
	Errors        string `json:"errors,omitempty"`
	ClickwrapId   int64  `json:"clickwrap_id,omitempty"`
	ClickwrapBody string `json:"clickwrap_body,omitempty"`
}
    func (*Status) UnmarshalJSON ¶
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      string    `json:"path,omitempty"`
	Logo      string    `json:"logo,omitempty"`
	Thumbnail string    `json:"thumbnail,omitempty"`
	File      io.Reader `json:"file,omitempty"`
}
    func (*Style) UnmarshalJSON ¶
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:"true"`
}
    type StyleFindParams ¶
type StyleFindParams struct {
	Path string `url:"-,omitempty" required:"true"`
}
    type StyleUpdateParams ¶
type SyncJob ¶
type SyncJob struct {
	QueuedAt             time.Time `json:"queued_at,omitempty"`
	UpdatedAt            time.Time `json:"updated_at,omitempty"`
	Status               string    `json:"status,omitempty"`
	RegionalWorkerStatus string    `json:"regional_worker_status,omitempty"`
	Uuid                 string    `json:"uuid,omitempty"`
	FolderBehaviorId     int64     `json:"folder_behavior_id,omitempty"`
}
    func (*SyncJob) UnmarshalJSON ¶
type SyncJobCollection ¶
type SyncJobCollection []SyncJob
func (*SyncJobCollection) ToSlice ¶
func (s *SyncJobCollection) ToSlice() *[]interface{}
func (*SyncJobCollection) UnmarshalJSON ¶
func (s *SyncJobCollection) UnmarshalJSON(data []byte) error
type SyncJobListParams ¶
type SyncJobListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    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"`
	Date               date.Date `json:"date,omitempty"`
	CurrentStorage     int64     `json:"current_storage,omitempty"`
	UsageByTopLevelDir []string  `json:"usage_by_top_level_dir,omitempty"`
}
    func (*UsageDailySnapshot) UnmarshalJSON ¶
func (u *UsageDailySnapshot) UnmarshalJSON(data []byte) error
type UsageDailySnapshotCollection ¶
type UsageDailySnapshotCollection []UsageDailySnapshot
func (*UsageDailySnapshotCollection) ToSlice ¶
func (u *UsageDailySnapshotCollection) ToSlice() *[]interface{}
func (*UsageDailySnapshotCollection) UnmarshalJSON ¶
func (u *UsageDailySnapshotCollection) UnmarshalJSON(data []byte) error
type UsageDailySnapshotListParams ¶
type UsageDailySnapshotListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	lib.ListParams
}
    type UsageSnapshot ¶
type UsageSnapshot struct {
	Id                           int64           `json:"id,omitempty"`
	StartAt                      time.Time       `json:"start_at,omitempty"`
	EndAt                        time.Time       `json:"end_at,omitempty"`
	CreatedAt                    time.Time       `json:"created_at,omitempty"`
	HighWaterUserCount           float32         `json:"high_water_user_count,omitempty"`
	CurrentStorage               float32         `json:"current_storage,omitempty"`
	HighWaterStorage             float32         `json:"high_water_storage,omitempty"`
	TotalDownloads               int64           `json:"total_downloads,omitempty"`
	TotalUploads                 int64           `json:"total_uploads,omitempty"`
	UpdatedAt                    time.Time       `json:"updated_at,omitempty"`
	UsageByTopLevelDir           json.RawMessage `json:"usage_by_top_level_dir,omitempty"`
	RootStorage                  float32         `json:"root_storage,omitempty"`
	DeletedFilesCountedInMinimum float32         `json:"deleted_files_counted_in_minimum,omitempty"`
	DeletedFilesStorage          float32         `json:"deleted_files_storage,omitempty"`
}
    func (*UsageSnapshot) UnmarshalJSON ¶
func (u *UsageSnapshot) UnmarshalJSON(data []byte) error
type UsageSnapshotCollection ¶
type UsageSnapshotCollection []UsageSnapshot
func (*UsageSnapshotCollection) ToSlice ¶
func (u *UsageSnapshotCollection) ToSlice() *[]interface{}
func (*UsageSnapshotCollection) UnmarshalJSON ¶
func (u *UsageSnapshotCollection) UnmarshalJSON(data []byte) error
type UsageSnapshotListParams ¶
type UsageSnapshotListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type User ¶
type User struct {
	Id                         int64     `json:"id,omitempty"`
	Username                   string    `json:"username,omitempty"`
	AdminGroupIds              []string  `json:"admin_group_ids,omitempty"`
	AllowedIps                 string    `json:"allowed_ips,omitempty"`
	AttachmentsPermission      *bool     `json:"attachments_permission,omitempty"`
	ApiKeysCount               int64     `json:"api_keys_count,omitempty"`
	AuthenticateUntil          time.Time `json:"authenticate_until,omitempty"`
	AuthenticationMethod       string    `json:"authentication_method,omitempty"`
	AvatarUrl                  string    `json:"avatar_url,omitempty"`
	BillingPermission          *bool     `json:"billing_permission,omitempty"`
	BypassSiteAllowedIps       *bool     `json:"bypass_site_allowed_ips,omitempty"`
	BypassInactiveDisable      *bool     `json:"bypass_inactive_disable,omitempty"`
	CreatedAt                  time.Time `json:"created_at,omitempty"`
	DavPermission              *bool     `json:"dav_permission,omitempty"`
	Disabled                   *bool     `json:"disabled,omitempty"`
	Email                      string    `json:"email,omitempty"`
	FtpPermission              *bool     `json:"ftp_permission,omitempty"`
	GroupIds                   string    `json:"group_ids,omitempty"`
	HeaderText                 string    `json:"header_text,omitempty"`
	Language                   string    `json:"language,omitempty"`
	LastLoginAt                time.Time `json:"last_login_at,omitempty"`
	LastProtocolCipher         string    `json:"last_protocol_cipher,omitempty"`
	LockoutExpires             time.Time `json:"lockout_expires,omitempty"`
	Name                       string    `json:"name,omitempty"`
	Company                    string    `json:"company,omitempty"`
	Notes                      string    `json:"notes,omitempty"`
	NotificationDailySendTime  int64     `json:"notification_daily_send_time,omitempty"`
	OfficeIntegrationEnabled   *bool     `json:"office_integration_enabled,omitempty"`
	PasswordSetAt              time.Time `json:"password_set_at,omitempty"`
	PasswordValidityDays       int64     `json:"password_validity_days,omitempty"`
	PublicKeysCount            int64     `json:"public_keys_count,omitempty"`
	ReceiveAdminAlerts         *bool     `json:"receive_admin_alerts,omitempty"`
	Require2fa                 string    `json:"require_2fa,omitempty"`
	Active2fa                  *bool     `json:"active_2fa,omitempty"`
	RequirePasswordChange      *bool     `json:"require_password_change,omitempty"`
	PasswordExpired            *bool     `json:"password_expired,omitempty"`
	RestapiPermission          *bool     `json:"restapi_permission,omitempty"`
	SelfManaged                *bool     `json:"self_managed,omitempty"`
	SftpPermission             *bool     `json:"sftp_permission,omitempty"`
	SiteAdmin                  *bool     `json:"site_admin,omitempty"`
	SkipWelcomeScreen          *bool     `json:"skip_welcome_screen,omitempty"`
	SslRequired                string    `json:"ssl_required,omitempty"`
	SsoStrategyId              int64     `json:"sso_strategy_id,omitempty"`
	SubscribeToNewsletter      *bool     `json:"subscribe_to_newsletter,omitempty"`
	ExternallyManaged          *bool     `json:"externally_managed,omitempty"`
	TimeZone                   string    `json:"time_zone,omitempty"`
	TypeOf2fa                  string    `json:"type_of_2fa,omitempty"`
	UserRoot                   string    `json:"user_root,omitempty"`
	AvatarFile                 io.Reader `json:"avatar_file,omitempty"`
	AvatarDelete               *bool     `json:"avatar_delete,omitempty"`
	ChangePassword             string    `json:"change_password,omitempty"`
	ChangePasswordConfirmation string    `json:"change_password_confirmation,omitempty"`
	GrantPermission            string    `json:"grant_permission,omitempty"`
	GroupId                    int64     `json:"group_id,omitempty"`
	ImportedPasswordHash       string    `json:"imported_password_hash,omitempty"`
	Password                   string    `json:"password,omitempty"`
	PasswordConfirmation       string    `json:"password_confirmation,omitempty"`
	AnnouncementsRead          *bool     `json:"announcements_read,omitempty"`
}
    func (*User) UnmarshalJSON ¶
type UserAuthenticationMethodEnum ¶
type UserAuthenticationMethodEnum string
func (UserAuthenticationMethodEnum) Enum ¶
func (u UserAuthenticationMethodEnum) Enum() map[string]UserAuthenticationMethodEnum
func (UserAuthenticationMethodEnum) String ¶
func (u UserAuthenticationMethodEnum) String() string
type UserCipherUse ¶
type UserCipherUse struct {
	Id             int64     `json:"id,omitempty"`
	ProtocolCipher string    `json:"protocol_cipher,omitempty"`
	CreatedAt      time.Time `json:"created_at,omitempty"`
	Interface      string    `json:"interface,omitempty"`
	UpdatedAt      time.Time `json:"updated_at,omitempty"`
	UserId         int64     `json:"user_id,omitempty"`
}
    func (*UserCipherUse) UnmarshalJSON ¶
func (u *UserCipherUse) UnmarshalJSON(data []byte) error
type UserCipherUseCollection ¶
type UserCipherUseCollection []UserCipherUse
func (*UserCipherUseCollection) ToSlice ¶
func (u *UserCipherUseCollection) ToSlice() *[]interface{}
func (*UserCipherUseCollection) UnmarshalJSON ¶
func (u *UserCipherUseCollection) UnmarshalJSON(data []byte) error
type UserCipherUseListParams ¶
type UserCipherUseListParams struct {
	UserId  int64  `url:"user_id,omitempty" required:"false"`
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type UserCollection ¶
type UserCollection []User
func (*UserCollection) ToSlice ¶
func (u *UserCollection) ToSlice() *[]interface{}
func (*UserCollection) UnmarshalJSON ¶
func (u *UserCollection) UnmarshalJSON(data []byte) error
type UserCreateParams ¶
type UserCreateParams struct {
	AvatarFile                 io.Writer                    `url:"avatar_file,omitempty" required:"false"`
	AvatarDelete               *bool                        `url:"avatar_delete,omitempty" required:"false"`
	ChangePassword             string                       `url:"change_password,omitempty" required:"false"`
	ChangePasswordConfirmation string                       `url:"change_password_confirmation,omitempty" required:"false"`
	Email                      string                       `url:"email,omitempty" required:"false"`
	GrantPermission            string                       `url:"grant_permission,omitempty" required:"false"`
	GroupId                    int64                        `url:"group_id,omitempty" required:"false"`
	GroupIds                   string                       `url:"group_ids,omitempty" required:"false"`
	ImportedPasswordHash       string                       `url:"imported_password_hash,omitempty" required:"false"`
	Password                   string                       `url:"password,omitempty" required:"false"`
	PasswordConfirmation       string                       `url:"password_confirmation,omitempty" required:"false"`
	AnnouncementsRead          *bool                        `url:"announcements_read,omitempty" required:"false"`
	AllowedIps                 string                       `url:"allowed_ips,omitempty" required:"false"`
	AttachmentsPermission      *bool                        `url:"attachments_permission,omitempty" required:"false"`
	AuthenticateUntil          time.Time                    `url:"authenticate_until,omitempty" required:"false"`
	AuthenticationMethod       UserAuthenticationMethodEnum `url:"authentication_method,omitempty" required:"false"`
	BillingPermission          *bool                        `url:"billing_permission,omitempty" required:"false"`
	BypassInactiveDisable      *bool                        `url:"bypass_inactive_disable,omitempty" required:"false"`
	BypassSiteAllowedIps       *bool                        `url:"bypass_site_allowed_ips,omitempty" required:"false"`
	DavPermission              *bool                        `url:"dav_permission,omitempty" required:"false"`
	Disabled                   *bool                        `url:"disabled,omitempty" required:"false"`
	FtpPermission              *bool                        `url:"ftp_permission,omitempty" required:"false"`
	HeaderText                 string                       `url:"header_text,omitempty" required:"false"`
	Language                   string                       `url:"language,omitempty" required:"false"`
	NotificationDailySendTime  int64                        `url:"notification_daily_send_time,omitempty" required:"false"`
	Name                       string                       `url:"name,omitempty" required:"false"`
	Company                    string                       `url:"company,omitempty" required:"false"`
	Notes                      string                       `url:"notes,omitempty" required:"false"`
	OfficeIntegrationEnabled   *bool                        `url:"office_integration_enabled,omitempty" required:"false"`
	PasswordValidityDays       int64                        `url:"password_validity_days,omitempty" required:"false"`
	ReceiveAdminAlerts         *bool                        `url:"receive_admin_alerts,omitempty" required:"false"`
	RequirePasswordChange      *bool                        `url:"require_password_change,omitempty" required:"false"`
	RestapiPermission          *bool                        `url:"restapi_permission,omitempty" required:"false"`
	SelfManaged                *bool                        `url:"self_managed,omitempty" required:"false"`
	SftpPermission             *bool                        `url:"sftp_permission,omitempty" required:"false"`
	SiteAdmin                  *bool                        `url:"site_admin,omitempty" required:"false"`
	SkipWelcomeScreen          *bool                        `url:"skip_welcome_screen,omitempty" required:"false"`
	SslRequired                UserSslRequiredEnum          `url:"ssl_required,omitempty" required:"false"`
	SsoStrategyId              int64                        `url:"sso_strategy_id,omitempty" required:"false"`
	SubscribeToNewsletter      *bool                        `url:"subscribe_to_newsletter,omitempty" required:"false"`
	Require2fa                 UserRequire2faEnum           `url:"require_2fa,omitempty" required:"false"`
	TimeZone                   string                       `url:"time_zone,omitempty" required:"false"`
	UserRoot                   string                       `url:"user_root,omitempty" required:"false"`
	Username                   string                       `url:"username,omitempty" required:"false"`
}
    type UserDeleteParams ¶
type UserDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type UserFindParams ¶
type UserFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type UserListParams ¶
type UserListParams struct {
	Cursor     string          `url:"cursor,omitempty" required:"false"`
	PerPage    int64           `url:"per_page,omitempty" required:"false"`
	SortBy     json.RawMessage `url:"sort_by,omitempty" required:"false"`
	Filter     json.RawMessage `url:"filter,omitempty" required:"false"`
	FilterGt   json.RawMessage `url:"filter_gt,omitempty" required:"false"`
	FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false"`
	FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false"`
	FilterLt   json.RawMessage `url:"filter_lt,omitempty" required:"false"`
	FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false"`
	Ids        string          `url:"ids,omitempty" required:"false"`
	QParam     QParam          `url:"q,omitempty" required:"false"`
	Search     string          `url:"search,omitempty" required:"false"`
	lib.ListParams
}
    type UserRequest ¶
type UserRequest struct {
	Id      int64  `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`
	Email   string `json:"email,omitempty"`
	Details string `json:"details,omitempty"`
}
    func (*UserRequest) UnmarshalJSON ¶
func (u *UserRequest) UnmarshalJSON(data []byte) error
type UserRequestCollection ¶
type UserRequestCollection []UserRequest
func (*UserRequestCollection) ToSlice ¶
func (u *UserRequestCollection) ToSlice() *[]interface{}
func (*UserRequestCollection) UnmarshalJSON ¶
func (u *UserRequestCollection) UnmarshalJSON(data []byte) error
type UserRequestCreateParams ¶
type UserRequestDeleteParams ¶
type UserRequestDeleteParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type UserRequestFindParams ¶
type UserRequestFindParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    type UserRequestListParams ¶
type UserRequestListParams struct {
	Cursor  string `url:"cursor,omitempty" required:"false"`
	PerPage int64  `url:"per_page,omitempty" required:"false"`
	lib.ListParams
}
    type UserRequire2faEnum ¶
type UserRequire2faEnum string
func (UserRequire2faEnum) Enum ¶
func (u UserRequire2faEnum) Enum() map[string]UserRequire2faEnum
func (UserRequire2faEnum) String ¶
func (u UserRequire2faEnum) String() string
type UserResendWelcomeEmailParams ¶
type UserResendWelcomeEmailParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    Resend user welcome email
type UserSslRequiredEnum ¶
type UserSslRequiredEnum string
func (UserSslRequiredEnum) Enum ¶
func (u UserSslRequiredEnum) Enum() map[string]UserSslRequiredEnum
func (UserSslRequiredEnum) String ¶
func (u UserSslRequiredEnum) String() string
type UserUnlockParams ¶
type UserUnlockParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    Unlock user who has been locked out due to failed logins
type UserUpdateParams ¶
type UserUpdateParams struct {
	Id                         int64                        `url:"-,omitempty" required:"true"`
	AvatarFile                 io.Writer                    `url:"avatar_file,omitempty" required:"false"`
	AvatarDelete               *bool                        `url:"avatar_delete,omitempty" required:"false"`
	ChangePassword             string                       `url:"change_password,omitempty" required:"false"`
	ChangePasswordConfirmation string                       `url:"change_password_confirmation,omitempty" required:"false"`
	Email                      string                       `url:"email,omitempty" required:"false"`
	GrantPermission            string                       `url:"grant_permission,omitempty" required:"false"`
	GroupId                    int64                        `url:"group_id,omitempty" required:"false"`
	GroupIds                   string                       `url:"group_ids,omitempty" required:"false"`
	ImportedPasswordHash       string                       `url:"imported_password_hash,omitempty" required:"false"`
	Password                   string                       `url:"password,omitempty" required:"false"`
	PasswordConfirmation       string                       `url:"password_confirmation,omitempty" required:"false"`
	AnnouncementsRead          *bool                        `url:"announcements_read,omitempty" required:"false"`
	AllowedIps                 string                       `url:"allowed_ips,omitempty" required:"false"`
	AttachmentsPermission      *bool                        `url:"attachments_permission,omitempty" required:"false"`
	AuthenticateUntil          time.Time                    `url:"authenticate_until,omitempty" required:"false"`
	AuthenticationMethod       UserAuthenticationMethodEnum `url:"authentication_method,omitempty" required:"false"`
	BillingPermission          *bool                        `url:"billing_permission,omitempty" required:"false"`
	BypassInactiveDisable      *bool                        `url:"bypass_inactive_disable,omitempty" required:"false"`
	BypassSiteAllowedIps       *bool                        `url:"bypass_site_allowed_ips,omitempty" required:"false"`
	DavPermission              *bool                        `url:"dav_permission,omitempty" required:"false"`
	Disabled                   *bool                        `url:"disabled,omitempty" required:"false"`
	FtpPermission              *bool                        `url:"ftp_permission,omitempty" required:"false"`
	HeaderText                 string                       `url:"header_text,omitempty" required:"false"`
	Language                   string                       `url:"language,omitempty" required:"false"`
	NotificationDailySendTime  int64                        `url:"notification_daily_send_time,omitempty" required:"false"`
	Name                       string                       `url:"name,omitempty" required:"false"`
	Company                    string                       `url:"company,omitempty" required:"false"`
	Notes                      string                       `url:"notes,omitempty" required:"false"`
	OfficeIntegrationEnabled   *bool                        `url:"office_integration_enabled,omitempty" required:"false"`
	PasswordValidityDays       int64                        `url:"password_validity_days,omitempty" required:"false"`
	ReceiveAdminAlerts         *bool                        `url:"receive_admin_alerts,omitempty" required:"false"`
	RequirePasswordChange      *bool                        `url:"require_password_change,omitempty" required:"false"`
	RestapiPermission          *bool                        `url:"restapi_permission,omitempty" required:"false"`
	SelfManaged                *bool                        `url:"self_managed,omitempty" required:"false"`
	SftpPermission             *bool                        `url:"sftp_permission,omitempty" required:"false"`
	SiteAdmin                  *bool                        `url:"site_admin,omitempty" required:"false"`
	SkipWelcomeScreen          *bool                        `url:"skip_welcome_screen,omitempty" required:"false"`
	SslRequired                UserSslRequiredEnum          `url:"ssl_required,omitempty" required:"false"`
	SsoStrategyId              int64                        `url:"sso_strategy_id,omitempty" required:"false"`
	SubscribeToNewsletter      *bool                        `url:"subscribe_to_newsletter,omitempty" required:"false"`
	Require2fa                 UserRequire2faEnum           `url:"require_2fa,omitempty" required:"false"`
	TimeZone                   string                       `url:"time_zone,omitempty" required:"false"`
	UserRoot                   string                       `url:"user_root,omitempty" required:"false"`
	Username                   string                       `url:"username,omitempty" required:"false"`
}
    type UserUser2faResetParams ¶
type UserUser2faResetParams struct {
	Id int64 `url:"-,omitempty" required:"true"`
}
    Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
type WebhookTest ¶
type WebhookTest struct {
	Code          int64           `json:"code,omitempty"`
	Message       string          `json:"message,omitempty"`
	Status        string          `json:"status,omitempty"`
	Data          string          `json:"data,omitempty"`
	Success       *bool           `json:"success,omitempty"`
	Url           string          `json:"url,omitempty"`
	Method        string          `json:"method,omitempty"`
	Encoding      string          `json:"encoding,omitempty"`
	Headers       json.RawMessage `json:"headers,omitempty"`
	Body          json.RawMessage `json:"body,omitempty"`
	RawBody       string          `json:"raw_body,omitempty"`
	FileAsBody    *bool           `json:"file_as_body,omitempty"`
	FileFormField string          `json:"file_form_field,omitempty"`
	Action        string          `json:"action,omitempty"`
}
    func (*WebhookTest) UnmarshalJSON ¶
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"`
	Method        string          `url:"method,omitempty" required:"false"`
	Encoding      string          `url:"encoding,omitempty" required:"false"`
	Headers       json.RawMessage `url:"headers,omitempty" required:"false"`
	Body          json.RawMessage `url:"body,omitempty" required:"false"`
	RawBody       string          `url:"raw_body,omitempty" required:"false"`
	FileAsBody    *bool           `url:"file_as_body,omitempty" required:"false"`
	FileFormField string          `url:"file_form_field,omitempty" required:"false"`
	Action        string          `url:"action,omitempty" required:"false"`
}
    
       Source Files
      ¶
      Source Files
      ¶
    
- accountlineitem.go
- action.go
- actionnotificationexport.go
- actionnotificationexportresult.go
- actionwebhookfailure.go
- apikey.go
- app.go
- as2key.go
- auto.go
- automation.go
- automationrun.go
- backend.go
- bandwidthsnapshot.go
- behavior.go
- bundle.go
- bundledownload.go
- bundlerecipient.go
- bundleregistration.go
- clickwrap.go
- config.go
- dnsrecord.go
- errors.go
- externalevent.go
- file.go
- fileaction.go
- filecomment.go
- filecommentreaction.go
- filemigration.go
- fileuploadpart.go
- folder.go
- formfield.go
- formfieldset.go
- group.go
- groupuser.go
- history.go
- historyexport.go
- historyexportresult.go
- image.go
- inboxrecipient.go
- inboxregistration.go
- inboxupload.go
- invoice.go
- invoicelineitem.go
- ipaddress.go
- lock.go
- message.go
- messagecomment.go
- messagecommentreaction.go
- messagereaction.go
- notification.go
- payment.go
- paymentlineitem.go
- permission.go
- preview.go
- priority.go
- project.go
- publicipaddress.go
- publickey.go
- remoteserver.go
- request.go
- responseerror.go
- session.go
- settingschange.go
- site.go
- ssostrategy.go
- status.go
- style.go
- syncjob.go
- usagedailysnapshot.go
- usagesnapshot.go
- user.go
- usercipheruse.go
- userrequest.go
- webhooktest.go
 Click to show internal directories. 
   Click to hide internal directories.