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 As2IncomingMessage
- type As2IncomingMessageCollection
- type As2IncomingMessageListParams
- type As2OutgoingMessage
- type As2OutgoingMessageCollection
- type As2OutgoingMessageListParams
- type As2Partner
- type As2PartnerCollection
- type As2PartnerCreateParams
- type As2PartnerDeleteParams
- type As2PartnerFindParams
- type As2PartnerListParams
- type As2PartnerUpdateParams
- type As2Station
- type As2StationCollection
- type As2StationCreateParams
- type As2StationDeleteParams
- type As2StationFindParams
- type As2StationListParams
- type As2StationUpdateParams
- 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 FilesMigrationLog
- type FilesMigrationLogIter
- 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 RemoteBandwidthSnapshot
- type RemoteBandwidthSnapshotCollection
- type RemoteBandwidthSnapshotListParams
- 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 SsoStrategySyncParams
- type Status
- type StatusCollection
- type Style
- type StyleCollection
- type StyleDeleteParams
- type StyleFindParams
- type StyleUpdateParams
- 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 InvoiceLineItem `json:"invoice_line_items,omitempty"`
Method string `json:"method,omitempty"`
PaymentLineItems PaymentLineItem `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" json:"user_id,omitempty"`
StartAt time.Time `url:"start_at,omitempty" required:"false" json:"start_at,omitempty"`
EndAt time.Time `url:"end_at,omitempty" required:"false" json:"end_at,omitempty"`
QueryMessage string `url:"query_message,omitempty" required:"false" json:"query_message,omitempty"`
QueryRequestMethod string `url:"query_request_method,omitempty" required:"false" json:"query_request_method,omitempty"`
QueryRequestUrl string `url:"query_request_url,omitempty" required:"false" json:"query_request_url,omitempty"`
QueryStatus string `url:"query_status,omitempty" required:"false" json:"query_status,omitempty"`
QuerySuccess *bool `url:"query_success,omitempty" required:"false" json:"query_success,omitempty"`
QueryPath string `url:"query_path,omitempty" required:"false" json:"query_path,omitempty"`
QueryFolder string `url:"query_folder,omitempty" required:"false" json:"query_folder,omitempty"`
}
type ActionNotificationExportFindParams ¶
type ActionNotificationExportFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
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" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
ActionNotificationExportId int64 `url:"action_notification_export_id,omitempty" required:"true" json:"action_notification_export_id,omitempty"`
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" json:"-,omitempty"`
}
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" json:"user_id,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
ExpiresAt time.Time `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty"`
PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false" json:"permission_set,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
}
type ApiKeyDeleteParams ¶
type ApiKeyDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type ApiKeyFindParams ¶
type ApiKeyFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type ApiKeyListParams ¶
type ApiKeyListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
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" json:"expires_at,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false" json:"permission_set,omitempty"`
}
type ApiKeyUpdateParams ¶
type ApiKeyUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
ExpiresAt time.Time `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty"`
PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false" json:"permission_set,omitempty"`
}
type App ¶
type App struct {
Name string `json:"name,omitempty"`
ExtendedDescription string `json:"extended_description,omitempty"`
ShortDescription string `json:"short_description,omitempty"`
DocumentationLinks json.RawMessage `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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
lib.ListParams
}
type As2IncomingMessage ¶
type As2IncomingMessage struct {
Id int64 `json:"id,omitempty"`
As2PartnerId int64 `json:"as2_partner_id,omitempty"`
As2StationId int64 `json:"as2_station_id,omitempty"`
Uuid string `json:"uuid,omitempty"`
ContentType string `json:"content_type,omitempty"`
HttpHeaders json.RawMessage `json:"http_headers,omitempty"`
ActivityLog string `json:"activity_log,omitempty"`
ProcessingResult string `json:"processing_result,omitempty"`
Mic string `json:"mic,omitempty"`
MicAlgo string `json:"mic_algo,omitempty"`
As2To string `json:"as2_to,omitempty"`
As2From string `json:"as2_from,omitempty"`
MessageId string `json:"message_id,omitempty"`
Subject string `json:"subject,omitempty"`
Date string `json:"date,omitempty"`
BodySize string `json:"body_size,omitempty"`
AttachmentFilename string `json:"attachment_filename,omitempty"`
Ip string `json:"ip,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
HttpResponseCode string `json:"http_response_code,omitempty"`
HttpResponseHeaders json.RawMessage `json:"http_response_headers,omitempty"`
RecipientSerial string `json:"recipient_serial,omitempty"`
HexRecipientSerial string `json:"hex_recipient_serial,omitempty"`
RecipientIssuer string `json:"recipient_issuer,omitempty"`
MessageReceived *bool `json:"message_received,omitempty"`
MessageDecrypted *bool `json:"message_decrypted,omitempty"`
MessageSignatureVerified *bool `json:"message_signature_verified,omitempty"`
MessageProcessingSuccess *bool `json:"message_processing_success,omitempty"`
MessageMdnReturned *bool `json:"message_mdn_returned,omitempty"`
EncryptedUri string `json:"encrypted_uri,omitempty"`
SmimeSignedUri string `json:"smime_signed_uri,omitempty"`
SmimeUri string `json:"smime_uri,omitempty"`
RawUri string `json:"raw_uri,omitempty"`
MdnResponseUri string `json:"mdn_response_uri,omitempty"`
}
func (*As2IncomingMessage) UnmarshalJSON ¶
func (a *As2IncomingMessage) UnmarshalJSON(data []byte) error
type As2IncomingMessageCollection ¶
type As2IncomingMessageCollection []As2IncomingMessage
func (*As2IncomingMessageCollection) ToSlice ¶
func (a *As2IncomingMessageCollection) ToSlice() *[]interface{}
func (*As2IncomingMessageCollection) UnmarshalJSON ¶
func (a *As2IncomingMessageCollection) UnmarshalJSON(data []byte) error
type As2IncomingMessageListParams ¶
type As2IncomingMessageListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
As2PartnerId int64 `url:"as2_partner_id,omitempty" required:"false" json:"as2_partner_id,omitempty"`
lib.ListParams
}
type As2OutgoingMessage ¶
type As2OutgoingMessage struct {
Id int64 `json:"id,omitempty"`
As2PartnerId int64 `json:"as2_partner_id,omitempty"`
As2StationId int64 `json:"as2_station_id,omitempty"`
Uuid string `json:"uuid,omitempty"`
HttpHeaders json.RawMessage `json:"http_headers,omitempty"`
ActivityLog string `json:"activity_log,omitempty"`
ProcessingResult string `json:"processing_result,omitempty"`
Mic string `json:"mic,omitempty"`
MicSha256 string `json:"mic_sha_256,omitempty"`
As2To string `json:"as2_to,omitempty"`
As2From string `json:"as2_from,omitempty"`
Date string `json:"date,omitempty"`
MessageId string `json:"message_id,omitempty"`
BodySize string `json:"body_size,omitempty"`
AttachmentFilename string `json:"attachment_filename,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
HttpResponseCode string `json:"http_response_code,omitempty"`
HttpResponseHeaders json.RawMessage `json:"http_response_headers,omitempty"`
MdnReceived *bool `json:"mdn_received,omitempty"`
MdnValid *bool `json:"mdn_valid,omitempty"`
MdnSignatureVerified *bool `json:"mdn_signature_verified,omitempty"`
MdnMessageIdMatched *bool `json:"mdn_message_id_matched,omitempty"`
MdnMicMatched *bool `json:"mdn_mic_matched,omitempty"`
MdnProcessingSuccess *bool `json:"mdn_processing_success,omitempty"`
RawUri string `json:"raw_uri,omitempty"`
SmimeUri string `json:"smime_uri,omitempty"`
SmimeSignedUri string `json:"smime_signed_uri,omitempty"`
EncryptedUri string `json:"encrypted_uri,omitempty"`
MdnResponseUri string `json:"mdn_response_uri,omitempty"`
}
func (*As2OutgoingMessage) UnmarshalJSON ¶
func (a *As2OutgoingMessage) UnmarshalJSON(data []byte) error
type As2OutgoingMessageCollection ¶
type As2OutgoingMessageCollection []As2OutgoingMessage
func (*As2OutgoingMessageCollection) ToSlice ¶
func (a *As2OutgoingMessageCollection) ToSlice() *[]interface{}
func (*As2OutgoingMessageCollection) UnmarshalJSON ¶
func (a *As2OutgoingMessageCollection) UnmarshalJSON(data []byte) error
type As2OutgoingMessageListParams ¶
type As2OutgoingMessageListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
As2PartnerId int64 `url:"as2_partner_id,omitempty" required:"false" json:"as2_partner_id,omitempty"`
lib.ListParams
}
type As2Partner ¶
type As2Partner struct {
Id int64 `json:"id,omitempty"`
As2StationId int64 `json:"as2_station_id,omitempty"`
Name string `json:"name,omitempty"`
Uri string `json:"uri,omitempty"`
ServerCertificate string `json:"server_certificate,omitempty"`
HexPublicCertificateSerial string `json:"hex_public_certificate_serial,omitempty"`
PublicCertificateMd5 string `json:"public_certificate_md5,omitempty"`
PublicCertificateSubject string `json:"public_certificate_subject,omitempty"`
PublicCertificateIssuer string `json:"public_certificate_issuer,omitempty"`
PublicCertificateSerial string `json:"public_certificate_serial,omitempty"`
PublicCertificateNotBefore string `json:"public_certificate_not_before,omitempty"`
PublicCertificateNotAfter string `json:"public_certificate_not_after,omitempty"`
PublicCertificate string `json:"public_certificate,omitempty"`
}
func (*As2Partner) UnmarshalJSON ¶
func (a *As2Partner) UnmarshalJSON(data []byte) error
type As2PartnerCollection ¶
type As2PartnerCollection []As2Partner
func (*As2PartnerCollection) ToSlice ¶
func (a *As2PartnerCollection) ToSlice() *[]interface{}
func (*As2PartnerCollection) UnmarshalJSON ¶
func (a *As2PartnerCollection) UnmarshalJSON(data []byte) error
type As2PartnerCreateParams ¶
type As2PartnerCreateParams struct {
Name string `url:"name,omitempty" required:"true" json:"name,omitempty"`
Uri string `url:"uri,omitempty" required:"true" json:"uri,omitempty"`
PublicCertificate string `url:"public_certificate,omitempty" required:"true" json:"public_certificate,omitempty"`
As2StationId int64 `url:"as2_station_id,omitempty" required:"true" json:"as2_station_id,omitempty"`
ServerCertificate string `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty"`
}
type As2PartnerDeleteParams ¶
type As2PartnerDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type As2PartnerFindParams ¶
type As2PartnerFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type As2PartnerListParams ¶
type As2PartnerListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
lib.ListParams
}
type As2PartnerUpdateParams ¶
type As2PartnerUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Uri string `url:"uri,omitempty" required:"false" json:"uri,omitempty"`
ServerCertificate string `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty"`
PublicCertificate string `url:"public_certificate,omitempty" required:"false" json:"public_certificate,omitempty"`
}
type As2Station ¶
type As2Station struct {
Id int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Uri string `json:"uri,omitempty"`
Domain string `json:"domain,omitempty"`
HexPublicCertificateSerial string `json:"hex_public_certificate_serial,omitempty"`
PublicCertificateMd5 string `json:"public_certificate_md5,omitempty"`
PrivateKeyMd5 string `json:"private_key_md5,omitempty"`
PublicCertificateSubject string `json:"public_certificate_subject,omitempty"`
PublicCertificateIssuer string `json:"public_certificate_issuer,omitempty"`
PublicCertificateSerial string `json:"public_certificate_serial,omitempty"`
PublicCertificateNotBefore string `json:"public_certificate_not_before,omitempty"`
PublicCertificateNotAfter string `json:"public_certificate_not_after,omitempty"`
PrivateKeyPasswordMd5 string `json:"private_key_password_md5,omitempty"`
PublicCertificate string `json:"public_certificate,omitempty"`
PrivateKey string `json:"private_key,omitempty"`
PrivateKeyPassword string `json:"private_key_password,omitempty"`
}
func (*As2Station) UnmarshalJSON ¶
func (a *As2Station) UnmarshalJSON(data []byte) error
type As2StationCollection ¶
type As2StationCollection []As2Station
func (*As2StationCollection) ToSlice ¶
func (a *As2StationCollection) ToSlice() *[]interface{}
func (*As2StationCollection) UnmarshalJSON ¶
func (a *As2StationCollection) UnmarshalJSON(data []byte) error
type As2StationCreateParams ¶
type As2StationCreateParams struct {
Name string `url:"name,omitempty" required:"true" json:"name,omitempty"`
PublicCertificate string `url:"public_certificate,omitempty" required:"true" json:"public_certificate,omitempty"`
PrivateKey string `url:"private_key,omitempty" required:"true" json:"private_key,omitempty"`
PrivateKeyPassword string `url:"private_key_password,omitempty" required:"false" json:"private_key_password,omitempty"`
}
type As2StationDeleteParams ¶
type As2StationDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type As2StationFindParams ¶
type As2StationFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type As2StationListParams ¶
type As2StationListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
lib.ListParams
}
type As2StationUpdateParams ¶
type As2StationUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
PublicCertificate string `url:"public_certificate,omitempty" required:"false" json:"public_certificate,omitempty"`
PrivateKey string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty"`
PrivateKeyPassword string `url:"private_key_password,omitempty" required:"false" json:"private_key_password,omitempty"`
}
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"`
Disabled *bool `json:"disabled,omitempty"`
Trigger string `json:"trigger,omitempty"`
Interval string `json:"interval,omitempty"`
Name string `json:"name,omitempty"`
Schedule json.RawMessage `json:"schedule,omitempty"`
Source string `json:"source,omitempty"`
Destinations string `json:"destinations,omitempty"`
DestinationReplaceFrom string `json:"destination_replace_from,omitempty"`
DestinationReplaceTo string `json:"destination_replace_to,omitempty"`
Description string `json:"description,omitempty"`
Path string `json:"path,omitempty"`
UserId int64 `json:"user_id,omitempty"`
UserIds []int64 `json:"user_ids,omitempty"`
GroupIds []int64 `json:"group_ids,omitempty"`
WebhookUrl string `json:"webhook_url,omitempty"`
TriggerActions string `json:"trigger_actions,omitempty"`
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" json:"automation,omitempty"`
Source string `url:"source,omitempty" required:"false" json:"source,omitempty"`
Destination string `url:"destination,omitempty" required:"false" json:"destination,omitempty"`
Destinations []string `url:"destinations,omitempty" required:"false" json:"destinations,omitempty"`
DestinationReplaceFrom string `url:"destination_replace_from,omitempty" required:"false" json:"destination_replace_from,omitempty"`
DestinationReplaceTo string `url:"destination_replace_to,omitempty" required:"false" json:"destination_replace_to,omitempty"`
Interval string `url:"interval,omitempty" required:"false" json:"interval,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
UserIds string `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty"`
GroupIds string `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty"`
Schedule json.RawMessage `url:"schedule,omitempty" required:"false" json:"schedule,omitempty"`
Description string `url:"description,omitempty" required:"false" json:"description,omitempty"`
Disabled *bool `url:"disabled,omitempty" required:"false" json:"disabled,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Trigger AutomationTriggerEnum `url:"trigger,omitempty" required:"false" json:"trigger,omitempty"`
TriggerActions []string `url:"trigger_actions,omitempty" required:"false" json:"trigger_actions,omitempty"`
Value json.RawMessage `url:"value,omitempty" required:"false" json:"value,omitempty"`
}
type AutomationDeleteParams ¶
type AutomationDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
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" json:"-,omitempty"`
}
type AutomationListParams ¶
type AutomationListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
Automation string `url:"automation,omitempty" required:"false" json:"automation,omitempty"`
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" json:"-,omitempty"`
}
type AutomationRunListParams ¶
type AutomationRunListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
AutomationId int64 `url:"automation_id,omitempty" required:"true" json:"automation_id,omitempty"`
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" json:"-,omitempty"`
Automation AutomationEnum `url:"automation,omitempty" required:"true" json:"automation,omitempty"`
Source string `url:"source,omitempty" required:"false" json:"source,omitempty"`
Destination string `url:"destination,omitempty" required:"false" json:"destination,omitempty"`
Destinations []string `url:"destinations,omitempty" required:"false" json:"destinations,omitempty"`
DestinationReplaceFrom string `url:"destination_replace_from,omitempty" required:"false" json:"destination_replace_from,omitempty"`
DestinationReplaceTo string `url:"destination_replace_to,omitempty" required:"false" json:"destination_replace_to,omitempty"`
Interval string `url:"interval,omitempty" required:"false" json:"interval,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
UserIds string `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty"`
GroupIds string `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty"`
Schedule json.RawMessage `url:"schedule,omitempty" required:"false" json:"schedule,omitempty"`
Description string `url:"description,omitempty" required:"false" json:"description,omitempty"`
Disabled *bool `url:"disabled,omitempty" required:"false" json:"disabled,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Trigger AutomationTriggerEnum `url:"trigger,omitempty" required:"false" json:"trigger,omitempty"`
TriggerActions []string `url:"trigger_actions,omitempty" required:"false" json:"trigger_actions,omitempty"`
Value json.RawMessage `url:"value,omitempty" required:"false" json:"value,omitempty"`
}
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"`
}
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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
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"`
AttachmentDelete *bool `json:"attachment_delete,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" json:"value,omitempty"`
AttachmentFile io.Writer `url:"attachment_file,omitempty" required:"false" json:"attachment_file,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Description string `url:"description,omitempty" required:"false" json:"description,omitempty"`
Path string `url:"path,omitempty" required:"true" json:"path,omitempty"`
Behavior string `url:"behavior,omitempty" required:"true" json:"behavior,omitempty"`
}
type BehaviorDeleteParams ¶
type BehaviorDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type BehaviorFindParams ¶
type BehaviorFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type BehaviorListForParams ¶
type BehaviorListForParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
Recursive string `url:"recursive,omitempty" required:"false" json:"recursive,omitempty"`
Behavior string `url:"behavior,omitempty" required:"false" json:"behavior,omitempty"`
lib.ListParams
}
type BehaviorListParams ¶
type BehaviorListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
Behavior string `url:"behavior,omitempty" required:"false" json:"behavior,omitempty"`
lib.ListParams
}
type BehaviorUpdateParams ¶
type BehaviorUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
Value string `url:"value,omitempty" required:"false" json:"value,omitempty"`
AttachmentFile io.Writer `url:"attachment_file,omitempty" required:"false" json:"attachment_file,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Description string `url:"description,omitempty" required:"false" json:"description,omitempty"`
Behavior string `url:"behavior,omitempty" required:"false" json:"behavior,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
AttachmentDelete *bool `url:"attachment_delete,omitempty" required:"false" json:"attachment_delete,omitempty"`
}
type BehaviorWebhookTestParams ¶
type BehaviorWebhookTestParams struct {
Url string `url:"url,omitempty" required:"true" json:"url,omitempty"`
Method string `url:"method,omitempty" required:"false" json:"method,omitempty"`
Encoding string `url:"encoding,omitempty" required:"false" json:"encoding,omitempty"`
Headers json.RawMessage `url:"headers,omitempty" required:"false" json:"headers,omitempty"`
Body json.RawMessage `url:"body,omitempty" required:"false" json:"body,omitempty"`
Action string `url:"action,omitempty" required:"false" json:"action,omitempty"`
}
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 FormFieldSet `json:"form_field_set,omitempty"`
SkipName *bool `json:"skip_name,omitempty"`
SkipEmail *bool `json:"skip_email,omitempty"`
SkipCompany *bool `json:"skip_company,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"`
WatermarkAttachment Image `json:"watermark_attachment,omitempty"`
WatermarkValue json.RawMessage `json:"watermark_value,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"`
WatermarkAttachmentFile io.Reader `json:"watermark_attachment_file,omitempty"`
WatermarkAttachmentDelete *bool `json:"watermark_attachment_delete,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" json:"user_id,omitempty"`
Paths []string `url:"paths,omitempty" required:"true" json:"paths,omitempty"`
Password string `url:"password,omitempty" required:"false" json:"password,omitempty"`
FormFieldSetId int64 `url:"form_field_set_id,omitempty" required:"false" json:"form_field_set_id,omitempty"`
ExpiresAt time.Time `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty"`
MaxUses int64 `url:"max_uses,omitempty" required:"false" json:"max_uses,omitempty"`
Description string `url:"description,omitempty" required:"false" json:"description,omitempty"`
Note string `url:"note,omitempty" required:"false" json:"note,omitempty"`
Code string `url:"code,omitempty" required:"false" json:"code,omitempty"`
PreviewOnly *bool `url:"preview_only,omitempty" required:"false" json:"preview_only,omitempty"`
RequireRegistration *bool `url:"require_registration,omitempty" required:"false" json:"require_registration,omitempty"`
ClickwrapId int64 `url:"clickwrap_id,omitempty" required:"false" json:"clickwrap_id,omitempty"`
InboxId int64 `url:"inbox_id,omitempty" required:"false" json:"inbox_id,omitempty"`
SkipEmail *bool `url:"skip_email,omitempty" required:"false" json:"skip_email,omitempty"`
SkipName *bool `url:"skip_name,omitempty" required:"false" json:"skip_name,omitempty"`
SkipCompany *bool `url:"skip_company,omitempty" required:"false" json:"skip_company,omitempty"`
WatermarkAttachmentFile io.Writer `url:"watermark_attachment_file,omitempty" required:"false" json:"watermark_attachment_file,omitempty"`
}
type BundleDeleteParams ¶
type BundleDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type BundleDownload ¶
type BundleDownload struct {
BundleRegistration BundleRegistration `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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
BundleId int64 `url:"bundle_id,omitempty" required:"false" json:"bundle_id,omitempty"`
BundleRegistrationId int64 `url:"bundle_registration_id,omitempty" required:"false" json:"bundle_registration_id,omitempty"`
lib.ListParams
}
type BundleFindParams ¶
type BundleFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type BundleListParams ¶
type BundleListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
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" json:"user_id,omitempty"`
BundleId int64 `url:"bundle_id,omitempty" required:"true" json:"bundle_id,omitempty"`
Recipient string `url:"recipient,omitempty" required:"true" json:"recipient,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Company string `url:"company,omitempty" required:"false" json:"company,omitempty"`
Note string `url:"note,omitempty" required:"false" json:"note,omitempty"`
}
type BundleRecipientListParams ¶
type BundleRecipientListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
BundleId int64 `url:"bundle_id,omitempty" required:"true" json:"bundle_id,omitempty"`
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 json.RawMessage `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 BundleRegistrationListParams ¶
type BundleRegistrationListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
BundleId int64 `url:"bundle_id,omitempty" required:"false" json:"bundle_id,omitempty"`
lib.ListParams
}
type BundleUpdateParams ¶
type BundleUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
Paths []string `url:"paths,omitempty" required:"false" json:"paths,omitempty"`
Password string `url:"password,omitempty" required:"false" json:"password,omitempty"`
FormFieldSetId int64 `url:"form_field_set_id,omitempty" required:"false" json:"form_field_set_id,omitempty"`
ClickwrapId int64 `url:"clickwrap_id,omitempty" required:"false" json:"clickwrap_id,omitempty"`
Code string `url:"code,omitempty" required:"false" json:"code,omitempty"`
Description string `url:"description,omitempty" required:"false" json:"description,omitempty"`
ExpiresAt time.Time `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty"`
InboxId int64 `url:"inbox_id,omitempty" required:"false" json:"inbox_id,omitempty"`
MaxUses int64 `url:"max_uses,omitempty" required:"false" json:"max_uses,omitempty"`
Note string `url:"note,omitempty" required:"false" json:"note,omitempty"`
PreviewOnly *bool `url:"preview_only,omitempty" required:"false" json:"preview_only,omitempty"`
RequireRegistration *bool `url:"require_registration,omitempty" required:"false" json:"require_registration,omitempty"`
SkipEmail *bool `url:"skip_email,omitempty" required:"false" json:"skip_email,omitempty"`
SkipName *bool `url:"skip_name,omitempty" required:"false" json:"skip_name,omitempty"`
SkipCompany *bool `url:"skip_company,omitempty" required:"false" json:"skip_company,omitempty"`
WatermarkAttachmentDelete *bool `url:"watermark_attachment_delete,omitempty" required:"false" json:"watermark_attachment_delete,omitempty"`
WatermarkAttachmentFile io.Writer `url:"watermark_attachment_file,omitempty" required:"false" json:"watermark_attachment_file,omitempty"`
}
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" json:"name,omitempty"`
Body string `url:"body,omitempty" required:"false" json:"body,omitempty"`
UseWithBundles ClickwrapUseWithBundlesEnum `url:"use_with_bundles,omitempty" required:"false" json:"use_with_bundles,omitempty"`
UseWithInboxes ClickwrapUseWithInboxesEnum `url:"use_with_inboxes,omitempty" required:"false" json:"use_with_inboxes,omitempty"`
UseWithUsers ClickwrapUseWithUsersEnum `url:"use_with_users,omitempty" required:"false" json:"use_with_users,omitempty"`
}
type ClickwrapDeleteParams ¶
type ClickwrapDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type ClickwrapFindParams ¶
type ClickwrapFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type ClickwrapListParams ¶
type ClickwrapListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
lib.ListParams
}
type ClickwrapUpdateParams ¶
type ClickwrapUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Body string `url:"body,omitempty" required:"false" json:"body,omitempty"`
UseWithBundles ClickwrapUseWithBundlesEnum `url:"use_with_bundles,omitempty" required:"false" json:"use_with_bundles,omitempty"`
UseWithInboxes ClickwrapUseWithInboxesEnum `url:"use_with_inboxes,omitempty" required:"false" json:"use_with_inboxes,omitempty"`
UseWithUsers ClickwrapUseWithUsersEnum `url:"use_with_users,omitempty" required:"false" json:"use_with_users,omitempty"`
}
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
UserAgent string
// 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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
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" json:"status,omitempty"`
Body string `url:"body,omitempty" required:"true" json:"body,omitempty"`
}
type ExternalEventFindParams ¶
type ExternalEventFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type ExternalEventListParams ¶
type ExternalEventListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
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 Preview `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" json:"-,omitempty"`
MkdirParents *bool `url:"mkdir_parents,omitempty" required:"false" json:"mkdir_parents,omitempty"`
Part int64 `url:"part,omitempty" required:"false" json:"part,omitempty"`
Parts int64 `url:"parts,omitempty" required:"false" json:"parts,omitempty"`
Ref string `url:"ref,omitempty" required:"false" json:"ref,omitempty"`
Restart int64 `url:"restart,omitempty" required:"false" json:"restart,omitempty"`
Size int64 `url:"size,omitempty" required:"false" json:"size,omitempty"`
WithRename *bool `url:"with_rename,omitempty" required:"false" json:"with_rename,omitempty"`
}
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 FileCommentReaction `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" json:"-,omitempty"`
}
type FileCommentListForParams ¶
type FileCommentListForParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
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 FileCommentReactionCreateParams ¶
type FileCommentReactionCreateParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
FileCommentId int64 `url:"file_comment_id,omitempty" required:"true" json:"file_comment_id,omitempty"`
Emoji string `url:"emoji,omitempty" required:"true" json:"emoji,omitempty"`
}
type FileCommentReactionDeleteParams ¶
type FileCommentReactionDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type FileCommentUpdateParams ¶
type FileCopyParams ¶
type FileCopyParams struct {
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
Destination string `url:"destination,omitempty" required:"true" json:"destination,omitempty"`
Structure *bool `url:"structure,omitempty" required:"false" json:"structure,omitempty"`
}
Copy file/folder
type FileCreateParams ¶
type FileCreateParams struct {
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
Action string `url:"action,omitempty" required:"false" json:"action,omitempty"`
Length int64 `url:"length,omitempty" required:"false" json:"length,omitempty"`
MkdirParents *bool `url:"mkdir_parents,omitempty" required:"false" json:"mkdir_parents,omitempty"`
Part int64 `url:"part,omitempty" required:"false" json:"part,omitempty"`
Parts int64 `url:"parts,omitempty" required:"false" json:"parts,omitempty"`
ProvidedMtime time.Time `url:"provided_mtime,omitempty" required:"false" json:"provided_mtime,omitempty"`
Ref string `url:"ref,omitempty" required:"false" json:"ref,omitempty"`
Restart int64 `url:"restart,omitempty" required:"false" json:"restart,omitempty"`
Size int64 `url:"size,omitempty" required:"false" json:"size,omitempty"`
Structure string `url:"structure,omitempty" required:"false" json:"structure,omitempty"`
WithRename *bool `url:"with_rename,omitempty" required:"false" json:"with_rename,omitempty"`
}
type FileDeleteParams ¶
type FileDownloadParams ¶
type FileDownloadParams struct {
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
Action string `url:"action,omitempty" required:"false" json:"action,omitempty"`
PreviewSize string `url:"preview_size,omitempty" required:"false" json:"preview_size,omitempty"`
WithPreviews *bool `url:"with_previews,omitempty" required:"false" json:"with_previews,omitempty"`
WithPriorityColor *bool `url:"with_priority_color,omitempty" required:"false" json:"with_priority_color,omitempty"`
Writer io.Writer `url:"-,omitempty" required:"false" json:"-,omitempty"`
OnDownload func(*http.Response) `url:"-,omitempty" required:"false" json:"-,omitempty"`
}
Download file
type FileFindParams ¶
type FileFindParams struct {
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
PreviewSize string `url:"preview_size,omitempty" required:"false" json:"preview_size,omitempty"`
WithPreviews *bool `url:"with_previews,omitempty" required:"false" json:"with_previews,omitempty"`
WithPriorityColor *bool `url:"with_priority_color,omitempty" required:"false" json:"with_priority_color,omitempty"`
}
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" json:"-,omitempty"`
}
type FileMoveParams ¶
type FileMoveParams struct {
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
Destination string `url:"destination,omitempty" required:"true" json:"destination,omitempty"`
}
Move file/folder
type FileUpdateParams ¶
type FileUpdateParams struct {
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
ProvidedMtime time.Time `url:"provided_mtime,omitempty" required:"false" json:"provided_mtime,omitempty"`
PriorityColor string `url:"priority_color,omitempty" required:"false" json:"priority_color,omitempty"`
}
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 FilesMigrationLog ¶
type FilesMigrationLogIter ¶
type FilesMigrationLogIter struct {
context.Context
Config
FileMigration
// contains filtered or unexported fields
}
func (*FilesMigrationLogIter) Current ¶
func (l *FilesMigrationLogIter) Current() interface{}
func (*FilesMigrationLogIter) Err ¶
func (l *FilesMigrationLogIter) Err() error
func (FilesMigrationLogIter) Init ¶
func (l FilesMigrationLogIter) Init() *FilesMigrationLogIter
func (*FilesMigrationLogIter) Next ¶
func (l *FilesMigrationLogIter) Next() bool
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 Preview `json:"preview,omitempty"`
MkdirParents *bool `json:"mkdir_parents,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 FolderListForParams ¶
type FolderListForParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
Filter string `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
PreviewSize string `url:"preview_size,omitempty" required:"false" json:"preview_size,omitempty"`
Search string `url:"search,omitempty" required:"false" json:"search,omitempty"`
SearchAll *bool `url:"search_all,omitempty" required:"false" json:"search_all,omitempty"`
WithPreviews *bool `url:"with_previews,omitempty" required:"false" json:"with_previews,omitempty"`
WithPriorityColor *bool `url:"with_priority_color,omitempty" required:"false" json:"with_priority_color,omitempty"`
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 FormField `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:"" json:"user_id,omitempty"`
Title string `url:"title,omitempty" required:"" json:"title,omitempty"`
SkipEmail *bool `url:"skip_email,omitempty" required:"" json:"skip_email,omitempty"`
SkipName *bool `url:"skip_name,omitempty" required:"" json:"skip_name,omitempty"`
SkipCompany *bool `url:"skip_company,omitempty" required:"" json:"skip_company,omitempty"`
FormFields []string `url:"form_fields,omitempty" required:"" json:"form_fields,omitempty"`
}
type FormFieldSetDeleteParams ¶
type FormFieldSetDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type FormFieldSetFindParams ¶
type FormFieldSetFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type FormFieldSetListParams ¶
type FormFieldSetListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
lib.ListParams
}
type FormFieldSetUpdateParams ¶
type FormFieldSetUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
Title string `url:"title,omitempty" required:"" json:"title,omitempty"`
SkipEmail *bool `url:"skip_email,omitempty" required:"" json:"skip_email,omitempty"`
SkipName *bool `url:"skip_name,omitempty" required:"" json:"skip_name,omitempty"`
SkipCompany *bool `url:"skip_company,omitempty" required:"" json:"skip_company,omitempty"`
FormFields []string `url:"form_fields,omitempty" required:"" json:"form_fields,omitempty"`
}
type Group ¶
type Group struct {
Id int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
AdminIds string `json:"admin_ids,omitempty"`
Notes string `json:"notes,omitempty"`
UserIds []int64 `json:"user_ids,omitempty"`
Usernames []string `json:"usernames,omitempty"`
}
func (*Group) UnmarshalJSON ¶
type GroupCollection ¶
type GroupCollection []Group
func (*GroupCollection) ToSlice ¶
func (g *GroupCollection) ToSlice() *[]interface{}
func (*GroupCollection) UnmarshalJSON ¶
func (g *GroupCollection) UnmarshalJSON(data []byte) error
type GroupCreateParams ¶
type GroupCreateParams struct {
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Notes string `url:"notes,omitempty" required:"false" json:"notes,omitempty"`
UserIds string `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty"`
AdminIds string `url:"admin_ids,omitempty" required:"false" json:"admin_ids,omitempty"`
}
type GroupDeleteParams ¶
type GroupDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type GroupFindParams ¶
type GroupFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type GroupListParams ¶
type GroupListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
Ids string `url:"ids,omitempty" required:"false" json:"ids,omitempty"`
lib.ListParams
}
type GroupUpdateParams ¶
type GroupUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Notes string `url:"notes,omitempty" required:"false" json:"notes,omitempty"`
UserIds string `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty"`
AdminIds string `url:"admin_ids,omitempty" required:"false" json:"admin_ids,omitempty"`
}
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 GroupUserListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
GroupId int64 `url:"group_id,omitempty" required:"false" json:"group_id,omitempty"`
lib.ListParams
}
type GroupUserUpdateParams ¶
type GroupUserUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
GroupId int64 `url:"group_id,omitempty" required:"true" json:"group_id,omitempty"`
UserId int64 `url:"user_id,omitempty" required:"true" json:"user_id,omitempty"`
Admin *bool `url:"admin,omitempty" required:"false" json:"admin,omitempty"`
}
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" json:"user_id,omitempty"`
StartAt time.Time `url:"start_at,omitempty" required:"false" json:"start_at,omitempty"`
EndAt time.Time `url:"end_at,omitempty" required:"false" json:"end_at,omitempty"`
QueryAction string `url:"query_action,omitempty" required:"false" json:"query_action,omitempty"`
QueryInterface string `url:"query_interface,omitempty" required:"false" json:"query_interface,omitempty"`
QueryUserId string `url:"query_user_id,omitempty" required:"false" json:"query_user_id,omitempty"`
QueryFileId string `url:"query_file_id,omitempty" required:"false" json:"query_file_id,omitempty"`
QueryParentId string `url:"query_parent_id,omitempty" required:"false" json:"query_parent_id,omitempty"`
QueryPath string `url:"query_path,omitempty" required:"false" json:"query_path,omitempty"`
QueryFolder string `url:"query_folder,omitempty" required:"false" json:"query_folder,omitempty"`
QuerySrc string `url:"query_src,omitempty" required:"false" json:"query_src,omitempty"`
QueryDestination string `url:"query_destination,omitempty" required:"false" json:"query_destination,omitempty"`
QueryIp string `url:"query_ip,omitempty" required:"false" json:"query_ip,omitempty"`
QueryUsername string `url:"query_username,omitempty" required:"false" json:"query_username,omitempty"`
QueryFailureType string `url:"query_failure_type,omitempty" required:"false" json:"query_failure_type,omitempty"`
QueryTargetId string `url:"query_target_id,omitempty" required:"false" json:"query_target_id,omitempty"`
QueryTargetName string `url:"query_target_name,omitempty" required:"false" json:"query_target_name,omitempty"`
QueryTargetPermission string `url:"query_target_permission,omitempty" required:"false" json:"query_target_permission,omitempty"`
QueryTargetUserId string `url:"query_target_user_id,omitempty" required:"false" json:"query_target_user_id,omitempty"`
QueryTargetUsername string `url:"query_target_username,omitempty" required:"false" json:"query_target_username,omitempty"`
QueryTargetPlatform string `url:"query_target_platform,omitempty" required:"false" json:"query_target_platform,omitempty"`
QueryTargetPermissionSet string `url:"query_target_permission_set,omitempty" required:"false" json:"query_target_permission_set,omitempty"`
}
type HistoryExportFindParams ¶
type HistoryExportFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
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" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
HistoryExportId int64 `url:"history_export_id,omitempty" required:"true" json:"history_export_id,omitempty"`
lib.ListParams
}
type HistoryListForFileParams ¶
type HistoryListForFileParams struct {
StartAt time.Time `url:"start_at,omitempty" required:"false" json:"start_at,omitempty"`
EndAt time.Time `url:"end_at,omitempty" required:"false" json:"end_at,omitempty"`
Display string `url:"display,omitempty" required:"false" json:"display,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
lib.ListParams
}
type HistoryListForFolderParams ¶
type HistoryListForFolderParams struct {
StartAt time.Time `url:"start_at,omitempty" required:"false" json:"start_at,omitempty"`
EndAt time.Time `url:"end_at,omitempty" required:"false" json:"end_at,omitempty"`
Display string `url:"display,omitempty" required:"false" json:"display,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
lib.ListParams
}
type HistoryListForUserParams ¶
type HistoryListForUserParams struct {
StartAt time.Time `url:"start_at,omitempty" required:"false" json:"start_at,omitempty"`
EndAt time.Time `url:"end_at,omitempty" required:"false" json:"end_at,omitempty"`
Display string `url:"display,omitempty" required:"false" json:"display,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
UserId int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
lib.ListParams
}
type HistoryListLoginsParams ¶
type HistoryListLoginsParams struct {
StartAt time.Time `url:"start_at,omitempty" required:"false" json:"start_at,omitempty"`
EndAt time.Time `url:"end_at,omitempty" required:"false" json:"end_at,omitempty"`
Display string `url:"display,omitempty" required:"false" json:"display,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
lib.ListParams
}
type HistoryListParams ¶
type HistoryListParams struct {
StartAt time.Time `url:"start_at,omitempty" required:"false" json:"start_at,omitempty"`
EndAt time.Time `url:"end_at,omitempty" required:"false" json:"end_at,omitempty"`
Display string `url:"display,omitempty" required:"false" json:"display,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
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" json:"user_id,omitempty"`
InboxId int64 `url:"inbox_id,omitempty" required:"true" json:"inbox_id,omitempty"`
Recipient string `url:"recipient,omitempty" required:"true" json:"recipient,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Company string `url:"company,omitempty" required:"false" json:"company,omitempty"`
Note string `url:"note,omitempty" required:"false" json:"note,omitempty"`
}
type InboxRecipientListParams ¶
type InboxRecipientListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
InboxId int64 `url:"inbox_id,omitempty" required:"true" json:"inbox_id,omitempty"`
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 json.RawMessage `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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
FolderBehaviorId int64 `url:"folder_behavior_id,omitempty" required:"false" json:"folder_behavior_id,omitempty"`
lib.ListParams
}
type InboxUpload ¶
type InboxUpload struct {
InboxRegistration InboxRegistration `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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
InboxRegistrationId int64 `url:"inbox_registration_id,omitempty" required:"false" json:"inbox_registration_id,omitempty"`
InboxId int64 `url:"inbox_id,omitempty" required:"false" json:"inbox_id,omitempty"`
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 InvoiceLineItem `json:"invoice_line_items,omitempty"`
Method string `json:"method,omitempty"`
PaymentLineItems PaymentLineItem `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" json:"-,omitempty"`
}
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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
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" json:"-,omitempty"`
AllowAccessByAnyUser *bool `url:"allow_access_by_any_user,omitempty" required:"false" json:"allow_access_by_any_user,omitempty"`
Exclusive *bool `url:"exclusive,omitempty" required:"false" json:"exclusive,omitempty"`
Recursive string `url:"recursive,omitempty" required:"false" json:"recursive,omitempty"`
Timeout int64 `url:"timeout,omitempty" required:"false" json:"timeout,omitempty"`
}
type LockDeleteParams ¶
type LockListForParams ¶
type LockListForParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
IncludeChildren *bool `url:"include_children,omitempty" required:"false" json:"include_children,omitempty"`
lib.ListParams
}
type Message ¶
type Message struct {
Id int64 `json:"id,omitempty"`
Subject string `json:"subject,omitempty"`
Body string `json:"body,omitempty"`
Comments MessageComment `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 MessageCommentReaction `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" json:"-,omitempty"`
}
type MessageCommentFindParams ¶
type MessageCommentFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type MessageCommentListParams ¶
type MessageCommentListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
MessageId int64 `url:"message_id,omitempty" required:"true" json:"message_id,omitempty"`
lib.ListParams
}
type MessageCommentReaction ¶
type MessageCommentReaction struct {
Id int64 `json:"id,omitempty"`
Emoji string `json:"emoji,omitempty"`
UserId int64 `json:"user_id,omitempty"`
}
func (*MessageCommentReaction) UnmarshalJSON ¶
func (m *MessageCommentReaction) UnmarshalJSON(data []byte) error
type MessageCommentReactionCollection ¶
type MessageCommentReactionCollection []MessageCommentReaction
func (*MessageCommentReactionCollection) ToSlice ¶
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" json:"-,omitempty"`
}
type MessageCommentReactionFindParams ¶
type MessageCommentReactionFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type MessageCommentReactionListParams ¶
type MessageCommentReactionListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
MessageCommentId int64 `url:"message_comment_id,omitempty" required:"true" json:"message_comment_id,omitempty"`
lib.ListParams
}
type MessageCreateParams ¶
type MessageCreateParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
ProjectId int64 `url:"project_id,omitempty" required:"true" json:"project_id,omitempty"`
Subject string `url:"subject,omitempty" required:"true" json:"subject,omitempty"`
Body string `url:"body,omitempty" required:"true" json:"body,omitempty"`
}
type MessageDeleteParams ¶
type MessageDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type MessageFindParams ¶
type MessageFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type MessageListParams ¶
type MessageListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
ProjectId int64 `url:"project_id,omitempty" required:"true" json:"project_id,omitempty"`
lib.ListParams
}
type MessageReaction ¶
type MessageReaction struct {
Id int64 `json:"id,omitempty"`
Emoji string `json:"emoji,omitempty"`
UserId int64 `json:"user_id,omitempty"`
}
func (*MessageReaction) UnmarshalJSON ¶
func (m *MessageReaction) UnmarshalJSON(data []byte) error
type MessageReactionCollection ¶
type MessageReactionCollection []MessageReaction
func (*MessageReactionCollection) ToSlice ¶
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" json:"-,omitempty"`
}
type MessageReactionFindParams ¶
type MessageReactionFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type MessageReactionListParams ¶
type MessageReactionListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
MessageId int64 `url:"message_id,omitempty" required:"true" json:"message_id,omitempty"`
lib.ListParams
}
type MessageUpdateParams ¶
type MessageUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
ProjectId int64 `url:"project_id,omitempty" required:"true" json:"project_id,omitempty"`
Subject string `url:"subject,omitempty" required:"true" json:"subject,omitempty"`
Body string `url:"body,omitempty" required:"true" json:"body,omitempty"`
}
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" json:"user_id,omitempty"`
NotifyOnCopy *bool `url:"notify_on_copy,omitempty" required:"false" json:"notify_on_copy,omitempty"`
NotifyUserActions *bool `url:"notify_user_actions,omitempty" required:"false" json:"notify_user_actions,omitempty"`
Recursive *bool `url:"recursive,omitempty" required:"false" json:"recursive,omitempty"`
SendInterval string `url:"send_interval,omitempty" required:"false" json:"send_interval,omitempty"`
GroupId int64 `url:"group_id,omitempty" required:"false" json:"group_id,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
Username string `url:"username,omitempty" required:"false" json:"username,omitempty"`
}
type NotificationDeleteParams ¶
type NotificationDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type NotificationFindParams ¶
type NotificationFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type NotificationListParams ¶
type NotificationListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
GroupId int64 `url:"group_id,omitempty" required:"false" json:"group_id,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
IncludeAncestors *bool `url:"include_ancestors,omitempty" required:"false" json:"include_ancestors,omitempty"`
lib.ListParams
}
type NotificationUpdateParams ¶
type NotificationUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
NotifyOnCopy *bool `url:"notify_on_copy,omitempty" required:"false" json:"notify_on_copy,omitempty"`
NotifyUserActions *bool `url:"notify_user_actions,omitempty" required:"false" json:"notify_user_actions,omitempty"`
Recursive *bool `url:"recursive,omitempty" required:"false" json:"recursive,omitempty"`
SendInterval string `url:"send_interval,omitempty" required:"false" json:"send_interval,omitempty"`
}
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 InvoiceLineItem `json:"invoice_line_items,omitempty"`
Method string `json:"method,omitempty"`
PaymentLineItems PaymentLineItem `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" json:"-,omitempty"`
}
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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
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" json:"group_id,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
Permission string `url:"permission,omitempty" required:"false" json:"permission,omitempty"`
Recursive *bool `url:"recursive,omitempty" required:"false" json:"recursive,omitempty"`
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Username string `url:"username,omitempty" required:"false" json:"username,omitempty"`
}
type PermissionDeleteParams ¶
type PermissionDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type PermissionListParams ¶
type PermissionListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
GroupId string `url:"group_id,omitempty" required:"false" json:"group_id,omitempty"`
UserId string `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
IncludeGroups *bool `url:"include_groups,omitempty" required:"false" json:"include_groups,omitempty"`
lib.ListParams
}
type Preview ¶
type Preview struct {
Id int64 `json:"id,omitempty"`
Status string `json:"status,omitempty"`
DownloadUri string `json:"download_uri,omitempty"`
Type string `json:"type,omitempty"`
Size int64 `json:"size,omitempty"`
}
func (*Preview) UnmarshalJSON ¶
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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
Path string `url:"path,omitempty" required:"true" json:"path,omitempty"`
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" json:"global_access,omitempty"`
}
type ProjectDeleteParams ¶
type ProjectDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type ProjectFindParams ¶
type ProjectFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type ProjectListParams ¶
type ProjectListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
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" json:"-,omitempty"`
}
type PublicKeyFindParams ¶
type PublicKeyFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type PublicKeyListParams ¶
type PublicKeyListParams struct {
UserId int64 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
lib.ListParams
}
type PublicKeyUpdateParams ¶
type QParam ¶
type QParam struct {
Username string `url:"username,omitempty" json:"username,omitempty"`
Email string `url:"email,omitempty" json:"email,omitempty"`
Notes string `url:"notes,omitempty" json:"notes,omitempty"`
Admin string `url:"admin,omitempty" json:"admin,omitempty"`
AllowedIps string `url:"allowed_ips,omitempty" json:"allowed_ips,omitempty"`
PasswordValidityDays string `url:"password_validity_days,omitempty" json:"password_validity_days,omitempty"`
SslRequired string `url:"ssl_required,omitempty" json:"ssl_required,omitempty"`
}
type RemoteBandwidthSnapshot ¶
type RemoteBandwidthSnapshot struct {
Id int64 `json:"id,omitempty"`
SyncBytesReceived float32 `json:"sync_bytes_received,omitempty"`
SyncBytesSent float32 `json:"sync_bytes_sent,omitempty"`
LoggedAt time.Time `json:"logged_at,omitempty"`
RemoteServerId int64 `json:"remote_server_id,omitempty"`
}
func (*RemoteBandwidthSnapshot) UnmarshalJSON ¶
func (r *RemoteBandwidthSnapshot) UnmarshalJSON(data []byte) error
type RemoteBandwidthSnapshotCollection ¶
type RemoteBandwidthSnapshotCollection []RemoteBandwidthSnapshot
func (*RemoteBandwidthSnapshotCollection) ToSlice ¶
func (r *RemoteBandwidthSnapshotCollection) ToSlice() *[]interface{}
func (*RemoteBandwidthSnapshotCollection) UnmarshalJSON ¶
func (r *RemoteBandwidthSnapshotCollection) UnmarshalJSON(data []byte) error
type RemoteBandwidthSnapshotListParams ¶
type RemoteBandwidthSnapshotListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
lib.ListParams
}
type RemoteServer ¶
type RemoteServer struct {
Id int64 `json:"id,omitempty"`
Disabled *bool `json:"disabled,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"`
AwsAccessKey string `json:"aws_access_key,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"`
WasabiAccessKey string `json:"wasabi_access_key,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"`
S3CompatibleRegion string `json:"s3_compatible_region,omitempty"`
S3CompatibleAccessKey string `json:"s3_compatible_access_key,omitempty"`
EnableDedicatedIps *bool `json:"enable_dedicated_ips,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"`
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"`
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" json:"aws_access_key,omitempty"`
AwsSecretKey string `url:"aws_secret_key,omitempty" required:"false" json:"aws_secret_key,omitempty"`
Password string `url:"password,omitempty" required:"false" json:"password,omitempty"`
PrivateKey string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty"`
SslCertificate string `url:"ssl_certificate,omitempty" required:"false" json:"ssl_certificate,omitempty"`
GoogleCloudStorageCredentialsJson string `url:"google_cloud_storage_credentials_json,omitempty" required:"false" json:"google_cloud_storage_credentials_json,omitempty"`
WasabiAccessKey string `url:"wasabi_access_key,omitempty" required:"false" json:"wasabi_access_key,omitempty"`
WasabiSecretKey string `url:"wasabi_secret_key,omitempty" required:"false" json:"wasabi_secret_key,omitempty"`
BackblazeB2KeyId string `url:"backblaze_b2_key_id,omitempty" required:"false" json:"backblaze_b2_key_id,omitempty"`
BackblazeB2ApplicationKey string `url:"backblaze_b2_application_key,omitempty" required:"false" json:"backblaze_b2_application_key,omitempty"`
RackspaceApiKey string `url:"rackspace_api_key,omitempty" required:"false" json:"rackspace_api_key,omitempty"`
ResetAuthentication *bool `url:"reset_authentication,omitempty" required:"false" json:"reset_authentication,omitempty"`
AzureBlobStorageAccessKey string `url:"azure_blob_storage_access_key,omitempty" required:"false" json:"azure_blob_storage_access_key,omitempty"`
Hostname string `url:"hostname,omitempty" required:"false" json:"hostname,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
MaxConnections int64 `url:"max_connections,omitempty" required:"false" json:"max_connections,omitempty"`
Port int64 `url:"port,omitempty" required:"false" json:"port,omitempty"`
S3Bucket string `url:"s3_bucket,omitempty" required:"false" json:"s3_bucket,omitempty"`
S3Region string `url:"s3_region,omitempty" required:"false" json:"s3_region,omitempty"`
ServerCertificate RemoteServerServerCertificateEnum `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty"`
ServerHostKey string `url:"server_host_key,omitempty" required:"false" json:"server_host_key,omitempty"`
ServerType RemoteServerServerTypeEnum `url:"server_type,omitempty" required:"false" json:"server_type,omitempty"`
Ssl RemoteServerSslEnum `url:"ssl,omitempty" required:"false" json:"ssl,omitempty"`
Username string `url:"username,omitempty" required:"false" json:"username,omitempty"`
GoogleCloudStorageBucket string `url:"google_cloud_storage_bucket,omitempty" required:"false" json:"google_cloud_storage_bucket,omitempty"`
GoogleCloudStorageProjectId string `url:"google_cloud_storage_project_id,omitempty" required:"false" json:"google_cloud_storage_project_id,omitempty"`
BackblazeB2Bucket string `url:"backblaze_b2_bucket,omitempty" required:"false" json:"backblaze_b2_bucket,omitempty"`
BackblazeB2S3Endpoint string `url:"backblaze_b2_s3_endpoint,omitempty" required:"false" json:"backblaze_b2_s3_endpoint,omitempty"`
WasabiBucket string `url:"wasabi_bucket,omitempty" required:"false" json:"wasabi_bucket,omitempty"`
WasabiRegion string `url:"wasabi_region,omitempty" required:"false" json:"wasabi_region,omitempty"`
RackspaceUsername string `url:"rackspace_username,omitempty" required:"false" json:"rackspace_username,omitempty"`
RackspaceRegion string `url:"rackspace_region,omitempty" required:"false" json:"rackspace_region,omitempty"`
RackspaceContainer string `url:"rackspace_container,omitempty" required:"false" json:"rackspace_container,omitempty"`
OneDriveAccountType RemoteServerOneDriveAccountTypeEnum `url:"one_drive_account_type,omitempty" required:"false" json:"one_drive_account_type,omitempty"`
AzureBlobStorageAccount string `url:"azure_blob_storage_account,omitempty" required:"false" json:"azure_blob_storage_account,omitempty"`
AzureBlobStorageContainer string `url:"azure_blob_storage_container,omitempty" required:"false" json:"azure_blob_storage_container,omitempty"`
S3CompatibleBucket string `url:"s3_compatible_bucket,omitempty" required:"false" json:"s3_compatible_bucket,omitempty"`
S3CompatibleEndpoint string `url:"s3_compatible_endpoint,omitempty" required:"false" json:"s3_compatible_endpoint,omitempty"`
S3CompatibleRegion string `url:"s3_compatible_region,omitempty" required:"false" json:"s3_compatible_region,omitempty"`
EnableDedicatedIps *bool `url:"enable_dedicated_ips,omitempty" required:"false" json:"enable_dedicated_ips,omitempty"`
S3CompatibleAccessKey string `url:"s3_compatible_access_key,omitempty" required:"false" json:"s3_compatible_access_key,omitempty"`
S3CompatibleSecretKey string `url:"s3_compatible_secret_key,omitempty" required:"false" json:"s3_compatible_secret_key,omitempty"`
}
type RemoteServerDeleteParams ¶
type RemoteServerDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type RemoteServerFindParams ¶
type RemoteServerFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type RemoteServerListParams ¶
type RemoteServerListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
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" json:"-,omitempty"`
AwsAccessKey string `url:"aws_access_key,omitempty" required:"false" json:"aws_access_key,omitempty"`
AwsSecretKey string `url:"aws_secret_key,omitempty" required:"false" json:"aws_secret_key,omitempty"`
Password string `url:"password,omitempty" required:"false" json:"password,omitempty"`
PrivateKey string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty"`
SslCertificate string `url:"ssl_certificate,omitempty" required:"false" json:"ssl_certificate,omitempty"`
GoogleCloudStorageCredentialsJson string `url:"google_cloud_storage_credentials_json,omitempty" required:"false" json:"google_cloud_storage_credentials_json,omitempty"`
WasabiAccessKey string `url:"wasabi_access_key,omitempty" required:"false" json:"wasabi_access_key,omitempty"`
WasabiSecretKey string `url:"wasabi_secret_key,omitempty" required:"false" json:"wasabi_secret_key,omitempty"`
BackblazeB2KeyId string `url:"backblaze_b2_key_id,omitempty" required:"false" json:"backblaze_b2_key_id,omitempty"`
BackblazeB2ApplicationKey string `url:"backblaze_b2_application_key,omitempty" required:"false" json:"backblaze_b2_application_key,omitempty"`
RackspaceApiKey string `url:"rackspace_api_key,omitempty" required:"false" json:"rackspace_api_key,omitempty"`
ResetAuthentication *bool `url:"reset_authentication,omitempty" required:"false" json:"reset_authentication,omitempty"`
AzureBlobStorageAccessKey string `url:"azure_blob_storage_access_key,omitempty" required:"false" json:"azure_blob_storage_access_key,omitempty"`
Hostname string `url:"hostname,omitempty" required:"false" json:"hostname,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
MaxConnections int64 `url:"max_connections,omitempty" required:"false" json:"max_connections,omitempty"`
Port int64 `url:"port,omitempty" required:"false" json:"port,omitempty"`
S3Bucket string `url:"s3_bucket,omitempty" required:"false" json:"s3_bucket,omitempty"`
S3Region string `url:"s3_region,omitempty" required:"false" json:"s3_region,omitempty"`
ServerCertificate RemoteServerServerCertificateEnum `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty"`
ServerHostKey string `url:"server_host_key,omitempty" required:"false" json:"server_host_key,omitempty"`
ServerType RemoteServerServerTypeEnum `url:"server_type,omitempty" required:"false" json:"server_type,omitempty"`
Ssl RemoteServerSslEnum `url:"ssl,omitempty" required:"false" json:"ssl,omitempty"`
Username string `url:"username,omitempty" required:"false" json:"username,omitempty"`
GoogleCloudStorageBucket string `url:"google_cloud_storage_bucket,omitempty" required:"false" json:"google_cloud_storage_bucket,omitempty"`
GoogleCloudStorageProjectId string `url:"google_cloud_storage_project_id,omitempty" required:"false" json:"google_cloud_storage_project_id,omitempty"`
BackblazeB2Bucket string `url:"backblaze_b2_bucket,omitempty" required:"false" json:"backblaze_b2_bucket,omitempty"`
BackblazeB2S3Endpoint string `url:"backblaze_b2_s3_endpoint,omitempty" required:"false" json:"backblaze_b2_s3_endpoint,omitempty"`
WasabiBucket string `url:"wasabi_bucket,omitempty" required:"false" json:"wasabi_bucket,omitempty"`
WasabiRegion string `url:"wasabi_region,omitempty" required:"false" json:"wasabi_region,omitempty"`
RackspaceUsername string `url:"rackspace_username,omitempty" required:"false" json:"rackspace_username,omitempty"`
RackspaceRegion string `url:"rackspace_region,omitempty" required:"false" json:"rackspace_region,omitempty"`
RackspaceContainer string `url:"rackspace_container,omitempty" required:"false" json:"rackspace_container,omitempty"`
OneDriveAccountType RemoteServerOneDriveAccountTypeEnum `url:"one_drive_account_type,omitempty" required:"false" json:"one_drive_account_type,omitempty"`
AzureBlobStorageAccount string `url:"azure_blob_storage_account,omitempty" required:"false" json:"azure_blob_storage_account,omitempty"`
AzureBlobStorageContainer string `url:"azure_blob_storage_container,omitempty" required:"false" json:"azure_blob_storage_container,omitempty"`
S3CompatibleBucket string `url:"s3_compatible_bucket,omitempty" required:"false" json:"s3_compatible_bucket,omitempty"`
S3CompatibleEndpoint string `url:"s3_compatible_endpoint,omitempty" required:"false" json:"s3_compatible_endpoint,omitempty"`
S3CompatibleRegion string `url:"s3_compatible_region,omitempty" required:"false" json:"s3_compatible_region,omitempty"`
EnableDedicatedIps *bool `url:"enable_dedicated_ips,omitempty" required:"false" json:"enable_dedicated_ips,omitempty"`
S3CompatibleAccessKey string `url:"s3_compatible_access_key,omitempty" required:"false" json:"s3_compatible_access_key,omitempty"`
S3CompatibleSecretKey string `url:"s3_compatible_secret_key,omitempty" required:"false" json:"s3_compatible_secret_key,omitempty"`
}
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 RequestCreateParams struct {
Path string `url:"path,omitempty" required:"true" json:"path,omitempty"`
Destination string `url:"destination,omitempty" required:"true" json:"destination,omitempty"`
UserIds string `url:"user_ids,omitempty" required:"false" json:"user_ids,omitempty"`
GroupIds string `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty"`
}
type RequestDeleteParams ¶
type RequestDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type RequestGetFolderParams ¶
type RequestGetFolderParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Mine *bool `url:"mine,omitempty" required:"false" json:"mine,omitempty"`
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type RequestListParams ¶
type RequestListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Mine *bool `url:"mine,omitempty" required:"false" json:"mine,omitempty"`
Path string `url:"path,omitempty" required:"false" json:"path,omitempty"`
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"`
Allowed2faMethodWebauthn *bool `json:"allowed_2fa_method_webauthn,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 SessionCreateParams struct {
Username string `url:"username,omitempty" required:"false" json:"username,omitempty"`
Password string `url:"password,omitempty" required:"false" json:"password,omitempty"`
Otp string `url:"otp,omitempty" required:"false" json:"otp,omitempty"`
PartialSessionId string `url:"partial_session_id,omitempty" required:"false" json:"partial_session_id,omitempty"`
}
type SettingsChange ¶
type SettingsChange struct {
Changes string `json:"changes,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UserId int64 `json:"user_id,omitempty"`
UserIsFilesSupport *bool `json:"user_is_files_support,omitempty"`
Username string `json:"username,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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
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"`
Allowed2faMethodWebauthn *bool `json:"allowed_2fa_method_webauthn,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 Image `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 Image `json:"icon128,omitempty"`
Icon16 Image `json:"icon16,omitempty"`
Icon32 Image `json:"icon32,omitempty"`
Icon48 Image `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 Image `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 Session `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 User `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"`
WelcomeEmailSubject string `json:"welcome_email_subject,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" json:"name,omitempty"`
Subdomain string `url:"subdomain,omitempty" required:"false" json:"subdomain,omitempty"`
Domain string `url:"domain,omitempty" required:"false" json:"domain,omitempty"`
DomainHstsHeader *bool `url:"domain_hsts_header,omitempty" required:"false" json:"domain_hsts_header,omitempty"`
DomainLetsencryptChain string `url:"domain_letsencrypt_chain,omitempty" required:"false" json:"domain_letsencrypt_chain,omitempty"`
Email string `url:"email,omitempty" required:"false" json:"email,omitempty"`
ReplyToEmail string `url:"reply_to_email,omitempty" required:"false" json:"reply_to_email,omitempty"`
AllowBundleNames *bool `url:"allow_bundle_names,omitempty" required:"false" json:"allow_bundle_names,omitempty"`
BundleExpiration int64 `url:"bundle_expiration,omitempty" required:"false" json:"bundle_expiration,omitempty"`
OverageNotify *bool `url:"overage_notify,omitempty" required:"false" json:"overage_notify,omitempty"`
WelcomeEmailEnabled *bool `url:"welcome_email_enabled,omitempty" required:"false" json:"welcome_email_enabled,omitempty"`
AskAboutOverwrites *bool `url:"ask_about_overwrites,omitempty" required:"false" json:"ask_about_overwrites,omitempty"`
ShowRequestAccessLink *bool `url:"show_request_access_link,omitempty" required:"false" json:"show_request_access_link,omitempty"`
WelcomeEmailCc string `url:"welcome_email_cc,omitempty" required:"false" json:"welcome_email_cc,omitempty"`
WelcomeEmailSubject string `url:"welcome_email_subject,omitempty" required:"false" json:"welcome_email_subject,omitempty"`
WelcomeCustomText string `url:"welcome_custom_text,omitempty" required:"false" json:"welcome_custom_text,omitempty"`
Language string `url:"language,omitempty" required:"false" json:"language,omitempty"`
WindowsModeFtp *bool `url:"windows_mode_ftp,omitempty" required:"false" json:"windows_mode_ftp,omitempty"`
DefaultTimeZone string `url:"default_time_zone,omitempty" required:"false" json:"default_time_zone,omitempty"`
DesktopApp *bool `url:"desktop_app,omitempty" required:"false" json:"desktop_app,omitempty"`
DesktopAppSessionIpPinning *bool `url:"desktop_app_session_ip_pinning,omitempty" required:"false" json:"desktop_app_session_ip_pinning,omitempty"`
DesktopAppSessionLifetime int64 `url:"desktop_app_session_lifetime,omitempty" required:"false" json:"desktop_app_session_lifetime,omitempty"`
MobileApp *bool `url:"mobile_app,omitempty" required:"false" json:"mobile_app,omitempty"`
MobileAppSessionIpPinning *bool `url:"mobile_app_session_ip_pinning,omitempty" required:"false" json:"mobile_app_session_ip_pinning,omitempty"`
MobileAppSessionLifetime int64 `url:"mobile_app_session_lifetime,omitempty" required:"false" json:"mobile_app_session_lifetime,omitempty"`
FolderPermissionsGroupsOnly *bool `url:"folder_permissions_groups_only,omitempty" required:"false" json:"folder_permissions_groups_only,omitempty"`
WelcomeScreen string `url:"welcome_screen,omitempty" required:"false" json:"welcome_screen,omitempty"`
OfficeIntegrationAvailable *bool `url:"office_integration_available,omitempty" required:"false" json:"office_integration_available,omitempty"`
SessionExpiry float32 `url:"session_expiry,omitempty" required:"false" json:"session_expiry,omitempty"`
SslRequired *bool `url:"ssl_required,omitempty" required:"false" json:"ssl_required,omitempty"`
TlsDisabled *bool `url:"tls_disabled,omitempty" required:"false" json:"tls_disabled,omitempty"`
SftpInsecureCiphers *bool `url:"sftp_insecure_ciphers,omitempty" required:"false" json:"sftp_insecure_ciphers,omitempty"`
UserLockout *bool `url:"user_lockout,omitempty" required:"false" json:"user_lockout,omitempty"`
UserLockoutTries int64 `url:"user_lockout_tries,omitempty" required:"false" json:"user_lockout_tries,omitempty"`
UserLockoutWithin int64 `url:"user_lockout_within,omitempty" required:"false" json:"user_lockout_within,omitempty"`
UserLockoutLockPeriod int64 `url:"user_lockout_lock_period,omitempty" required:"false" json:"user_lockout_lock_period,omitempty"`
IncludePasswordInWelcomeEmail *bool `url:"include_password_in_welcome_email,omitempty" required:"false" json:"include_password_in_welcome_email,omitempty"`
AllowedCountries string `url:"allowed_countries,omitempty" required:"false" json:"allowed_countries,omitempty"`
AllowedIps string `url:"allowed_ips,omitempty" required:"false" json:"allowed_ips,omitempty"`
DisallowedCountries string `url:"disallowed_countries,omitempty" required:"false" json:"disallowed_countries,omitempty"`
DaysToRetainBackups int64 `url:"days_to_retain_backups,omitempty" required:"false" json:"days_to_retain_backups,omitempty"`
MaxPriorPasswords int64 `url:"max_prior_passwords,omitempty" required:"false" json:"max_prior_passwords,omitempty"`
PasswordValidityDays int64 `url:"password_validity_days,omitempty" required:"false" json:"password_validity_days,omitempty"`
PasswordMinLength int64 `url:"password_min_length,omitempty" required:"false" json:"password_min_length,omitempty"`
PasswordRequireLetter *bool `url:"password_require_letter,omitempty" required:"false" json:"password_require_letter,omitempty"`
PasswordRequireMixed *bool `url:"password_require_mixed,omitempty" required:"false" json:"password_require_mixed,omitempty"`
PasswordRequireSpecial *bool `url:"password_require_special,omitempty" required:"false" json:"password_require_special,omitempty"`
PasswordRequireNumber *bool `url:"password_require_number,omitempty" required:"false" json:"password_require_number,omitempty"`
PasswordRequireUnbreached *bool `url:"password_require_unbreached,omitempty" required:"false" json:"password_require_unbreached,omitempty"`
SftpUserRootEnabled *bool `url:"sftp_user_root_enabled,omitempty" required:"false" json:"sftp_user_root_enabled,omitempty"`
DisablePasswordReset *bool `url:"disable_password_reset,omitempty" required:"false" json:"disable_password_reset,omitempty"`
ImmutableFiles *bool `url:"immutable_files,omitempty" required:"false" json:"immutable_files,omitempty"`
SessionPinnedByIp *bool `url:"session_pinned_by_ip,omitempty" required:"false" json:"session_pinned_by_ip,omitempty"`
BundlePasswordRequired *bool `url:"bundle_password_required,omitempty" required:"false" json:"bundle_password_required,omitempty"`
PasswordRequirementsApplyToBundles *bool `` /* 127-byte string literal not displayed */
OptOutGlobal *bool `url:"opt_out_global,omitempty" required:"false" json:"opt_out_global,omitempty"`
UseProvidedModifiedAt *bool `url:"use_provided_modified_at,omitempty" required:"false" json:"use_provided_modified_at,omitempty"`
CustomNamespace *bool `url:"custom_namespace,omitempty" required:"false" json:"custom_namespace,omitempty"`
DisableUsersFromInactivityPeriodDays int64 `` /* 133-byte string literal not displayed */
NonSsoGroupsAllowed *bool `url:"non_sso_groups_allowed,omitempty" required:"false" json:"non_sso_groups_allowed,omitempty"`
NonSsoUsersAllowed *bool `url:"non_sso_users_allowed,omitempty" required:"false" json:"non_sso_users_allowed,omitempty"`
SharingEnabled *bool `url:"sharing_enabled,omitempty" required:"false" json:"sharing_enabled,omitempty"`
UserRequestsEnabled *bool `url:"user_requests_enabled,omitempty" required:"false" json:"user_requests_enabled,omitempty"`
FtpEnabled *bool `url:"ftp_enabled,omitempty" required:"false" json:"ftp_enabled,omitempty"`
SftpEnabled *bool `url:"sftp_enabled,omitempty" required:"false" json:"sftp_enabled,omitempty"`
Allowed2faMethodSms *bool `url:"allowed_2fa_method_sms,omitempty" required:"false" json:"allowed_2fa_method_sms,omitempty"`
Allowed2faMethodU2f *bool `url:"allowed_2fa_method_u2f,omitempty" required:"false" json:"allowed_2fa_method_u2f,omitempty"`
Allowed2faMethodTotp *bool `url:"allowed_2fa_method_totp,omitempty" required:"false" json:"allowed_2fa_method_totp,omitempty"`
Allowed2faMethodWebauthn *bool `url:"allowed_2fa_method_webauthn,omitempty" required:"false" json:"allowed_2fa_method_webauthn,omitempty"`
Allowed2faMethodYubi *bool `url:"allowed_2fa_method_yubi,omitempty" required:"false" json:"allowed_2fa_method_yubi,omitempty"`
Require2fa *bool `url:"require_2fa,omitempty" required:"false" json:"require_2fa,omitempty"`
Require2faUserType string `url:"require_2fa_user_type,omitempty" required:"false" json:"require_2fa_user_type,omitempty"`
Color2Top string `url:"color2_top,omitempty" required:"false" json:"color2_top,omitempty"`
Color2Left string `url:"color2_left,omitempty" required:"false" json:"color2_left,omitempty"`
Color2Link string `url:"color2_link,omitempty" required:"false" json:"color2_link,omitempty"`
Color2Text string `url:"color2_text,omitempty" required:"false" json:"color2_text,omitempty"`
Color2TopText string `url:"color2_top_text,omitempty" required:"false" json:"color2_top_text,omitempty"`
SiteHeader string `url:"site_header,omitempty" required:"false" json:"site_header,omitempty"`
LoginHelpText string `url:"login_help_text,omitempty" required:"false" json:"login_help_text,omitempty"`
SmtpAddress string `url:"smtp_address,omitempty" required:"false" json:"smtp_address,omitempty"`
SmtpAuthentication string `url:"smtp_authentication,omitempty" required:"false" json:"smtp_authentication,omitempty"`
SmtpFrom string `url:"smtp_from,omitempty" required:"false" json:"smtp_from,omitempty"`
SmtpUsername string `url:"smtp_username,omitempty" required:"false" json:"smtp_username,omitempty"`
SmtpPort int64 `url:"smtp_port,omitempty" required:"false" json:"smtp_port,omitempty"`
LdapEnabled *bool `url:"ldap_enabled,omitempty" required:"false" json:"ldap_enabled,omitempty"`
LdapType string `url:"ldap_type,omitempty" required:"false" json:"ldap_type,omitempty"`
LdapHost string `url:"ldap_host,omitempty" required:"false" json:"ldap_host,omitempty"`
LdapHost2 string `url:"ldap_host_2,omitempty" required:"false" json:"ldap_host_2,omitempty"`
LdapHost3 string `url:"ldap_host_3,omitempty" required:"false" json:"ldap_host_3,omitempty"`
LdapPort int64 `url:"ldap_port,omitempty" required:"false" json:"ldap_port,omitempty"`
LdapSecure *bool `url:"ldap_secure,omitempty" required:"false" json:"ldap_secure,omitempty"`
LdapUsername string `url:"ldap_username,omitempty" required:"false" json:"ldap_username,omitempty"`
LdapUsernameField string `url:"ldap_username_field,omitempty" required:"false" json:"ldap_username_field,omitempty"`
LdapDomain string `url:"ldap_domain,omitempty" required:"false" json:"ldap_domain,omitempty"`
LdapUserAction string `url:"ldap_user_action,omitempty" required:"false" json:"ldap_user_action,omitempty"`
LdapGroupAction string `url:"ldap_group_action,omitempty" required:"false" json:"ldap_group_action,omitempty"`
LdapUserIncludeGroups string `url:"ldap_user_include_groups,omitempty" required:"false" json:"ldap_user_include_groups,omitempty"`
LdapGroupExclusion string `url:"ldap_group_exclusion,omitempty" required:"false" json:"ldap_group_exclusion,omitempty"`
LdapGroupInclusion string `url:"ldap_group_inclusion,omitempty" required:"false" json:"ldap_group_inclusion,omitempty"`
LdapBaseDn string `url:"ldap_base_dn,omitempty" required:"false" json:"ldap_base_dn,omitempty"`
Icon16File io.Writer `url:"icon16_file,omitempty" required:"false" json:"icon16_file,omitempty"`
Icon16Delete *bool `url:"icon16_delete,omitempty" required:"false" json:"icon16_delete,omitempty"`
Icon32File io.Writer `url:"icon32_file,omitempty" required:"false" json:"icon32_file,omitempty"`
Icon32Delete *bool `url:"icon32_delete,omitempty" required:"false" json:"icon32_delete,omitempty"`
Icon48File io.Writer `url:"icon48_file,omitempty" required:"false" json:"icon48_file,omitempty"`
Icon48Delete *bool `url:"icon48_delete,omitempty" required:"false" json:"icon48_delete,omitempty"`
Icon128File io.Writer `url:"icon128_file,omitempty" required:"false" json:"icon128_file,omitempty"`
Icon128Delete *bool `url:"icon128_delete,omitempty" required:"false" json:"icon128_delete,omitempty"`
LogoFile io.Writer `url:"logo_file,omitempty" required:"false" json:"logo_file,omitempty"`
LogoDelete *bool `url:"logo_delete,omitempty" required:"false" json:"logo_delete,omitempty"`
BundleWatermarkAttachmentFile io.Writer `url:"bundle_watermark_attachment_file,omitempty" required:"false" json:"bundle_watermark_attachment_file,omitempty"`
BundleWatermarkAttachmentDelete *bool `url:"bundle_watermark_attachment_delete,omitempty" required:"false" json:"bundle_watermark_attachment_delete,omitempty"`
Disable2faWithDelay *bool `url:"disable_2fa_with_delay,omitempty" required:"false" json:"disable_2fa_with_delay,omitempty"`
LdapPasswordChange string `url:"ldap_password_change,omitempty" required:"false" json:"ldap_password_change,omitempty"`
LdapPasswordChangeConfirmation string `url:"ldap_password_change_confirmation,omitempty" required:"false" json:"ldap_password_change_confirmation,omitempty"`
SmtpPassword string `url:"smtp_password,omitempty" required:"false" json:"smtp_password,omitempty"`
}
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" json:"-,omitempty"`
}
type SsoStrategyListParams ¶
type SsoStrategyListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
lib.ListParams
}
type SsoStrategySyncParams ¶
type SsoStrategySyncParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
Synchronize provisioning data with the SSO remote server
type Status ¶
type Status struct {
Code int64 `json:"code,omitempty"`
Message string `json:"message,omitempty"`
Status string `json:"status,omitempty"`
Data Auto `json:"data,omitempty"`
Errors Errors `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 Image `json:"logo,omitempty"`
Thumbnail Image `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" json:"-,omitempty"`
}
type StyleFindParams ¶
type StyleFindParams struct {
Path string `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type StyleUpdateParams ¶
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"`
ApiUsageAvailable *bool `json:"api_usage_available,omitempty"`
ReadApiUsage int64 `json:"read_api_usage,omitempty"`
WriteApiUsage int64 `json:"write_api_usage,omitempty"`
UserCount int64 `json:"user_count,omitempty"`
CurrentStorage int64 `json:"current_storage,omitempty"`
DeletedFilesStorage int64 `json:"deleted_files_storage,omitempty"`
DeletedFilesCountedInMinimum int64 `json:"deleted_files_counted_in_minimum,omitempty"`
RootStorage int64 `json:"root_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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
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"`
TotalBillableUsage float32 `json:"total_billable_usage,omitempty"`
TotalBillableTransferUsage float32 `json:"total_billable_transfer_usage,omitempty"`
BytesSent float32 `json:"bytes_sent,omitempty"`
SyncBytesReceived float32 `json:"sync_bytes_received,omitempty"`
SyncBytesSent float32 `json:"sync_bytes_sent,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" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
lib.ListParams
}
type User ¶
type User struct {
Id int64 `json:"id,omitempty"`
Username string `json:"username,omitempty"`
AdminGroupIds []int64 `json:"admin_group_ids,omitempty"`
AllowedIps string `json:"allowed_ips,omitempty"`
AttachmentsPermission *bool `json:"attachments_permission,omitempty"`
ApiKeysCount int64 `json:"api_keys_count,omitempty"`
AuthenticateUntil time.Time `json:"authenticate_until,omitempty"`
AuthenticationMethod string `json:"authentication_method,omitempty"`
AvatarUrl string `json:"avatar_url,omitempty"`
BillingPermission *bool `json:"billing_permission,omitempty"`
BypassSiteAllowedIps *bool `json:"bypass_site_allowed_ips,omitempty"`
BypassInactiveDisable *bool `json:"bypass_inactive_disable,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
DavPermission *bool `json:"dav_permission,omitempty"`
Disabled *bool `json:"disabled,omitempty"`
Email string `json:"email,omitempty"`
FtpPermission *bool `json:"ftp_permission,omitempty"`
GroupIds string `json:"group_ids,omitempty"`
HeaderText string `json:"header_text,omitempty"`
Language string `json:"language,omitempty"`
LastLoginAt time.Time `json:"last_login_at,omitempty"`
LastProtocolCipher string `json:"last_protocol_cipher,omitempty"`
LockoutExpires time.Time `json:"lockout_expires,omitempty"`
Name string `json:"name,omitempty"`
Company string `json:"company,omitempty"`
Notes string `json:"notes,omitempty"`
NotificationDailySendTime int64 `json:"notification_daily_send_time,omitempty"`
OfficeIntegrationEnabled *bool `json:"office_integration_enabled,omitempty"`
PasswordSetAt time.Time `json:"password_set_at,omitempty"`
PasswordValidityDays int64 `json:"password_validity_days,omitempty"`
PublicKeysCount int64 `json:"public_keys_count,omitempty"`
ReceiveAdminAlerts *bool `json:"receive_admin_alerts,omitempty"`
Require2fa string `json:"require_2fa,omitempty"`
Active2fa *bool `json:"active_2fa,omitempty"`
RequirePasswordChange *bool `json:"require_password_change,omitempty"`
PasswordExpired *bool `json:"password_expired,omitempty"`
RestapiPermission *bool `json:"restapi_permission,omitempty"`
SelfManaged *bool `json:"self_managed,omitempty"`
SftpPermission *bool `json:"sftp_permission,omitempty"`
SiteAdmin *bool `json:"site_admin,omitempty"`
SkipWelcomeScreen *bool `json:"skip_welcome_screen,omitempty"`
SslRequired string `json:"ssl_required,omitempty"`
SsoStrategyId int64 `json:"sso_strategy_id,omitempty"`
SubscribeToNewsletter *bool `json:"subscribe_to_newsletter,omitempty"`
ExternallyManaged *bool `json:"externally_managed,omitempty"`
TimeZone string `json:"time_zone,omitempty"`
TypeOf2fa string `json:"type_of_2fa,omitempty"`
UserRoot string `json:"user_root,omitempty"`
AvatarFile io.Reader `json:"avatar_file,omitempty"`
AvatarDelete *bool `json:"avatar_delete,omitempty"`
ChangePassword string `json:"change_password,omitempty"`
ChangePasswordConfirmation string `json:"change_password_confirmation,omitempty"`
GrantPermission string `json:"grant_permission,omitempty"`
GroupId int64 `json:"group_id,omitempty"`
ImportedPasswordHash string `json:"imported_password_hash,omitempty"`
Password string `json:"password,omitempty"`
PasswordConfirmation string `json:"password_confirmation,omitempty"`
AnnouncementsRead *bool `json:"announcements_read,omitempty"`
}
func (*User) UnmarshalJSON ¶
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" json:"user_id,omitempty"`
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
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" json:"avatar_file,omitempty"`
AvatarDelete *bool `url:"avatar_delete,omitempty" required:"false" json:"avatar_delete,omitempty"`
ChangePassword string `url:"change_password,omitempty" required:"false" json:"change_password,omitempty"`
ChangePasswordConfirmation string `url:"change_password_confirmation,omitempty" required:"false" json:"change_password_confirmation,omitempty"`
Email string `url:"email,omitempty" required:"false" json:"email,omitempty"`
GrantPermission string `url:"grant_permission,omitempty" required:"false" json:"grant_permission,omitempty"`
GroupId int64 `url:"group_id,omitempty" required:"false" json:"group_id,omitempty"`
GroupIds string `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty"`
ImportedPasswordHash string `url:"imported_password_hash,omitempty" required:"false" json:"imported_password_hash,omitempty"`
Password string `url:"password,omitempty" required:"false" json:"password,omitempty"`
PasswordConfirmation string `url:"password_confirmation,omitempty" required:"false" json:"password_confirmation,omitempty"`
AnnouncementsRead *bool `url:"announcements_read,omitempty" required:"false" json:"announcements_read,omitempty"`
AllowedIps string `url:"allowed_ips,omitempty" required:"false" json:"allowed_ips,omitempty"`
AttachmentsPermission *bool `url:"attachments_permission,omitempty" required:"false" json:"attachments_permission,omitempty"`
AuthenticateUntil time.Time `url:"authenticate_until,omitempty" required:"false" json:"authenticate_until,omitempty"`
AuthenticationMethod UserAuthenticationMethodEnum `url:"authentication_method,omitempty" required:"false" json:"authentication_method,omitempty"`
BillingPermission *bool `url:"billing_permission,omitempty" required:"false" json:"billing_permission,omitempty"`
BypassInactiveDisable *bool `url:"bypass_inactive_disable,omitempty" required:"false" json:"bypass_inactive_disable,omitempty"`
BypassSiteAllowedIps *bool `url:"bypass_site_allowed_ips,omitempty" required:"false" json:"bypass_site_allowed_ips,omitempty"`
DavPermission *bool `url:"dav_permission,omitempty" required:"false" json:"dav_permission,omitempty"`
Disabled *bool `url:"disabled,omitempty" required:"false" json:"disabled,omitempty"`
FtpPermission *bool `url:"ftp_permission,omitempty" required:"false" json:"ftp_permission,omitempty"`
HeaderText string `url:"header_text,omitempty" required:"false" json:"header_text,omitempty"`
Language string `url:"language,omitempty" required:"false" json:"language,omitempty"`
NotificationDailySendTime int64 `url:"notification_daily_send_time,omitempty" required:"false" json:"notification_daily_send_time,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Company string `url:"company,omitempty" required:"false" json:"company,omitempty"`
Notes string `url:"notes,omitempty" required:"false" json:"notes,omitempty"`
OfficeIntegrationEnabled *bool `url:"office_integration_enabled,omitempty" required:"false" json:"office_integration_enabled,omitempty"`
PasswordValidityDays int64 `url:"password_validity_days,omitempty" required:"false" json:"password_validity_days,omitempty"`
ReceiveAdminAlerts *bool `url:"receive_admin_alerts,omitempty" required:"false" json:"receive_admin_alerts,omitempty"`
RequirePasswordChange *bool `url:"require_password_change,omitempty" required:"false" json:"require_password_change,omitempty"`
RestapiPermission *bool `url:"restapi_permission,omitempty" required:"false" json:"restapi_permission,omitempty"`
SelfManaged *bool `url:"self_managed,omitempty" required:"false" json:"self_managed,omitempty"`
SftpPermission *bool `url:"sftp_permission,omitempty" required:"false" json:"sftp_permission,omitempty"`
SiteAdmin *bool `url:"site_admin,omitempty" required:"false" json:"site_admin,omitempty"`
SkipWelcomeScreen *bool `url:"skip_welcome_screen,omitempty" required:"false" json:"skip_welcome_screen,omitempty"`
SslRequired UserSslRequiredEnum `url:"ssl_required,omitempty" required:"false" json:"ssl_required,omitempty"`
SsoStrategyId int64 `url:"sso_strategy_id,omitempty" required:"false" json:"sso_strategy_id,omitempty"`
SubscribeToNewsletter *bool `url:"subscribe_to_newsletter,omitempty" required:"false" json:"subscribe_to_newsletter,omitempty"`
Require2fa UserRequire2faEnum `url:"require_2fa,omitempty" required:"false" json:"require_2fa,omitempty"`
TimeZone string `url:"time_zone,omitempty" required:"false" json:"time_zone,omitempty"`
UserRoot string `url:"user_root,omitempty" required:"false" json:"user_root,omitempty"`
Username string `url:"username,omitempty" required:"false" json:"username,omitempty"`
}
type UserDeleteParams ¶
type UserDeleteParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type UserFindParams ¶
type UserFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type UserListParams ¶
type UserListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
SortBy json.RawMessage `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty"`
Filter json.RawMessage `url:"filter,omitempty" required:"false" json:"filter,omitempty"`
FilterGt json.RawMessage `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty"`
FilterGteq json.RawMessage `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty"`
FilterLike json.RawMessage `url:"filter_like,omitempty" required:"false" json:"filter_like,omitempty"`
FilterLt json.RawMessage `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty"`
FilterLteq json.RawMessage `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty"`
Ids string `url:"ids,omitempty" required:"false" json:"ids,omitempty"`
QParam QParam `url:"q,omitempty" required:"false" json:"q,omitempty"`
Search string `url:"search,omitempty" required:"false" json:"search,omitempty"`
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" json:"-,omitempty"`
}
type UserRequestFindParams ¶
type UserRequestFindParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
type UserRequestListParams ¶
type UserRequestListParams struct {
Cursor string `url:"cursor,omitempty" required:"false" json:"cursor,omitempty"`
PerPage int64 `url:"per_page,omitempty" required:"false" json:"per_page,omitempty"`
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" json:"-,omitempty"`
}
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" json:"-,omitempty"`
}
Unlock user who has been locked out due to failed logins
type UserUpdateParams ¶
type UserUpdateParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
AvatarFile io.Writer `url:"avatar_file,omitempty" required:"false" json:"avatar_file,omitempty"`
AvatarDelete *bool `url:"avatar_delete,omitempty" required:"false" json:"avatar_delete,omitempty"`
ChangePassword string `url:"change_password,omitempty" required:"false" json:"change_password,omitempty"`
ChangePasswordConfirmation string `url:"change_password_confirmation,omitempty" required:"false" json:"change_password_confirmation,omitempty"`
Email string `url:"email,omitempty" required:"false" json:"email,omitempty"`
GrantPermission string `url:"grant_permission,omitempty" required:"false" json:"grant_permission,omitempty"`
GroupId int64 `url:"group_id,omitempty" required:"false" json:"group_id,omitempty"`
GroupIds string `url:"group_ids,omitempty" required:"false" json:"group_ids,omitempty"`
ImportedPasswordHash string `url:"imported_password_hash,omitempty" required:"false" json:"imported_password_hash,omitempty"`
Password string `url:"password,omitempty" required:"false" json:"password,omitempty"`
PasswordConfirmation string `url:"password_confirmation,omitempty" required:"false" json:"password_confirmation,omitempty"`
AnnouncementsRead *bool `url:"announcements_read,omitempty" required:"false" json:"announcements_read,omitempty"`
AllowedIps string `url:"allowed_ips,omitempty" required:"false" json:"allowed_ips,omitempty"`
AttachmentsPermission *bool `url:"attachments_permission,omitempty" required:"false" json:"attachments_permission,omitempty"`
AuthenticateUntil time.Time `url:"authenticate_until,omitempty" required:"false" json:"authenticate_until,omitempty"`
AuthenticationMethod UserAuthenticationMethodEnum `url:"authentication_method,omitempty" required:"false" json:"authentication_method,omitempty"`
BillingPermission *bool `url:"billing_permission,omitempty" required:"false" json:"billing_permission,omitempty"`
BypassInactiveDisable *bool `url:"bypass_inactive_disable,omitempty" required:"false" json:"bypass_inactive_disable,omitempty"`
BypassSiteAllowedIps *bool `url:"bypass_site_allowed_ips,omitempty" required:"false" json:"bypass_site_allowed_ips,omitempty"`
DavPermission *bool `url:"dav_permission,omitempty" required:"false" json:"dav_permission,omitempty"`
Disabled *bool `url:"disabled,omitempty" required:"false" json:"disabled,omitempty"`
FtpPermission *bool `url:"ftp_permission,omitempty" required:"false" json:"ftp_permission,omitempty"`
HeaderText string `url:"header_text,omitempty" required:"false" json:"header_text,omitempty"`
Language string `url:"language,omitempty" required:"false" json:"language,omitempty"`
NotificationDailySendTime int64 `url:"notification_daily_send_time,omitempty" required:"false" json:"notification_daily_send_time,omitempty"`
Name string `url:"name,omitempty" required:"false" json:"name,omitempty"`
Company string `url:"company,omitempty" required:"false" json:"company,omitempty"`
Notes string `url:"notes,omitempty" required:"false" json:"notes,omitempty"`
OfficeIntegrationEnabled *bool `url:"office_integration_enabled,omitempty" required:"false" json:"office_integration_enabled,omitempty"`
PasswordValidityDays int64 `url:"password_validity_days,omitempty" required:"false" json:"password_validity_days,omitempty"`
ReceiveAdminAlerts *bool `url:"receive_admin_alerts,omitempty" required:"false" json:"receive_admin_alerts,omitempty"`
RequirePasswordChange *bool `url:"require_password_change,omitempty" required:"false" json:"require_password_change,omitempty"`
RestapiPermission *bool `url:"restapi_permission,omitempty" required:"false" json:"restapi_permission,omitempty"`
SelfManaged *bool `url:"self_managed,omitempty" required:"false" json:"self_managed,omitempty"`
SftpPermission *bool `url:"sftp_permission,omitempty" required:"false" json:"sftp_permission,omitempty"`
SiteAdmin *bool `url:"site_admin,omitempty" required:"false" json:"site_admin,omitempty"`
SkipWelcomeScreen *bool `url:"skip_welcome_screen,omitempty" required:"false" json:"skip_welcome_screen,omitempty"`
SslRequired UserSslRequiredEnum `url:"ssl_required,omitempty" required:"false" json:"ssl_required,omitempty"`
SsoStrategyId int64 `url:"sso_strategy_id,omitempty" required:"false" json:"sso_strategy_id,omitempty"`
SubscribeToNewsletter *bool `url:"subscribe_to_newsletter,omitempty" required:"false" json:"subscribe_to_newsletter,omitempty"`
Require2fa UserRequire2faEnum `url:"require_2fa,omitempty" required:"false" json:"require_2fa,omitempty"`
TimeZone string `url:"time_zone,omitempty" required:"false" json:"time_zone,omitempty"`
UserRoot string `url:"user_root,omitempty" required:"false" json:"user_root,omitempty"`
Username string `url:"username,omitempty" required:"false" json:"username,omitempty"`
}
type UserUser2faResetParams ¶
type UserUser2faResetParams struct {
Id int64 `url:"-,omitempty" required:"true" json:"-,omitempty"`
}
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 Auto `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" json:"url,omitempty"`
Method string `url:"method,omitempty" required:"false" json:"method,omitempty"`
Encoding string `url:"encoding,omitempty" required:"false" json:"encoding,omitempty"`
Headers json.RawMessage `url:"headers,omitempty" required:"false" json:"headers,omitempty"`
Body json.RawMessage `url:"body,omitempty" required:"false" json:"body,omitempty"`
RawBody string `url:"raw_body,omitempty" required:"false" json:"raw_body,omitempty"`
FileAsBody *bool `url:"file_as_body,omitempty" required:"false" json:"file_as_body,omitempty"`
FileFormField string `url:"file_form_field,omitempty" required:"false" json:"file_form_field,omitempty"`
Action string `url:"action,omitempty" required:"false" json:"action,omitempty"`
}
Source Files
¶
- accountlineitem.go
- action.go
- actionnotificationexport.go
- actionnotificationexportresult.go
- actionwebhookfailure.go
- apikey.go
- app.go
- as2incomingmessage.go
- as2outgoingmessage.go
- as2partner.go
- as2station.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
- filemigrationlog.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
- remotebandwidthsnapshot.go
- remoteserver.go
- request.go
- responseerror.go
- session.go
- settingschange.go
- site.go
- ssostrategy.go
- status.go
- style.go
- usagedailysnapshot.go
- usagesnapshot.go
- user.go
- usercipheruse.go
- userrequest.go
- webhooktest.go
Click to show internal directories.
Click to hide internal directories.