files_sdk

package module
v2.0.278 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 15 Imported by: 4

README ¶

Files.com Go Client

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

Installation

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

go mod init

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

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

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

Documentation

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

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

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

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

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

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

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

func main() {
    client := file.Client{}
    uploadPath := "file-to-upload.txt"
    destinationPath := "file-to-upload.txt"
    err := client.Upload(UploadWithFile(uploadPath), UploadWithDestinationPath(destinationPath))
    if err != nil {
        panic(err)
    }
}
Via io.Reader
import file "github.com/Files-com/files-sdk-go/v2/file"

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

func main() {
    client := file.Client{}
    downloadPath := "file-to-download.txt"
    fileEntry, err := client.DownloadToFile(files_sdk.FileDownloadParams{Path: "file-to-download.txt"}, downloadPath)
    if err != nil {
        panic(err)
    }
}
Docker
docker build . --tag files-sdk-go:latest
docker run --workdir /app --volume ${PWD}:/app -it files-sdk-go

Documentation ¶

Index ¶

Constants ¶

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

Variables ¶

View Source
var VERSION = "2.0.278"

Functions ¶

func APIError ¶

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

func Call ¶

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

func CallRaw ¶

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

func ContextOption ¶

func ContextOption(opts []RequestResponseOption) context.Context

func FeatureFlags ¶

func FeatureFlags() map[string]bool

func IsDestinationExistsError ¶

func IsDestinationExistsError(err error) bool

func ParseResponse ¶

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

func Resource ¶

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

func WrapRequestOptions ¶

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

Types ¶

type Account ¶ added in v2.0.276

type Account struct {
	Name             string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Address          string     `json:"address,omitempty" path:"address,omitempty" url:"address,omitempty"`
	Address2         string     `json:"address_2,omitempty" path:"address_2,omitempty" url:"address_2,omitempty"`
	CardNumber       string     `json:"card_number,omitempty" path:"card_number,omitempty" url:"card_number,omitempty"`
	CardType         string     `json:"card_type,omitempty" path:"card_type,omitempty" url:"card_type,omitempty"`
	City             string     `json:"city,omitempty" path:"city,omitempty" url:"city,omitempty"`
	CompanyName      string     `json:"company_name,omitempty" path:"company_name,omitempty" url:"company_name,omitempty"`
	Country          string     `json:"country,omitempty" path:"country,omitempty" url:"country,omitempty"`
	CreatedAt        *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Currency         string     `json:"currency,omitempty" path:"currency,omitempty" url:"currency,omitempty"`
	Email            string     `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	PhoneNumber      string     `json:"phone_number,omitempty" path:"phone_number,omitempty" url:"phone_number,omitempty"`
	ProcessorType    string     `json:"processor_type,omitempty" path:"processor_type,omitempty" url:"processor_type,omitempty"`
	State            string     `json:"state,omitempty" path:"state,omitempty" url:"state,omitempty"`
	Zip              string     `json:"zip,omitempty" path:"zip,omitempty" url:"zip,omitempty"`
	BillingFrequency int64      `json:"billing_frequency,omitempty" path:"billing_frequency,omitempty" url:"billing_frequency,omitempty"`
	ExpirationYear   string     `json:"expiration_year,omitempty" path:"expiration_year,omitempty" url:"expiration_year,omitempty"`
	ExpirationMonth  string     `json:"expiration_month,omitempty" path:"expiration_month,omitempty" url:"expiration_month,omitempty"`
	StartYear        string     `json:"start_year,omitempty" path:"start_year,omitempty" url:"start_year,omitempty"`
	StartMonth       string     `json:"start_month,omitempty" path:"start_month,omitempty" url:"start_month,omitempty"`
	Cvv              string     `json:"cvv,omitempty" path:"cvv,omitempty" url:"cvv,omitempty"`
	PaypalToken      string     `json:"paypal_token,omitempty" path:"paypal_token,omitempty" url:"paypal_token,omitempty"`
	PaypalPayerId    string     `json:"paypal_payer_id,omitempty" path:"paypal_payer_id,omitempty" url:"paypal_payer_id,omitempty"`
	PlanId           int64      `json:"plan_id,omitempty" path:"plan_id,omitempty" url:"plan_id,omitempty"`
	SwitchToPlanId   int64      `json:"switch_to_plan_id,omitempty" path:"switch_to_plan_id,omitempty" url:"switch_to_plan_id,omitempty"`
	CreateAccount    *bool      `json:"create_account,omitempty" path:"create_account,omitempty" url:"create_account,omitempty"`
}

func (*Account) UnmarshalJSON ¶ added in v2.0.276

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

type AccountCollection ¶ added in v2.0.276

type AccountCollection []Account

func (*AccountCollection) ToSlice ¶ added in v2.0.276

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

func (*AccountCollection) UnmarshalJSON ¶ added in v2.0.276

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

type AccountCreateParams ¶ added in v2.0.276

type AccountCreateParams struct {
	Name             string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	CompanyName      string `url:"company_name,omitempty" required:"false" json:"company_name,omitempty" path:"company_name"`
	Address          string `url:"address,omitempty" required:"false" json:"address,omitempty" path:"address"`
	Address2         string `url:"address_2,omitempty" required:"false" json:"address_2,omitempty" path:"address_2"`
	City             string `url:"city,omitempty" required:"false" json:"city,omitempty" path:"city"`
	State            string `url:"state,omitempty" required:"false" json:"state,omitempty" path:"state"`
	Zip              string `url:"zip,omitempty" required:"false" json:"zip,omitempty" path:"zip"`
	Country          string `url:"country,omitempty" required:"false" json:"country,omitempty" path:"country"`
	Email            string `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	PhoneNumber      string `url:"phone_number,omitempty" required:"false" json:"phone_number,omitempty" path:"phone_number"`
	CardNumber       string `url:"card_number,omitempty" required:"false" json:"card_number,omitempty" path:"card_number"`
	CardType         string `url:"card_type,omitempty" required:"false" json:"card_type,omitempty" path:"card_type"`
	ExpirationYear   string `url:"expiration_year,omitempty" required:"false" json:"expiration_year,omitempty" path:"expiration_year"`
	ExpirationMonth  string `url:"expiration_month,omitempty" required:"false" json:"expiration_month,omitempty" path:"expiration_month"`
	StartYear        string `url:"start_year,omitempty" required:"false" json:"start_year,omitempty" path:"start_year"`
	StartMonth       string `url:"start_month,omitempty" required:"false" json:"start_month,omitempty" path:"start_month"`
	Cvv              string `url:"cvv,omitempty" required:"false" json:"cvv,omitempty" path:"cvv"`
	PaypalToken      string `url:"paypal_token,omitempty" required:"false" json:"paypal_token,omitempty" path:"paypal_token"`
	PaypalPayerId    string `url:"paypal_payer_id,omitempty" required:"false" json:"paypal_payer_id,omitempty" path:"paypal_payer_id"`
	PlanId           int64  `url:"plan_id,omitempty" required:"false" json:"plan_id,omitempty" path:"plan_id"`
	BillingFrequency int64  `url:"billing_frequency,omitempty" required:"false" json:"billing_frequency,omitempty" path:"billing_frequency"`
	Currency         string `url:"currency,omitempty" required:"false" json:"currency,omitempty" path:"currency"`
	SwitchToPlanId   int64  `url:"switch_to_plan_id,omitempty" required:"false" json:"switch_to_plan_id,omitempty" path:"switch_to_plan_id"`
	CreateAccount    *bool  `url:"create_account,omitempty" required:"false" json:"create_account,omitempty" path:"create_account"`
}

type AccountLineItem ¶

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

func (AccountLineItem) Identifier ¶

func (a AccountLineItem) Identifier() interface{}

func (*AccountLineItem) UnmarshalJSON ¶

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

type AccountLineItemCollection ¶

type AccountLineItemCollection []AccountLineItem

func (*AccountLineItemCollection) ToSlice ¶

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

func (*AccountLineItemCollection) UnmarshalJSON ¶

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

type AccountUpdateParams ¶ added in v2.0.276

type AccountUpdateParams struct {
	Name            string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	CompanyName     string `url:"company_name,omitempty" required:"false" json:"company_name,omitempty" path:"company_name"`
	Address         string `url:"address,omitempty" required:"false" json:"address,omitempty" path:"address"`
	Address2        string `url:"address_2,omitempty" required:"false" json:"address_2,omitempty" path:"address_2"`
	City            string `url:"city,omitempty" required:"false" json:"city,omitempty" path:"city"`
	State           string `url:"state,omitempty" required:"false" json:"state,omitempty" path:"state"`
	Zip             string `url:"zip,omitempty" required:"false" json:"zip,omitempty" path:"zip"`
	Country         string `url:"country,omitempty" required:"false" json:"country,omitempty" path:"country"`
	Email           string `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	PhoneNumber     string `url:"phone_number,omitempty" required:"false" json:"phone_number,omitempty" path:"phone_number"`
	CardNumber      string `url:"card_number,omitempty" required:"false" json:"card_number,omitempty" path:"card_number"`
	CardType        string `url:"card_type,omitempty" required:"false" json:"card_type,omitempty" path:"card_type"`
	ExpirationYear  string `url:"expiration_year,omitempty" required:"false" json:"expiration_year,omitempty" path:"expiration_year"`
	ExpirationMonth string `url:"expiration_month,omitempty" required:"false" json:"expiration_month,omitempty" path:"expiration_month"`
	StartYear       string `url:"start_year,omitempty" required:"false" json:"start_year,omitempty" path:"start_year"`
	StartMonth      string `url:"start_month,omitempty" required:"false" json:"start_month,omitempty" path:"start_month"`
	Cvv             string `url:"cvv,omitempty" required:"false" json:"cvv,omitempty" path:"cvv"`
	PaypalToken     string `url:"paypal_token,omitempty" required:"false" json:"paypal_token,omitempty" path:"paypal_token"`
	PaypalPayerId   string `url:"paypal_payer_id,omitempty" required:"false" json:"paypal_payer_id,omitempty" path:"paypal_payer_id"`
}

type Action ¶

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

func (Action) Identifier ¶

func (a Action) Identifier() interface{}

func (*Action) UnmarshalJSON ¶

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

type ActionCollection ¶

type ActionCollection []Action

func (*ActionCollection) ToSlice ¶

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

func (*ActionCollection) UnmarshalJSON ¶

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

type ActionNotificationExport ¶

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

func (ActionNotificationExport) Identifier ¶

func (a ActionNotificationExport) Identifier() interface{}

func (*ActionNotificationExport) UnmarshalJSON ¶

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

type ActionNotificationExportCollection ¶

type ActionNotificationExportCollection []ActionNotificationExport

func (*ActionNotificationExportCollection) ToSlice ¶

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

func (*ActionNotificationExportCollection) UnmarshalJSON ¶

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

type ActionNotificationExportCreateParams ¶

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

type ActionNotificationExportFindParams ¶

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

type ActionNotificationExportResult ¶

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

func (ActionNotificationExportResult) Identifier ¶

func (a ActionNotificationExportResult) Identifier() interface{}

func (*ActionNotificationExportResult) UnmarshalJSON ¶

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

type ActionNotificationExportResultCollection ¶

type ActionNotificationExportResultCollection []ActionNotificationExportResult

func (*ActionNotificationExportResultCollection) ToSlice ¶

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

func (*ActionNotificationExportResultCollection) UnmarshalJSON ¶

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

type ActionNotificationExportResultListParams ¶

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

type ActionWebhookFailure ¶

type ActionWebhookFailure struct {
}

func (*ActionWebhookFailure) UnmarshalJSON ¶

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

type ActionWebhookFailureCollection ¶

type ActionWebhookFailureCollection []ActionWebhookFailure

func (*ActionWebhookFailureCollection) ToSlice ¶

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

func (*ActionWebhookFailureCollection) UnmarshalJSON ¶

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

type ActionWebhookFailureRetryParams ¶

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

retry Action Webhook Failure

type Announcement ¶ added in v2.0.276

type Announcement struct {
	Id         int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Headline   string     `json:"headline,omitempty" path:"headline,omitempty" url:"headline,omitempty"`
	Body       string     `json:"body,omitempty" path:"body,omitempty" url:"body,omitempty"`
	ButtonText string     `json:"button_text,omitempty" path:"button_text,omitempty" url:"button_text,omitempty"`
	ButtonUrl  string     `json:"button_url,omitempty" path:"button_url,omitempty" url:"button_url,omitempty"`
	HtmlBody   string     `json:"html_body,omitempty" path:"html_body,omitempty" url:"html_body,omitempty"`
	Label      string     `json:"label,omitempty" path:"label,omitempty" url:"label,omitempty"`
	LabelColor string     `json:"label_color,omitempty" path:"label_color,omitempty" url:"label_color,omitempty"`
	PublishAt  *time.Time `json:"publish_at,omitempty" path:"publish_at,omitempty" url:"publish_at,omitempty"`
	Slug       string     `json:"slug,omitempty" path:"slug,omitempty" url:"slug,omitempty"`
}

func (Announcement) Identifier ¶ added in v2.0.276

func (a Announcement) Identifier() interface{}

func (*Announcement) UnmarshalJSON ¶ added in v2.0.276

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

type AnnouncementCollection ¶ added in v2.0.276

type AnnouncementCollection []Announcement

func (*AnnouncementCollection) ToSlice ¶ added in v2.0.276

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

func (*AnnouncementCollection) UnmarshalJSON ¶ added in v2.0.276

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

type AnnouncementListParams ¶ added in v2.0.276

type AnnouncementListParams struct {
	Action string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

type ApiKey ¶

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

func (ApiKey) Identifier ¶

func (a ApiKey) Identifier() interface{}

func (*ApiKey) UnmarshalJSON ¶

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

type ApiKeyCollection ¶

type ApiKeyCollection []ApiKey

func (*ApiKeyCollection) ToSlice ¶

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

func (*ApiKeyCollection) UnmarshalJSON ¶

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

type ApiKeyCreateParams ¶

type ApiKeyCreateParams struct {
	UserId        int64                   `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Name          string                  `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Description   string                  `url:"description,omitempty" required:"false" json:"description,omitempty" path:"description"`
	ExpiresAt     *time.Time              `url:"expires_at,omitempty" required:"false" json:"expires_at,omitempty" path:"expires_at"`
	PermissionSet ApiKeyPermissionSetEnum `url:"permission_set,omitempty" required:"false" json:"permission_set,omitempty" path:"permission_set"`
	PairingKey    string                  `url:"pairing_key,omitempty" required:"false" json:"pairing_key,omitempty" path:"pairing_key"`
	Platform      string                  `url:"platform,omitempty" required:"false" json:"platform,omitempty" path:"platform"`
	Path          string                  `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
}

type ApiKeyDeleteParams ¶

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

type ApiKeyFindParams ¶

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

type ApiKeyListParams ¶

type ApiKeyListParams struct {
	UserId     int64                  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action     string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy     map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     ApiKey                 `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type ApiKeyPermissionSetEnum ¶

type ApiKeyPermissionSetEnum string

func (ApiKeyPermissionSetEnum) Enum ¶

func (ApiKeyPermissionSetEnum) String ¶

func (u ApiKeyPermissionSetEnum) String() string

type ApiKeyUpdateCurrentParams ¶

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

type ApiKeyUpdateParams ¶

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

type App ¶

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

func (*App) UnmarshalJSON ¶

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

type AppCollection ¶

type AppCollection []App

func (*AppCollection) ToSlice ¶

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

func (*AppCollection) UnmarshalJSON ¶

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

type AppListParams ¶

type AppListParams struct {
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       App                    `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix map[string]interface{} `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

type As2IncomingMessage ¶

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

func (As2IncomingMessage) Identifier ¶

func (a As2IncomingMessage) Identifier() interface{}

func (*As2IncomingMessage) UnmarshalJSON ¶

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

type As2IncomingMessageCollection ¶

type As2IncomingMessageCollection []As2IncomingMessage

func (*As2IncomingMessageCollection) ToSlice ¶

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

func (*As2IncomingMessageCollection) UnmarshalJSON ¶

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

type As2IncomingMessageListParams ¶

type As2IncomingMessageListParams struct {
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       As2IncomingMessage     `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt     map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt     map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	As2PartnerId int64                  `url:"as2_partner_id,omitempty" required:"false" json:"as2_partner_id,omitempty" path:"as2_partner_id"`
	ListParams
}

type As2OutgoingMessage ¶

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

func (As2OutgoingMessage) Identifier ¶

func (a As2OutgoingMessage) Identifier() interface{}

func (*As2OutgoingMessage) UnmarshalJSON ¶

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

type As2OutgoingMessageCollection ¶

type As2OutgoingMessageCollection []As2OutgoingMessage

func (*As2OutgoingMessageCollection) ToSlice ¶

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

func (*As2OutgoingMessageCollection) UnmarshalJSON ¶

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

type As2OutgoingMessageListParams ¶

type As2OutgoingMessageListParams struct {
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       As2OutgoingMessage     `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt     map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt     map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	As2PartnerId int64                  `url:"as2_partner_id,omitempty" required:"false" json:"as2_partner_id,omitempty" path:"as2_partner_id"`
	ListParams
}

type As2Partner ¶

type As2Partner struct {
	Id                         int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	As2StationId               int64  `json:"as2_station_id,omitempty" path:"as2_station_id,omitempty" url:"as2_station_id,omitempty"`
	Name                       string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Uri                        string `json:"uri,omitempty" path:"uri,omitempty" url:"uri,omitempty"`
	ServerCertificate          string `json:"server_certificate,omitempty" path:"server_certificate,omitempty" url:"server_certificate,omitempty"`
	EnableDedicatedIps         *bool  `json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips,omitempty" url:"enable_dedicated_ips,omitempty"`
	HexPublicCertificateSerial string `` /* 139-byte string literal not displayed */
	PublicCertificateMd5       string `json:"public_certificate_md5,omitempty" path:"public_certificate_md5,omitempty" url:"public_certificate_md5,omitempty"`
	PublicCertificateSubject   string `` /* 130-byte string literal not displayed */
	PublicCertificateIssuer    string `` /* 127-byte string literal not displayed */
	PublicCertificateSerial    string `` /* 127-byte string literal not displayed */
	PublicCertificateNotBefore string `` /* 139-byte string literal not displayed */
	PublicCertificateNotAfter  string `` /* 136-byte string literal not displayed */
	PublicCertificate          string `json:"public_certificate,omitempty" path:"public_certificate,omitempty" url:"public_certificate,omitempty"`
}

func (As2Partner) Identifier ¶

func (a As2Partner) Identifier() interface{}

func (*As2Partner) UnmarshalJSON ¶

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

type As2PartnerCollection ¶

type As2PartnerCollection []As2Partner

func (*As2PartnerCollection) ToSlice ¶

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

func (*As2PartnerCollection) UnmarshalJSON ¶

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

type As2PartnerCreateParams ¶

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

type As2PartnerDeleteParams ¶

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

type As2PartnerFindParams ¶

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

type As2PartnerListParams ¶

type As2PartnerListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type As2PartnerUpdateParams ¶

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

type As2Station ¶

type As2Station struct {
	Id                         int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                       string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Uri                        string `json:"uri,omitempty" path:"uri,omitempty" url:"uri,omitempty"`
	Domain                     string `json:"domain,omitempty" path:"domain,omitempty" url:"domain,omitempty"`
	HexPublicCertificateSerial string `` /* 139-byte string literal not displayed */
	PublicCertificateMd5       string `json:"public_certificate_md5,omitempty" path:"public_certificate_md5,omitempty" url:"public_certificate_md5,omitempty"`
	PrivateKeyMd5              string `json:"private_key_md5,omitempty" path:"private_key_md5,omitempty" url:"private_key_md5,omitempty"`
	PublicCertificateSubject   string `` /* 130-byte string literal not displayed */
	PublicCertificateIssuer    string `` /* 127-byte string literal not displayed */
	PublicCertificateSerial    string `` /* 127-byte string literal not displayed */
	PublicCertificateNotBefore string `` /* 139-byte string literal not displayed */
	PublicCertificateNotAfter  string `` /* 136-byte string literal not displayed */
	PrivateKeyPasswordMd5      string `json:"private_key_password_md5,omitempty" path:"private_key_password_md5,omitempty" url:"private_key_password_md5,omitempty"`
	PublicCertificate          string `json:"public_certificate,omitempty" path:"public_certificate,omitempty" url:"public_certificate,omitempty"`
	PrivateKey                 string `json:"private_key,omitempty" path:"private_key,omitempty" url:"private_key,omitempty"`
	PrivateKeyPassword         string `json:"private_key_password,omitempty" path:"private_key_password,omitempty" url:"private_key_password,omitempty"`
}

func (As2Station) Identifier ¶

func (a As2Station) Identifier() interface{}

func (*As2Station) UnmarshalJSON ¶

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

type As2StationCollection ¶

type As2StationCollection []As2Station

func (*As2StationCollection) ToSlice ¶

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

func (*As2StationCollection) UnmarshalJSON ¶

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

type As2StationCreateParams ¶

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

type As2StationDeleteParams ¶

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

type As2StationFindParams ¶

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

type As2StationListParams ¶

type As2StationListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type As2StationUpdateParams ¶

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

type Auto ¶

type Auto struct {
	Dynamic map[string]interface{} `json:"dynamic,omitempty" path:"dynamic,omitempty" url:"dynamic,omitempty"`
}

func (*Auto) UnmarshalJSON ¶

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

type AutoCollection ¶

type AutoCollection []Auto

func (*AutoCollection) ToSlice ¶

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

func (*AutoCollection) UnmarshalJSON ¶

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

type Automation ¶

type Automation struct {
	Id                     int64                  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Automation             string                 `json:"automation,omitempty" path:"automation,omitempty" url:"automation,omitempty"`
	Deleted                *bool                  `json:"deleted,omitempty" path:"deleted,omitempty" url:"deleted,omitempty"`
	Disabled               *bool                  `json:"disabled,omitempty" path:"disabled,omitempty" url:"disabled,omitempty"`
	Trigger                string                 `json:"trigger,omitempty" path:"trigger,omitempty" url:"trigger,omitempty"`
	Interval               string                 `json:"interval,omitempty" path:"interval,omitempty" url:"interval,omitempty"`
	LastModifiedAt         *time.Time             `json:"last_modified_at,omitempty" path:"last_modified_at,omitempty" url:"last_modified_at,omitempty"`
	Name                   string                 `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Schedule               map[string]interface{} `json:"schedule,omitempty" path:"schedule,omitempty" url:"schedule,omitempty"`
	Source                 string                 `json:"source,omitempty" path:"source,omitempty" url:"source,omitempty"`
	Destinations           []string               `json:"destinations,omitempty" path:"destinations,omitempty" url:"destinations,omitempty"`
	DestinationReplaceFrom string                 `json:"destination_replace_from,omitempty" path:"destination_replace_from,omitempty" url:"destination_replace_from,omitempty"`
	DestinationReplaceTo   string                 `json:"destination_replace_to,omitempty" path:"destination_replace_to,omitempty" url:"destination_replace_to,omitempty"`
	Description            string                 `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	RecurringDay           int64                  `json:"recurring_day,omitempty" path:"recurring_day,omitempty" url:"recurring_day,omitempty"`
	Path                   string                 `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	UserId                 int64                  `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	SyncIds                []int64                `json:"sync_ids,omitempty" path:"sync_ids,omitempty" url:"sync_ids,omitempty"`
	UserIds                []int64                `json:"user_ids,omitempty" path:"user_ids,omitempty" url:"user_ids,omitempty"`
	GroupIds               []int64                `json:"group_ids,omitempty" path:"group_ids,omitempty" url:"group_ids,omitempty"`
	WebhookUrl             string                 `json:"webhook_url,omitempty" path:"webhook_url,omitempty" url:"webhook_url,omitempty"`
	TriggerActions         []string               `json:"trigger_actions,omitempty" path:"trigger_actions,omitempty" url:"trigger_actions,omitempty"`
	Value                  map[string]interface{} `json:"value,omitempty" path:"value,omitempty" url:"value,omitempty"`
	Destination            string                 `json:"destination,omitempty" path:"destination,omitempty" url:"destination,omitempty"`
	ClonedFrom             int64                  `json:"cloned_from,omitempty" path:"cloned_from,omitempty" url:"cloned_from,omitempty"`
}

func (Automation) Identifier ¶

func (a Automation) Identifier() interface{}

func (*Automation) UnmarshalJSON ¶

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

type AutomationCollection ¶

type AutomationCollection []Automation

func (*AutomationCollection) ToSlice ¶

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

func (*AutomationCollection) UnmarshalJSON ¶

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

type AutomationCreateParams ¶

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

type AutomationDeleteParams ¶

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

type AutomationEnum ¶

type AutomationEnum string

func (AutomationEnum) Enum ¶

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

func (AutomationEnum) String ¶

func (u AutomationEnum) String() string

type AutomationFindParams ¶

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

type AutomationListParams ¶

type AutomationListParams struct {
	Action      string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy      map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter      Automation             `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt    map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq  map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt    map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq  map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	WithDeleted *bool                  `url:"with_deleted,omitempty" required:"false" json:"with_deleted,omitempty" path:"with_deleted"`
	ListParams
}

type AutomationManualRunParams ¶

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

Manually run automation

type AutomationRun ¶

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

func (AutomationRun) Identifier ¶

func (a AutomationRun) Identifier() interface{}

func (*AutomationRun) UnmarshalJSON ¶

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

type AutomationRunCollection ¶

type AutomationRunCollection []AutomationRun

func (*AutomationRunCollection) ToSlice ¶

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

func (*AutomationRunCollection) UnmarshalJSON ¶

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

type AutomationRunFindParams ¶

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

type AutomationRunListParams ¶

type AutomationRunListParams struct {
	UserId       int64                  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       AutomationRun          `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	AutomationId int64                  `url:"automation_id,omitempty" required:"true" json:"automation_id,omitempty" path:"automation_id"`
	ListParams
}

type AutomationTriggerEnum ¶

type AutomationTriggerEnum string

func (AutomationTriggerEnum) Enum ¶

func (AutomationTriggerEnum) String ¶

func (u AutomationTriggerEnum) String() string

type AutomationUpdateParams ¶

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

type BandwidthSnapshot ¶

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

func (BandwidthSnapshot) Identifier ¶

func (b BandwidthSnapshot) Identifier() interface{}

func (*BandwidthSnapshot) UnmarshalJSON ¶

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

type BandwidthSnapshotCollection ¶

type BandwidthSnapshotCollection []BandwidthSnapshot

func (*BandwidthSnapshotCollection) ToSlice ¶

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

func (*BandwidthSnapshotCollection) UnmarshalJSON ¶

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

type BandwidthSnapshotListParams ¶

type BandwidthSnapshotListParams struct {
	Action     string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy     map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     BandwidthSnapshot      `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type Behavior ¶

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

func (Behavior) Identifier ¶

func (b Behavior) Identifier() interface{}

func (*Behavior) UnmarshalJSON ¶

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

type BehaviorCollection ¶

type BehaviorCollection []Behavior

func (*BehaviorCollection) ToSlice ¶

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

func (*BehaviorCollection) UnmarshalJSON ¶

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

type BehaviorCreateParams ¶

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

type BehaviorDeleteParams ¶

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

type BehaviorFindParams ¶

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

type BehaviorListForParams ¶

type BehaviorListForParams struct {
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       Behavior               `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix map[string]interface{} `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Path         string                 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Recursive    string                 `url:"recursive,omitempty" required:"false" json:"recursive,omitempty" path:"recursive"`
	Behavior     string                 `url:"behavior,omitempty" required:"false" json:"behavior,omitempty" path:"behavior"`
	ListParams
}

type BehaviorListParams ¶

type BehaviorListParams struct {
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       Behavior               `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix map[string]interface{} `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

type BehaviorUpdateParams ¶

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

type BehaviorWebhookTestParams ¶

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

type BlogPost ¶ added in v2.0.276

type BlogPost struct {
	Id          int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Title       string     `json:"title,omitempty" path:"title,omitempty" url:"title,omitempty"`
	Content     string     `json:"content,omitempty" path:"content,omitempty" url:"content,omitempty"`
	Link        *time.Time `json:"link,omitempty" path:"link,omitempty" url:"link,omitempty"`
	PublishedAt *time.Time `json:"published_at,omitempty" path:"published_at,omitempty" url:"published_at,omitempty"`
}

func (BlogPost) Identifier ¶ added in v2.0.276

func (b BlogPost) Identifier() interface{}

func (*BlogPost) UnmarshalJSON ¶ added in v2.0.276

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

type BlogPostCollection ¶ added in v2.0.276

type BlogPostCollection []BlogPost

func (*BlogPostCollection) ToSlice ¶ added in v2.0.276

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

func (*BlogPostCollection) UnmarshalJSON ¶ added in v2.0.276

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

type BlogPostListParams ¶ added in v2.0.276

type BlogPostListParams struct {
	Action     string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy     map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     BlogPost               `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type Bundle ¶

type Bundle struct {
	Code                            string                 `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	ColorLeft                       string                 `json:"color_left,omitempty" path:"color_left,omitempty" url:"color_left,omitempty"`
	ColorLink                       string                 `json:"color_link,omitempty" path:"color_link,omitempty" url:"color_link,omitempty"`
	ColorText                       string                 `json:"color_text,omitempty" path:"color_text,omitempty" url:"color_text,omitempty"`
	ColorTop                        string                 `json:"color_top,omitempty" path:"color_top,omitempty" url:"color_top,omitempty"`
	ColorTopText                    string                 `json:"color_top_text,omitempty" path:"color_top_text,omitempty" url:"color_top_text,omitempty"`
	Url                             string                 `json:"url,omitempty" path:"url,omitempty" url:"url,omitempty"`
	Description                     string                 `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	ExpiresAt                       *time.Time             `json:"expires_at,omitempty" path:"expires_at,omitempty" url:"expires_at,omitempty"`
	PasswordProtected               *bool                  `json:"password_protected,omitempty" path:"password_protected,omitempty" url:"password_protected,omitempty"`
	Permissions                     string                 `json:"permissions,omitempty" path:"permissions,omitempty" url:"permissions,omitempty"`
	PreviewOnly                     *bool                  `json:"preview_only,omitempty" path:"preview_only,omitempty" url:"preview_only,omitempty"`
	RequireRegistration             *bool                  `json:"require_registration,omitempty" path:"require_registration,omitempty" url:"require_registration,omitempty"`
	RequireShareRecipient           *bool                  `json:"require_share_recipient,omitempty" path:"require_share_recipient,omitempty" url:"require_share_recipient,omitempty"`
	RequireLogout                   *bool                  `json:"require_logout,omitempty" path:"require_logout,omitempty" url:"require_logout,omitempty"`
	ClickwrapBody                   string                 `json:"clickwrap_body,omitempty" path:"clickwrap_body,omitempty" url:"clickwrap_body,omitempty"`
	FormFieldSet                    FormFieldSet           `json:"form_field_set,omitempty" path:"form_field_set,omitempty" url:"form_field_set,omitempty"`
	SkipName                        *bool                  `json:"skip_name,omitempty" path:"skip_name,omitempty" url:"skip_name,omitempty"`
	SkipEmail                       *bool                  `json:"skip_email,omitempty" path:"skip_email,omitempty" url:"skip_email,omitempty"`
	StartAccessOnDate               *time.Time             `json:"start_access_on_date,omitempty" path:"start_access_on_date,omitempty" url:"start_access_on_date,omitempty"`
	SkipCompany                     *bool                  `json:"skip_company,omitempty" path:"skip_company,omitempty" url:"skip_company,omitempty"`
	Id                              int64                  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	CreatedAt                       *time.Time             `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	DontSeparateSubmissionsByFolder *bool                  `` /* 157-byte string literal not displayed */
	MaxUses                         int64                  `json:"max_uses,omitempty" path:"max_uses,omitempty" url:"max_uses,omitempty"`
	Note                            string                 `json:"note,omitempty" path:"note,omitempty" url:"note,omitempty"`
	PathTemplate                    string                 `json:"path_template,omitempty" path:"path_template,omitempty" url:"path_template,omitempty"`
	SendEmailReceiptToUploader      *bool                  `` /* 142-byte string literal not displayed */
	SnapshotId                      int64                  `json:"snapshot_id,omitempty" path:"snapshot_id,omitempty" url:"snapshot_id,omitempty"`
	UserId                          int64                  `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	Username                        string                 `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	ClickwrapId                     int64                  `json:"clickwrap_id,omitempty" path:"clickwrap_id,omitempty" url:"clickwrap_id,omitempty"`
	InboxId                         int64                  `json:"inbox_id,omitempty" path:"inbox_id,omitempty" url:"inbox_id,omitempty"`
	WatermarkAttachment             Image                  `json:"watermark_attachment,omitempty" path:"watermark_attachment,omitempty" url:"watermark_attachment,omitempty"`
	WatermarkValue                  map[string]interface{} `json:"watermark_value,omitempty" path:"watermark_value,omitempty" url:"watermark_value,omitempty"`
	HasInbox                        *bool                  `json:"has_inbox,omitempty" path:"has_inbox,omitempty" url:"has_inbox,omitempty"`
	Paths                           []string               `json:"paths,omitempty" path:"paths,omitempty" url:"paths,omitempty"`
	Password                        string                 `json:"password,omitempty" path:"password,omitempty" url:"password,omitempty"`
	FormFieldSetId                  int64                  `json:"form_field_set_id,omitempty" path:"form_field_set_id,omitempty" url:"form_field_set_id,omitempty"`
	CreateSnapshot                  *bool                  `json:"create_snapshot,omitempty" path:"create_snapshot,omitempty" url:"create_snapshot,omitempty"`
	FinalizeSnapshot                *bool                  `json:"finalize_snapshot,omitempty" path:"finalize_snapshot,omitempty" url:"finalize_snapshot,omitempty"`
	WatermarkAttachmentFile         io.Reader              `` /* 127-byte string literal not displayed */
	WatermarkAttachmentDelete       *bool                  `` /* 133-byte string literal not displayed */
}

func (Bundle) Identifier ¶

func (b Bundle) Identifier() interface{}

func (*Bundle) UnmarshalJSON ¶

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

type BundleCollection ¶

type BundleCollection []Bundle

func (*BundleCollection) ToSlice ¶

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

func (*BundleCollection) UnmarshalJSON ¶

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

type BundleCreateParams ¶

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

type BundleDeleteParams ¶

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

type BundleDownload ¶

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

func (BundleDownload) Identifier ¶

func (b BundleDownload) Identifier() interface{}

func (*BundleDownload) UnmarshalJSON ¶

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

type BundleDownloadCollection ¶

type BundleDownloadCollection []BundleDownload

func (*BundleDownloadCollection) ToSlice ¶

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

func (*BundleDownloadCollection) UnmarshalJSON ¶

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

type BundleDownloadListParams ¶

type BundleDownloadListParams struct {
	Action               string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy               map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter               BundleDownload         `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt             map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq           map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt             map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq           map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	BundleId             int64                  `url:"bundle_id,omitempty" required:"false" json:"bundle_id,omitempty" path:"bundle_id"`
	BundleRegistrationId int64                  `url:"bundle_registration_id,omitempty" required:"false" json:"bundle_registration_id,omitempty" path:"bundle_registration_id"`
	ListParams
}

type BundleFindParams ¶

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

type BundleGetInfoParams ¶ added in v2.0.276

type BundleGetInfoParams struct {
	Code                   string `url:"code,omitempty" required:"true" json:"code,omitempty" path:"code"`
	BundleRegistrationCode string `` /* 131-byte string literal not displayed */
	RecipientCode          string `url:"recipient_code,omitempty" required:"false" json:"recipient_code,omitempty" path:"recipient_code"`
}

type BundleListParams ¶

type BundleListParams struct {
	UserId     int64                  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action     string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy     map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     Bundle                 `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type BundleMethodEnum ¶ added in v2.0.276

type BundleMethodEnum string

func (BundleMethodEnum) Enum ¶ added in v2.0.276

func (BundleMethodEnum) String ¶ added in v2.0.276

func (u BundleMethodEnum) String() string

type BundleNotification ¶

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

func (BundleNotification) Identifier ¶

func (b BundleNotification) Identifier() interface{}

func (*BundleNotification) UnmarshalJSON ¶

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

type BundleNotificationCollection ¶

type BundleNotificationCollection []BundleNotification

func (*BundleNotificationCollection) ToSlice ¶

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

func (*BundleNotificationCollection) UnmarshalJSON ¶

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

type BundleNotificationCreateParams ¶

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

type BundleNotificationDeleteParams ¶

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

type BundleNotificationFindParams ¶

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

type BundleNotificationListParams ¶

type BundleNotificationListParams struct {
	UserId int64                  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter BundleNotification     `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	ListParams
}

type BundleNotificationUpdateParams ¶

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

type BundlePermissionsEnum ¶

type BundlePermissionsEnum string

func (BundlePermissionsEnum) Enum ¶

func (BundlePermissionsEnum) String ¶

func (u BundlePermissionsEnum) String() string

type BundleRecipient ¶

type BundleRecipient struct {
	Company          string     `json:"company,omitempty" path:"company,omitempty" url:"company,omitempty"`
	Name             string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Note             string     `json:"note,omitempty" path:"note,omitempty" url:"note,omitempty"`
	Recipient        string     `json:"recipient,omitempty" path:"recipient,omitempty" url:"recipient,omitempty"`
	SentAt           *time.Time `json:"sent_at,omitempty" path:"sent_at,omitempty" url:"sent_at,omitempty"`
	UserId           int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	BundleId         int64      `json:"bundle_id,omitempty" path:"bundle_id,omitempty" url:"bundle_id,omitempty"`
	Method           string     `json:"method,omitempty" path:"method,omitempty" url:"method,omitempty"`
	ShareAfterCreate *bool      `json:"share_after_create,omitempty" path:"share_after_create,omitempty" url:"share_after_create,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" path:"user_id"`
	BundleId         int64                     `url:"bundle_id,omitempty" required:"true" json:"bundle_id,omitempty" path:"bundle_id"`
	Recipient        string                    `url:"recipient,omitempty" required:"true" json:"recipient,omitempty" path:"recipient"`
	Name             string                    `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Company          string                    `url:"company,omitempty" required:"false" json:"company,omitempty" path:"company"`
	Note             string                    `url:"note,omitempty" required:"false" json:"note,omitempty" path:"note"`
	Method           BundleRecipientMethodEnum `url:"method,omitempty" required:"false" json:"method,omitempty" path:"method"`
	ShareAfterCreate *bool                     `url:"share_after_create,omitempty" required:"false" json:"share_after_create,omitempty" path:"share_after_create"`
}

type BundleRecipientListParams ¶

type BundleRecipientListParams struct {
	UserId   int64                  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action   string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy   map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter   BundleRecipient        `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	BundleId int64                  `url:"bundle_id,omitempty" required:"true" json:"bundle_id,omitempty" path:"bundle_id"`
	ListParams
}

type BundleRecipientMethodEnum ¶ added in v2.0.276

type BundleRecipientMethodEnum string

func (BundleRecipientMethodEnum) Enum ¶ added in v2.0.276

func (BundleRecipientMethodEnum) String ¶ added in v2.0.276

func (u BundleRecipientMethodEnum) String() string

type BundleRecipientRegistration ¶ added in v2.0.276

type BundleRecipientRegistration struct {
	Code                   string `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	BundleRegistrationCode string `json:"bundle_registration_code,omitempty" path:"bundle_registration_code,omitempty" url:"bundle_registration_code,omitempty"`
	Recipient              string `json:"recipient,omitempty" path:"recipient,omitempty" url:"recipient,omitempty"`
	Name                   string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Company                string `json:"company,omitempty" path:"company,omitempty" url:"company,omitempty"`
	InboxCode              string `json:"inbox_code,omitempty" path:"inbox_code,omitempty" url:"inbox_code,omitempty"`
	BundleRecipientCode    string `json:"bundle_recipient_code,omitempty" path:"bundle_recipient_code,omitempty" url:"bundle_recipient_code,omitempty"`
}

func (*BundleRecipientRegistration) UnmarshalJSON ¶ added in v2.0.276

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

type BundleRecipientRegistrationCollection ¶ added in v2.0.276

type BundleRecipientRegistrationCollection []BundleRecipientRegistration

func (*BundleRecipientRegistrationCollection) ToSlice ¶ added in v2.0.276

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

func (*BundleRecipientRegistrationCollection) UnmarshalJSON ¶ added in v2.0.276

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

type BundleRecipientRegistrationCreateParams ¶ added in v2.0.276

type BundleRecipientRegistrationCreateParams struct {
	BundleRecipientCode string `url:"bundle_recipient_code,omitempty" required:"true" json:"bundle_recipient_code,omitempty" path:"bundle_recipient_code"`
}

type BundleRegistration ¶

type BundleRegistration struct {
	Code                            string                 `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	Name                            string                 `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Company                         string                 `json:"company,omitempty" path:"company,omitempty" url:"company,omitempty"`
	Email                           string                 `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	Ip                              string                 `json:"ip,omitempty" path:"ip,omitempty" url:"ip,omitempty"`
	InboxCode                       string                 `json:"inbox_code,omitempty" path:"inbox_code,omitempty" url:"inbox_code,omitempty"`
	ClickwrapBody                   string                 `json:"clickwrap_body,omitempty" path:"clickwrap_body,omitempty" url:"clickwrap_body,omitempty"`
	FormFieldSetId                  int64                  `json:"form_field_set_id,omitempty" path:"form_field_set_id,omitempty" url:"form_field_set_id,omitempty"`
	FormFieldData                   map[string]interface{} `json:"form_field_data,omitempty" path:"form_field_data,omitempty" url:"form_field_data,omitempty"`
	BundleCode                      string                 `json:"bundle_code,omitempty" path:"bundle_code,omitempty" url:"bundle_code,omitempty"`
	BundleId                        int64                  `json:"bundle_id,omitempty" path:"bundle_id,omitempty" url:"bundle_id,omitempty"`
	BundleRecipientId               int64                  `json:"bundle_recipient_id,omitempty" path:"bundle_recipient_id,omitempty" url:"bundle_recipient_id,omitempty"`
	CreatedAt                       *time.Time             `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	BundleRecipientRegistrationCode string                 `` /* 154-byte string literal not displayed */
	Password                        string                 `json:"password,omitempty" path:"password,omitempty" url:"password,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 BundleRegistrationCreateParams ¶ added in v2.0.276

type BundleRegistrationCreateParams struct {
	BundleRecipientRegistrationCode string `` /* 161-byte string literal not displayed */
	Password                        string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	Company                         string `url:"company,omitempty" required:"false" json:"company,omitempty" path:"company"`
	Email                           string `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	Name                            string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	BundleCode                      string `url:"bundle_code,omitempty" required:"true" json:"bundle_code,omitempty" path:"bundle_code"`
}

type BundleRegistrationLastActivityParams ¶ added in v2.0.276

type BundleRegistrationLastActivityParams struct {
	BundleRegistrationCode string `` /* 130-byte string literal not displayed */
	UploadInProgress       *bool  `url:"upload_in_progress,omitempty" required:"false" json:"upload_in_progress,omitempty" path:"upload_in_progress"`
}

type BundleRegistrationListParams ¶

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

type BundleShareParams ¶

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

Send email(s) with a link to bundle

type BundleUpdateParams ¶

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

type CallParams ¶

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

type Certificate ¶ added in v2.0.276

type Certificate struct {
	Id                         int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                       string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Certificate                string     `json:"certificate,omitempty" path:"certificate,omitempty" url:"certificate,omitempty"`
	CreatedAt                  *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	DisplayStatus              string     `json:"display_status,omitempty" path:"display_status,omitempty" url:"display_status,omitempty"`
	Domains                    []string   `json:"domains,omitempty" path:"domains,omitempty" url:"domains,omitempty"`
	ExpiresAt                  *time.Time `json:"expires_at,omitempty" path:"expires_at,omitempty" url:"expires_at,omitempty"`
	BrickManaged               *bool      `json:"brick_managed,omitempty" path:"brick_managed,omitempty" url:"brick_managed,omitempty"`
	Intermediates              string     `json:"intermediates,omitempty" path:"intermediates,omitempty" url:"intermediates,omitempty"`
	IpAddresses                []string   `json:"ip_addresses,omitempty" path:"ip_addresses,omitempty" url:"ip_addresses,omitempty"`
	Issuer                     string     `json:"issuer,omitempty" path:"issuer,omitempty" url:"issuer,omitempty"`
	KeyType                    string     `json:"key_type,omitempty" path:"key_type,omitempty" url:"key_type,omitempty"`
	Request                    string     `json:"request,omitempty" path:"request,omitempty" url:"request,omitempty"`
	Status                     string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	Subject                    string     `json:"subject,omitempty" path:"subject,omitempty" url:"subject,omitempty"`
	UpdatedAt                  *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
	CertificateDomain          string     `json:"certificate_domain,omitempty" path:"certificate_domain,omitempty" url:"certificate_domain,omitempty"`
	CertificateCountry         string     `json:"certificate_country,omitempty" path:"certificate_country,omitempty" url:"certificate_country,omitempty"`
	CertificateStateOrProvince string     `` /* 139-byte string literal not displayed */
	CertificateCityOrLocale    string     `` /* 130-byte string literal not displayed */
	CertificateCompanyName     string     `json:"certificate_company_name,omitempty" path:"certificate_company_name,omitempty" url:"certificate_company_name,omitempty"`
	CsrOu1                     string     `json:"csr_ou1,omitempty" path:"csr_ou1,omitempty" url:"csr_ou1,omitempty"`
	CsrOu2                     string     `json:"csr_ou2,omitempty" path:"csr_ou2,omitempty" url:"csr_ou2,omitempty"`
	CsrOu3                     string     `json:"csr_ou3,omitempty" path:"csr_ou3,omitempty" url:"csr_ou3,omitempty"`
	CertificateEmailAddress    string     `` /* 127-byte string literal not displayed */
	PrivateKey                 string     `json:"private_key,omitempty" path:"private_key,omitempty" url:"private_key,omitempty"`
	Password                   string     `json:"password,omitempty" path:"password,omitempty" url:"password,omitempty"`
}

func (Certificate) Identifier ¶ added in v2.0.276

func (c Certificate) Identifier() interface{}

func (*Certificate) UnmarshalJSON ¶ added in v2.0.276

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

type CertificateActivateParams ¶ added in v2.0.276

type CertificateActivateParams struct {
	Id          int64  `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	ReplaceCert string `url:"replace_cert,omitempty" required:"false" json:"replace_cert,omitempty" path:"replace_cert"`
}

Activate SSL Certificate

type CertificateCollection ¶ added in v2.0.276

type CertificateCollection []Certificate

func (*CertificateCollection) ToSlice ¶ added in v2.0.276

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

func (*CertificateCollection) UnmarshalJSON ¶ added in v2.0.276

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

type CertificateCreateParams ¶ added in v2.0.276

type CertificateCreateParams struct {
	Name                       string `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	CertificateDomain          string `url:"certificate_domain,omitempty" required:"false" json:"certificate_domain,omitempty" path:"certificate_domain"`
	CertificateCountry         string `url:"certificate_country,omitempty" required:"false" json:"certificate_country,omitempty" path:"certificate_country"`
	CertificateStateOrProvince string `` /* 146-byte string literal not displayed */
	CertificateCityOrLocale    string `` /* 137-byte string literal not displayed */
	CertificateCompanyName     string `` /* 131-byte string literal not displayed */
	CsrOu1                     string `url:"csr_ou1,omitempty" required:"false" json:"csr_ou1,omitempty" path:"csr_ou1"`
	CsrOu2                     string `url:"csr_ou2,omitempty" required:"false" json:"csr_ou2,omitempty" path:"csr_ou2"`
	CsrOu3                     string `url:"csr_ou3,omitempty" required:"false" json:"csr_ou3,omitempty" path:"csr_ou3"`
	CertificateEmailAddress    string `` /* 134-byte string literal not displayed */
	KeyType                    string `url:"key_type,omitempty" required:"false" json:"key_type,omitempty" path:"key_type"`
	Certificate                string `url:"certificate,omitempty" required:"false" json:"certificate,omitempty" path:"certificate"`
	PrivateKey                 string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
	Password                   string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	Intermediates              string `url:"intermediates,omitempty" required:"false" json:"intermediates,omitempty" path:"intermediates"`
}

type CertificateDeactivateParams ¶ added in v2.0.276

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

Deactivate SSL Certificate

type CertificateDeleteParams ¶ added in v2.0.276

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

type CertificateFindParams ¶ added in v2.0.276

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

type CertificateListParams ¶ added in v2.0.276

type CertificateListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type CertificateUpdateParams ¶ added in v2.0.276

type CertificateUpdateParams struct {
	Id            int64  `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Name          string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Intermediates string `url:"intermediates,omitempty" required:"false" json:"intermediates,omitempty" path:"intermediates"`
	Certificate   string `url:"certificate,omitempty" required:"false" json:"certificate,omitempty" path:"certificate"`
}

type ChildSite ¶ added in v2.0.276

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

func (*ChildSite) UnmarshalJSON ¶ added in v2.0.276

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

type ChildSiteCollection ¶ added in v2.0.276

type ChildSiteCollection []ChildSite

func (*ChildSiteCollection) ToSlice ¶ added in v2.0.276

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

func (*ChildSiteCollection) UnmarshalJSON ¶ added in v2.0.276

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

type ChildSiteCreateParams ¶ added in v2.0.276

type ChildSiteCreateParams struct {
	Name     string `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	Email    string `url:"email,omitempty" required:"true" json:"email,omitempty" path:"email"`
	Username string `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
	Password string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
}

type ChildSiteListParams ¶ added in v2.0.276

type ChildSiteListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type Click ¶ added in v2.0.276

type Click struct {
	Code      string `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	PartnerId int64  `json:"partner_id,omitempty" path:"partner_id,omitempty" url:"partner_id,omitempty"`
	Subid     string `json:"subid,omitempty" path:"subid,omitempty" url:"subid,omitempty"`
	Ip        string `json:"ip,omitempty" path:"ip,omitempty" url:"ip,omitempty"`
	Referer   string `json:"referer,omitempty" path:"referer,omitempty" url:"referer,omitempty"`
}

func (*Click) UnmarshalJSON ¶ added in v2.0.276

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

type ClickCollection ¶ added in v2.0.276

type ClickCollection []Click

func (*ClickCollection) ToSlice ¶ added in v2.0.276

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

func (*ClickCollection) UnmarshalJSON ¶ added in v2.0.276

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

type ClickCreateParams ¶ added in v2.0.276

type ClickCreateParams struct {
	PartnerId int64  `url:"partner_id,omitempty" required:"true" json:"partner_id,omitempty" path:"partner_id"`
	Subid     string `url:"subid,omitempty" required:"false" json:"subid,omitempty" path:"subid"`
	Ip        string `url:"ip,omitempty" required:"false" json:"ip,omitempty" path:"ip"`
	Referer   string `url:"referer,omitempty" required:"false" json:"referer,omitempty" path:"referer"`
}

type Clickwrap ¶

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

func (Clickwrap) Identifier ¶

func (c Clickwrap) Identifier() interface{}

func (*Clickwrap) UnmarshalJSON ¶

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

type ClickwrapCollection ¶

type ClickwrapCollection []Clickwrap

func (*ClickwrapCollection) ToSlice ¶

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

func (*ClickwrapCollection) UnmarshalJSON ¶

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

type ClickwrapCreateParams ¶

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

type ClickwrapDeleteParams ¶

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

type ClickwrapFindParams ¶

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

type ClickwrapListParams ¶

type ClickwrapListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type ClickwrapUpdateParams ¶

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

type ClickwrapUseWithBundlesEnum ¶

type ClickwrapUseWithBundlesEnum string

func (ClickwrapUseWithBundlesEnum) Enum ¶

func (ClickwrapUseWithBundlesEnum) String ¶

type ClickwrapUseWithInboxesEnum ¶

type ClickwrapUseWithInboxesEnum string

func (ClickwrapUseWithInboxesEnum) Enum ¶

func (ClickwrapUseWithInboxesEnum) String ¶

type ClickwrapUseWithUsersEnum ¶

type ClickwrapUseWithUsersEnum string

func (ClickwrapUseWithUsersEnum) Enum ¶

func (ClickwrapUseWithUsersEnum) String ¶

func (u ClickwrapUseWithUsersEnum) String() string

type Config ¶

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

	AdditionalHeaders map[string]string

	Debug     bool
	UserAgent string
	Environment
	FeatureFlags map[string]bool
	// contains filtered or unexported fields
}
var GlobalConfig Config

func (*Config) FeatureFlag ¶

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

func (*Config) GetAPIKey ¶

func (c *Config) GetAPIKey() string

func (*Config) GetHttpClient ¶

func (c *Config) GetHttpClient() HttpClient

func (*Config) GetRawClient ¶

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

func (*Config) InDebug ¶

func (c *Config) InDebug() bool

func (*Config) LogPath ¶

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

func (*Config) Logger ¶

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

func (*Config) RootPath ¶

func (c *Config) RootPath() string

func (*Config) SetHeaders ¶

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

func (*Config) SetHttpClient ¶

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

func (*Config) SetLogger ¶

func (c *Config) SetLogger(l Logger)

type CrashReport ¶ added in v2.0.276

type CrashReport struct {
	Id              int64     `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Build           string    `json:"build,omitempty" path:"build,omitempty" url:"build,omitempty"`
	Platform        string    `json:"platform,omitempty" path:"platform,omitempty" url:"platform,omitempty"`
	ProductName     string    `json:"product_name,omitempty" path:"product_name,omitempty" url:"product_name,omitempty"`
	Version         string    `json:"version,omitempty" path:"version,omitempty" url:"version,omitempty"`
	Comment         string    `json:"comment,omitempty" path:"comment,omitempty" url:"comment,omitempty"`
	Email           string    `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	PlatformVersion string    `json:"platform_version,omitempty" path:"platform_version,omitempty" url:"platform_version,omitempty"`
	ReleaseChannel  string    `json:"release_channel,omitempty" path:"release_channel,omitempty" url:"release_channel,omitempty"`
	DumpFile        io.Reader `json:"dump_file,omitempty" path:"dump_file,omitempty" url:"dump_file,omitempty"`
	LogFile         io.Reader `json:"log_file,omitempty" path:"log_file,omitempty" url:"log_file,omitempty"`
}

func (CrashReport) Identifier ¶ added in v2.0.276

func (c CrashReport) Identifier() interface{}

func (*CrashReport) UnmarshalJSON ¶ added in v2.0.276

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

type CrashReportCollection ¶ added in v2.0.276

type CrashReportCollection []CrashReport

func (*CrashReportCollection) ToSlice ¶ added in v2.0.276

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

func (*CrashReportCollection) UnmarshalJSON ¶ added in v2.0.276

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

type CrashReportCreateParams ¶ added in v2.0.276

type CrashReportCreateParams struct {
	Build           string    `url:"build,omitempty" required:"true" json:"build,omitempty" path:"build"`
	Platform        string    `url:"platform,omitempty" required:"true" json:"platform,omitempty" path:"platform"`
	ProductName     string    `url:"product_name,omitempty" required:"true" json:"product_name,omitempty" path:"product_name"`
	Version         string    `url:"version,omitempty" required:"true" json:"version,omitempty" path:"version"`
	Comment         string    `url:"comment,omitempty" required:"false" json:"comment,omitempty" path:"comment"`
	Email           string    `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	PlatformVersion string    `url:"platform_version,omitempty" required:"false" json:"platform_version,omitempty" path:"platform_version"`
	ReleaseChannel  string    `url:"release_channel,omitempty" required:"false" json:"release_channel,omitempty" path:"release_channel"`
	DumpFile        io.Writer `url:"dump_file,omitempty" required:"false" json:"dump_file,omitempty" path:"dump_file"`
	LogFile         io.Writer `url:"log_file,omitempty" required:"false" json:"log_file,omitempty" path:"log_file"`
}

type DashboardExport ¶ added in v2.0.276

type DashboardExport struct {
	Id           int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	StartAt      *time.Time `json:"start_at,omitempty" path:"start_at,omitempty" url:"start_at,omitempty"`
	EndAt        *time.Time `json:"end_at,omitempty" path:"end_at,omitempty" url:"end_at,omitempty"`
	DeliveredAt  *time.Time `json:"delivered_at,omitempty" path:"delivered_at,omitempty" url:"delivered_at,omitempty"`
	ExportStatus string     `json:"export_status,omitempty" path:"export_status,omitempty" url:"export_status,omitempty"`
	Resolution   int64      `json:"resolution,omitempty" path:"resolution,omitempty" url:"resolution,omitempty"`
	Series       []string   `json:"series,omitempty" path:"series,omitempty" url:"series,omitempty"`
	UserId       int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
}

func (DashboardExport) Identifier ¶ added in v2.0.276

func (d DashboardExport) Identifier() interface{}

func (*DashboardExport) UnmarshalJSON ¶ added in v2.0.276

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

type DashboardExportCollection ¶ added in v2.0.276

type DashboardExportCollection []DashboardExport

func (*DashboardExportCollection) ToSlice ¶ added in v2.0.276

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

func (*DashboardExportCollection) UnmarshalJSON ¶ added in v2.0.276

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

type DashboardExportCreateParams ¶ added in v2.0.276

type DashboardExportCreateParams struct {
	UserId  int64                    `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	StartAt *time.Time               `url:"start_at,omitempty" required:"true" json:"start_at,omitempty" path:"start_at"`
	EndAt   *time.Time               `url:"end_at,omitempty" required:"true" json:"end_at,omitempty" path:"end_at"`
	Series  []map[string]interface{} `url:"series,omitempty" required:"true" json:"series,omitempty" path:"series"`
}

type DashboardExportFindParams ¶ added in v2.0.276

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

type Data ¶

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

type DnsRecord ¶

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

func (DnsRecord) Identifier ¶

func (d DnsRecord) Identifier() interface{}

func (*DnsRecord) UnmarshalJSON ¶

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

type DnsRecordCollection ¶

type DnsRecordCollection []DnsRecord

func (*DnsRecordCollection) ToSlice ¶

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

func (*DnsRecordCollection) UnmarshalJSON ¶

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

type DnsRecordListParams ¶

type DnsRecordListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type EmailFeedback ¶ added in v2.0.276

type EmailFeedback struct {
}

func (*EmailFeedback) UnmarshalJSON ¶ added in v2.0.276

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

type EmailFeedbackCollection ¶ added in v2.0.276

type EmailFeedbackCollection []EmailFeedback

func (*EmailFeedbackCollection) ToSlice ¶ added in v2.0.276

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

func (*EmailFeedbackCollection) UnmarshalJSON ¶ added in v2.0.276

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

type EmailFeedbackCreateParams ¶ added in v2.0.276

type EmailFeedbackCreateParams struct {
	FeedbackParam FeedbackParam `url:"feedback,omitempty" required:"false" json:"feedback,omitempty" path:"feedback"`
}

type EmailIncomingMessage ¶

type EmailIncomingMessage struct {
	Id         int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	InboxId    int64      `json:"inbox_id,omitempty" path:"inbox_id,omitempty" url:"inbox_id,omitempty"`
	Sender     string     `json:"sender,omitempty" path:"sender,omitempty" url:"sender,omitempty"`
	SenderName string     `json:"sender_name,omitempty" path:"sender_name,omitempty" url:"sender_name,omitempty"`
	Status     string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	Body       string     `json:"body,omitempty" path:"body,omitempty" url:"body,omitempty"`
	Message    string     `json:"message,omitempty" path:"message,omitempty" url:"message,omitempty"`
	CreatedAt  *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

func (EmailIncomingMessage) Identifier ¶

func (e EmailIncomingMessage) Identifier() interface{}

func (*EmailIncomingMessage) UnmarshalJSON ¶

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

type EmailIncomingMessageCollection ¶

type EmailIncomingMessageCollection []EmailIncomingMessage

func (*EmailIncomingMessageCollection) ToSlice ¶

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

func (*EmailIncomingMessageCollection) UnmarshalJSON ¶

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

type EmailIncomingMessageListParams ¶

type EmailIncomingMessageListParams struct {
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       EmailIncomingMessage   `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt     map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix map[string]interface{} `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type EmailPreference ¶ added in v2.0.276

type EmailPreference struct {
	Email               string   `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	Notifications       []string `json:"notifications,omitempty" path:"notifications,omitempty" url:"notifications,omitempty"`
	BundleNotifications []string `json:"bundle_notifications,omitempty" path:"bundle_notifications,omitempty" url:"bundle_notifications,omitempty"`
	ReceiveAdminAlerts  *bool    `json:"receive_admin_alerts,omitempty" path:"receive_admin_alerts,omitempty" url:"receive_admin_alerts,omitempty"`
}

func (*EmailPreference) UnmarshalJSON ¶ added in v2.0.276

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

type EmailPreferenceBundleNotification ¶ added in v2.0.276

type EmailPreferenceBundleNotification struct {
	Id           int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	BundleCode   string `json:"bundle_code,omitempty" path:"bundle_code,omitempty" url:"bundle_code,omitempty"`
	Unsubscribed *bool  `json:"unsubscribed,omitempty" path:"unsubscribed,omitempty" url:"unsubscribed,omitempty"`
}

func (EmailPreferenceBundleNotification) Identifier ¶ added in v2.0.276

func (e EmailPreferenceBundleNotification) Identifier() interface{}

func (*EmailPreferenceBundleNotification) UnmarshalJSON ¶ added in v2.0.276

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

type EmailPreferenceBundleNotificationCollection ¶ added in v2.0.276

type EmailPreferenceBundleNotificationCollection []EmailPreferenceBundleNotification

func (*EmailPreferenceBundleNotificationCollection) ToSlice ¶ added in v2.0.276

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

func (*EmailPreferenceBundleNotificationCollection) UnmarshalJSON ¶ added in v2.0.276

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

type EmailPreferenceCollection ¶ added in v2.0.276

type EmailPreferenceCollection []EmailPreference

func (*EmailPreferenceCollection) ToSlice ¶ added in v2.0.276

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

func (*EmailPreferenceCollection) UnmarshalJSON ¶ added in v2.0.276

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

type EmailPreferenceGetParams ¶ added in v2.0.276

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

type EmailPreferenceNotification ¶ added in v2.0.276

type EmailPreferenceNotification struct {
	Id           int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Path         string `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	SendInterval string `json:"send_interval,omitempty" path:"send_interval,omitempty" url:"send_interval,omitempty"`
	Unsubscribed *bool  `json:"unsubscribed,omitempty" path:"unsubscribed,omitempty" url:"unsubscribed,omitempty"`
}

func (EmailPreferenceNotification) Identifier ¶ added in v2.0.276

func (e EmailPreferenceNotification) Identifier() interface{}

func (*EmailPreferenceNotification) UnmarshalJSON ¶ added in v2.0.276

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

type EmailPreferenceNotificationCollection ¶ added in v2.0.276

type EmailPreferenceNotificationCollection []EmailPreferenceNotification

func (*EmailPreferenceNotificationCollection) ToSlice ¶ added in v2.0.276

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

func (*EmailPreferenceNotificationCollection) UnmarshalJSON ¶ added in v2.0.276

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

type EmailPreferenceUpdateParams ¶ added in v2.0.276

type EmailPreferenceUpdateParams struct {
	Token     string    `url:"-,omitempty" required:"false" json:"-,omitempty" path:"token"`
	UserParam UserParam `url:"user,omitempty" required:"false" json:"user,omitempty" path:"user"`
}

type Environment ¶

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

func NewEnvironment ¶

func NewEnvironment(env string) Environment

func (Environment) Endpoint ¶

func (e Environment) Endpoint() string

func (Environment) String ¶

func (e Environment) String() string

type Errors ¶

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

func (*Errors) UnmarshalJSON ¶

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

type ErrorsCollection ¶

type ErrorsCollection []Errors

func (*ErrorsCollection) ToSlice ¶

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

func (*ErrorsCollection) UnmarshalJSON ¶

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

type EtagsParam ¶

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

type ExternalEvent ¶

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

func (ExternalEvent) Identifier ¶

func (e ExternalEvent) Identifier() interface{}

func (*ExternalEvent) UnmarshalJSON ¶

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

type ExternalEventCollection ¶

type ExternalEventCollection []ExternalEvent

func (*ExternalEventCollection) ToSlice ¶

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

func (*ExternalEventCollection) UnmarshalJSON ¶

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

type ExternalEventCreateParams ¶

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

type ExternalEventFindParams ¶

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

type ExternalEventListParams ¶

type ExternalEventListParams struct {
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       ExternalEvent          `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt     map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix map[string]interface{} `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type ExternalEventStatusEnum ¶

type ExternalEventStatusEnum string

func (ExternalEventStatusEnum) Enum ¶

func (ExternalEventStatusEnum) String ¶

func (u ExternalEventStatusEnum) String() string

type FeedbackParam ¶ added in v2.0.276

type FeedbackParam struct {
	Email  string `url:"email,omitempty" json:"email,omitempty" path:"email"`
	Reason string `url:"reason,omitempty" json:"reason,omitempty" path:"reason"`
}

type File ¶

type File struct {
	Path                   string                 `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	DisplayName            string                 `json:"display_name,omitempty" path:"display_name,omitempty" url:"display_name,omitempty"`
	Type                   string                 `json:"type,omitempty" path:"type,omitempty" url:"type,omitempty"`
	Size                   int64                  `json:"size,omitempty" path:"size,omitempty" url:"size,omitempty"`
	CreatedAt              *time.Time             `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Mtime                  *time.Time             `json:"mtime,omitempty" path:"mtime,omitempty" url:"mtime,omitempty"`
	ProvidedMtime          *time.Time             `json:"provided_mtime,omitempty" path:"provided_mtime,omitempty" url:"provided_mtime,omitempty"`
	Crc32                  string                 `json:"crc32,omitempty" path:"crc32,omitempty" url:"crc32,omitempty"`
	Md5                    string                 `json:"md5,omitempty" path:"md5,omitempty" url:"md5,omitempty"`
	MimeType               string                 `json:"mime_type,omitempty" path:"mime_type,omitempty" url:"mime_type,omitempty"`
	Region                 string                 `json:"region,omitempty" path:"region,omitempty" url:"region,omitempty"`
	Permissions            string                 `json:"permissions,omitempty" path:"permissions,omitempty" url:"permissions,omitempty"`
	SubfoldersLocked       *bool                  `json:"subfolders_locked?,omitempty" path:"subfolders_locked?,omitempty" url:"subfolders_locked?,omitempty"`
	IsLocked               *bool                  `json:"is_locked,omitempty" path:"is_locked,omitempty" url:"is_locked,omitempty"`
	RemoteServerId         int64                  `json:"remote_server_id,omitempty" path:"remote_server_id,omitempty" url:"remote_server_id,omitempty"`
	Headers                map[string]interface{} `json:"headers,omitempty" path:"headers,omitempty" url:"headers,omitempty"`
	SocksIps               map[string]interface{} `json:"socks_ips,omitempty" path:"socks_ips,omitempty" url:"socks_ips,omitempty"`
	InternalDownloadUri    string                 `json:"internal_download_uri,omitempty" path:"internal_download_uri,omitempty" url:"internal_download_uri,omitempty"`
	DownloadUri            string                 `json:"download_uri,omitempty" path:"download_uri,omitempty" url:"download_uri,omitempty"`
	PriorityColor          string                 `json:"priority_color,omitempty" path:"priority_color,omitempty" url:"priority_color,omitempty"`
	PreviewId              int64                  `json:"preview_id,omitempty" path:"preview_id,omitempty" url:"preview_id,omitempty"`
	Preview                Preview                `json:"preview,omitempty" path:"preview,omitempty" url:"preview,omitempty"`
	CopyDestination        string                 `json:"copy_destination,omitempty" path:"copy_destination,omitempty" url:"copy_destination,omitempty"`
	MoveDestination        string                 `json:"move_destination,omitempty" path:"move_destination,omitempty" url:"move_destination,omitempty"`
	Action                 string                 `json:"action,omitempty" path:"action,omitempty" url:"action,omitempty"`
	File                   map[string]interface{} `json:"file,omitempty" path:"file,omitempty" url:"file,omitempty"`
	Crc32b                 string                 `json:"crc32b,omitempty" path:"crc32b,omitempty" url:"crc32b,omitempty"`
	Length                 int64                  `json:"length,omitempty" path:"length,omitempty" url:"length,omitempty"`
	MkdirParents           *bool                  `json:"mkdir_parents,omitempty" path:"mkdir_parents,omitempty" url:"mkdir_parents,omitempty"`
	Part                   int64                  `json:"part,omitempty" path:"part,omitempty" url:"part,omitempty"`
	Parts                  int64                  `json:"parts,omitempty" path:"parts,omitempty" url:"parts,omitempty"`
	PreferSpdy             *bool                  `json:"prefer_spdy,omitempty" path:"prefer_spdy,omitempty" url:"prefer_spdy,omitempty"`
	Ref                    string                 `json:"ref,omitempty" path:"ref,omitempty" url:"ref,omitempty"`
	Restart                int64                  `json:"restart,omitempty" path:"restart,omitempty" url:"restart,omitempty"`
	Structure              string                 `json:"structure,omitempty" path:"structure,omitempty" url:"structure,omitempty"`
	WithRename             *bool                  `json:"with_rename,omitempty" path:"with_rename,omitempty" url:"with_rename,omitempty"`
	InboxRegistrationCode  string                 `json:"inbox_registration_code,omitempty" path:"inbox_registration_code,omitempty" url:"inbox_registration_code,omitempty"`
	BundleRegistrationCode string                 `json:"bundle_registration_code,omitempty" path:"bundle_registration_code,omitempty" url:"bundle_registration_code,omitempty"`
}

func (File) Identifier ¶

func (f File) Identifier() interface{}

func (File) IsDir ¶

func (f File) IsDir() bool

func (File) Iterable ¶

func (f File) Iterable() bool

func (File) String ¶

func (f File) String() string

func (File) ToFolder ¶

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

func (*File) UnmarshalJSON ¶

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

type FileAction ¶

type FileAction struct {
	Status          string `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	FileMigrationId int64  `json:"file_migration_id,omitempty" path:"file_migration_id,omitempty" url:"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:"false" json:"-,omitempty" path:"path"`
	MkdirParents           *bool  `url:"mkdir_parents,omitempty" required:"false" json:"mkdir_parents,omitempty" path:"mkdir_parents"`
	Part                   int64  `url:"part,omitempty" required:"false" json:"part,omitempty" path:"part"`
	Parts                  int64  `url:"parts,omitempty" required:"false" json:"parts,omitempty" path:"parts"`
	PreferSpdy             *bool  `url:"prefer_spdy,omitempty" required:"false" json:"prefer_spdy,omitempty" path:"prefer_spdy"`
	Ref                    string `url:"ref,omitempty" required:"false" json:"ref,omitempty" path:"ref"`
	Restart                int64  `url:"restart,omitempty" required:"false" json:"restart,omitempty" path:"restart"`
	Size                   int64  `url:"size,omitempty" required:"false" json:"size,omitempty" path:"size"`
	WithRename             *bool  `url:"with_rename,omitempty" required:"false" json:"with_rename,omitempty" path:"with_rename"`
	Action                 string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	BundleRegistrationCode string `` /* 131-byte string literal not displayed */
}

Begin file upload

type FileCollection ¶

type FileCollection []File

func (*FileCollection) ToSlice ¶

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

func (*FileCollection) UnmarshalJSON ¶

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

type FileComment ¶

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

func (FileComment) Identifier ¶

func (f FileComment) Identifier() interface{}

func (*FileComment) UnmarshalJSON ¶

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

type FileCommentCollection ¶

type FileCommentCollection []FileComment

func (*FileCommentCollection) ToSlice ¶

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

func (*FileCommentCollection) UnmarshalJSON ¶

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

type FileCommentCreateParams ¶

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

type FileCommentDeleteParams ¶

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

type FileCommentListForParams ¶

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

type FileCommentReaction ¶

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

func (FileCommentReaction) Identifier ¶

func (f FileCommentReaction) Identifier() interface{}

func (*FileCommentReaction) UnmarshalJSON ¶

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

type FileCommentReactionCollection ¶

type FileCommentReactionCollection []FileCommentReaction

func (*FileCommentReactionCollection) ToSlice ¶

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

func (*FileCommentReactionCollection) UnmarshalJSON ¶

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

type FileCommentReactionCreateParams ¶

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

type FileCommentReactionDeleteParams ¶

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

type FileCommentUpdateParams ¶

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

type FileCopyParams ¶

type FileCopyParams struct {
	Path                   string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Destination            string `url:"destination,omitempty" required:"true" json:"destination,omitempty" path:"destination"`
	Structure              *bool  `url:"structure,omitempty" required:"false" json:"structure,omitempty" path:"structure"`
	BundleRegistrationCode string `` /* 131-byte string literal not displayed */
}

Copy file/folder

type FileCreateParams ¶

type FileCreateParams struct {
	Path                   string                 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	CopyDestination        string                 `url:"copy_destination,omitempty" required:"false" json:"copy_destination,omitempty" path:"copy_destination"`
	MoveDestination        string                 `url:"move_destination,omitempty" required:"false" json:"move_destination,omitempty" path:"move_destination"`
	Action                 string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	File                   map[string]interface{} `url:"file,omitempty" required:"false" json:"file,omitempty" path:"file"`
	Crc32                  string                 `url:"crc32,omitempty" required:"false" json:"crc32,omitempty" path:"crc32"`
	Crc32b                 string                 `url:"crc32b,omitempty" required:"false" json:"crc32b,omitempty" path:"crc32b"`
	EtagsParam             []EtagsParam           `url:"etags,omitempty" required:"false" json:"etags,omitempty" path:"etags"`
	Length                 int64                  `url:"length,omitempty" required:"false" json:"length,omitempty" path:"length"`
	Md5                    string                 `url:"md5,omitempty" required:"false" json:"md5,omitempty" path:"md5"`
	MkdirParents           *bool                  `url:"mkdir_parents,omitempty" required:"false" json:"mkdir_parents,omitempty" path:"mkdir_parents"`
	Part                   int64                  `url:"part,omitempty" required:"false" json:"part,omitempty" path:"part"`
	Parts                  int64                  `url:"parts,omitempty" required:"false" json:"parts,omitempty" path:"parts"`
	PreferSpdy             *bool                  `url:"prefer_spdy,omitempty" required:"false" json:"prefer_spdy,omitempty" path:"prefer_spdy"`
	ProvidedMtime          *time.Time             `url:"provided_mtime,omitempty" required:"false" json:"provided_mtime,omitempty" path:"provided_mtime"`
	Ref                    string                 `url:"ref,omitempty" required:"false" json:"ref,omitempty" path:"ref"`
	Restart                int64                  `url:"restart,omitempty" required:"false" json:"restart,omitempty" path:"restart"`
	Size                   int64                  `url:"size,omitempty" required:"false" json:"size,omitempty" path:"size"`
	Structure              string                 `url:"structure,omitempty" required:"false" json:"structure,omitempty" path:"structure"`
	WithRename             *bool                  `url:"with_rename,omitempty" required:"false" json:"with_rename,omitempty" path:"with_rename"`
	InboxRegistrationCode  string                 `` /* 128-byte string literal not displayed */
	BundleRegistrationCode string                 `` /* 131-byte string literal not displayed */
}

type FileDeleteParams ¶

type FileDeleteParams struct {
	Path                   string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Recursive              *bool  `url:"recursive,omitempty" required:"false" json:"recursive,omitempty" path:"recursive"`
	BundleRegistrationCode string `` /* 131-byte string literal not displayed */
}

type FileDownloadParams ¶

type FileDownloadParams struct {
	Path                   string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Action                 string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	BundleRegistrationCode string `` /* 131-byte string literal not displayed */
	PreferSpdy             *bool  `url:"prefer_spdy,omitempty" required:"false" json:"prefer_spdy,omitempty" path:"prefer_spdy"`
	PreviewSize            string `url:"preview_size,omitempty" required:"false" json:"preview_size,omitempty" path:"preview_size"`
	WithPreviews           *bool  `url:"with_previews,omitempty" required:"false" json:"with_previews,omitempty" path:"with_previews"`
	WithPriorityColor      *bool  `url:"with_priority_color,omitempty" required:"false" json:"with_priority_color,omitempty" path:"with_priority_color"`
	File                   File   `url:"-,omitempty" required:"false" json:"-,omitempty"`
}

Download file

type FileFindIdParams ¶ added in v2.0.276

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

type FileFindParams ¶

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

type FileMigration ¶

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

func (FileMigration) Identifier ¶

func (f FileMigration) Identifier() interface{}

func (*FileMigration) UnmarshalJSON ¶

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

type FileMigrationCollection ¶

type FileMigrationCollection []FileMigration

func (*FileMigrationCollection) ToSlice ¶

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

func (*FileMigrationCollection) UnmarshalJSON ¶

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

type FileMigrationFindParams ¶

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

type FileMigrationListParams ¶ added in v2.0.276

type FileMigrationListParams struct {
	UserId int64  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type FileMoveParams ¶

type FileMoveParams struct {
	Path                   string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Destination            string `url:"destination,omitempty" required:"true" json:"destination,omitempty" path:"destination"`
	BundleRegistrationCode string `` /* 131-byte string literal not displayed */
}

Move file/folder

type FileUpdateParams ¶

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

type FileUploadPart ¶

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

func (FileUploadPart) Identifier ¶

func (f FileUploadPart) Identifier() interface{}

func (*FileUploadPart) UnmarshalJSON ¶

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

type FileUploadPartCollection ¶

type FileUploadPartCollection []FileUploadPart

func (*FileUploadPartCollection) ToSlice ¶

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

func (*FileUploadPartCollection) UnmarshalJSON ¶

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

type FilesMigrationLog ¶

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

type FilesMigrationLogIter ¶

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

func (*FilesMigrationLogIter) Current ¶

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

func (*FilesMigrationLogIter) Err ¶

func (l *FilesMigrationLogIter) Err() error

func (FilesMigrationLogIter) Init ¶

func (*FilesMigrationLogIter) Next ¶

func (l *FilesMigrationLogIter) Next() bool

type Folder ¶

type Folder struct {
	Path                   string                 `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	DisplayName            string                 `json:"display_name,omitempty" path:"display_name,omitempty" url:"display_name,omitempty"`
	Type                   string                 `json:"type,omitempty" path:"type,omitempty" url:"type,omitempty"`
	Size                   int64                  `json:"size,omitempty" path:"size,omitempty" url:"size,omitempty"`
	CreatedAt              *time.Time             `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Mtime                  *time.Time             `json:"mtime,omitempty" path:"mtime,omitempty" url:"mtime,omitempty"`
	ProvidedMtime          *time.Time             `json:"provided_mtime,omitempty" path:"provided_mtime,omitempty" url:"provided_mtime,omitempty"`
	Crc32                  string                 `json:"crc32,omitempty" path:"crc32,omitempty" url:"crc32,omitempty"`
	Md5                    string                 `json:"md5,omitempty" path:"md5,omitempty" url:"md5,omitempty"`
	MimeType               string                 `json:"mime_type,omitempty" path:"mime_type,omitempty" url:"mime_type,omitempty"`
	Region                 string                 `json:"region,omitempty" path:"region,omitempty" url:"region,omitempty"`
	Permissions            string                 `json:"permissions,omitempty" path:"permissions,omitempty" url:"permissions,omitempty"`
	SubfoldersLocked       *bool                  `json:"subfolders_locked?,omitempty" path:"subfolders_locked?,omitempty" url:"subfolders_locked?,omitempty"`
	IsLocked               *bool                  `json:"is_locked,omitempty" path:"is_locked,omitempty" url:"is_locked,omitempty"`
	RemoteServerId         int64                  `json:"remote_server_id,omitempty" path:"remote_server_id,omitempty" url:"remote_server_id,omitempty"`
	Headers                map[string]interface{} `json:"headers,omitempty" path:"headers,omitempty" url:"headers,omitempty"`
	SocksIps               map[string]interface{} `json:"socks_ips,omitempty" path:"socks_ips,omitempty" url:"socks_ips,omitempty"`
	InternalDownloadUri    string                 `json:"internal_download_uri,omitempty" path:"internal_download_uri,omitempty" url:"internal_download_uri,omitempty"`
	DownloadUri            string                 `json:"download_uri,omitempty" path:"download_uri,omitempty" url:"download_uri,omitempty"`
	PriorityColor          string                 `json:"priority_color,omitempty" path:"priority_color,omitempty" url:"priority_color,omitempty"`
	PreviewId              int64                  `json:"preview_id,omitempty" path:"preview_id,omitempty" url:"preview_id,omitempty"`
	Preview                Preview                `json:"preview,omitempty" path:"preview,omitempty" url:"preview,omitempty"`
	MkdirParents           *bool                  `json:"mkdir_parents,omitempty" path:"mkdir_parents,omitempty" url:"mkdir_parents,omitempty"`
	BundleRegistrationCode string                 `json:"bundle_registration_code,omitempty" path:"bundle_registration_code,omitempty" url:"bundle_registration_code,omitempty"`
}

func (Folder) Identifier ¶

func (f Folder) Identifier() interface{}

func (Folder) IsDir ¶

func (f Folder) IsDir() bool

func (*Folder) ToFile ¶

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

func (*Folder) UnmarshalJSON ¶

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

type FolderCollection ¶

type FolderCollection []Folder

func (*FolderCollection) ToSlice ¶

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

func (*FolderCollection) UnmarshalJSON ¶

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

type FolderCreateParams ¶

type FolderCreateParams struct {
	Path                   string     `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	MkdirParents           *bool      `url:"mkdir_parents,omitempty" required:"false" json:"mkdir_parents,omitempty" path:"mkdir_parents"`
	ProvidedMtime          *time.Time `url:"provided_mtime,omitempty" required:"false" json:"provided_mtime,omitempty" path:"provided_mtime"`
	BundleRegistrationCode string     `` /* 131-byte string literal not displayed */
}

type FolderListForParams ¶

type FolderListForParams struct {
	Action                 string                              `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	Path                   string                              `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	BundleRegistrationCode string                              `` /* 131-byte string literal not displayed */
	Filter                 string                              `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	PreviewSize            string                              `url:"preview_size,omitempty" required:"false" json:"preview_size,omitempty" path:"preview_size"`
	SortBy                 map[string]interface{}              `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Search                 string                              `url:"search,omitempty" required:"false" json:"search,omitempty" path:"search"`
	SearchAll              *bool                               `url:"search_all,omitempty" required:"false" json:"search_all,omitempty" path:"search_all"`
	WithPreviews           *bool                               `url:"with_previews,omitempty" required:"false" json:"with_previews,omitempty" path:"with_previews"`
	WithPriorityColor      *bool                               `url:"with_priority_color,omitempty" required:"false" json:"with_priority_color,omitempty" path:"with_priority_color"`
	ConcurrencyManager     lib.ConcurrencyManagerWithSubWorker `url:"-" required:"false" json:"-"`
	ListParams
}

type FormField ¶

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

func (FormField) Identifier ¶

func (f FormField) Identifier() interface{}

func (*FormField) UnmarshalJSON ¶

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

type FormFieldCollection ¶

type FormFieldCollection []FormField

func (*FormFieldCollection) ToSlice ¶

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

func (*FormFieldCollection) UnmarshalJSON ¶

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

type FormFieldSet ¶

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

func (FormFieldSet) Identifier ¶

func (f FormFieldSet) Identifier() interface{}

func (*FormFieldSet) UnmarshalJSON ¶

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

type FormFieldSetCollection ¶

type FormFieldSetCollection []FormFieldSet

func (*FormFieldSetCollection) ToSlice ¶

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

func (*FormFieldSetCollection) UnmarshalJSON ¶

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

type FormFieldSetCreateParams ¶

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

type FormFieldSetDeleteParams ¶

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

type FormFieldSetFindParams ¶

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

type FormFieldSetListParams ¶

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

type FormFieldSetUpdateParams ¶

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

type FrontEndServer ¶ added in v2.0.276

type FrontEndServer struct {
	Ip                    string         `json:"ip,omitempty" path:"ip,omitempty" url:"ip,omitempty"`
	ExternalIp            string         `json:"external_ip,omitempty" path:"external_ip,omitempty" url:"external_ip,omitempty"`
	Assigned              string         `json:"assigned,omitempty" path:"assigned,omitempty" url:"assigned,omitempty"`
	Site                  SslCertificate `json:"site,omitempty" path:"site,omitempty" url:"site,omitempty"`
	FtpEnabled            string         `json:"ftp_enabled,omitempty" path:"ftp_enabled,omitempty" url:"ftp_enabled,omitempty"`
	SftpEnabled           string         `json:"sftp_enabled,omitempty" path:"sftp_enabled,omitempty" url:"sftp_enabled,omitempty"`
	SftpHostKeyType       string         `json:"sftp_host_key_type,omitempty" path:"sftp_host_key_type,omitempty" url:"sftp_host_key_type,omitempty"`
	SftpHostKeyPrivateKey string         `` /* 127-byte string literal not displayed */
	SiteId                string         `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	MotdText              string         `json:"motd_text,omitempty" path:"motd_text,omitempty" url:"motd_text,omitempty"`
	MotdUseForFtp         *bool          `json:"motd_use_for_ftp,omitempty" path:"motd_use_for_ftp,omitempty" url:"motd_use_for_ftp,omitempty"`
	MotdUseForSftp        *bool          `json:"motd_use_for_sftp,omitempty" path:"motd_use_for_sftp,omitempty" url:"motd_use_for_sftp,omitempty"`
	PairType              string         `json:"pair_type,omitempty" path:"pair_type,omitempty" url:"pair_type,omitempty"`
	Name                  string         `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Hostname              string         `json:"hostname,omitempty" path:"hostname,omitempty" url:"hostname,omitempty"`
	Zone                  string         `json:"zone,omitempty" path:"zone,omitempty" url:"zone,omitempty"`
	Ips                   []string       `json:"ips,omitempty" path:"ips,omitempty" url:"ips,omitempty"`
	PrimaryIp             string         `json:"primary_ip,omitempty" path:"primary_ip,omitempty" url:"primary_ip,omitempty"`
	PrimaryIpPublic       string         `json:"primary_ip_public,omitempty" path:"primary_ip_public,omitempty" url:"primary_ip_public,omitempty"`
	SooIp                 string         `json:"soo_ip,omitempty" path:"soo_ip,omitempty" url:"soo_ip,omitempty"`
	SooIpPublic           string         `json:"soo_ip_public,omitempty" path:"soo_ip_public,omitempty" url:"soo_ip_public,omitempty"`
	ExavaultIp            string         `json:"exavault_ip,omitempty" path:"exavault_ip,omitempty" url:"exavault_ip,omitempty"`
	ExavaultIpPublic      string         `json:"exavault_ip_public,omitempty" path:"exavault_ip_public,omitempty" url:"exavault_ip_public,omitempty"`
	ExavaultSooIp         string         `json:"exavault_soo_ip,omitempty" path:"exavault_soo_ip,omitempty" url:"exavault_soo_ip,omitempty"`
	ExavaultSooIpPublic   string         `json:"exavault_soo_ip_public,omitempty" path:"exavault_soo_ip_public,omitempty" url:"exavault_soo_ip_public,omitempty"`
}

func (*FrontEndServer) UnmarshalJSON ¶ added in v2.0.276

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

type FrontEndServerCollection ¶ added in v2.0.276

type FrontEndServerCollection []FrontEndServer

func (*FrontEndServerCollection) ToSlice ¶ added in v2.0.276

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

func (*FrontEndServerCollection) UnmarshalJSON ¶ added in v2.0.276

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

type FrontEndServerCreateParams ¶ added in v2.0.276

type FrontEndServerCreateParams struct {
	Name                string     `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	Hostname            string     `url:"hostname,omitempty" required:"false" json:"hostname,omitempty" path:"hostname"`
	Zone                string     `url:"zone,omitempty" required:"false" json:"zone,omitempty" path:"zone"`
	Ips                 []string   `url:"ips,omitempty" required:"false" json:"ips,omitempty" path:"ips"`
	IpsParam            []IpsParam `url:"ips,omitempty" required:"false" json:"ips,omitempty" path:"ips"`
	PrimaryIp           string     `url:"primary_ip,omitempty" required:"false" json:"primary_ip,omitempty" path:"primary_ip"`
	PrimaryIpPublic     string     `url:"primary_ip_public,omitempty" required:"false" json:"primary_ip_public,omitempty" path:"primary_ip_public"`
	SooIp               string     `url:"soo_ip,omitempty" required:"false" json:"soo_ip,omitempty" path:"soo_ip"`
	SooIpPublic         string     `url:"soo_ip_public,omitempty" required:"false" json:"soo_ip_public,omitempty" path:"soo_ip_public"`
	ExavaultIp          string     `url:"exavault_ip,omitempty" required:"false" json:"exavault_ip,omitempty" path:"exavault_ip"`
	ExavaultIpPublic    string     `url:"exavault_ip_public,omitempty" required:"false" json:"exavault_ip_public,omitempty" path:"exavault_ip_public"`
	ExavaultSooIp       string     `url:"exavault_soo_ip,omitempty" required:"false" json:"exavault_soo_ip,omitempty" path:"exavault_soo_ip"`
	ExavaultSooIpPublic string     `url:"exavault_soo_ip_public,omitempty" required:"false" json:"exavault_soo_ip_public,omitempty" path:"exavault_soo_ip_public"`
}

type FrontendMetric ¶ added in v2.0.276

type FrontendMetric struct {
	MetricType string `json:"metric_type,omitempty" path:"metric_type,omitempty" url:"metric_type,omitempty"`
	Subkey     string `json:"subkey,omitempty" path:"subkey,omitempty" url:"subkey,omitempty"`
	Ms         int64  `json:"ms,omitempty" path:"ms,omitempty" url:"ms,omitempty"`
}

func (*FrontendMetric) UnmarshalJSON ¶ added in v2.0.276

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

type FrontendMetricCollection ¶ added in v2.0.276

type FrontendMetricCollection []FrontendMetric

func (*FrontendMetricCollection) ToSlice ¶ added in v2.0.276

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

func (*FrontendMetricCollection) UnmarshalJSON ¶ added in v2.0.276

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

type FrontendMetricCreateParams ¶ added in v2.0.276

type FrontendMetricCreateParams struct {
	MetricType FrontendMetricMetricTypeEnum `url:"metric_type,omitempty" required:"true" json:"metric_type,omitempty" path:"metric_type"`
	Subkey     string                       `url:"subkey,omitempty" required:"true" json:"subkey,omitempty" path:"subkey"`
	Ms         int64                        `url:"ms,omitempty" required:"false" json:"ms,omitempty" path:"ms"`
}

type FrontendMetricMetricTypeEnum ¶ added in v2.0.276

type FrontendMetricMetricTypeEnum string

func (FrontendMetricMetricTypeEnum) Enum ¶ added in v2.0.276

func (FrontendMetricMetricTypeEnum) String ¶ added in v2.0.276

type GpgKey ¶ added in v2.0.228

type GpgKey struct {
	Id                 int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	ExpiresAt          *time.Time `json:"expires_at,omitempty" path:"expires_at,omitempty" url:"expires_at,omitempty"`
	Name               string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	UserId             int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	PublicKey          string     `json:"public_key,omitempty" path:"public_key,omitempty" url:"public_key,omitempty"`
	PrivateKey         string     `json:"private_key,omitempty" path:"private_key,omitempty" url:"private_key,omitempty"`
	PrivateKeyPassword string     `json:"private_key_password,omitempty" path:"private_key_password,omitempty" url:"private_key_password,omitempty"`
}

func (GpgKey) Identifier ¶ added in v2.0.228

func (g GpgKey) Identifier() interface{}

func (*GpgKey) UnmarshalJSON ¶ added in v2.0.228

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

type GpgKeyCollection ¶ added in v2.0.228

type GpgKeyCollection []GpgKey

func (*GpgKeyCollection) ToSlice ¶ added in v2.0.228

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

func (*GpgKeyCollection) UnmarshalJSON ¶ added in v2.0.228

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

type GpgKeyCreateParams ¶ added in v2.0.228

type GpgKeyCreateParams struct {
	UserId             int64  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Name               string `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	PublicKey          string `url:"public_key,omitempty" required:"false" json:"public_key,omitempty" path:"public_key"`
	PrivateKey         string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassword string `url:"private_key_password,omitempty" required:"false" json:"private_key_password,omitempty" path:"private_key_password"`
}

type GpgKeyDeleteParams ¶ added in v2.0.228

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

type GpgKeyFindParams ¶ added in v2.0.228

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

type GpgKeyListParams ¶ added in v2.0.228

type GpgKeyListParams struct {
	UserId int64  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type GpgKeyUpdateParams ¶ added in v2.0.228

type GpgKeyUpdateParams struct {
	Id                 int64  `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Name               string `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	PublicKey          string `url:"public_key,omitempty" required:"false" json:"public_key,omitempty" path:"public_key"`
	PrivateKey         string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassword string `url:"private_key_password,omitempty" required:"false" json:"private_key_password,omitempty" path:"private_key_password"`
}

type Group ¶

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

func (Group) Identifier ¶

func (g Group) Identifier() interface{}

func (*Group) UnmarshalJSON ¶

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

type GroupCollection ¶

type GroupCollection []Group

func (*GroupCollection) ToSlice ¶

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

func (*GroupCollection) UnmarshalJSON ¶

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

type GroupCreateParams ¶

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

type GroupDeleteParams ¶

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

type GroupFindParams ¶

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

type GroupListParams ¶

type GroupListParams struct {
	Action       string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy       map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter       Group                  `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix map[string]interface{} `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Ids          string                 `url:"ids,omitempty" required:"false" json:"ids,omitempty" path:"ids"`
	ListParams
}

type GroupUpdateParams ¶

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

type GroupUser ¶

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

func (GroupUser) Identifier ¶

func (g GroupUser) Identifier() interface{}

func (*GroupUser) UnmarshalJSON ¶

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

type GroupUserCollection ¶

type GroupUserCollection []GroupUser

func (*GroupUserCollection) ToSlice ¶

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

func (*GroupUserCollection) UnmarshalJSON ¶

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

type GroupUserCreateParams ¶

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

type GroupUserDeleteParams ¶

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

type GroupUserListParams ¶

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

type GroupUserUpdateParams ¶

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

type History ¶

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

func (History) Identifier ¶

func (h History) Identifier() interface{}

func (*History) UnmarshalJSON ¶

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

type HistoryCollection ¶

type HistoryCollection []History

func (*HistoryCollection) ToSlice ¶

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

func (*HistoryCollection) UnmarshalJSON ¶

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

type HistoryExport ¶

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

func (HistoryExport) Identifier ¶

func (h HistoryExport) Identifier() interface{}

func (*HistoryExport) UnmarshalJSON ¶

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

type HistoryExportCollection ¶

type HistoryExportCollection []HistoryExport

func (*HistoryExportCollection) ToSlice ¶

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

func (*HistoryExportCollection) UnmarshalJSON ¶

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

type HistoryExportCreateParams ¶

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

type HistoryExportFindParams ¶

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

type HistoryExportResult ¶

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

func (HistoryExportResult) Identifier ¶

func (h HistoryExportResult) Identifier() interface{}

func (*HistoryExportResult) UnmarshalJSON ¶

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

type HistoryExportResultCollection ¶

type HistoryExportResultCollection []HistoryExportResult

func (*HistoryExportResultCollection) ToSlice ¶

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

func (*HistoryExportResultCollection) UnmarshalJSON ¶

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

type HistoryExportResultListParams ¶

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

type HistoryListForFileParams ¶

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

type HistoryListForFolderParams ¶

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

type HistoryListForUserParams ¶

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

type HistoryListLoginsParams ¶

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

type HistoryListParams ¶

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

type HttpClient ¶

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

type Identifier ¶

type Identifier interface {
	Identifier() interface{}
}

type Image ¶

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

func (*Image) UnmarshalJSON ¶

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

type ImageCollection ¶

type ImageCollection []Image

func (*ImageCollection) ToSlice ¶

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

func (*ImageCollection) UnmarshalJSON ¶

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

type Inbox ¶ added in v2.0.276

type Inbox struct {
	Title                                    string       `json:"title,omitempty" path:"title,omitempty" url:"title,omitempty"`
	Description                              string       `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	HelpText                                 string       `json:"help_text,omitempty" path:"help_text,omitempty" url:"help_text,omitempty"`
	Key                                      string       `json:"key,omitempty" path:"key,omitempty" url:"key,omitempty"`
	ShowOnLoginPage                          *bool        `json:"show_on_login_page,omitempty" path:"show_on_login_page,omitempty" url:"show_on_login_page,omitempty"`
	HasPassword                              *bool        `json:"has_password,omitempty" path:"has_password,omitempty" url:"has_password,omitempty"`
	RequireRegistration                      *bool        `json:"require_registration,omitempty" path:"require_registration,omitempty" url:"require_registration,omitempty"`
	DontAllowFoldersInUploads                *bool        `` /* 139-byte string literal not displayed */
	ClickwrapBody                            string       `json:"clickwrap_body,omitempty" path:"clickwrap_body,omitempty" url:"clickwrap_body,omitempty"`
	FormFieldSet                             FormFieldSet `json:"form_field_set,omitempty" path:"form_field_set,omitempty" url:"form_field_set,omitempty"`
	NotifySendersOnSuccessfulUploadsViaEmail *bool        `` /* 190-byte string literal not displayed */
	AllowWhitelisting                        *bool        `json:"allow_whitelisting,omitempty" path:"allow_whitelisting,omitempty" url:"allow_whitelisting,omitempty"`
	Whitelist                                []string     `json:"whitelist,omitempty" path:"whitelist,omitempty" url:"whitelist,omitempty"`
	InboundEmailAddress                      string       `json:"inbound_email_address,omitempty" path:"inbound_email_address,omitempty" url:"inbound_email_address,omitempty"`
}

func (*Inbox) UnmarshalJSON ¶ added in v2.0.276

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

type InboxCollection ¶ added in v2.0.276

type InboxCollection []Inbox

func (*InboxCollection) ToSlice ¶ added in v2.0.276

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

func (*InboxCollection) UnmarshalJSON ¶ added in v2.0.276

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

type InboxListParams ¶ added in v2.0.276

type InboxListParams struct {
	Action string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter Inbox                  `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	ListParams
}

type InboxRecipient ¶

type InboxRecipient struct {
	Company          string     `json:"company,omitempty" path:"company,omitempty" url:"company,omitempty"`
	Name             string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Note             string     `json:"note,omitempty" path:"note,omitempty" url:"note,omitempty"`
	Recipient        string     `json:"recipient,omitempty" path:"recipient,omitempty" url:"recipient,omitempty"`
	SentAt           *time.Time `json:"sent_at,omitempty" path:"sent_at,omitempty" url:"sent_at,omitempty"`
	InboxId          int64      `json:"inbox_id,omitempty" path:"inbox_id,omitempty" url:"inbox_id,omitempty"`
	Method           string     `json:"method,omitempty" path:"method,omitempty" url:"method,omitempty"`
	ShareAfterCreate *bool      `json:"share_after_create,omitempty" path:"share_after_create,omitempty" url:"share_after_create,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 {
	InboxId          int64                    `url:"inbox_id,omitempty" required:"true" json:"inbox_id,omitempty" path:"inbox_id"`
	Recipient        string                   `url:"recipient,omitempty" required:"true" json:"recipient,omitempty" path:"recipient"`
	Name             string                   `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Company          string                   `url:"company,omitempty" required:"false" json:"company,omitempty" path:"company"`
	Note             string                   `url:"note,omitempty" required:"false" json:"note,omitempty" path:"note"`
	Method           InboxRecipientMethodEnum `url:"method,omitempty" required:"false" json:"method,omitempty" path:"method"`
	ShareAfterCreate *bool                    `url:"share_after_create,omitempty" required:"false" json:"share_after_create,omitempty" path:"share_after_create"`
}

type InboxRecipientListParams ¶

type InboxRecipientListParams struct {
	Action  string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy  map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter  InboxRecipient         `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	InboxId int64                  `url:"inbox_id,omitempty" required:"true" json:"inbox_id,omitempty" path:"inbox_id"`
	ListParams
}

type InboxRecipientMethodEnum ¶ added in v2.0.276

type InboxRecipientMethodEnum string

func (InboxRecipientMethodEnum) Enum ¶ added in v2.0.276

func (InboxRecipientMethodEnum) String ¶ added in v2.0.276

func (u InboxRecipientMethodEnum) String() string

type InboxRecipientRegistration ¶ added in v2.0.276

type InboxRecipientRegistration struct {
	Code                  string `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	InboxRegistrationCode string `json:"inbox_registration_code,omitempty" path:"inbox_registration_code,omitempty" url:"inbox_registration_code,omitempty"`
	Recipient             string `json:"recipient,omitempty" path:"recipient,omitempty" url:"recipient,omitempty"`
	Name                  string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Company               string `json:"company,omitempty" path:"company,omitempty" url:"company,omitempty"`
	InboxRecipientCode    string `json:"inbox_recipient_code,omitempty" path:"inbox_recipient_code,omitempty" url:"inbox_recipient_code,omitempty"`
}

func (*InboxRecipientRegistration) UnmarshalJSON ¶ added in v2.0.276

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

type InboxRecipientRegistrationCollection ¶ added in v2.0.276

type InboxRecipientRegistrationCollection []InboxRecipientRegistration

func (*InboxRecipientRegistrationCollection) ToSlice ¶ added in v2.0.276

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

func (*InboxRecipientRegistrationCollection) UnmarshalJSON ¶ added in v2.0.276

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

type InboxRecipientRegistrationCreateParams ¶ added in v2.0.276

type InboxRecipientRegistrationCreateParams struct {
	InboxRecipientCode string `url:"inbox_recipient_code,omitempty" required:"true" json:"inbox_recipient_code,omitempty" path:"inbox_recipient_code"`
}

type InboxRegistration ¶

type InboxRegistration struct {
	Code                           string                 `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	Name                           string                 `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Company                        string                 `json:"company,omitempty" path:"company,omitempty" url:"company,omitempty"`
	Email                          string                 `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	ClickwrapBody                  string                 `json:"clickwrap_body,omitempty" path:"clickwrap_body,omitempty" url:"clickwrap_body,omitempty"`
	FormFieldSetId                 int64                  `json:"form_field_set_id,omitempty" path:"form_field_set_id,omitempty" url:"form_field_set_id,omitempty"`
	FormFieldData                  map[string]interface{} `json:"form_field_data,omitempty" path:"form_field_data,omitempty" url:"form_field_data,omitempty"`
	InboxId                        int64                  `json:"inbox_id,omitempty" path:"inbox_id,omitempty" url:"inbox_id,omitempty"`
	InboxRecipientId               int64                  `json:"inbox_recipient_id,omitempty" path:"inbox_recipient_id,omitempty" url:"inbox_recipient_id,omitempty"`
	InboxTitle                     string                 `json:"inbox_title,omitempty" path:"inbox_title,omitempty" url:"inbox_title,omitempty"`
	CreatedAt                      *time.Time             `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	InboxCode                      string                 `json:"inbox_code,omitempty" path:"inbox_code,omitempty" url:"inbox_code,omitempty"`
	InboxRecipientRegistrationCode string                 `` /* 151-byte string literal not displayed */
	Password                       string                 `json:"password,omitempty" path:"password,omitempty" url:"password,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 InboxRegistrationCreateParams ¶ added in v2.0.276

type InboxRegistrationCreateParams struct {
	InboxCode                      string `url:"inbox_code,omitempty" required:"true" json:"inbox_code,omitempty" path:"inbox_code"`
	InboxRecipientRegistrationCode string `` /* 158-byte string literal not displayed */
	Password                       string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	Name                           string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Company                        string `url:"company,omitempty" required:"false" json:"company,omitempty" path:"company"`
	Email                          string `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
}

type InboxRegistrationListParams ¶

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

type InboxUpload ¶

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

func (InboxUpload) Identifier ¶

func (i InboxUpload) Identifier() interface{}

func (*InboxUpload) UnmarshalJSON ¶

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

type InboxUploadCollection ¶

type InboxUploadCollection []InboxUpload

func (*InboxUploadCollection) ToSlice ¶

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

func (*InboxUploadCollection) UnmarshalJSON ¶

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

type InboxUploadListParams ¶

type InboxUploadListParams struct {
	Action              string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy              map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter              InboxUpload            `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt            map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq          map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt            map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq          map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	InboxRegistrationId int64                  `url:"inbox_registration_id,omitempty" required:"false" json:"inbox_registration_id,omitempty" path:"inbox_registration_id"`
	InboxId             int64                  `url:"inbox_id,omitempty" required:"false" json:"inbox_id,omitempty" path:"inbox_id"`
	ListParams
}

type Invoice ¶

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

func (Invoice) Identifier ¶

func (i Invoice) Identifier() interface{}

func (*Invoice) UnmarshalJSON ¶

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

type InvoiceCollection ¶

type InvoiceCollection []Invoice

func (*InvoiceCollection) ToSlice ¶

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

func (*InvoiceCollection) UnmarshalJSON ¶

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

type InvoiceFindParams ¶

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

type InvoiceLineItem ¶

type InvoiceLineItem struct {
	Amount         string     `json:"amount,omitempty" path:"amount,omitempty" url:"amount,omitempty"`
	CreatedAt      *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Description    string     `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	Type           string     `json:"type,omitempty" path:"type,omitempty" url:"type,omitempty"`
	ServiceEndAt   *time.Time `json:"service_end_at,omitempty" path:"service_end_at,omitempty" url:"service_end_at,omitempty"`
	ServiceStartAt *time.Time `json:"service_start_at,omitempty" path:"service_start_at,omitempty" url:"service_start_at,omitempty"`
	UpdatedAt      *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
	Plan           string     `json:"plan,omitempty" path:"plan,omitempty" url:"plan,omitempty"`
	Site           string     `json:"site,omitempty" path:"site,omitempty" url:"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 {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type Ip ¶ added in v2.0.276

type Ip struct {
	Ip                    string         `json:"ip,omitempty" path:"ip,omitempty" url:"ip,omitempty"`
	ExternalIp            string         `json:"external_ip,omitempty" path:"external_ip,omitempty" url:"external_ip,omitempty"`
	Assigned              string         `json:"assigned,omitempty" path:"assigned,omitempty" url:"assigned,omitempty"`
	Site                  SslCertificate `json:"site,omitempty" path:"site,omitempty" url:"site,omitempty"`
	FtpEnabled            string         `json:"ftp_enabled,omitempty" path:"ftp_enabled,omitempty" url:"ftp_enabled,omitempty"`
	SftpEnabled           string         `json:"sftp_enabled,omitempty" path:"sftp_enabled,omitempty" url:"sftp_enabled,omitempty"`
	SftpHostKeyType       string         `json:"sftp_host_key_type,omitempty" path:"sftp_host_key_type,omitempty" url:"sftp_host_key_type,omitempty"`
	SftpHostKeyPrivateKey string         `` /* 127-byte string literal not displayed */
	SiteId                string         `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	MotdText              string         `json:"motd_text,omitempty" path:"motd_text,omitempty" url:"motd_text,omitempty"`
	MotdUseForFtp         *bool          `json:"motd_use_for_ftp,omitempty" path:"motd_use_for_ftp,omitempty" url:"motd_use_for_ftp,omitempty"`
	MotdUseForSftp        *bool          `json:"motd_use_for_sftp,omitempty" path:"motd_use_for_sftp,omitempty" url:"motd_use_for_sftp,omitempty"`
	PairType              string         `json:"pair_type,omitempty" path:"pair_type,omitempty" url:"pair_type,omitempty"`
}

func (*Ip) UnmarshalJSON ¶ added in v2.0.276

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

type IpAbuseEntry ¶ added in v2.0.276

type IpAbuseEntry struct {
	Ip       string `json:"ip,omitempty" path:"ip,omitempty" url:"ip,omitempty"`
	List     string `json:"list,omitempty" path:"list,omitempty" url:"list,omitempty"`
	Hostname string `json:"hostname,omitempty" path:"hostname,omitempty" url:"hostname,omitempty"`
	Reason   string `json:"reason,omitempty" path:"reason,omitempty" url:"reason,omitempty"`
}

func (*IpAbuseEntry) UnmarshalJSON ¶ added in v2.0.276

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

type IpAbuseEntryCollection ¶ added in v2.0.276

type IpAbuseEntryCollection []IpAbuseEntry

func (*IpAbuseEntryCollection) ToSlice ¶ added in v2.0.276

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

func (*IpAbuseEntryCollection) UnmarshalJSON ¶ added in v2.0.276

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

type IpAbuseEntryCreateParams ¶ added in v2.0.276

type IpAbuseEntryCreateParams struct {
	Ip       string `url:"ip,omitempty" required:"true" json:"ip,omitempty" path:"ip"`
	List     string `url:"list,omitempty" required:"true" json:"list,omitempty" path:"list"`
	Hostname string `url:"hostname,omitempty" required:"false" json:"hostname,omitempty" path:"hostname"`
	Reason   string `url:"reason,omitempty" required:"false" json:"reason,omitempty" path:"reason"`
}

type IpAddress ¶

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

func (IpAddress) Identifier ¶

func (i IpAddress) Identifier() interface{}

func (*IpAddress) UnmarshalJSON ¶

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

type IpAddressCollection ¶

type IpAddressCollection []IpAddress

func (*IpAddressCollection) ToSlice ¶

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

func (*IpAddressCollection) UnmarshalJSON ¶

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

type IpAddressGetActiveParams ¶ added in v2.0.276

type IpAddressGetActiveParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type IpAddressGetExavaultReservedParams ¶

type IpAddressGetExavaultReservedParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type IpAddressGetReservedParams ¶

type IpAddressGetReservedParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type IpAddressListParams ¶

type IpAddressListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type IpCollection ¶ added in v2.0.276

type IpCollection []Ip

func (*IpCollection) ToSlice ¶ added in v2.0.276

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

func (*IpCollection) UnmarshalJSON ¶ added in v2.0.276

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

type IpsParam ¶ added in v2.0.276

type IpsParam struct {
	PrivateIp string `url:"private_ip,omitempty" json:"private_ip,omitempty" path:"private_ip"`
	PublicIp  string `url:"public_ip,omitempty" json:"public_ip,omitempty" path:"public_ip"`
}

type Iter ¶

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

func (*Iter) Current ¶

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

func (*Iter) EOFPage ¶

func (i *Iter) EOFPage() bool

func (*Iter) Err ¶

func (i *Iter) Err() error

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

func (*Iter) ExportParams ¶

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

func (*Iter) GetCursor ¶

func (i *Iter) GetCursor() string

func (*Iter) GetPage ¶

func (i *Iter) GetPage() bool

func (*Iter) GetParams ¶

func (i *Iter) GetParams() *ListParams

func (*Iter) Next ¶

func (i *Iter) Next() bool

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

To iterate over all results use the following pattern.

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

func (*Iter) NextPage ¶

func (i *Iter) NextPage() bool

func (*Iter) Paging ¶

func (i *Iter) Paging() bool

func (*Iter) Reload ¶

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

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

func (*Iter) SetCursor ¶

func (i *Iter) SetCursor(cursor string)

type IterI ¶

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

type IterPagingI ¶

type IterPagingI interface {
	IterI
	EOFPage() bool
}

type Iterable ¶

type Iterable interface {
	Iterable() bool
}

type Lead ¶ added in v2.0.276

type Lead struct {
	Id                 int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Code               string `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	Name               string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Address            string `json:"address,omitempty" path:"address,omitempty" url:"address,omitempty"`
	Address2           string `json:"address_2,omitempty" path:"address_2,omitempty" url:"address_2,omitempty"`
	City               string `json:"city,omitempty" path:"city,omitempty" url:"city,omitempty"`
	CompanyName        string `json:"company_name,omitempty" path:"company_name,omitempty" url:"company_name,omitempty"`
	ContactName        string `json:"contact_name,omitempty" path:"contact_name,omitempty" url:"contact_name,omitempty"`
	Country            string `json:"country,omitempty" path:"country,omitempty" url:"country,omitempty"`
	Currency           string `json:"currency,omitempty" path:"currency,omitempty" url:"currency,omitempty"`
	Email              string `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	Language           string `json:"language,omitempty" path:"language,omitempty" url:"language,omitempty"`
	PhoneNumber        string `json:"phone_number,omitempty" path:"phone_number,omitempty" url:"phone_number,omitempty"`
	State              string `json:"state,omitempty" path:"state,omitempty" url:"state,omitempty"`
	Zip                string `json:"zip,omitempty" path:"zip,omitempty" url:"zip,omitempty"`
	LeadLevel          string `json:"lead_level,omitempty" path:"lead_level,omitempty" url:"lead_level,omitempty"`
	ClickCookieCode    string `json:"click_cookie_code,omitempty" path:"click_cookie_code,omitempty" url:"click_cookie_code,omitempty"`
	FormName           string `json:"form_name,omitempty" path:"form_name,omitempty" url:"form_name,omitempty"`
	OpportunityComment string `json:"opportunity_comment,omitempty" path:"opportunity_comment,omitempty" url:"opportunity_comment,omitempty"`
	OpportunityType    string `json:"opportunity_type,omitempty" path:"opportunity_type,omitempty" url:"opportunity_type,omitempty"`
	Gclid              string `json:"gclid,omitempty" path:"gclid,omitempty" url:"gclid,omitempty"`
	OriginalBrand      string `json:"original_brand,omitempty" path:"original_brand,omitempty" url:"original_brand,omitempty"`
	UtmCampaign        string `json:"utm_campaign,omitempty" path:"utm_campaign,omitempty" url:"utm_campaign,omitempty"`
	UtmContent         string `json:"utm_content,omitempty" path:"utm_content,omitempty" url:"utm_content,omitempty"`
	UtmDomain          string `json:"utm_domain,omitempty" path:"utm_domain,omitempty" url:"utm_domain,omitempty"`
	UtmMedium          string `json:"utm_medium,omitempty" path:"utm_medium,omitempty" url:"utm_medium,omitempty"`
	UtmSource          string `json:"utm_source,omitempty" path:"utm_source,omitempty" url:"utm_source,omitempty"`
	UtmTerm            string `json:"utm_term,omitempty" path:"utm_term,omitempty" url:"utm_term,omitempty"`
	TimeZone           string `json:"time_zone,omitempty" path:"time_zone,omitempty" url:"time_zone,omitempty"`
	TimeZoneOffset     int64  `json:"time_zone_offset,omitempty" path:"time_zone_offset,omitempty" url:"time_zone_offset,omitempty"`
}

func (Lead) Identifier ¶ added in v2.0.276

func (l Lead) Identifier() interface{}

func (*Lead) UnmarshalJSON ¶ added in v2.0.276

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

type LeadCollection ¶ added in v2.0.276

type LeadCollection []Lead

func (*LeadCollection) ToSlice ¶ added in v2.0.276

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

func (*LeadCollection) UnmarshalJSON ¶ added in v2.0.276

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

type LeadCreateParams ¶ added in v2.0.276

type LeadCreateParams struct {
	Name               string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Address            string `url:"address,omitempty" required:"false" json:"address,omitempty" path:"address"`
	Address2           string `url:"address_2,omitempty" required:"false" json:"address_2,omitempty" path:"address_2"`
	City               string `url:"city,omitempty" required:"false" json:"city,omitempty" path:"city"`
	ContactName        string `url:"contact_name,omitempty" required:"false" json:"contact_name,omitempty" path:"contact_name"`
	Currency           string `url:"currency,omitempty" required:"false" json:"currency,omitempty" path:"currency"`
	Email              string `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	Language           string `url:"language,omitempty" required:"false" json:"language,omitempty" path:"language"`
	PhoneNumber        string `url:"phone_number,omitempty" required:"false" json:"phone_number,omitempty" path:"phone_number"`
	State              string `url:"state,omitempty" required:"false" json:"state,omitempty" path:"state"`
	Zip                string `url:"zip,omitempty" required:"false" json:"zip,omitempty" path:"zip"`
	ClickCookieCode    string `url:"click_cookie_code,omitempty" required:"false" json:"click_cookie_code,omitempty" path:"click_cookie_code"`
	FormName           string `url:"form_name,omitempty" required:"false" json:"form_name,omitempty" path:"form_name"`
	OpportunityComment string `url:"opportunity_comment,omitempty" required:"false" json:"opportunity_comment,omitempty" path:"opportunity_comment"`
	OpportunityType    string `url:"opportunity_type,omitempty" required:"false" json:"opportunity_type,omitempty" path:"opportunity_type"`
	Gclid              string `url:"gclid,omitempty" required:"false" json:"gclid,omitempty" path:"gclid"`
	OriginalBrand      string `url:"original_brand,omitempty" required:"false" json:"original_brand,omitempty" path:"original_brand"`
	UtmCampaign        string `url:"utm_campaign,omitempty" required:"false" json:"utm_campaign,omitempty" path:"utm_campaign"`
	UtmContent         string `url:"utm_content,omitempty" required:"false" json:"utm_content,omitempty" path:"utm_content"`
	UtmDomain          string `url:"utm_domain,omitempty" required:"false" json:"utm_domain,omitempty" path:"utm_domain"`
	UtmMedium          string `url:"utm_medium,omitempty" required:"false" json:"utm_medium,omitempty" path:"utm_medium"`
	UtmSource          string `url:"utm_source,omitempty" required:"false" json:"utm_source,omitempty" path:"utm_source"`
	UtmTerm            string `url:"utm_term,omitempty" required:"false" json:"utm_term,omitempty" path:"utm_term"`
	TimeZone           string `url:"time_zone,omitempty" required:"false" json:"time_zone,omitempty" path:"time_zone"`
	TimeZoneOffset     int64  `url:"time_zone_offset,omitempty" required:"false" json:"time_zone_offset,omitempty" path:"time_zone_offset"`
}

type LeadUpdateParams ¶ added in v2.0.276

type LeadUpdateParams struct {
	Code               string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"code"`
	Name               string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Address            string `url:"address,omitempty" required:"false" json:"address,omitempty" path:"address"`
	Address2           string `url:"address_2,omitempty" required:"false" json:"address_2,omitempty" path:"address_2"`
	City               string `url:"city,omitempty" required:"false" json:"city,omitempty" path:"city"`
	ContactName        string `url:"contact_name,omitempty" required:"false" json:"contact_name,omitempty" path:"contact_name"`
	Currency           string `url:"currency,omitempty" required:"false" json:"currency,omitempty" path:"currency"`
	Email              string `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	Language           string `url:"language,omitempty" required:"false" json:"language,omitempty" path:"language"`
	PhoneNumber        string `url:"phone_number,omitempty" required:"false" json:"phone_number,omitempty" path:"phone_number"`
	State              string `url:"state,omitempty" required:"false" json:"state,omitempty" path:"state"`
	Zip                string `url:"zip,omitempty" required:"false" json:"zip,omitempty" path:"zip"`
	ClickCookieCode    string `url:"click_cookie_code,omitempty" required:"false" json:"click_cookie_code,omitempty" path:"click_cookie_code"`
	FormName           string `url:"form_name,omitempty" required:"false" json:"form_name,omitempty" path:"form_name"`
	OpportunityComment string `url:"opportunity_comment,omitempty" required:"false" json:"opportunity_comment,omitempty" path:"opportunity_comment"`
	OpportunityType    string `url:"opportunity_type,omitempty" required:"false" json:"opportunity_type,omitempty" path:"opportunity_type"`
	Gclid              string `url:"gclid,omitempty" required:"false" json:"gclid,omitempty" path:"gclid"`
	OriginalBrand      string `url:"original_brand,omitempty" required:"false" json:"original_brand,omitempty" path:"original_brand"`
	UtmCampaign        string `url:"utm_campaign,omitempty" required:"false" json:"utm_campaign,omitempty" path:"utm_campaign"`
	UtmContent         string `url:"utm_content,omitempty" required:"false" json:"utm_content,omitempty" path:"utm_content"`
	UtmDomain          string `url:"utm_domain,omitempty" required:"false" json:"utm_domain,omitempty" path:"utm_domain"`
	UtmMedium          string `url:"utm_medium,omitempty" required:"false" json:"utm_medium,omitempty" path:"utm_medium"`
	UtmSource          string `url:"utm_source,omitempty" required:"false" json:"utm_source,omitempty" path:"utm_source"`
	UtmTerm            string `url:"utm_term,omitempty" required:"false" json:"utm_term,omitempty" path:"utm_term"`
	TimeZone           string `url:"time_zone,omitempty" required:"false" json:"time_zone,omitempty" path:"time_zone"`
	TimeZoneOffset     int64  `url:"time_zone_offset,omitempty" required:"false" json:"time_zone_offset,omitempty" path:"time_zone_offset"`
}

type ListParams ¶

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

func (*ListParams) GetListParams ¶

func (p *ListParams) GetListParams() *ListParams

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

type ListParamsContainer ¶

type ListParamsContainer interface {
	GetListParams() *ListParams
}

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

type Lock ¶

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

func (Lock) Identifier ¶

func (l Lock) Identifier() interface{}

func (*Lock) UnmarshalJSON ¶

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

type LockCollection ¶

type LockCollection []Lock

func (*LockCollection) ToSlice ¶

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

func (*LockCollection) UnmarshalJSON ¶

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

type LockCreateParams ¶

type LockCreateParams struct {
	Path                 string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	Token                string `url:"token,omitempty" required:"false" json:"token,omitempty" path:"token"`
	Type                 string `url:"type,omitempty" required:"false" json:"type,omitempty" path:"type"`
	AllowAccessByAnyUser *bool  `` /* 131-byte string literal not displayed */
	Scope                string `url:"scope,omitempty" required:"false" json:"scope,omitempty" path:"scope"`
	Exclusive            *bool  `url:"exclusive,omitempty" required:"false" json:"exclusive,omitempty" path:"exclusive"`
	Depth                string `url:"depth,omitempty" required:"false" json:"depth,omitempty" path:"depth"`
	Recursive            string `url:"recursive,omitempty" required:"false" json:"recursive,omitempty" path:"recursive"`
	Owner                string `url:"owner,omitempty" required:"false" json:"owner,omitempty" path:"owner"`
	Timeout              int64  `url:"timeout,omitempty" required:"false" json:"timeout,omitempty" path:"timeout"`
}

type LockDeleteParams ¶

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

type LockListForParams ¶

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

type Logger ¶

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

type Message ¶

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

func (Message) Identifier ¶

func (m Message) Identifier() interface{}

func (*Message) UnmarshalJSON ¶

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

type MessageCollection ¶

type MessageCollection []Message

func (*MessageCollection) ToSlice ¶

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

func (*MessageCollection) UnmarshalJSON ¶

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

type MessageComment ¶

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

func (MessageComment) Identifier ¶

func (m MessageComment) Identifier() interface{}

func (*MessageComment) UnmarshalJSON ¶

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

type MessageCommentCollection ¶

type MessageCommentCollection []MessageComment

func (*MessageCommentCollection) ToSlice ¶

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

func (*MessageCommentCollection) UnmarshalJSON ¶

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

type MessageCommentCreateParams ¶

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

type MessageCommentDeleteParams ¶

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

type MessageCommentFindParams ¶

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

type MessageCommentListParams ¶

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

type MessageCommentReaction ¶

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

func (MessageCommentReaction) Identifier ¶

func (m MessageCommentReaction) Identifier() interface{}

func (*MessageCommentReaction) UnmarshalJSON ¶

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

type MessageCommentReactionCollection ¶

type MessageCommentReactionCollection []MessageCommentReaction

func (*MessageCommentReactionCollection) ToSlice ¶

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

func (*MessageCommentReactionCollection) UnmarshalJSON ¶

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

type MessageCommentReactionCreateParams ¶

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

type MessageCommentReactionDeleteParams ¶

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

type MessageCommentReactionFindParams ¶

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

type MessageCommentReactionListParams ¶

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

type MessageCommentUpdateParams ¶

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

type MessageCreateParams ¶

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

type MessageDeleteParams ¶

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

type MessageFindParams ¶

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

type MessageListParams ¶

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

type MessageReaction ¶

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

func (MessageReaction) Identifier ¶

func (m MessageReaction) Identifier() interface{}

func (*MessageReaction) UnmarshalJSON ¶

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

type MessageReactionCollection ¶

type MessageReactionCollection []MessageReaction

func (*MessageReactionCollection) ToSlice ¶

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

func (*MessageReactionCollection) UnmarshalJSON ¶

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

type MessageReactionCreateParams ¶

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

type MessageReactionDeleteParams ¶

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

type MessageReactionFindParams ¶

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

type MessageReactionListParams ¶

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

type MessageUpdateParams ¶

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

type MonitoringStat ¶ added in v2.0.276

type MonitoringStat struct {
	Alerts string `json:"alerts,omitempty" path:"alerts,omitempty" url:"alerts,omitempty"`
	Info   string `json:"info,omitempty" path:"info,omitempty" url:"info,omitempty"`
}

func (*MonitoringStat) UnmarshalJSON ¶ added in v2.0.276

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

type MonitoringStatCollection ¶ added in v2.0.276

type MonitoringStatCollection []MonitoringStat

func (*MonitoringStatCollection) ToSlice ¶ added in v2.0.276

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

func (*MonitoringStatCollection) UnmarshalJSON ¶ added in v2.0.276

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

type MonitoringStatListParams ¶ added in v2.0.276

type MonitoringStatListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type MonitoringStats ¶ added in v2.0.276

type MonitoringStats struct {
	Alerts string `json:"alerts,omitempty" path:"alerts,omitempty" url:"alerts,omitempty"`
	Info   string `json:"info,omitempty" path:"info,omitempty" url:"info,omitempty"`
}

func (*MonitoringStats) UnmarshalJSON ¶ added in v2.0.276

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

type MonitoringStatsCollection ¶ added in v2.0.276

type MonitoringStatsCollection []MonitoringStats

func (*MonitoringStatsCollection) ToSlice ¶ added in v2.0.276

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

func (*MonitoringStatsCollection) UnmarshalJSON ¶ added in v2.0.276

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

type Notification ¶

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

func (Notification) Identifier ¶

func (n Notification) Identifier() interface{}

func (*Notification) UnmarshalJSON ¶

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

type NotificationCollection ¶

type NotificationCollection []Notification

func (*NotificationCollection) ToSlice ¶

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

func (*NotificationCollection) UnmarshalJSON ¶

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

type NotificationCreateParams ¶

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

type NotificationDeleteParams ¶

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

type NotificationFindParams ¶

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

type NotificationListParams ¶

type NotificationListParams struct {
	UserId           int64                  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action           string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy           map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter           Notification           `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix     map[string]interface{} `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Path             string                 `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	IncludeAncestors *bool                  `url:"include_ancestors,omitempty" required:"false" json:"include_ancestors,omitempty" path:"include_ancestors"`
	GroupId          string                 `url:"group_id,omitempty" required:"false" json:"group_id,omitempty" path:"group_id"`
	ListParams
}

type NotificationUpdateParams ¶

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

type NullLogger ¶

type NullLogger struct{}

func (NullLogger) Printf ¶

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

type OauthRedirect ¶ added in v2.0.276

type OauthRedirect struct {
	RedirectUri string `json:"redirect_uri,omitempty" path:"redirect_uri,omitempty" url:"redirect_uri,omitempty"`
}

func (*OauthRedirect) UnmarshalJSON ¶ added in v2.0.276

func (o *OauthRedirect) UnmarshalJSON(data []byte) error

type OauthRedirectCollection ¶ added in v2.0.276

type OauthRedirectCollection []OauthRedirect

func (*OauthRedirectCollection) ToSlice ¶ added in v2.0.276

func (o *OauthRedirectCollection) ToSlice() *[]interface{}

func (*OauthRedirectCollection) UnmarshalJSON ¶ added in v2.0.276

func (o *OauthRedirectCollection) UnmarshalJSON(data []byte) error

type OnPageError ¶

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

type PairedApiKey ¶ added in v2.0.276

type PairedApiKey struct {
	Server       string `json:"server,omitempty" path:"server,omitempty" url:"server,omitempty"`
	Username     string `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	Password     string `json:"password,omitempty" path:"password,omitempty" url:"password,omitempty"`
	UserUsername string `json:"user_username,omitempty" path:"user_username,omitempty" url:"user_username,omitempty"`
	Nickname     string `json:"nickname,omitempty" path:"nickname,omitempty" url:"nickname,omitempty"`
}

func (*PairedApiKey) UnmarshalJSON ¶ added in v2.0.276

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

type PairedApiKeyCollection ¶ added in v2.0.276

type PairedApiKeyCollection []PairedApiKey

func (*PairedApiKeyCollection) ToSlice ¶ added in v2.0.276

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

func (*PairedApiKeyCollection) UnmarshalJSON ¶ added in v2.0.276

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

type Payment ¶

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

func (Payment) Identifier ¶

func (p Payment) Identifier() interface{}

func (*Payment) UnmarshalJSON ¶

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

type PaymentCollection ¶

type PaymentCollection []Payment

func (*PaymentCollection) ToSlice ¶

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

func (*PaymentCollection) UnmarshalJSON ¶

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

type PaymentFindParams ¶

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

type PaymentLineItem ¶

type PaymentLineItem struct {
	Amount    string     `json:"amount,omitempty" path:"amount,omitempty" url:"amount,omitempty"`
	CreatedAt *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	InvoiceId int64      `json:"invoice_id,omitempty" path:"invoice_id,omitempty" url:"invoice_id,omitempty"`
	PaymentId int64      `json:"payment_id,omitempty" path:"payment_id,omitempty" url:"payment_id,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 {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type PaypalExpressInfo ¶ added in v2.0.276

type PaypalExpressInfo struct {
	BillingEmail       string `json:"billing_email,omitempty" path:"billing_email,omitempty" url:"billing_email,omitempty"`
	BillingCompanyName string `json:"billing_company_name,omitempty" path:"billing_company_name,omitempty" url:"billing_company_name,omitempty"`
	BillingAddress     string `json:"billing_address,omitempty" path:"billing_address,omitempty" url:"billing_address,omitempty"`
	BillingAddress2    string `json:"billing_address_2,omitempty" path:"billing_address_2,omitempty" url:"billing_address_2,omitempty"`
	BillingCity        string `json:"billing_city,omitempty" path:"billing_city,omitempty" url:"billing_city,omitempty"`
	BillingState       string `json:"billing_state,omitempty" path:"billing_state,omitempty" url:"billing_state,omitempty"`
	BillingCountry     string `json:"billing_country,omitempty" path:"billing_country,omitempty" url:"billing_country,omitempty"`
	BillingZip         string `json:"billing_zip,omitempty" path:"billing_zip,omitempty" url:"billing_zip,omitempty"`
	BillingName        string `json:"billing_name,omitempty" path:"billing_name,omitempty" url:"billing_name,omitempty"`
	BillingPhone       string `json:"billing_phone,omitempty" path:"billing_phone,omitempty" url:"billing_phone,omitempty"`
	PaypalPayerId      int64  `json:"paypal_payer_id,omitempty" path:"paypal_payer_id,omitempty" url:"paypal_payer_id,omitempty"`
}

func (*PaypalExpressInfo) UnmarshalJSON ¶ added in v2.0.276

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

type PaypalExpressInfoCollection ¶ added in v2.0.276

type PaypalExpressInfoCollection []PaypalExpressInfo

func (*PaypalExpressInfoCollection) ToSlice ¶ added in v2.0.276

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

func (*PaypalExpressInfoCollection) UnmarshalJSON ¶ added in v2.0.276

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

type PaypalExpressUrl ¶ added in v2.0.276

type PaypalExpressUrl struct {
	RedirectTo string `json:"redirect_to,omitempty" path:"redirect_to,omitempty" url:"redirect_to,omitempty"`
}

func (*PaypalExpressUrl) UnmarshalJSON ¶ added in v2.0.276

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

type PaypalExpressUrlCollection ¶ added in v2.0.276

type PaypalExpressUrlCollection []PaypalExpressUrl

func (*PaypalExpressUrlCollection) ToSlice ¶ added in v2.0.276

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

func (*PaypalExpressUrlCollection) UnmarshalJSON ¶ added in v2.0.276

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

type Permission ¶

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

func (Permission) Identifier ¶

func (p Permission) Identifier() interface{}

func (*Permission) UnmarshalJSON ¶

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

type PermissionCollection ¶

type PermissionCollection []Permission

func (*PermissionCollection) ToSlice ¶

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

func (*PermissionCollection) UnmarshalJSON ¶

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

type PermissionCreateParams ¶

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

type PermissionDeleteParams ¶

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

type PermissionListParams ¶

type PermissionListParams struct {
	Action        string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy        map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter        Permission             `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterPrefix  map[string]interface{} `url:"filter_prefix,omitempty" required:"false" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Path          string                 `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	IncludeGroups *bool                  `url:"include_groups,omitempty" required:"false" json:"include_groups,omitempty" path:"include_groups"`
	GroupId       string                 `url:"group_id,omitempty" required:"false" json:"group_id,omitempty" path:"group_id"`
	UserId        string                 `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	ListParams
}

type Plan ¶ added in v2.0.276

type Plan struct {
	Id                        int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	ActivationCost            string `json:"activation_cost,omitempty" path:"activation_cost,omitempty" url:"activation_cost,omitempty"`
	AddonDescription          string `json:"addon_description,omitempty" path:"addon_description,omitempty" url:"addon_description,omitempty"`
	Annually                  string `json:"annually,omitempty" path:"annually,omitempty" url:"annually,omitempty"`
	AnnuallyAddon             string `json:"annually_addon,omitempty" path:"annually_addon,omitempty" url:"annually_addon,omitempty"`
	ChildSites                int64  `json:"child_sites,omitempty" path:"child_sites,omitempty" url:"child_sites,omitempty"`
	Currency                  string `json:"currency,omitempty" path:"currency,omitempty" url:"currency,omitempty"`
	DedicatedIp               *bool  `json:"dedicated_ip,omitempty" path:"dedicated_ip,omitempty" url:"dedicated_ip,omitempty"`
	DedicatedIps              int64  `json:"dedicated_ips,omitempty" path:"dedicated_ips,omitempty" url:"dedicated_ips,omitempty"`
	DomainCount               int64  `json:"domain_count,omitempty" path:"domain_count,omitempty" url:"domain_count,omitempty"`
	FeatureBundleEca          *bool  `json:"feature_bundle_eca,omitempty" path:"feature_bundle_eca,omitempty" url:"feature_bundle_eca,omitempty"`
	FeatureBundlePower        *bool  `json:"feature_bundle_power,omitempty" path:"feature_bundle_power,omitempty" url:"feature_bundle_power,omitempty"`
	FeatureBundlePremier      *bool  `json:"feature_bundle_premier,omitempty" path:"feature_bundle_premier,omitempty" url:"feature_bundle_premier,omitempty"`
	FeatureBundleStarter      *bool  `json:"feature_bundle_starter,omitempty" path:"feature_bundle_starter,omitempty" url:"feature_bundle_starter,omitempty"`
	Monthly                   string `json:"monthly,omitempty" path:"monthly,omitempty" url:"monthly,omitempty"`
	MonthlyAddon              string `json:"monthly_addon,omitempty" path:"monthly_addon,omitempty" url:"monthly_addon,omitempty"`
	Name                      string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	PreviewPageLimit          int64  `json:"preview_page_limit,omitempty" path:"preview_page_limit,omitempty" url:"preview_page_limit,omitempty"`
	RegionsIncluded           int64  `json:"regions_included,omitempty" path:"regions_included,omitempty" url:"regions_included,omitempty"`
	RemoteSyncInterval        int64  `json:"remote_sync_interval,omitempty" path:"remote_sync_interval,omitempty" url:"remote_sync_interval,omitempty"`
	StagingSites              int64  `json:"staging_sites,omitempty" path:"staging_sites,omitempty" url:"staging_sites,omitempty"`
	UserCost                  string `json:"user_cost,omitempty" path:"user_cost,omitempty" url:"user_cost,omitempty"`
	UsageCost                 string `json:"usage_cost,omitempty" path:"usage_cost,omitempty" url:"usage_cost,omitempty"`
	UsageIncluded             string `json:"usage_included,omitempty" path:"usage_included,omitempty" url:"usage_included,omitempty"`
	Users                     int64  `json:"users,omitempty" path:"users,omitempty" url:"users,omitempty"`
	AdvancedBehaviors         *bool  `json:"advanced_behaviors,omitempty" path:"advanced_behaviors,omitempty" url:"advanced_behaviors,omitempty"`
	AuthGoogle                *bool  `json:"auth_google,omitempty" path:"auth_google,omitempty" url:"auth_google,omitempty"`
	AuthOauth                 *bool  `json:"auth_oauth,omitempty" path:"auth_oauth,omitempty" url:"auth_oauth,omitempty"`
	AuthOauthCustom           *bool  `json:"auth_oauth_custom,omitempty" path:"auth_oauth_custom,omitempty" url:"auth_oauth_custom,omitempty"`
	AuthUserCount             int64  `json:"auth_user_count,omitempty" path:"auth_user_count,omitempty" url:"auth_user_count,omitempty"`
	Automations               *bool  `json:"automations,omitempty" path:"automations,omitempty" url:"automations,omitempty"`
	CustomNamespace           *bool  `json:"custom_namespace,omitempty" path:"custom_namespace,omitempty" url:"custom_namespace,omitempty"`
	CustomSmtp                *bool  `json:"custom_smtp,omitempty" path:"custom_smtp,omitempty" url:"custom_smtp,omitempty"`
	Domain                    *bool  `json:"domain,omitempty" path:"domain,omitempty" url:"domain,omitempty"`
	ExtendedFolderPermissions *bool  `` /* 133-byte string literal not displayed */
	FtpSftpWebdav             *bool  `json:"ftp_sftp_webdav,omitempty" path:"ftp_sftp_webdav,omitempty" url:"ftp_sftp_webdav,omitempty"`
	Gpg                       *bool  `json:"gpg,omitempty" path:"gpg,omitempty" url:"gpg,omitempty"`
	GroupAdminsEnabled        *bool  `json:"group_admins_enabled,omitempty" path:"group_admins_enabled,omitempty" url:"group_admins_enabled,omitempty"`
	GroupNotifications        *bool  `json:"group_notifications,omitempty" path:"group_notifications,omitempty" url:"group_notifications,omitempty"`
	Hipaa                     *bool  `json:"hipaa,omitempty" path:"hipaa,omitempty" url:"hipaa,omitempty"`
	Ldap                      *bool  `json:"ldap,omitempty" path:"ldap,omitempty" url:"ldap,omitempty"`
	LegalFlexibility          *bool  `json:"legal_flexibility,omitempty" path:"legal_flexibility,omitempty" url:"legal_flexibility,omitempty"`
	RemoteSyncFtp             *bool  `json:"remote_sync_ftp,omitempty" path:"remote_sync_ftp,omitempty" url:"remote_sync_ftp,omitempty"`
	Require2fa                *bool  `json:"require_2fa,omitempty" path:"require_2fa,omitempty" url:"require_2fa,omitempty"`
	SecurityOptOut            *bool  `json:"security_opt_out,omitempty" path:"security_opt_out,omitempty" url:"security_opt_out,omitempty"`
	WatermarkImages           *bool  `json:"watermark_images,omitempty" path:"watermark_images,omitempty" url:"watermark_images,omitempty"`
	Webhooks                  *bool  `json:"webhooks,omitempty" path:"webhooks,omitempty" url:"webhooks,omitempty"`
	WebhooksSns               *bool  `json:"webhooks_sns,omitempty" path:"webhooks_sns,omitempty" url:"webhooks_sns,omitempty"`
}

func (Plan) Identifier ¶ added in v2.0.276

func (p Plan) Identifier() interface{}

func (*Plan) UnmarshalJSON ¶ added in v2.0.276

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

type PlanCollection ¶ added in v2.0.276

type PlanCollection []Plan

func (*PlanCollection) ToSlice ¶ added in v2.0.276

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

func (*PlanCollection) UnmarshalJSON ¶ added in v2.0.276

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

type PlanListParams ¶ added in v2.0.276

type PlanListParams struct {
	Action   string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	Currency string `url:"currency,omitempty" required:"false" json:"currency,omitempty" path:"currency"`
	ListParams
}

type Preview ¶

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

func (Preview) Identifier ¶

func (p Preview) Identifier() interface{}

func (*Preview) UnmarshalJSON ¶

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

type PreviewCollection ¶

type PreviewCollection []Preview

func (*PreviewCollection) ToSlice ¶

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

func (*PreviewCollection) UnmarshalJSON ¶

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

type PreviewFindParams ¶ added in v2.0.276

type PreviewFindParams struct {
	Id                     int64           `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	BundleRegistrationCode string          `` /* 131-byte string literal not displayed */
	Size                   PreviewSizeEnum `url:"size,omitempty" required:"false" json:"size,omitempty" path:"size"`
}

type PreviewListParams ¶ added in v2.0.276

type PreviewListParams struct {
	Action                 string          `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	Ids                    string          `url:"ids,omitempty" required:"true" json:"ids,omitempty" path:"ids"`
	BundleRegistrationCode string          `` /* 131-byte string literal not displayed */
	Size                   PreviewSizeEnum `url:"size,omitempty" required:"false" json:"size,omitempty" path:"size"`
	ListParams
}

type PreviewSizeEnum ¶ added in v2.0.276

type PreviewSizeEnum string

func (PreviewSizeEnum) Enum ¶ added in v2.0.276

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

func (PreviewSizeEnum) String ¶ added in v2.0.276

func (u PreviewSizeEnum) String() string

type Priority ¶

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

func (Priority) Identifier ¶

func (p Priority) Identifier() interface{}

func (*Priority) UnmarshalJSON ¶

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

type PriorityCollection ¶

type PriorityCollection []Priority

func (*PriorityCollection) ToSlice ¶

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

func (*PriorityCollection) UnmarshalJSON ¶

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

type PriorityListParams ¶

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

type Project ¶

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

func (Project) Identifier ¶

func (p Project) Identifier() interface{}

func (*Project) UnmarshalJSON ¶

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

type ProjectCollection ¶

type ProjectCollection []Project

func (*ProjectCollection) ToSlice ¶

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

func (*ProjectCollection) UnmarshalJSON ¶

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

type ProjectCreateParams ¶

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

type ProjectDeleteParams ¶

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

type ProjectFindParams ¶

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

type ProjectListParams ¶

type ProjectListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type ProjectUpdateParams ¶

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

type PublicInbox ¶ added in v2.0.276

type PublicInbox struct {
	ColorLeft                 string       `json:"color_left,omitempty" path:"color_left,omitempty" url:"color_left,omitempty"`
	ColorLink                 string       `json:"color_link,omitempty" path:"color_link,omitempty" url:"color_link,omitempty"`
	ColorText                 string       `json:"color_text,omitempty" path:"color_text,omitempty" url:"color_text,omitempty"`
	ColorTop                  string       `json:"color_top,omitempty" path:"color_top,omitempty" url:"color_top,omitempty"`
	ColorTopText              string       `json:"color_top_text,omitempty" path:"color_top_text,omitempty" url:"color_top_text,omitempty"`
	Title                     string       `json:"title,omitempty" path:"title,omitempty" url:"title,omitempty"`
	Description               string       `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	HelpText                  string       `json:"help_text,omitempty" path:"help_text,omitempty" url:"help_text,omitempty"`
	Key                       string       `json:"key,omitempty" path:"key,omitempty" url:"key,omitempty"`
	ShowOnLoginPage           *bool        `json:"show_on_login_page,omitempty" path:"show_on_login_page,omitempty" url:"show_on_login_page,omitempty"`
	HasPassword               *bool        `json:"has_password,omitempty" path:"has_password,omitempty" url:"has_password,omitempty"`
	RequireRegistration       *bool        `json:"require_registration,omitempty" path:"require_registration,omitempty" url:"require_registration,omitempty"`
	DontAllowFoldersInUploads *bool        `` /* 139-byte string literal not displayed */
	ClickwrapBody             string       `json:"clickwrap_body,omitempty" path:"clickwrap_body,omitempty" url:"clickwrap_body,omitempty"`
	FormFieldSet              FormFieldSet `json:"form_field_set,omitempty" path:"form_field_set,omitempty" url:"form_field_set,omitempty"`
	RequireLogout             *bool        `json:"require_logout,omitempty" path:"require_logout,omitempty" url:"require_logout,omitempty"`
}

func (*PublicInbox) UnmarshalJSON ¶ added in v2.0.276

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

type PublicInboxCollection ¶ added in v2.0.276

type PublicInboxCollection []PublicInbox

func (*PublicInboxCollection) ToSlice ¶ added in v2.0.276

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

func (*PublicInboxCollection) UnmarshalJSON ¶ added in v2.0.276

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

type PublicInboxGetKeyParams ¶ added in v2.0.276

type PublicInboxGetKeyParams struct {
	Key           string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"key"`
	RecipientCode string `url:"recipient_code,omitempty" required:"false" json:"recipient_code,omitempty" path:"recipient_code"`
}

type PublicInboxListParams ¶ added in v2.0.276

type PublicInboxListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type PublicIpAddress ¶

type PublicIpAddress struct {
	IpAddress   string `json:"ip_address,omitempty" path:"ip_address,omitempty" url:"ip_address,omitempty"`
	ServerName  string `json:"server_name,omitempty" path:"server_name,omitempty" url:"server_name,omitempty"`
	FtpEnabled  *bool  `json:"ftp_enabled,omitempty" path:"ftp_enabled,omitempty" url:"ftp_enabled,omitempty"`
	SftpEnabled *bool  `json:"sftp_enabled,omitempty" path:"sftp_enabled,omitempty" url:"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" path:"id,omitempty" url:"id,omitempty"`
	Title       string     `json:"title,omitempty" path:"title,omitempty" url:"title,omitempty"`
	CreatedAt   *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Fingerprint string     `json:"fingerprint,omitempty" path:"fingerprint,omitempty" url:"fingerprint,omitempty"`
	Username    string     `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	UserId      int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	PublicKey   string     `json:"public_key,omitempty" path:"public_key,omitempty" url:"public_key,omitempty"`
}

func (PublicKey) Identifier ¶

func (p PublicKey) Identifier() interface{}

func (*PublicKey) UnmarshalJSON ¶

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

type PublicKeyCollection ¶

type PublicKeyCollection []PublicKey

func (*PublicKeyCollection) ToSlice ¶

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

func (*PublicKeyCollection) UnmarshalJSON ¶

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

type PublicKeyCreateParams ¶

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

type PublicKeyDeleteParams ¶

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

type PublicKeyFindParams ¶

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

type PublicKeyListParams ¶

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

type PublicKeyUpdateParams ¶

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

type PublicUrl ¶ added in v2.0.276

type PublicUrl struct {
	HttpHeaders         string                 `json:"http_headers,omitempty" path:"http_headers,omitempty" url:"http_headers,omitempty"`
	Body                string                 `json:"body,omitempty" path:"body,omitempty" url:"body,omitempty"`
	DownloadUri         string                 `json:"download_uri,omitempty" path:"download_uri,omitempty" url:"download_uri,omitempty"`
	InternalDownloadUri string                 `json:"internal_download_uri,omitempty" path:"internal_download_uri,omitempty" url:"internal_download_uri,omitempty"`
	Error               string                 `json:"error,omitempty" path:"error,omitempty" url:"error,omitempty"`
	Redirect            string                 `json:"redirect,omitempty" path:"redirect,omitempty" url:"redirect,omitempty"`
	Status              int64                  `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	MimeType            string                 `json:"mime_type,omitempty" path:"mime_type,omitempty" url:"mime_type,omitempty"`
	RemoteServerId      int64                  `json:"remote_server_id,omitempty" path:"remote_server_id,omitempty" url:"remote_server_id,omitempty"`
	Headers             map[string]interface{} `json:"headers,omitempty" path:"headers,omitempty" url:"headers,omitempty"`
	SocksIps            map[string]interface{} `json:"socks_ips,omitempty" path:"socks_ips,omitempty" url:"socks_ips,omitempty"`
	Hostname            string                 `json:"hostname,omitempty" path:"hostname,omitempty" url:"hostname,omitempty"`
	Path                string                 `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
}

func (PublicUrl) Identifier ¶ added in v2.0.276

func (p PublicUrl) Identifier() interface{}

func (*PublicUrl) UnmarshalJSON ¶ added in v2.0.276

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

type PublicUrlCollection ¶ added in v2.0.276

type PublicUrlCollection []PublicUrl

func (*PublicUrlCollection) ToSlice ¶ added in v2.0.276

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

func (*PublicUrlCollection) UnmarshalJSON ¶ added in v2.0.276

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

type PublicUrlCreateParams ¶ added in v2.0.276

type PublicUrlCreateParams struct {
	Hostname string `url:"hostname,omitempty" required:"true" json:"hostname,omitempty" path:"hostname"`
	Path     string `url:"path,omitempty" required:"true" json:"path,omitempty" path:"path"`
}

type QParam ¶

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

type Query ¶

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

type RegionalMigration ¶ added in v2.0.276

type RegionalMigration struct {
}

func (*RegionalMigration) UnmarshalJSON ¶ added in v2.0.276

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

type RegionalMigrationCollection ¶ added in v2.0.276

type RegionalMigrationCollection []RegionalMigration

func (*RegionalMigrationCollection) ToSlice ¶ added in v2.0.276

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

func (*RegionalMigrationCollection) UnmarshalJSON ¶ added in v2.0.276

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

type Release ¶ added in v2.0.276

type Release struct {
	Version               string   `json:"version,omitempty" path:"version,omitempty" url:"version,omitempty"`
	Description           string   `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	NativeReleasePackages []string `json:"native_release_packages,omitempty" path:"native_release_packages,omitempty" url:"native_release_packages,omitempty"`
	Title                 string   `json:"title,omitempty" path:"title,omitempty" url:"title,omitempty"`
}

func (*Release) UnmarshalJSON ¶ added in v2.0.276

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

type ReleaseCollection ¶ added in v2.0.276

type ReleaseCollection []Release

func (*ReleaseCollection) ToSlice ¶ added in v2.0.276

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

func (*ReleaseCollection) UnmarshalJSON ¶ added in v2.0.276

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

type ReleaseGetLatestParams ¶ added in v2.0.276

type ReleaseGetLatestParams struct {
	Platform string `url:"platform,omitempty" required:"false" json:"platform,omitempty" path:"platform"`
}

type ReleasePackage ¶ added in v2.0.276

type ReleasePackage struct {
	PackageLink string `json:"package_link,omitempty" path:"package_link,omitempty" url:"package_link,omitempty"`
	Platform    string `json:"platform,omitempty" path:"platform,omitempty" url:"platform,omitempty"`
}

func (*ReleasePackage) UnmarshalJSON ¶ added in v2.0.276

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

type ReleasePackageCollection ¶ added in v2.0.276

type ReleasePackageCollection []ReleasePackage

func (*ReleasePackageCollection) ToSlice ¶ added in v2.0.276

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

func (*ReleasePackageCollection) UnmarshalJSON ¶ added in v2.0.276

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

type ReloadIterator ¶

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

type RemoteBandwidthSnapshot ¶

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

func (RemoteBandwidthSnapshot) Identifier ¶

func (r RemoteBandwidthSnapshot) Identifier() interface{}

func (*RemoteBandwidthSnapshot) UnmarshalJSON ¶

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

type RemoteBandwidthSnapshotCollection ¶

type RemoteBandwidthSnapshotCollection []RemoteBandwidthSnapshot

func (*RemoteBandwidthSnapshotCollection) ToSlice ¶

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

func (*RemoteBandwidthSnapshotCollection) UnmarshalJSON ¶

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

type RemoteBandwidthSnapshotListParams ¶

type RemoteBandwidthSnapshotListParams struct {
	Action     string                  `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy     map[string]interface{}  `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     RemoteBandwidthSnapshot `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   map[string]interface{}  `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq map[string]interface{}  `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   map[string]interface{}  `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq map[string]interface{}  `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type RemoteServer ¶

type RemoteServer struct {
	Id                                int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Disabled                          *bool  `json:"disabled,omitempty" path:"disabled,omitempty" url:"disabled,omitempty"`
	AuthenticationMethod              string `json:"authentication_method,omitempty" path:"authentication_method,omitempty" url:"authentication_method,omitempty"`
	Hostname                          string `json:"hostname,omitempty" path:"hostname,omitempty" url:"hostname,omitempty"`
	RemoteHomePath                    string `json:"remote_home_path,omitempty" path:"remote_home_path,omitempty" url:"remote_home_path,omitempty"`
	Name                              string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Port                              int64  `json:"port,omitempty" path:"port,omitempty" url:"port,omitempty"`
	MaxConnections                    int64  `json:"max_connections,omitempty" path:"max_connections,omitempty" url:"max_connections,omitempty"`
	PinToSiteRegion                   *bool  `json:"pin_to_site_region,omitempty" path:"pin_to_site_region,omitempty" url:"pin_to_site_region,omitempty"`
	PinnedRegion                      string `json:"pinned_region,omitempty" path:"pinned_region,omitempty" url:"pinned_region,omitempty"`
	S3Bucket                          string `json:"s3_bucket,omitempty" path:"s3_bucket,omitempty" url:"s3_bucket,omitempty"`
	S3Region                          string `json:"s3_region,omitempty" path:"s3_region,omitempty" url:"s3_region,omitempty"`
	AwsAccessKey                      string `json:"aws_access_key,omitempty" path:"aws_access_key,omitempty" url:"aws_access_key,omitempty"`
	ServerCertificate                 string `json:"server_certificate,omitempty" path:"server_certificate,omitempty" url:"server_certificate,omitempty"`
	ServerHostKey                     string `json:"server_host_key,omitempty" path:"server_host_key,omitempty" url:"server_host_key,omitempty"`
	ServerType                        string `json:"server_type,omitempty" path:"server_type,omitempty" url:"server_type,omitempty"`
	Ssl                               string `json:"ssl,omitempty" path:"ssl,omitempty" url:"ssl,omitempty"`
	Username                          string `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	GoogleCloudStorageBucket          string `` /* 133-byte string literal not displayed */
	GoogleCloudStorageProjectId       string `` /* 145-byte string literal not displayed */
	BackblazeB2S3Endpoint             string `json:"backblaze_b2_s3_endpoint,omitempty" path:"backblaze_b2_s3_endpoint,omitempty" url:"backblaze_b2_s3_endpoint,omitempty"`
	BackblazeB2Bucket                 string `json:"backblaze_b2_bucket,omitempty" path:"backblaze_b2_bucket,omitempty" url:"backblaze_b2_bucket,omitempty"`
	WasabiBucket                      string `json:"wasabi_bucket,omitempty" path:"wasabi_bucket,omitempty" url:"wasabi_bucket,omitempty"`
	WasabiRegion                      string `json:"wasabi_region,omitempty" path:"wasabi_region,omitempty" url:"wasabi_region,omitempty"`
	WasabiAccessKey                   string `json:"wasabi_access_key,omitempty" path:"wasabi_access_key,omitempty" url:"wasabi_access_key,omitempty"`
	RackspaceUsername                 string `json:"rackspace_username,omitempty" path:"rackspace_username,omitempty" url:"rackspace_username,omitempty"`
	RackspaceRegion                   string `json:"rackspace_region,omitempty" path:"rackspace_region,omitempty" url:"rackspace_region,omitempty"`
	RackspaceContainer                string `json:"rackspace_container,omitempty" path:"rackspace_container,omitempty" url:"rackspace_container,omitempty"`
	AuthSetupLink                     string `json:"auth_setup_link,omitempty" path:"auth_setup_link,omitempty" url:"auth_setup_link,omitempty"`
	AuthStatus                        string `json:"auth_status,omitempty" path:"auth_status,omitempty" url:"auth_status,omitempty"`
	AuthAccountName                   string `json:"auth_account_name,omitempty" path:"auth_account_name,omitempty" url:"auth_account_name,omitempty"`
	OneDriveAccountType               string `json:"one_drive_account_type,omitempty" path:"one_drive_account_type,omitempty" url:"one_drive_account_type,omitempty"`
	AzureBlobStorageAccount           string `` /* 130-byte string literal not displayed */
	AzureBlobStorageSasToken          string `` /* 136-byte string literal not displayed */
	AzureBlobStorageContainer         string `` /* 136-byte string literal not displayed */
	AzureFilesStorageAccount          string `` /* 133-byte string literal not displayed */
	AzureFilesStorageSasToken         string `` /* 139-byte string literal not displayed */
	AzureFilesStorageShareName        string `` /* 142-byte string literal not displayed */
	S3CompatibleBucket                string `json:"s3_compatible_bucket,omitempty" path:"s3_compatible_bucket,omitempty" url:"s3_compatible_bucket,omitempty"`
	S3CompatibleEndpoint              string `json:"s3_compatible_endpoint,omitempty" path:"s3_compatible_endpoint,omitempty" url:"s3_compatible_endpoint,omitempty"`
	S3CompatibleRegion                string `json:"s3_compatible_region,omitempty" path:"s3_compatible_region,omitempty" url:"s3_compatible_region,omitempty"`
	S3CompatibleAccessKey             string `json:"s3_compatible_access_key,omitempty" path:"s3_compatible_access_key,omitempty" url:"s3_compatible_access_key,omitempty"`
	EnableDedicatedIps                *bool  `json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips,omitempty" url:"enable_dedicated_ips,omitempty"`
	FilesAgentPermissionSet           string `` /* 130-byte string literal not displayed */
	FilesAgentRoot                    string `json:"files_agent_root,omitempty" path:"files_agent_root,omitempty" url:"files_agent_root,omitempty"`
	FilesAgentApiToken                string `json:"files_agent_api_token,omitempty" path:"files_agent_api_token,omitempty" url:"files_agent_api_token,omitempty"`
	FilebaseBucket                    string `json:"filebase_bucket,omitempty" path:"filebase_bucket,omitempty" url:"filebase_bucket,omitempty"`
	FilebaseAccessKey                 string `json:"filebase_access_key,omitempty" path:"filebase_access_key,omitempty" url:"filebase_access_key,omitempty"`
	CloudflareBucket                  string `json:"cloudflare_bucket,omitempty" path:"cloudflare_bucket,omitempty" url:"cloudflare_bucket,omitempty"`
	CloudflareAccessKey               string `json:"cloudflare_access_key,omitempty" path:"cloudflare_access_key,omitempty" url:"cloudflare_access_key,omitempty"`
	CloudflareEndpoint                string `json:"cloudflare_endpoint,omitempty" path:"cloudflare_endpoint,omitempty" url:"cloudflare_endpoint,omitempty"`
	DropboxTeams                      *bool  `json:"dropbox_teams,omitempty" path:"dropbox_teams,omitempty" url:"dropbox_teams,omitempty"`
	LinodeBucket                      string `json:"linode_bucket,omitempty" path:"linode_bucket,omitempty" url:"linode_bucket,omitempty"`
	LinodeAccessKey                   string `json:"linode_access_key,omitempty" path:"linode_access_key,omitempty" url:"linode_access_key,omitempty"`
	LinodeRegion                      string `json:"linode_region,omitempty" path:"linode_region,omitempty" url:"linode_region,omitempty"`
	AwsSecretKey                      string `json:"aws_secret_key,omitempty" path:"aws_secret_key,omitempty" url:"aws_secret_key,omitempty"`
	Password                          string `json:"password,omitempty" path:"password,omitempty" url:"password,omitempty"`
	PrivateKey                        string `json:"private_key,omitempty" path:"private_key,omitempty" url:"private_key,omitempty"`
	PrivateKeyPassphrase              string `json:"private_key_passphrase,omitempty" path:"private_key_passphrase,omitempty" url:"private_key_passphrase,omitempty"`
	SslCertificate                    string `json:"ssl_certificate,omitempty" path:"ssl_certificate,omitempty" url:"ssl_certificate,omitempty"`
	GoogleCloudStorageCredentialsJson string `` /* 163-byte string literal not displayed */
	WasabiSecretKey                   string `json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key,omitempty" url:"wasabi_secret_key,omitempty"`
	BackblazeB2KeyId                  string `json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id,omitempty" url:"backblaze_b2_key_id,omitempty"`
	BackblazeB2ApplicationKey         string `` /* 136-byte string literal not displayed */
	RackspaceApiKey                   string `json:"rackspace_api_key,omitempty" path:"rackspace_api_key,omitempty" url:"rackspace_api_key,omitempty"`
	ResetAuthentication               *bool  `json:"reset_authentication,omitempty" path:"reset_authentication,omitempty" url:"reset_authentication,omitempty"`
	AzureBlobStorageAccessKey         string `` /* 139-byte string literal not displayed */
	AzureFilesStorageAccessKey        string `` /* 142-byte string literal not displayed */
	S3CompatibleSecretKey             string `json:"s3_compatible_secret_key,omitempty" path:"s3_compatible_secret_key,omitempty" url:"s3_compatible_secret_key,omitempty"`
	FilebaseSecretKey                 string `json:"filebase_secret_key,omitempty" path:"filebase_secret_key,omitempty" url:"filebase_secret_key,omitempty"`
	CloudflareSecretKey               string `json:"cloudflare_secret_key,omitempty" path:"cloudflare_secret_key,omitempty" url:"cloudflare_secret_key,omitempty"`
	LinodeSecretKey                   string `json:"linode_secret_key,omitempty" path:"linode_secret_key,omitempty" url:"linode_secret_key,omitempty"`
}

func (RemoteServer) Identifier ¶

func (r RemoteServer) Identifier() interface{}

func (*RemoteServer) UnmarshalJSON ¶

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

type RemoteServerCollection ¶

type RemoteServerCollection []RemoteServer

func (*RemoteServerCollection) ToSlice ¶

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

func (*RemoteServerCollection) UnmarshalJSON ¶

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

type RemoteServerConfigurationFile ¶

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

func (RemoteServerConfigurationFile) Identifier ¶

func (r RemoteServerConfigurationFile) Identifier() interface{}

func (*RemoteServerConfigurationFile) UnmarshalJSON ¶

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

type RemoteServerConfigurationFileCollection ¶

type RemoteServerConfigurationFileCollection []RemoteServerConfigurationFile

func (*RemoteServerConfigurationFileCollection) ToSlice ¶

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

func (*RemoteServerConfigurationFileCollection) UnmarshalJSON ¶

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

type RemoteServerConfigurationFileParams ¶

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

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

type RemoteServerCreateParams ¶

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

type RemoteServerDeleteParams ¶

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

type RemoteServerFilesAgentPermissionSetEnum ¶

type RemoteServerFilesAgentPermissionSetEnum string

func (RemoteServerFilesAgentPermissionSetEnum) Enum ¶

func (RemoteServerFilesAgentPermissionSetEnum) String ¶

type RemoteServerFindConfigurationFileParams ¶

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

type RemoteServerFindParams ¶

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

type RemoteServerListForTestingParams ¶ added in v2.0.276

type RemoteServerListForTestingParams struct {
	RemoteServerId                    int64  `url:"remote_server_id,omitempty" required:"false" json:"remote_server_id,omitempty" path:"remote_server_id"`
	Root                              string `url:"root,omitempty" required:"false" json:"root,omitempty" path:"root"`
	AwsAccessKey                      string `url:"aws_access_key,omitempty" required:"false" json:"aws_access_key,omitempty" path:"aws_access_key"`
	AwsSecretKey                      string `url:"aws_secret_key,omitempty" required:"false" json:"aws_secret_key,omitempty" path:"aws_secret_key"`
	Password                          string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	PrivateKey                        string `url:"private_key,omitempty" required:"false" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassphrase              string `url:"private_key_passphrase,omitempty" required:"false" json:"private_key_passphrase,omitempty" path:"private_key_passphrase"`
	SslCertificate                    string `url:"ssl_certificate,omitempty" required:"false" json:"ssl_certificate,omitempty" path:"ssl_certificate"`
	GoogleCloudStorageCredentialsJson string `` /* 170-byte string literal not displayed */
	WasabiAccessKey                   string `url:"wasabi_access_key,omitempty" required:"false" json:"wasabi_access_key,omitempty" path:"wasabi_access_key"`
	WasabiSecretKey                   string `url:"wasabi_secret_key,omitempty" required:"false" json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key"`
	BackblazeB2KeyId                  string `url:"backblaze_b2_key_id,omitempty" required:"false" json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id"`
	BackblazeB2ApplicationKey         string `` /* 143-byte string literal not displayed */
	RackspaceApiKey                   string `url:"rackspace_api_key,omitempty" required:"false" json:"rackspace_api_key,omitempty" path:"rackspace_api_key"`
	ResetAuthentication               *bool  `url:"reset_authentication,omitempty" required:"false" json:"reset_authentication,omitempty" path:"reset_authentication"`
	AzureBlobStorageAccessKey         string `` /* 146-byte string literal not displayed */
	AzureFilesStorageAccessKey        string `` /* 149-byte string literal not displayed */
	Hostname                          string `url:"hostname,omitempty" required:"false" json:"hostname,omitempty" path:"hostname"`
	Name                              string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	PinToSiteRegion                   *bool  `url:"pin_to_site_region,omitempty" required:"false" json:"pin_to_site_region,omitempty" path:"pin_to_site_region"`
	MaxConnections                    int64  `url:"max_connections,omitempty" required:"false" json:"max_connections,omitempty" path:"max_connections"`
	Port                              int64  `url:"port,omitempty" required:"false" json:"port,omitempty" path:"port"`
	S3Bucket                          string `url:"s3_bucket,omitempty" required:"false" json:"s3_bucket,omitempty" path:"s3_bucket"`
	S3Region                          string `url:"s3_region,omitempty" required:"false" json:"s3_region,omitempty" path:"s3_region"`
	ServerCertificate                 string `url:"server_certificate,omitempty" required:"false" json:"server_certificate,omitempty" path:"server_certificate"`
	ServerHostKey                     string `url:"server_host_key,omitempty" required:"false" json:"server_host_key,omitempty" path:"server_host_key"`
	ServerType                        string `url:"server_type,omitempty" required:"false" json:"server_type,omitempty" path:"server_type"`
	Ssl                               string `url:"ssl,omitempty" required:"false" json:"ssl,omitempty" path:"ssl"`
	Username                          string `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
	GoogleCloudStorageBucket          string `` /* 140-byte string literal not displayed */
	GoogleCloudStorageProjectId       string `` /* 152-byte string literal not displayed */
	BackblazeB2Bucket                 string `url:"backblaze_b2_bucket,omitempty" required:"false" json:"backblaze_b2_bucket,omitempty" path:"backblaze_b2_bucket"`
	BackblazeB2S3Endpoint             string `` /* 131-byte string literal not displayed */
	WasabiBucket                      string `url:"wasabi_bucket,omitempty" required:"false" json:"wasabi_bucket,omitempty" path:"wasabi_bucket"`
	WasabiRegion                      string `url:"wasabi_region,omitempty" required:"false" json:"wasabi_region,omitempty" path:"wasabi_region"`
	RackspaceUsername                 string `url:"rackspace_username,omitempty" required:"false" json:"rackspace_username,omitempty" path:"rackspace_username"`
	RackspaceRegion                   string `url:"rackspace_region,omitempty" required:"false" json:"rackspace_region,omitempty" path:"rackspace_region"`
	RackspaceContainer                string `url:"rackspace_container,omitempty" required:"false" json:"rackspace_container,omitempty" path:"rackspace_container"`
	OneDriveAccountType               string `url:"one_drive_account_type,omitempty" required:"false" json:"one_drive_account_type,omitempty" path:"one_drive_account_type"`
	AzureBlobStorageAccount           string `` /* 137-byte string literal not displayed */
	AzureBlobStorageContainer         string `` /* 143-byte string literal not displayed */
	AzureBlobStorageSasToken          string `` /* 143-byte string literal not displayed */
	AzureFilesStorageAccount          string `` /* 140-byte string literal not displayed */
	AzureFilesStorageShareName        string `` /* 149-byte string literal not displayed */
	AzureFilesStorageSasToken         string `` /* 146-byte string literal not displayed */
	S3CompatibleBucket                string `url:"s3_compatible_bucket,omitempty" required:"false" json:"s3_compatible_bucket,omitempty" path:"s3_compatible_bucket"`
	S3CompatibleEndpoint              string `url:"s3_compatible_endpoint,omitempty" required:"false" json:"s3_compatible_endpoint,omitempty" path:"s3_compatible_endpoint"`
	S3CompatibleAccessKey             string `` /* 131-byte string literal not displayed */
	S3CompatibleSecretKey             string `` /* 131-byte string literal not displayed */
	S3CompatibleRegion                string `url:"s3_compatible_region,omitempty" required:"false" json:"s3_compatible_region,omitempty" path:"s3_compatible_region"`
	EnableDedicatedIps                *bool  `url:"enable_dedicated_ips,omitempty" required:"false" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	FilesAgentPublicKey               string `url:"files_agent_public_key,omitempty" required:"false" json:"files_agent_public_key,omitempty" path:"files_agent_public_key"`
	FilesAgentApiToken                string `url:"files_agent_api_token,omitempty" required:"false" json:"files_agent_api_token,omitempty" path:"files_agent_api_token"`
	FilesAgentRoot                    string `url:"files_agent_root,omitempty" required:"false" json:"files_agent_root,omitempty" path:"files_agent_root"`
	FilebaseAccessKey                 string `url:"filebase_access_key,omitempty" required:"false" json:"filebase_access_key,omitempty" path:"filebase_access_key"`
	FilebaseSecretKey                 string `url:"filebase_secret_key,omitempty" required:"false" json:"filebase_secret_key,omitempty" path:"filebase_secret_key"`
	FilebaseBucket                    string `url:"filebase_bucket,omitempty" required:"false" json:"filebase_bucket,omitempty" path:"filebase_bucket"`
	CloudflareAccessKey               string `url:"cloudflare_access_key,omitempty" required:"false" json:"cloudflare_access_key,omitempty" path:"cloudflare_access_key"`
	CloudflareSecretKey               string `url:"cloudflare_secret_key,omitempty" required:"false" json:"cloudflare_secret_key,omitempty" path:"cloudflare_secret_key"`
	CloudflareBucket                  string `url:"cloudflare_bucket,omitempty" required:"false" json:"cloudflare_bucket,omitempty" path:"cloudflare_bucket"`
	CloudflareEndpoint                string `url:"cloudflare_endpoint,omitempty" required:"false" json:"cloudflare_endpoint,omitempty" path:"cloudflare_endpoint"`
	DropboxTeams                      *bool  `url:"dropbox_teams,omitempty" required:"false" json:"dropbox_teams,omitempty" path:"dropbox_teams"`
	LinodeAccessKey                   string `url:"linode_access_key,omitempty" required:"false" json:"linode_access_key,omitempty" path:"linode_access_key"`
	LinodeSecretKey                   string `url:"linode_secret_key,omitempty" required:"false" json:"linode_secret_key,omitempty" path:"linode_secret_key"`
	LinodeBucket                      string `url:"linode_bucket,omitempty" required:"false" json:"linode_bucket,omitempty" path:"linode_bucket"`
	LinodeRegion                      string `url:"linode_region,omitempty" required:"false" json:"linode_region,omitempty" path:"linode_region"`
}

type RemoteServerListParams ¶

type RemoteServerListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type RemoteServerOneDriveAccountTypeEnum ¶

type RemoteServerOneDriveAccountTypeEnum string

func (RemoteServerOneDriveAccountTypeEnum) Enum ¶

func (RemoteServerOneDriveAccountTypeEnum) String ¶

type RemoteServerServerCertificateEnum ¶

type RemoteServerServerCertificateEnum string

func (RemoteServerServerCertificateEnum) Enum ¶

func (RemoteServerServerCertificateEnum) String ¶

type RemoteServerServerTypeEnum ¶

type RemoteServerServerTypeEnum string

func (RemoteServerServerTypeEnum) Enum ¶

func (RemoteServerServerTypeEnum) String ¶

type RemoteServerSslEnum ¶

type RemoteServerSslEnum string

func (RemoteServerSslEnum) Enum ¶

func (RemoteServerSslEnum) String ¶

func (u RemoteServerSslEnum) String() string

type RemoteServerUpdateParams ¶

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

type Request ¶

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

func (Request) Identifier ¶

func (r Request) Identifier() interface{}

func (*Request) UnmarshalJSON ¶

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

type RequestCollection ¶

type RequestCollection []Request

func (*RequestCollection) ToSlice ¶

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

func (*RequestCollection) UnmarshalJSON ¶

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

type RequestCreateParams ¶

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

type RequestDeleteParams ¶

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

type RequestGetFolderParams ¶

type RequestGetFolderParams struct {
	Action string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Mine   *bool                  `url:"mine,omitempty" required:"false" json:"mine,omitempty" path:"mine"`
	Path   string                 `url:"-,omitempty" required:"false" json:"-,omitempty" path:"path"`
	ListParams
}

type RequestListParams ¶

type RequestListParams struct {
	Action string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Mine   *bool                  `url:"mine,omitempty" required:"false" json:"mine,omitempty" path:"mine"`
	Path   string                 `url:"path,omitempty" required:"false" json:"path,omitempty" path:"path"`
	ListParams
}

type RequestResponseOption ¶

type RequestResponseOption func(*requestResponseOption) error

func RequestHeadersOption ¶

func RequestHeadersOption(headers *http.Header) RequestResponseOption

func RequestOption ¶

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

func ResponseBodyOption ¶

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

func ResponseOption ¶

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

type ResourceIterator ¶

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

type ResourceLoader ¶

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

type ResponseError ¶

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

func (ResponseError) Error ¶

func (e ResponseError) Error() string

func (ResponseError) Is ¶

func (e ResponseError) Is(err error) bool

func (ResponseError) IsNil ¶

func (e ResponseError) IsNil() bool

func (*ResponseError) UnmarshalJSON ¶

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

type Revision ¶ added in v2.0.276

type Revision struct {
	Current  string `json:"current,omitempty" path:"current,omitempty" url:"current,omitempty"`
	Prior    string `json:"prior,omitempty" path:"prior,omitempty" url:"prior,omitempty"`
	Revision string `json:"revision,omitempty" path:"revision,omitempty" url:"revision,omitempty"`
	UpToDate *bool  `json:"up_to_date,omitempty" path:"up_to_date,omitempty" url:"up_to_date,omitempty"`
}

func (*Revision) UnmarshalJSON ¶ added in v2.0.276

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

type RevisionCollection ¶ added in v2.0.276

type RevisionCollection []Revision

func (*RevisionCollection) ToSlice ¶ added in v2.0.276

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

func (*RevisionCollection) UnmarshalJSON ¶ added in v2.0.276

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

type RevisionListParams ¶ added in v2.0.276

type RevisionListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type SafePlan ¶ added in v2.0.276

type SafePlan struct {
}

func (*SafePlan) UnmarshalJSON ¶ added in v2.0.276

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

type SafePlanCollection ¶ added in v2.0.276

type SafePlanCollection []SafePlan

func (*SafePlanCollection) ToSlice ¶ added in v2.0.276

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

func (*SafePlanCollection) UnmarshalJSON ¶ added in v2.0.276

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

type Session ¶

type Session struct {
	Id                         string `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Language                   string `json:"language,omitempty" path:"language,omitempty" url:"language,omitempty"`
	LoginToken                 string `json:"login_token,omitempty" path:"login_token,omitempty" url:"login_token,omitempty"`
	LoginTokenDomain           string `json:"login_token_domain,omitempty" path:"login_token_domain,omitempty" url:"login_token_domain,omitempty"`
	MaxDirListingSize          int64  `json:"max_dir_listing_size,omitempty" path:"max_dir_listing_size,omitempty" url:"max_dir_listing_size,omitempty"`
	MultipleRegions            *bool  `json:"multiple_regions,omitempty" path:"multiple_regions,omitempty" url:"multiple_regions,omitempty"`
	ReadOnly                   *bool  `json:"read_only,omitempty" path:"read_only,omitempty" url:"read_only,omitempty"`
	RootPath                   string `json:"root_path,omitempty" path:"root_path,omitempty" url:"root_path,omitempty"`
	SftpInsecureCiphers        *bool  `json:"sftp_insecure_ciphers,omitempty" path:"sftp_insecure_ciphers,omitempty" url:"sftp_insecure_ciphers,omitempty"`
	SiteId                     int64  `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	SslRequired                *bool  `json:"ssl_required,omitempty" path:"ssl_required,omitempty" url:"ssl_required,omitempty"`
	TlsDisabled                *bool  `json:"tls_disabled,omitempty" path:"tls_disabled,omitempty" url:"tls_disabled,omitempty"`
	TwoFactorSetupNeeded       *bool  `json:"two_factor_setup_needed,omitempty" path:"two_factor_setup_needed,omitempty" url:"two_factor_setup_needed,omitempty"`
	Allowed2faMethodSms        *bool  `json:"allowed_2fa_method_sms,omitempty" path:"allowed_2fa_method_sms,omitempty" url:"allowed_2fa_method_sms,omitempty"`
	Allowed2faMethodTotp       *bool  `json:"allowed_2fa_method_totp,omitempty" path:"allowed_2fa_method_totp,omitempty" url:"allowed_2fa_method_totp,omitempty"`
	Allowed2faMethodU2f        *bool  `json:"allowed_2fa_method_u2f,omitempty" path:"allowed_2fa_method_u2f,omitempty" url:"allowed_2fa_method_u2f,omitempty"`
	Allowed2faMethodWebauthn   *bool  `` /* 133-byte string literal not displayed */
	Allowed2faMethodYubi       *bool  `json:"allowed_2fa_method_yubi,omitempty" path:"allowed_2fa_method_yubi,omitempty" url:"allowed_2fa_method_yubi,omitempty"`
	UseProvidedModifiedAt      *bool  `json:"use_provided_modified_at,omitempty" path:"use_provided_modified_at,omitempty" url:"use_provided_modified_at,omitempty"`
	WindowsModeFtp             *bool  `json:"windows_mode_ftp,omitempty" path:"windows_mode_ftp,omitempty" url:"windows_mode_ftp,omitempty"`
	Username                   string `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	Password                   string `json:"password,omitempty" path:"password,omitempty" url:"password,omitempty"`
	ChangePassword             string `json:"change_password,omitempty" path:"change_password,omitempty" url:"change_password,omitempty"`
	ChangePasswordConfirmation string `` /* 136-byte string literal not displayed */
	Interface                  string `json:"interface,omitempty" path:"interface,omitempty" url:"interface,omitempty"`
	Locale                     string `json:"locale,omitempty" path:"locale,omitempty" url:"locale,omitempty"`
	NoCookie                   *bool  `json:"no_cookie,omitempty" path:"no_cookie,omitempty" url:"no_cookie,omitempty"`
	OauthProvider              string `json:"oauth_provider,omitempty" path:"oauth_provider,omitempty" url:"oauth_provider,omitempty"`
	OauthCode                  string `json:"oauth_code,omitempty" path:"oauth_code,omitempty" url:"oauth_code,omitempty"`
	OauthState                 string `json:"oauth_state,omitempty" path:"oauth_state,omitempty" url:"oauth_state,omitempty"`
	Otp                        string `json:"otp,omitempty" path:"otp,omitempty" url:"otp,omitempty"`
	PartialSessionId           string `json:"partial_session_id,omitempty" path:"partial_session_id,omitempty" url:"partial_session_id,omitempty"`
}

func (Session) Identifier ¶

func (s Session) Identifier() interface{}

func (*Session) UnmarshalJSON ¶

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

type SessionCollection ¶

type SessionCollection []Session

func (*SessionCollection) ToSlice ¶

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

func (*SessionCollection) UnmarshalJSON ¶

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

type SessionCreateParams ¶

type SessionCreateParams struct {
	Username                   string `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
	Password                   string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	ChangePassword             string `url:"change_password,omitempty" required:"false" json:"change_password,omitempty" path:"change_password"`
	ChangePasswordConfirmation string `` /* 143-byte string literal not displayed */
	Interface                  string `url:"interface,omitempty" required:"false" json:"interface,omitempty" path:"interface"`
	Locale                     string `url:"locale,omitempty" required:"false" json:"locale,omitempty" path:"locale"`
	NoCookie                   *bool  `url:"no_cookie,omitempty" required:"false" json:"no_cookie,omitempty" path:"no_cookie"`
	OauthProvider              string `url:"oauth_provider,omitempty" required:"false" json:"oauth_provider,omitempty" path:"oauth_provider"`
	OauthCode                  string `url:"oauth_code,omitempty" required:"false" json:"oauth_code,omitempty" path:"oauth_code"`
	OauthState                 string `url:"oauth_state,omitempty" required:"false" json:"oauth_state,omitempty" path:"oauth_state"`
	Otp                        string `url:"otp,omitempty" required:"false" json:"otp,omitempty" path:"otp"`
	PartialSessionId           string `url:"partial_session_id,omitempty" required:"false" json:"partial_session_id,omitempty" path:"partial_session_id"`
}

type SessionForgotParams ¶ added in v2.0.276

type SessionForgotParams struct {
	Email           string `url:"email,omitempty" required:"false" json:"email,omitempty" path:"email"`
	Username        string `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
	UsernameOrEmail string `url:"username_or_email,omitempty" required:"false" json:"username_or_email,omitempty" path:"username_or_email"`
}

type SessionForgotResetParams ¶ added in v2.0.276

type SessionForgotResetParams struct {
	Code            string `url:"code,omitempty" required:"true" json:"code,omitempty" path:"code"`
	Password        string `url:"password,omitempty" required:"true" json:"password,omitempty" path:"password"`
	ConfirmPassword string `url:"confirm_password,omitempty" required:"false" json:"confirm_password,omitempty" path:"confirm_password"`
	Interface       string `url:"interface,omitempty" required:"false" json:"interface,omitempty" path:"interface"`
	Locale          string `url:"locale,omitempty" required:"false" json:"locale,omitempty" path:"locale"`
	Otp             string `url:"otp,omitempty" required:"false" json:"otp,omitempty" path:"otp"`
}

type SessionForgotValidateParams ¶ added in v2.0.276

type SessionForgotValidateParams struct {
	Code string `url:"code,omitempty" required:"true" json:"code,omitempty" path:"code"`
}

type SessionOauthParams ¶ added in v2.0.276

type SessionOauthParams struct {
	Provider string `url:"provider,omitempty" required:"true" json:"provider,omitempty" path:"provider"`
	State    string `url:"state,omitempty" required:"false" json:"state,omitempty" path:"state"`
}

type SessionPairingKeyParams ¶ added in v2.0.276

type SessionPairingKeyParams struct {
	Key string `url:"-,omitempty" required:"false" json:"-,omitempty" path:"key"`
}

type Setting ¶ added in v2.0.276

type Setting struct {
}

func (*Setting) UnmarshalJSON ¶ added in v2.0.276

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

type SettingCollection ¶ added in v2.0.276

type SettingCollection []Setting

func (*SettingCollection) ToSlice ¶ added in v2.0.276

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

func (*SettingCollection) UnmarshalJSON ¶ added in v2.0.276

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

type SettingGetDomainParams ¶ added in v2.0.276

type SettingGetDomainParams struct {
	Domain string `url:"domain,omitempty" required:"true" json:"domain,omitempty" path:"domain"`
}

type SettingListParams ¶ added in v2.0.276

type SettingListParams struct {
	ListParams
}

type Settings ¶ added in v2.0.276

type Settings struct {
	ImageRegex                             string                 `json:"image_regex,omitempty" path:"image_regex,omitempty" url:"image_regex,omitempty"`
	VideoRegex                             string                 `json:"video_regex,omitempty" path:"video_regex,omitempty" url:"video_regex,omitempty"`
	AudioRegex                             string                 `json:"audio_regex,omitempty" path:"audio_regex,omitempty" url:"audio_regex,omitempty"`
	PdfRegex                               string                 `json:"pdf_regex,omitempty" path:"pdf_regex,omitempty" url:"pdf_regex,omitempty"`
	CurrentLanguage                        string                 `json:"current_language,omitempty" path:"current_language,omitempty" url:"current_language,omitempty"`
	CurrentTime                            *time.Time             `json:"current_time,omitempty" path:"current_time,omitempty" url:"current_time,omitempty"`
	LinodeRegions                          []string               `json:"linode_regions,omitempty" path:"linode_regions,omitempty" url:"linode_regions,omitempty"`
	PrimarySubDomainBase                   string                 `json:"primary_sub_domain_base,omitempty" path:"primary_sub_domain_base,omitempty" url:"primary_sub_domain_base,omitempty"`
	ReadOnly                               string                 `json:"read_only,omitempty" path:"read_only,omitempty" url:"read_only,omitempty"`
	Reauth                                 *bool                  `json:"reauth,omitempty" path:"reauth,omitempty" url:"reauth,omitempty"`
	Regions                                []string               `json:"regions,omitempty" path:"regions,omitempty" url:"regions,omitempty"`
	S3Regions                              []string               `json:"s3_regions,omitempty" path:"s3_regions,omitempty" url:"s3_regions,omitempty"`
	SalesTaxRegions                        []string               `json:"sales_tax_regions,omitempty" path:"sales_tax_regions,omitempty" url:"sales_tax_regions,omitempty"`
	SessionLanguage                        string                 `json:"session_language,omitempty" path:"session_language,omitempty" url:"session_language,omitempty"`
	TabConfig                              string                 `json:"tab_config,omitempty" path:"tab_config,omitempty" url:"tab_config,omitempty"`
	BetaFeatures                           *bool                  `json:"beta_features,omitempty" path:"beta_features,omitempty" url:"beta_features,omitempty"`
	BetaFeature2                           *bool                  `json:"beta_feature2,omitempty" path:"beta_feature2,omitempty" url:"beta_feature2,omitempty"`
	BetaFeature3                           *bool                  `json:"beta_feature3,omitempty" path:"beta_feature3,omitempty" url:"beta_feature3,omitempty"`
	Color2Left                             string                 `json:"color2_left,omitempty" path:"color2_left,omitempty" url:"color2_left,omitempty"`
	Color2Link                             string                 `json:"color2_link,omitempty" path:"color2_link,omitempty" url:"color2_link,omitempty"`
	Color2Text                             string                 `json:"color2_text,omitempty" path:"color2_text,omitempty" url:"color2_text,omitempty"`
	Color2Top                              string                 `json:"color2_top,omitempty" path:"color2_top,omitempty" url:"color2_top,omitempty"`
	Color2TopText                          string                 `json:"color2_top_text,omitempty" path:"color2_top_text,omitempty" url:"color2_top_text,omitempty"`
	Domain                                 string                 `json:"domain,omitempty" path:"domain,omitempty" url:"domain,omitempty"`
	DisablePasswordReset                   *bool                  `json:"disable_password_reset,omitempty" path:"disable_password_reset,omitempty" url:"disable_password_reset,omitempty"`
	LoginHelpText                          string                 `json:"login_help_text,omitempty" path:"login_help_text,omitempty" url:"login_help_text,omitempty"`
	LoginHelpTextMarkdown                  string                 `json:"login_help_text_markdown,omitempty" path:"login_help_text_markdown,omitempty" url:"login_help_text_markdown,omitempty"`
	SiteName                               string                 `json:"site_name,omitempty" path:"site_name,omitempty" url:"site_name,omitempty"`
	OfficeIntegrationType                  string                 `json:"office_integration_type,omitempty" path:"office_integration_type,omitempty" url:"office_integration_type,omitempty"`
	OfficeIntegrationEnabled               *bool                  `` /* 130-byte string literal not displayed */
	OfficeIntegrationHost                  string                 `json:"office_integration_host,omitempty" path:"office_integration_host,omitempty" url:"office_integration_host,omitempty"`
	OncehubLink                            string                 `json:"oncehub_link,omitempty" path:"oncehub_link,omitempty" url:"oncehub_link,omitempty"`
	OfficeIntegrationAvailable             *bool                  `` /* 136-byte string literal not displayed */
	RequireLogoutFromBundlesAndInboxes     *bool                  `` /* 169-byte string literal not displayed */
	ShowRequestAccessLink                  *bool                  `json:"show_request_access_link,omitempty" path:"show_request_access_link,omitempty" url:"show_request_access_link,omitempty"`
	SiteFooter                             string                 `json:"site_footer,omitempty" path:"site_footer,omitempty" url:"site_footer,omitempty"`
	SiteHeader                             string                 `json:"site_header,omitempty" path:"site_header,omitempty" url:"site_header,omitempty"`
	SiteFooterMarkdown                     string                 `json:"site_footer_markdown,omitempty" path:"site_footer_markdown,omitempty" url:"site_footer_markdown,omitempty"`
	SiteHeaderMarkdown                     string                 `json:"site_header_markdown,omitempty" path:"site_header_markdown,omitempty" url:"site_header_markdown,omitempty"`
	SiteLanguage                           string                 `json:"site_language,omitempty" path:"site_language,omitempty" url:"site_language,omitempty"`
	SsoStrategies                          []string               `json:"sso_strategies,omitempty" path:"sso_strategies,omitempty" url:"sso_strategies,omitempty"`
	Subdomain                              string                 `json:"subdomain,omitempty" path:"subdomain,omitempty" url:"subdomain,omitempty"`
	UseProvidedModifiedAt                  *bool                  `json:"use_provided_modified_at,omitempty" path:"use_provided_modified_at,omitempty" url:"use_provided_modified_at,omitempty"`
	UserRequestsEnabled                    *bool                  `json:"user_requests_enabled,omitempty" path:"user_requests_enabled,omitempty" url:"user_requests_enabled,omitempty"`
	WelcomeScreen                          string                 `json:"welcome_screen,omitempty" path:"welcome_screen,omitempty" url:"welcome_screen,omitempty"`
	Icon128                                Image                  `json:"icon128,omitempty" path:"icon128,omitempty" url:"icon128,omitempty"`
	Icon16                                 Image                  `json:"icon16,omitempty" path:"icon16,omitempty" url:"icon16,omitempty"`
	Icon32                                 Image                  `json:"icon32,omitempty" path:"icon32,omitempty" url:"icon32,omitempty"`
	Icon48                                 Image                  `json:"icon48,omitempty" path:"icon48,omitempty" url:"icon48,omitempty"`
	LogoThumbnail                          Image                  `json:"logo_thumbnail,omitempty" path:"logo_thumbnail,omitempty" url:"logo_thumbnail,omitempty"`
	AttachmentsPermission                  *bool                  `json:"attachments_permission,omitempty" path:"attachments_permission,omitempty" url:"attachments_permission,omitempty"`
	AuthenticationMethod                   string                 `json:"authentication_method,omitempty" path:"authentication_method,omitempty" url:"authentication_method,omitempty"`
	AvatarUrl                              string                 `json:"avatar_url,omitempty" path:"avatar_url,omitempty" url:"avatar_url,omitempty"`
	BillingPermission                      *bool                  `json:"billing_permission,omitempty" path:"billing_permission,omitempty" url:"billing_permission,omitempty"`
	CachedPermissions                      []string               `json:"cached_permissions,omitempty" path:"cached_permissions,omitempty" url:"cached_permissions,omitempty"`
	CanAdminSomewhere                      *bool                  `json:"can_admin_somewhere,omitempty" path:"can_admin_somewhere,omitempty" url:"can_admin_somewhere,omitempty"`
	CanBundleSomewhere                     *bool                  `json:"can_bundle_somewhere,omitempty" path:"can_bundle_somewhere,omitempty" url:"can_bundle_somewhere,omitempty"`
	CanWriteSomewhere                      *bool                  `json:"can_write_somewhere,omitempty" path:"can_write_somewhere,omitempty" url:"can_write_somewhere,omitempty"`
	DavPermission                          *bool                  `json:"dav_permission,omitempty" path:"dav_permission,omitempty" url:"dav_permission,omitempty"`
	DaysRemainingUntilPasswordExpire       int64                  `` /* 160-byte string literal not displayed */
	Email                                  string                 `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	FtpPermission                          *bool                  `json:"ftp_permission,omitempty" path:"ftp_permission,omitempty" url:"ftp_permission,omitempty"`
	GroupAdmin                             *bool                  `json:"group_admin,omitempty" path:"group_admin,omitempty" url:"group_admin,omitempty"`
	HeaderText                             string                 `json:"header_text,omitempty" path:"header_text,omitempty" url:"header_text,omitempty"`
	Id                                     int64                  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	LastReadAnnouncementsAt                *time.Time             `` /* 130-byte string literal not displayed */
	Name                                   string                 `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	NotificationDailySendTime              int64                  `` /* 136-byte string literal not displayed */
	SelfManaged                            *bool                  `json:"self_managed,omitempty" path:"self_managed,omitempty" url:"self_managed,omitempty"`
	SftpPermission                         *bool                  `json:"sftp_permission,omitempty" path:"sftp_permission,omitempty" url:"sftp_permission,omitempty"`
	SiteAdmin                              *bool                  `json:"site_admin,omitempty" path:"site_admin,omitempty" url:"site_admin,omitempty"`
	SkipWelcomeScreen                      *bool                  `json:"skip_welcome_screen,omitempty" path:"skip_welcome_screen,omitempty" url:"skip_welcome_screen,omitempty"`
	ExternallyManaged                      *bool                  `json:"externally_managed,omitempty" path:"externally_managed,omitempty" url:"externally_managed,omitempty"`
	TimeZone                               string                 `json:"time_zone,omitempty" path:"time_zone,omitempty" url:"time_zone,omitempty"`
	TypeOf2fa                              string                 `json:"type_of_2fa,omitempty" path:"type_of_2fa,omitempty" url:"type_of_2fa,omitempty"`
	Reauth2fa                              string                 `json:"reauth_2fa,omitempty" path:"reauth_2fa,omitempty" url:"reauth_2fa,omitempty"`
	UserId                                 int64                  `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	UserLanguage                           string                 `json:"user_language,omitempty" path:"user_language,omitempty" url:"user_language,omitempty"`
	UserRoot                               string                 `json:"user_root,omitempty" path:"user_root,omitempty" url:"user_root,omitempty"`
	Username                               string                 `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	WebRoot                                string                 `json:"web_root,omitempty" path:"web_root,omitempty" url:"web_root,omitempty"`
	Allowed2faMethodBypassForFtpSftpDav    *bool                  `` /* 178-byte string literal not displayed */
	Allowed2faMethodSms                    *bool                  `json:"allowed_2fa_method_sms,omitempty" path:"allowed_2fa_method_sms,omitempty" url:"allowed_2fa_method_sms,omitempty"`
	Allowed2faMethodTotp                   *bool                  `json:"allowed_2fa_method_totp,omitempty" path:"allowed_2fa_method_totp,omitempty" url:"allowed_2fa_method_totp,omitempty"`
	Allowed2faMethodU2f                    *bool                  `json:"allowed_2fa_method_u2f,omitempty" path:"allowed_2fa_method_u2f,omitempty" url:"allowed_2fa_method_u2f,omitempty"`
	Allowed2faMethodWebauthn               *bool                  `` /* 133-byte string literal not displayed */
	Allowed2faMethodYubi                   *bool                  `json:"allowed_2fa_method_yubi,omitempty" path:"allowed_2fa_method_yubi,omitempty" url:"allowed_2fa_method_yubi,omitempty"`
	AllowBundleNames                       *bool                  `json:"allow_bundle_names,omitempty" path:"allow_bundle_names,omitempty" url:"allow_bundle_names,omitempty"`
	BundleActivityNotifications            string                 `` /* 139-byte string literal not displayed */
	BundleRegistrationNotifications        string                 `` /* 151-byte string literal not displayed */
	BundleRequireRegistration              *bool                  `` /* 133-byte string literal not displayed */
	BundleUploadReceiptNotifications       string                 `` /* 157-byte string literal not displayed */
	BundleExpiration                       int64                  `json:"bundle_expiration,omitempty" path:"bundle_expiration,omitempty" url:"bundle_expiration,omitempty"`
	BundlePasswordRequired                 *bool                  `json:"bundle_password_required,omitempty" path:"bundle_password_required,omitempty" url:"bundle_password_required,omitempty"`
	BundleRequireShareRecipient            *bool                  `` /* 142-byte string literal not displayed */
	ChildSiteCountForPlan                  int64                  `` /* 127-byte string literal not displayed */
	DesktopApp                             *bool                  `json:"desktop_app,omitempty" path:"desktop_app,omitempty" url:"desktop_app,omitempty"`
	FeatureBundleEca                       *bool                  `json:"feature_bundle_eca,omitempty" path:"feature_bundle_eca,omitempty" url:"feature_bundle_eca,omitempty"`
	FeatureBundlePower                     *bool                  `json:"feature_bundle_power,omitempty" path:"feature_bundle_power,omitempty" url:"feature_bundle_power,omitempty"`
	FeatureBundlePremier                   *bool                  `json:"feature_bundle_premier,omitempty" path:"feature_bundle_premier,omitempty" url:"feature_bundle_premier,omitempty"`
	FolderPermissionsGroupsOnly            *bool                  `` /* 142-byte string literal not displayed */
	GroupAdminsCanSetUserPassword          *bool                  `` /* 154-byte string literal not displayed */
	HasAccount                             *bool                  `json:"has_account,omitempty" path:"has_account,omitempty" url:"has_account,omitempty"`
	HideBilling                            *bool                  `json:"hide_billing,omitempty" path:"hide_billing,omitempty" url:"hide_billing,omitempty"`
	HighUsersCount                         *bool                  `json:"high_users_count,omitempty" path:"high_users_count,omitempty" url:"high_users_count,omitempty"`
	HistoryUnavailable                     *bool                  `json:"history_unavailable,omitempty" path:"history_unavailable,omitempty" url:"history_unavailable,omitempty"`
	ImmutableFiles                         *bool                  `json:"immutable_files,omitempty" path:"immutable_files,omitempty" url:"immutable_files,omitempty"`
	IntersitialPage                        *bool                  `json:"intersitial_page,omitempty" path:"intersitial_page,omitempty" url:"intersitial_page,omitempty"`
	LeftNavigationVisibility               map[string]interface{} `` /* 130-byte string literal not displayed */
	MinRemoteSyncInterval                  int64                  `json:"min_remote_sync_interval,omitempty" path:"min_remote_sync_interval,omitempty" url:"min_remote_sync_interval,omitempty"`
	NonSsoGroupsAllowed                    *bool                  `json:"non_sso_groups_allowed,omitempty" path:"non_sso_groups_allowed,omitempty" url:"non_sso_groups_allowed,omitempty"`
	NonSsoUsersAllowed                     *bool                  `json:"non_sso_users_allowed,omitempty" path:"non_sso_users_allowed,omitempty" url:"non_sso_users_allowed,omitempty"`
	Overdue                                *bool                  `json:"overdue,omitempty" path:"overdue,omitempty" url:"overdue,omitempty"`
	SiteUnavailable                        *bool                  `json:"site_unavailable,omitempty" path:"site_unavailable,omitempty" url:"site_unavailable,omitempty"`
	PasswordMinLength                      int64                  `json:"password_min_length,omitempty" path:"password_min_length,omitempty" url:"password_min_length,omitempty"`
	PasswordRequireLetter                  *bool                  `json:"password_require_letter,omitempty" path:"password_require_letter,omitempty" url:"password_require_letter,omitempty"`
	PasswordRequireMixed                   *bool                  `json:"password_require_mixed,omitempty" path:"password_require_mixed,omitempty" url:"password_require_mixed,omitempty"`
	PasswordRequireNumber                  *bool                  `json:"password_require_number,omitempty" path:"password_require_number,omitempty" url:"password_require_number,omitempty"`
	PasswordRequireSpecial                 *bool                  `json:"password_require_special,omitempty" path:"password_require_special,omitempty" url:"password_require_special,omitempty"`
	PasswordRequireUnbreached              *bool                  `` /* 133-byte string literal not displayed */
	PasswordRequirementsApplyToBundles     *bool                  `` /* 166-byte string literal not displayed */
	PlanAs2Included                        *bool                  `json:"plan_as2_included,omitempty" path:"plan_as2_included,omitempty" url:"plan_as2_included,omitempty"`
	PreventRootPermissionsForNonSiteAdmins *bool                  `` /* 184-byte string literal not displayed */
	PublicUrl                              string                 `json:"public_url,omitempty" path:"public_url,omitempty" url:"public_url,omitempty"`
	PublicSharingAllowed                   *bool                  `json:"public_sharing_allowed,omitempty" path:"public_sharing_allowed,omitempty" url:"public_sharing_allowed,omitempty"`
	Require2fa                             *bool                  `json:"require_2fa,omitempty" path:"require_2fa,omitempty" url:"require_2fa,omitempty"`
	RootRegion                             *bool                  `json:"root_region,omitempty" path:"root_region,omitempty" url:"root_region,omitempty"`
	SharingEnabled                         *bool                  `json:"sharing_enabled,omitempty" path:"sharing_enabled,omitempty" url:"sharing_enabled,omitempty"`
	StagingSiteCountForPlan                int64                  `` /* 133-byte string literal not displayed */
	TrialFlaggedAsDuplicate                *bool                  `` /* 130-byte string literal not displayed */
	TrialDaysLeft                          int64                  `json:"trial_days_left,omitempty" path:"trial_days_left,omitempty" url:"trial_days_left,omitempty"`
	TrialLocked                            *bool                  `json:"trial_locked,omitempty" path:"trial_locked,omitempty" url:"trial_locked,omitempty"`
	TrialUntil                             *time.Time             `json:"trial_until,omitempty" path:"trial_until,omitempty" url:"trial_until,omitempty"`
	UsageIncluded                          int64                  `json:"usage_included,omitempty" path:"usage_included,omitempty" url:"usage_included,omitempty"`
	UsersCount                             int64                  `json:"users_count,omitempty" path:"users_count,omitempty" url:"users_count,omitempty"`
}

func (Settings) Identifier ¶ added in v2.0.276

func (s Settings) Identifier() interface{}

func (*Settings) UnmarshalJSON ¶ added in v2.0.276

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

type SettingsChange ¶

type SettingsChange struct {
	Changes            []string   `json:"changes,omitempty" path:"changes,omitempty" url:"changes,omitempty"`
	CreatedAt          *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UserId             int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	ApiKeyId           int64      `json:"api_key_id,omitempty" path:"api_key_id,omitempty" url:"api_key_id,omitempty"`
	UserIsFilesSupport *bool      `json:"user_is_files_support,omitempty" path:"user_is_files_support,omitempty" url:"user_is_files_support,omitempty"`
	Username           string     `json:"username,omitempty" path:"username,omitempty" url:"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 {
	Action string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter SettingsChange         `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	ListParams
}

type SettingsCollection ¶ added in v2.0.276

type SettingsCollection []Settings

func (*SettingsCollection) ToSlice ¶ added in v2.0.276

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

func (*SettingsCollection) UnmarshalJSON ¶ added in v2.0.276

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

type SftpHostKey ¶

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

func (SftpHostKey) Identifier ¶

func (s SftpHostKey) Identifier() interface{}

func (*SftpHostKey) UnmarshalJSON ¶

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

type SftpHostKeyCollection ¶

type SftpHostKeyCollection []SftpHostKey

func (*SftpHostKeyCollection) ToSlice ¶

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

func (*SftpHostKeyCollection) UnmarshalJSON ¶

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

type SftpHostKeyCreateParams ¶

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

type SftpHostKeyDeleteParams ¶

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

type SftpHostKeyFindParams ¶

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

type SftpHostKeyListParams ¶

type SftpHostKeyListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type SftpHostKeyUpdateParams ¶

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

type ShareGroup ¶

type ShareGroup struct {
	Id                int64                    `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name              string                   `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Notes             string                   `json:"notes,omitempty" path:"notes,omitempty" url:"notes,omitempty"`
	UserId            int64                    `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	ShareGroupMembers []string                 `json:"share_group_members,omitempty" path:"share_group_members,omitempty" url:"share_group_members,omitempty"`
	Members           []map[string]interface{} `json:"members,omitempty" path:"members,omitempty" url:"members,omitempty"`
}

func (ShareGroup) Identifier ¶

func (s ShareGroup) Identifier() interface{}

func (*ShareGroup) UnmarshalJSON ¶

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

type ShareGroupCollection ¶

type ShareGroupCollection []ShareGroup

func (*ShareGroupCollection) ToSlice ¶

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

func (*ShareGroupCollection) UnmarshalJSON ¶

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

type ShareGroupCreateParams ¶

type ShareGroupCreateParams struct {
	UserId  int64                    `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Notes   string                   `url:"notes,omitempty" required:"false" json:"notes,omitempty" path:"notes"`
	Name    string                   `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	Members []map[string]interface{} `url:"members,omitempty" required:"true" json:"members,omitempty" path:"members"`
}

type ShareGroupDeleteParams ¶

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

type ShareGroupFindParams ¶

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

type ShareGroupListParams ¶

type ShareGroupListParams struct {
	UserId int64  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type ShareGroupMember ¶

type ShareGroupMember struct {
	Name    string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Company string `json:"company,omitempty" path:"company,omitempty" url:"company,omitempty"`
	Email   string `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
}

func (*ShareGroupMember) UnmarshalJSON ¶

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

type ShareGroupMemberCollection ¶

type ShareGroupMemberCollection []ShareGroupMember

func (*ShareGroupMemberCollection) ToSlice ¶

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

func (*ShareGroupMemberCollection) UnmarshalJSON ¶

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

type ShareGroupUpdateParams ¶

type ShareGroupUpdateParams struct {
	Id      int64                    `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Notes   string                   `url:"notes,omitempty" required:"false" json:"notes,omitempty" path:"notes"`
	Name    string                   `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	Members []map[string]interface{} `url:"members,omitempty" required:"false" json:"members,omitempty" path:"members"`
}

type SignRequest ¶

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

type Site ¶

type Site struct {
	Name                                   string                 `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Allowed2faMethodSms                    *bool                  `json:"allowed_2fa_method_sms,omitempty" path:"allowed_2fa_method_sms,omitempty" url:"allowed_2fa_method_sms,omitempty"`
	Allowed2faMethodTotp                   *bool                  `json:"allowed_2fa_method_totp,omitempty" path:"allowed_2fa_method_totp,omitempty" url:"allowed_2fa_method_totp,omitempty"`
	Allowed2faMethodU2f                    *bool                  `json:"allowed_2fa_method_u2f,omitempty" path:"allowed_2fa_method_u2f,omitempty" url:"allowed_2fa_method_u2f,omitempty"`
	Allowed2faMethodWebauthn               *bool                  `` /* 133-byte string literal not displayed */
	Allowed2faMethodYubi                   *bool                  `json:"allowed_2fa_method_yubi,omitempty" path:"allowed_2fa_method_yubi,omitempty" url:"allowed_2fa_method_yubi,omitempty"`
	Allowed2faMethodBypassForFtpSftpDav    *bool                  `` /* 178-byte string literal not displayed */
	AdminUserId                            int64                  `json:"admin_user_id,omitempty" path:"admin_user_id,omitempty" url:"admin_user_id,omitempty"`
	AllowBundleNames                       *bool                  `json:"allow_bundle_names,omitempty" path:"allow_bundle_names,omitempty" url:"allow_bundle_names,omitempty"`
	AllowedCountries                       string                 `json:"allowed_countries,omitempty" path:"allowed_countries,omitempty" url:"allowed_countries,omitempty"`
	AllowedIps                             string                 `json:"allowed_ips,omitempty" path:"allowed_ips,omitempty" url:"allowed_ips,omitempty"`
	AskAboutOverwrites                     *bool                  `json:"ask_about_overwrites,omitempty" path:"ask_about_overwrites,omitempty" url:"ask_about_overwrites,omitempty"`
	BundleActivityNotifications            string                 `` /* 139-byte string literal not displayed */
	BundleExpiration                       int64                  `json:"bundle_expiration,omitempty" path:"bundle_expiration,omitempty" url:"bundle_expiration,omitempty"`
	BundlePasswordRequired                 *bool                  `json:"bundle_password_required,omitempty" path:"bundle_password_required,omitempty" url:"bundle_password_required,omitempty"`
	BundleRegistrationNotifications        string                 `` /* 151-byte string literal not displayed */
	BundleRequireRegistration              *bool                  `` /* 133-byte string literal not displayed */
	BundleRequireShareRecipient            *bool                  `` /* 142-byte string literal not displayed */
	BundleUploadReceiptNotifications       string                 `` /* 157-byte string literal not displayed */
	BundleWatermarkAttachment              Image                  `` /* 133-byte string literal not displayed */
	BundleWatermarkValue                   map[string]interface{} `json:"bundle_watermark_value,omitempty" path:"bundle_watermark_value,omitempty" url:"bundle_watermark_value,omitempty"`
	UploadsViaEmailAuthentication          *bool                  `` /* 148-byte string literal not displayed */
	Color2Left                             string                 `json:"color2_left,omitempty" path:"color2_left,omitempty" url:"color2_left,omitempty"`
	Color2Link                             string                 `json:"color2_link,omitempty" path:"color2_link,omitempty" url:"color2_link,omitempty"`
	Color2Text                             string                 `json:"color2_text,omitempty" path:"color2_text,omitempty" url:"color2_text,omitempty"`
	Color2Top                              string                 `json:"color2_top,omitempty" path:"color2_top,omitempty" url:"color2_top,omitempty"`
	Color2TopText                          string                 `json:"color2_top_text,omitempty" path:"color2_top_text,omitempty" url:"color2_top_text,omitempty"`
	ContactName                            string                 `json:"contact_name,omitempty" path:"contact_name,omitempty" url:"contact_name,omitempty"`
	CreatedAt                              *time.Time             `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Currency                               string                 `json:"currency,omitempty" path:"currency,omitempty" url:"currency,omitempty"`
	CustomNamespace                        *bool                  `json:"custom_namespace,omitempty" path:"custom_namespace,omitempty" url:"custom_namespace,omitempty"`
	DaysToRetainBackups                    int64                  `json:"days_to_retain_backups,omitempty" path:"days_to_retain_backups,omitempty" url:"days_to_retain_backups,omitempty"`
	DefaultTimeZone                        string                 `json:"default_time_zone,omitempty" path:"default_time_zone,omitempty" url:"default_time_zone,omitempty"`
	DesktopApp                             *bool                  `json:"desktop_app,omitempty" path:"desktop_app,omitempty" url:"desktop_app,omitempty"`
	DesktopAppSessionIpPinning             *bool                  `` /* 142-byte string literal not displayed */
	DesktopAppSessionLifetime              int64                  `` /* 136-byte string literal not displayed */
	MobileApp                              *bool                  `json:"mobile_app,omitempty" path:"mobile_app,omitempty" url:"mobile_app,omitempty"`
	MobileAppSessionIpPinning              *bool                  `` /* 139-byte string literal not displayed */
	MobileAppSessionLifetime               int64                  `` /* 133-byte string literal not displayed */
	DisallowedCountries                    string                 `json:"disallowed_countries,omitempty" path:"disallowed_countries,omitempty" url:"disallowed_countries,omitempty"`
	DisableFilesCertificateGeneration      *bool                  `` /* 160-byte string literal not displayed */
	DisableNotifications                   *bool                  `json:"disable_notifications,omitempty" path:"disable_notifications,omitempty" url:"disable_notifications,omitempty"`
	DisablePasswordReset                   *bool                  `json:"disable_password_reset,omitempty" path:"disable_password_reset,omitempty" url:"disable_password_reset,omitempty"`
	Domain                                 string                 `json:"domain,omitempty" path:"domain,omitempty" url:"domain,omitempty"`
	DomainHstsHeader                       *bool                  `json:"domain_hsts_header,omitempty" path:"domain_hsts_header,omitempty" url:"domain_hsts_header,omitempty"`
	DomainLetsencryptChain                 string                 `json:"domain_letsencrypt_chain,omitempty" path:"domain_letsencrypt_chain,omitempty" url:"domain_letsencrypt_chain,omitempty"`
	Email                                  string                 `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	FtpEnabled                             *bool                  `json:"ftp_enabled,omitempty" path:"ftp_enabled,omitempty" url:"ftp_enabled,omitempty"`
	ReplyToEmail                           string                 `json:"reply_to_email,omitempty" path:"reply_to_email,omitempty" url:"reply_to_email,omitempty"`
	NonSsoGroupsAllowed                    *bool                  `json:"non_sso_groups_allowed,omitempty" path:"non_sso_groups_allowed,omitempty" url:"non_sso_groups_allowed,omitempty"`
	NonSsoUsersAllowed                     *bool                  `json:"non_sso_users_allowed,omitempty" path:"non_sso_users_allowed,omitempty" url:"non_sso_users_allowed,omitempty"`
	FolderPermissionsGroupsOnly            *bool                  `` /* 142-byte string literal not displayed */
	Hipaa                                  *bool                  `json:"hipaa,omitempty" path:"hipaa,omitempty" url:"hipaa,omitempty"`
	Icon128                                Image                  `json:"icon128,omitempty" path:"icon128,omitempty" url:"icon128,omitempty"`
	Icon16                                 Image                  `json:"icon16,omitempty" path:"icon16,omitempty" url:"icon16,omitempty"`
	Icon32                                 Image                  `json:"icon32,omitempty" path:"icon32,omitempty" url:"icon32,omitempty"`
	Icon48                                 Image                  `json:"icon48,omitempty" path:"icon48,omitempty" url:"icon48,omitempty"`
	ImmutableFilesSetAt                    *time.Time             `json:"immutable_files_set_at,omitempty" path:"immutable_files_set_at,omitempty" url:"immutable_files_set_at,omitempty"`
	IncludePasswordInWelcomeEmail          *bool                  `` /* 151-byte string literal not displayed */
	Language                               string                 `json:"language,omitempty" path:"language,omitempty" url:"language,omitempty"`
	LdapBaseDn                             string                 `json:"ldap_base_dn,omitempty" path:"ldap_base_dn,omitempty" url:"ldap_base_dn,omitempty"`
	LdapDomain                             string                 `json:"ldap_domain,omitempty" path:"ldap_domain,omitempty" url:"ldap_domain,omitempty"`
	LdapEnabled                            *bool                  `json:"ldap_enabled,omitempty" path:"ldap_enabled,omitempty" url:"ldap_enabled,omitempty"`
	LdapGroupAction                        string                 `json:"ldap_group_action,omitempty" path:"ldap_group_action,omitempty" url:"ldap_group_action,omitempty"`
	LdapGroupExclusion                     string                 `json:"ldap_group_exclusion,omitempty" path:"ldap_group_exclusion,omitempty" url:"ldap_group_exclusion,omitempty"`
	LdapGroupInclusion                     string                 `json:"ldap_group_inclusion,omitempty" path:"ldap_group_inclusion,omitempty" url:"ldap_group_inclusion,omitempty"`
	LdapHost                               string                 `json:"ldap_host,omitempty" path:"ldap_host,omitempty" url:"ldap_host,omitempty"`
	LdapHost2                              string                 `json:"ldap_host_2,omitempty" path:"ldap_host_2,omitempty" url:"ldap_host_2,omitempty"`
	LdapHost3                              string                 `json:"ldap_host_3,omitempty" path:"ldap_host_3,omitempty" url:"ldap_host_3,omitempty"`
	LdapPort                               int64                  `json:"ldap_port,omitempty" path:"ldap_port,omitempty" url:"ldap_port,omitempty"`
	LdapSecure                             *bool                  `json:"ldap_secure,omitempty" path:"ldap_secure,omitempty" url:"ldap_secure,omitempty"`
	LdapType                               string                 `json:"ldap_type,omitempty" path:"ldap_type,omitempty" url:"ldap_type,omitempty"`
	LdapUserAction                         string                 `json:"ldap_user_action,omitempty" path:"ldap_user_action,omitempty" url:"ldap_user_action,omitempty"`
	LdapUserIncludeGroups                  string                 `json:"ldap_user_include_groups,omitempty" path:"ldap_user_include_groups,omitempty" url:"ldap_user_include_groups,omitempty"`
	LdapUsername                           string                 `json:"ldap_username,omitempty" path:"ldap_username,omitempty" url:"ldap_username,omitempty"`
	LdapUsernameField                      string                 `json:"ldap_username_field,omitempty" path:"ldap_username_field,omitempty" url:"ldap_username_field,omitempty"`
	LoginHelpText                          string                 `json:"login_help_text,omitempty" path:"login_help_text,omitempty" url:"login_help_text,omitempty"`
	MaxPriorPasswords                      int64                  `json:"max_prior_passwords,omitempty" path:"max_prior_passwords,omitempty" url:"max_prior_passwords,omitempty"`
	MotdText                               string                 `json:"motd_text,omitempty" path:"motd_text,omitempty" url:"motd_text,omitempty"`
	MotdUseForFtp                          *bool                  `json:"motd_use_for_ftp,omitempty" path:"motd_use_for_ftp,omitempty" url:"motd_use_for_ftp,omitempty"`
	MotdUseForSftp                         *bool                  `json:"motd_use_for_sftp,omitempty" path:"motd_use_for_sftp,omitempty" url:"motd_use_for_sftp,omitempty"`
	NextBillingAmount                      string                 `json:"next_billing_amount,omitempty" path:"next_billing_amount,omitempty" url:"next_billing_amount,omitempty"`
	NextBillingDate                        string                 `json:"next_billing_date,omitempty" path:"next_billing_date,omitempty" url:"next_billing_date,omitempty"`
	OfficeIntegrationAvailable             *bool                  `` /* 136-byte string literal not displayed */
	OfficeIntegrationType                  string                 `json:"office_integration_type,omitempty" path:"office_integration_type,omitempty" url:"office_integration_type,omitempty"`
	OncehubLink                            string                 `json:"oncehub_link,omitempty" path:"oncehub_link,omitempty" url:"oncehub_link,omitempty"`
	OptOutGlobal                           *bool                  `json:"opt_out_global,omitempty" path:"opt_out_global,omitempty" url:"opt_out_global,omitempty"`
	Overdue                                *bool                  `json:"overdue,omitempty" path:"overdue,omitempty" url:"overdue,omitempty"`
	PasswordMinLength                      int64                  `json:"password_min_length,omitempty" path:"password_min_length,omitempty" url:"password_min_length,omitempty"`
	PasswordRequireLetter                  *bool                  `json:"password_require_letter,omitempty" path:"password_require_letter,omitempty" url:"password_require_letter,omitempty"`
	PasswordRequireMixed                   *bool                  `json:"password_require_mixed,omitempty" path:"password_require_mixed,omitempty" url:"password_require_mixed,omitempty"`
	PasswordRequireNumber                  *bool                  `json:"password_require_number,omitempty" path:"password_require_number,omitempty" url:"password_require_number,omitempty"`
	PasswordRequireSpecial                 *bool                  `json:"password_require_special,omitempty" path:"password_require_special,omitempty" url:"password_require_special,omitempty"`
	PasswordRequireUnbreached              *bool                  `` /* 133-byte string literal not displayed */
	PasswordRequirementsApplyToBundles     *bool                  `` /* 166-byte string literal not displayed */
	PasswordValidityDays                   int64                  `json:"password_validity_days,omitempty" path:"password_validity_days,omitempty" url:"password_validity_days,omitempty"`
	Phone                                  string                 `json:"phone,omitempty" path:"phone,omitempty" url:"phone,omitempty"`
	PinAllRemoteServersToSiteRegion        *bool                  `` /* 163-byte string literal not displayed */
	PreventRootPermissionsForNonSiteAdmins *bool                  `` /* 184-byte string literal not displayed */
	Require2fa                             *bool                  `json:"require_2fa,omitempty" path:"require_2fa,omitempty" url:"require_2fa,omitempty"`
	Require2faStopTime                     *time.Time             `json:"require_2fa_stop_time,omitempty" path:"require_2fa_stop_time,omitempty" url:"require_2fa_stop_time,omitempty"`
	Require2faUserType                     string                 `json:"require_2fa_user_type,omitempty" path:"require_2fa_user_type,omitempty" url:"require_2fa_user_type,omitempty"`
	RequireLogoutFromBundlesAndInboxes     *bool                  `` /* 169-byte string literal not displayed */
	Session                                Session                `json:"session,omitempty" path:"session,omitempty" url:"session,omitempty"`
	SessionPinnedByIp                      *bool                  `json:"session_pinned_by_ip,omitempty" path:"session_pinned_by_ip,omitempty" url:"session_pinned_by_ip,omitempty"`
	SftpEnabled                            *bool                  `json:"sftp_enabled,omitempty" path:"sftp_enabled,omitempty" url:"sftp_enabled,omitempty"`
	SftpHostKeyType                        string                 `json:"sftp_host_key_type,omitempty" path:"sftp_host_key_type,omitempty" url:"sftp_host_key_type,omitempty"`
	ActiveSftpHostKeyId                    int64                  `json:"active_sftp_host_key_id,omitempty" path:"active_sftp_host_key_id,omitempty" url:"active_sftp_host_key_id,omitempty"`
	SftpInsecureCiphers                    *bool                  `json:"sftp_insecure_ciphers,omitempty" path:"sftp_insecure_ciphers,omitempty" url:"sftp_insecure_ciphers,omitempty"`
	SftpUserRootEnabled                    *bool                  `json:"sftp_user_root_enabled,omitempty" path:"sftp_user_root_enabled,omitempty" url:"sftp_user_root_enabled,omitempty"`
	SharingEnabled                         *bool                  `json:"sharing_enabled,omitempty" path:"sharing_enabled,omitempty" url:"sharing_enabled,omitempty"`
	ShowRequestAccessLink                  *bool                  `json:"show_request_access_link,omitempty" path:"show_request_access_link,omitempty" url:"show_request_access_link,omitempty"`
	SiteFooter                             string                 `json:"site_footer,omitempty" path:"site_footer,omitempty" url:"site_footer,omitempty"`
	SiteHeader                             string                 `json:"site_header,omitempty" path:"site_header,omitempty" url:"site_header,omitempty"`
	SmtpAddress                            string                 `json:"smtp_address,omitempty" path:"smtp_address,omitempty" url:"smtp_address,omitempty"`
	SmtpAuthentication                     string                 `json:"smtp_authentication,omitempty" path:"smtp_authentication,omitempty" url:"smtp_authentication,omitempty"`
	SmtpFrom                               string                 `json:"smtp_from,omitempty" path:"smtp_from,omitempty" url:"smtp_from,omitempty"`
	SmtpPort                               int64                  `json:"smtp_port,omitempty" path:"smtp_port,omitempty" url:"smtp_port,omitempty"`
	SmtpUsername                           string                 `json:"smtp_username,omitempty" path:"smtp_username,omitempty" url:"smtp_username,omitempty"`
	SessionExpiry                          string                 `json:"session_expiry,omitempty" path:"session_expiry,omitempty" url:"session_expiry,omitempty"`
	SessionExpiryMinutes                   int64                  `json:"session_expiry_minutes,omitempty" path:"session_expiry_minutes,omitempty" url:"session_expiry_minutes,omitempty"`
	SslRequired                            *bool                  `json:"ssl_required,omitempty" path:"ssl_required,omitempty" url:"ssl_required,omitempty"`
	Subdomain                              string                 `json:"subdomain,omitempty" path:"subdomain,omitempty" url:"subdomain,omitempty"`
	SwitchToPlanDate                       *time.Time             `json:"switch_to_plan_date,omitempty" path:"switch_to_plan_date,omitempty" url:"switch_to_plan_date,omitempty"`
	TlsDisabled                            *bool                  `json:"tls_disabled,omitempty" path:"tls_disabled,omitempty" url:"tls_disabled,omitempty"`
	TrialDaysLeft                          int64                  `json:"trial_days_left,omitempty" path:"trial_days_left,omitempty" url:"trial_days_left,omitempty"`
	TrialUntil                             *time.Time             `json:"trial_until,omitempty" path:"trial_until,omitempty" url:"trial_until,omitempty"`
	UpdatedAt                              *time.Time             `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
	UseProvidedModifiedAt                  *bool                  `json:"use_provided_modified_at,omitempty" path:"use_provided_modified_at,omitempty" url:"use_provided_modified_at,omitempty"`
	User                                   User                   `json:"user,omitempty" path:"user,omitempty" url:"user,omitempty"`
	UserLockout                            *bool                  `json:"user_lockout,omitempty" path:"user_lockout,omitempty" url:"user_lockout,omitempty"`
	UserLockoutLockPeriod                  int64                  `json:"user_lockout_lock_period,omitempty" path:"user_lockout_lock_period,omitempty" url:"user_lockout_lock_period,omitempty"`
	UserLockoutTries                       int64                  `json:"user_lockout_tries,omitempty" path:"user_lockout_tries,omitempty" url:"user_lockout_tries,omitempty"`
	UserLockoutWithin                      int64                  `json:"user_lockout_within,omitempty" path:"user_lockout_within,omitempty" url:"user_lockout_within,omitempty"`
	UserRequestsEnabled                    *bool                  `json:"user_requests_enabled,omitempty" path:"user_requests_enabled,omitempty" url:"user_requests_enabled,omitempty"`
	UserRequestsNotifyAdmins               *bool                  `` /* 133-byte string literal not displayed */
	WelcomeCustomText                      string                 `json:"welcome_custom_text,omitempty" path:"welcome_custom_text,omitempty" url:"welcome_custom_text,omitempty"`
	WelcomeEmailCc                         string                 `json:"welcome_email_cc,omitempty" path:"welcome_email_cc,omitempty" url:"welcome_email_cc,omitempty"`
	WelcomeEmailSubject                    string                 `json:"welcome_email_subject,omitempty" path:"welcome_email_subject,omitempty" url:"welcome_email_subject,omitempty"`
	WelcomeEmailEnabled                    *bool                  `json:"welcome_email_enabled,omitempty" path:"welcome_email_enabled,omitempty" url:"welcome_email_enabled,omitempty"`
	WelcomeScreen                          string                 `json:"welcome_screen,omitempty" path:"welcome_screen,omitempty" url:"welcome_screen,omitempty"`
	WindowsModeFtp                         *bool                  `json:"windows_mode_ftp,omitempty" path:"windows_mode_ftp,omitempty" url:"windows_mode_ftp,omitempty"`
	DisableUsersFromInactivityPeriodDays   int64                  `` /* 175-byte string literal not displayed */
	GroupAdminsCanSetUserPassword          *bool                  `` /* 154-byte string literal not displayed */
	LeadCookieCode                         string                 `json:"lead_cookie_code,omitempty" path:"lead_cookie_code,omitempty" url:"lead_cookie_code,omitempty"`
	Username                               string                 `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	Password                               string                 `json:"password,omitempty" path:"password,omitempty" url:"password,omitempty"`
	UtmTerm                                string                 `json:"utm_term,omitempty" path:"utm_term,omitempty" url:"utm_term,omitempty"`
	UtmSource                              string                 `json:"utm_source,omitempty" path:"utm_source,omitempty" url:"utm_source,omitempty"`
	UtmContent                             string                 `json:"utm_content,omitempty" path:"utm_content,omitempty" url:"utm_content,omitempty"`
	UtmMedium                              string                 `json:"utm_medium,omitempty" path:"utm_medium,omitempty" url:"utm_medium,omitempty"`
	UtmCampaign                            string                 `json:"utm_campaign,omitempty" path:"utm_campaign,omitempty" url:"utm_campaign,omitempty"`
	UtmDomain                              string                 `json:"utm_domain,omitempty" path:"utm_domain,omitempty" url:"utm_domain,omitempty"`
	Gclid                                  string                 `json:"gclid,omitempty" path:"gclid,omitempty" url:"gclid,omitempty"`
	ClickCookieCode                        string                 `json:"click_cookie_code,omitempty" path:"click_cookie_code,omitempty" url:"click_cookie_code,omitempty"`
	PlanId                                 int64                  `json:"plan_id,omitempty" path:"plan_id,omitempty" url:"plan_id,omitempty"`
}

func (*Site) UnmarshalJSON ¶

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

type SiteCollection ¶

type SiteCollection []Site

func (*SiteCollection) ToSlice ¶

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

func (*SiteCollection) UnmarshalJSON ¶

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

type SiteCreateParams ¶ added in v2.0.276

type SiteCreateParams struct {
	Name            string `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	Email           string `url:"email,omitempty" required:"true" json:"email,omitempty" path:"email"`
	LeadCookieCode  string `url:"lead_cookie_code,omitempty" required:"true" json:"lead_cookie_code,omitempty" path:"lead_cookie_code"`
	ReplyToEmail    string `url:"reply_to_email,omitempty" required:"false" json:"reply_to_email,omitempty" path:"reply_to_email"`
	Phone           string `url:"phone,omitempty" required:"false" json:"phone,omitempty" path:"phone"`
	ContactName     string `url:"contact_name,omitempty" required:"false" json:"contact_name,omitempty" path:"contact_name"`
	Username        string `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
	Password        string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
	Currency        string `url:"currency,omitempty" required:"false" json:"currency,omitempty" path:"currency"`
	Language        string `url:"language,omitempty" required:"false" json:"language,omitempty" path:"language"`
	UtmTerm         string `url:"utm_term,omitempty" required:"false" json:"utm_term,omitempty" path:"utm_term"`
	UtmSource       string `url:"utm_source,omitempty" required:"false" json:"utm_source,omitempty" path:"utm_source"`
	UtmContent      string `url:"utm_content,omitempty" required:"false" json:"utm_content,omitempty" path:"utm_content"`
	UtmMedium       string `url:"utm_medium,omitempty" required:"false" json:"utm_medium,omitempty" path:"utm_medium"`
	UtmCampaign     string `url:"utm_campaign,omitempty" required:"false" json:"utm_campaign,omitempty" path:"utm_campaign"`
	UtmDomain       string `url:"utm_domain,omitempty" required:"false" json:"utm_domain,omitempty" path:"utm_domain"`
	Gclid           string `url:"gclid,omitempty" required:"false" json:"gclid,omitempty" path:"gclid"`
	ClickCookieCode string `url:"click_cookie_code,omitempty" required:"false" json:"click_cookie_code,omitempty" path:"click_cookie_code"`
	PlanId          int64  `url:"plan_id,omitempty" required:"false" json:"plan_id,omitempty" path:"plan_id"`
}

type SiteDeleteParams ¶ added in v2.0.276

type SiteDeleteParams struct {
	Reason string `url:"reason,omitempty" required:"false" json:"reason,omitempty" path:"reason"`
}

type SiteGetPaypalExpressInfoParams ¶ added in v2.0.276

type SiteGetPaypalExpressInfoParams struct {
	PaypalToken string `url:"paypal_token,omitempty" required:"true" json:"paypal_token,omitempty" path:"paypal_token"`
}

type SiteGetPaypalExpressParams ¶ added in v2.0.276

type SiteGetPaypalExpressParams struct {
	ReturnToUrl string `url:"return_to_url,omitempty" required:"true" json:"return_to_url,omitempty" path:"return_to_url"`
	PlanId      int64  `url:"plan_id,omitempty" required:"false" json:"plan_id,omitempty" path:"plan_id"`
}

type SiteGetPlanParams ¶ added in v2.0.276

type SiteGetPlanParams struct {
	Currency string `url:"currency,omitempty" required:"false" json:"currency,omitempty" path:"currency"`
}

type SiteUpdateParams ¶

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

type Snapshot ¶

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

func (Snapshot) Identifier ¶

func (s Snapshot) Identifier() interface{}

func (*Snapshot) UnmarshalJSON ¶

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

type SnapshotCollection ¶

type SnapshotCollection []Snapshot

func (*SnapshotCollection) ToSlice ¶

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

func (*SnapshotCollection) UnmarshalJSON ¶

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

type SnapshotCreateParams ¶

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

type SnapshotDeleteParams ¶

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

type SnapshotFindParams ¶

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

type SnapshotListParams ¶

type SnapshotListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type SnapshotUpdateParams ¶

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

type SslCertificate ¶ added in v2.0.276

type SslCertificate struct {
	Name                string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Certificate         string `json:"certificate,omitempty" path:"certificate,omitempty" url:"certificate,omitempty"`
	PrivateKey          string `json:"private_key,omitempty" path:"private_key,omitempty" url:"private_key,omitempty"`
	Key                 string `json:"key,omitempty" path:"key,omitempty" url:"key,omitempty"`
	Intermediates       string `json:"intermediates,omitempty" path:"intermediates,omitempty" url:"intermediates,omitempty"`
	Id                  string `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	DomainHstsHeader    string `json:"domain_hsts_header,omitempty" path:"domain_hsts_header,omitempty" url:"domain_hsts_header,omitempty"`
	FtpsEnabled         string `json:"ftps_enabled,omitempty" path:"ftps_enabled,omitempty" url:"ftps_enabled,omitempty"`
	HttpsEnabled        string `json:"https_enabled,omitempty" path:"https_enabled,omitempty" url:"https_enabled,omitempty"`
	SftpInsecureCiphers string `json:"sftp_insecure_ciphers,omitempty" path:"sftp_insecure_ciphers,omitempty" url:"sftp_insecure_ciphers,omitempty"`
	TlsDisabled         string `json:"tls_disabled,omitempty" path:"tls_disabled,omitempty" url:"tls_disabled,omitempty"`
	Subdomain           string `json:"subdomain,omitempty" path:"subdomain,omitempty" url:"subdomain,omitempty"`
}

func (SslCertificate) Identifier ¶ added in v2.0.276

func (s SslCertificate) Identifier() interface{}

func (*SslCertificate) UnmarshalJSON ¶ added in v2.0.276

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

type SslCertificateCollection ¶ added in v2.0.276

type SslCertificateCollection []SslCertificate

func (*SslCertificateCollection) ToSlice ¶ added in v2.0.276

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

func (*SslCertificateCollection) UnmarshalJSON ¶ added in v2.0.276

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

type SsoStrategy ¶

type SsoStrategy struct {
	Protocol                       string    `json:"protocol,omitempty" path:"protocol,omitempty" url:"protocol,omitempty"`
	Provider                       string    `json:"provider,omitempty" path:"provider,omitempty" url:"provider,omitempty"`
	Label                          string    `json:"label,omitempty" path:"label,omitempty" url:"label,omitempty"`
	LogoUrl                        string    `json:"logo_url,omitempty" path:"logo_url,omitempty" url:"logo_url,omitempty"`
	Id                             int64     `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	SamlProviderCertFingerprint    string    `` /* 142-byte string literal not displayed */
	SamlProviderIssuerUrl          string    `json:"saml_provider_issuer_url,omitempty" path:"saml_provider_issuer_url,omitempty" url:"saml_provider_issuer_url,omitempty"`
	SamlProviderMetadataContent    string    `` /* 142-byte string literal not displayed */
	SamlProviderMetadataUrl        string    `` /* 130-byte string literal not displayed */
	SamlProviderSloTargetUrl       string    `` /* 136-byte string literal not displayed */
	SamlProviderSsoTargetUrl       string    `` /* 136-byte string literal not displayed */
	ScimAuthenticationMethod       string    `` /* 130-byte string literal not displayed */
	ScimUsername                   string    `json:"scim_username,omitempty" path:"scim_username,omitempty" url:"scim_username,omitempty"`
	ScimOauthAccessToken           string    `json:"scim_oauth_access_token,omitempty" path:"scim_oauth_access_token,omitempty" url:"scim_oauth_access_token,omitempty"`
	ScimOauthAccessTokenExpiresAt  string    `` /* 154-byte string literal not displayed */
	Subdomain                      string    `json:"subdomain,omitempty" path:"subdomain,omitempty" url:"subdomain,omitempty"`
	ProvisionUsers                 *bool     `json:"provision_users,omitempty" path:"provision_users,omitempty" url:"provision_users,omitempty"`
	ProvisionGroups                *bool     `json:"provision_groups,omitempty" path:"provision_groups,omitempty" url:"provision_groups,omitempty"`
	DeprovisionUsers               *bool     `json:"deprovision_users,omitempty" path:"deprovision_users,omitempty" url:"deprovision_users,omitempty"`
	DeprovisionGroups              *bool     `json:"deprovision_groups,omitempty" path:"deprovision_groups,omitempty" url:"deprovision_groups,omitempty"`
	DeprovisionBehavior            string    `json:"deprovision_behavior,omitempty" path:"deprovision_behavior,omitempty" url:"deprovision_behavior,omitempty"`
	ProvisionGroupDefault          string    `json:"provision_group_default,omitempty" path:"provision_group_default,omitempty" url:"provision_group_default,omitempty"`
	ProvisionGroupExclusion        string    `` /* 127-byte string literal not displayed */
	ProvisionGroupInclusion        string    `` /* 127-byte string literal not displayed */
	ProvisionGroupRequired         string    `json:"provision_group_required,omitempty" path:"provision_group_required,omitempty" url:"provision_group_required,omitempty"`
	ProvisionEmailSignupGroups     string    `` /* 139-byte string literal not displayed */
	ProvisionSiteAdminGroups       string    `` /* 133-byte string literal not displayed */
	ProvisionGroupAdminGroups      string    `` /* 136-byte string literal not displayed */
	ProvisionAttachmentsPermission *bool     `` /* 148-byte string literal not displayed */
	ProvisionDavPermission         *bool     `json:"provision_dav_permission,omitempty" path:"provision_dav_permission,omitempty" url:"provision_dav_permission,omitempty"`
	ProvisionFtpPermission         *bool     `json:"provision_ftp_permission,omitempty" path:"provision_ftp_permission,omitempty" url:"provision_ftp_permission,omitempty"`
	ProvisionSftpPermission        *bool     `` /* 127-byte string literal not displayed */
	ProvisionTimeZone              string    `json:"provision_time_zone,omitempty" path:"provision_time_zone,omitempty" url:"provision_time_zone,omitempty"`
	ProvisionCompany               string    `json:"provision_company,omitempty" path:"provision_company,omitempty" url:"provision_company,omitempty"`
	LdapBaseDn                     string    `json:"ldap_base_dn,omitempty" path:"ldap_base_dn,omitempty" url:"ldap_base_dn,omitempty"`
	LdapDomain                     string    `json:"ldap_domain,omitempty" path:"ldap_domain,omitempty" url:"ldap_domain,omitempty"`
	Enabled                        *bool     `json:"enabled,omitempty" path:"enabled,omitempty" url:"enabled,omitempty"`
	LdapHost                       string    `json:"ldap_host,omitempty" path:"ldap_host,omitempty" url:"ldap_host,omitempty"`
	LdapHost2                      string    `json:"ldap_host_2,omitempty" path:"ldap_host_2,omitempty" url:"ldap_host_2,omitempty"`
	LdapHost3                      string    `json:"ldap_host_3,omitempty" path:"ldap_host_3,omitempty" url:"ldap_host_3,omitempty"`
	LdapPort                       int64     `json:"ldap_port,omitempty" path:"ldap_port,omitempty" url:"ldap_port,omitempty"`
	LdapSecure                     *bool     `json:"ldap_secure,omitempty" path:"ldap_secure,omitempty" url:"ldap_secure,omitempty"`
	LdapUsername                   string    `json:"ldap_username,omitempty" path:"ldap_username,omitempty" url:"ldap_username,omitempty"`
	LdapUsernameField              string    `json:"ldap_username_field,omitempty" path:"ldap_username_field,omitempty" url:"ldap_username_field,omitempty"`
	ClientId                       string    `json:"client_id,omitempty" path:"client_id,omitempty" url:"client_id,omitempty"`
	ClientSecret                   string    `json:"client_secret,omitempty" path:"client_secret,omitempty" url:"client_secret,omitempty"`
	ScimPassword                   string    `json:"scim_password,omitempty" path:"scim_password,omitempty" url:"scim_password,omitempty"`
	ResetScimOauthAccessToken      *bool     `` /* 139-byte string literal not displayed */
	LogoFile                       io.Reader `json:"logo_file,omitempty" path:"logo_file,omitempty" url:"logo_file,omitempty"`
	LogoDelete                     *bool     `json:"logo_delete,omitempty" path:"logo_delete,omitempty" url:"logo_delete,omitempty"`
	LdapPassword                   string    `json:"ldap_password,omitempty" path:"ldap_password,omitempty" url:"ldap_password,omitempty"`
}

func (SsoStrategy) Identifier ¶

func (s SsoStrategy) Identifier() interface{}

func (*SsoStrategy) UnmarshalJSON ¶

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

type SsoStrategyCollection ¶

type SsoStrategyCollection []SsoStrategy

func (*SsoStrategyCollection) ToSlice ¶

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

func (*SsoStrategyCollection) UnmarshalJSON ¶

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

type SsoStrategyCreateParams ¶ added in v2.0.276

type SsoStrategyCreateParams struct {
	Provider                       string                                  `url:"provider,omitempty" required:"false" json:"provider,omitempty" path:"provider"`
	Subdomain                      string                                  `url:"subdomain,omitempty" required:"false" json:"subdomain,omitempty" path:"subdomain"`
	ClientId                       string                                  `url:"client_id,omitempty" required:"false" json:"client_id,omitempty" path:"client_id"`
	ClientSecret                   string                                  `url:"client_secret,omitempty" required:"false" json:"client_secret,omitempty" path:"client_secret"`
	SamlProviderMetadataContent    string                                  `` /* 149-byte string literal not displayed */
	SamlProviderMetadataUrl        string                                  `` /* 137-byte string literal not displayed */
	SamlProviderCertFingerprint    string                                  `` /* 149-byte string literal not displayed */
	SamlProviderIssuerUrl          string                                  `` /* 131-byte string literal not displayed */
	SamlProviderSloTargetUrl       string                                  `` /* 143-byte string literal not displayed */
	SamlProviderSsoTargetUrl       string                                  `` /* 143-byte string literal not displayed */
	ScimAuthenticationMethod       SsoStrategyScimAuthenticationMethodEnum `` /* 137-byte string literal not displayed */
	ScimPassword                   string                                  `url:"scim_password,omitempty" required:"false" json:"scim_password,omitempty" path:"scim_password"`
	ScimUsername                   string                                  `url:"scim_username,omitempty" required:"false" json:"scim_username,omitempty" path:"scim_username"`
	ScimOauthAccessTokenExpiresAt  *time.Time                              `` /* 161-byte string literal not displayed */
	ResetScimOauthAccessToken      *bool                                   `` /* 146-byte string literal not displayed */
	Protocol                       string                                  `url:"protocol,omitempty" required:"false" json:"protocol,omitempty" path:"protocol"`
	ProvisionUsers                 *bool                                   `url:"provision_users,omitempty" required:"false" json:"provision_users,omitempty" path:"provision_users"`
	ProvisionGroups                *bool                                   `url:"provision_groups,omitempty" required:"false" json:"provision_groups,omitempty" path:"provision_groups"`
	DeprovisionUsers               *bool                                   `url:"deprovision_users,omitempty" required:"false" json:"deprovision_users,omitempty" path:"deprovision_users"`
	DeprovisionGroups              *bool                                   `url:"deprovision_groups,omitempty" required:"false" json:"deprovision_groups,omitempty" path:"deprovision_groups"`
	DeprovisionBehavior            SsoStrategyDeprovisionBehaviorEnum      `url:"deprovision_behavior,omitempty" required:"false" json:"deprovision_behavior,omitempty" path:"deprovision_behavior"`
	ProvisionGroupDefault          string                                  `` /* 128-byte string literal not displayed */
	ProvisionGroupExclusion        string                                  `` /* 134-byte string literal not displayed */
	ProvisionGroupInclusion        string                                  `` /* 134-byte string literal not displayed */
	ProvisionGroupRequired         string                                  `` /* 131-byte string literal not displayed */
	ProvisionAttachmentsPermission *bool                                   `` /* 155-byte string literal not displayed */
	ProvisionDavPermission         *bool                                   `` /* 131-byte string literal not displayed */
	ProvisionFtpPermission         *bool                                   `` /* 131-byte string literal not displayed */
	ProvisionSftpPermission        *bool                                   `` /* 134-byte string literal not displayed */
	ProvisionEmailSignupGroups     string                                  `` /* 146-byte string literal not displayed */
	ProvisionSiteAdminGroups       string                                  `` /* 140-byte string literal not displayed */
	ProvisionGroupAdminGroups      string                                  `` /* 143-byte string literal not displayed */
	ProvisionTimeZone              string                                  `url:"provision_time_zone,omitempty" required:"false" json:"provision_time_zone,omitempty" path:"provision_time_zone"`
	ProvisionCompany               string                                  `url:"provision_company,omitempty" required:"false" json:"provision_company,omitempty" path:"provision_company"`
	Label                          string                                  `url:"label,omitempty" required:"false" json:"label,omitempty" path:"label"`
	LogoFile                       io.Writer                               `url:"logo_file,omitempty" required:"false" json:"logo_file,omitempty" path:"logo_file"`
	LogoDelete                     *bool                                   `url:"logo_delete,omitempty" required:"false" json:"logo_delete,omitempty" path:"logo_delete"`
	LdapBaseDn                     string                                  `url:"ldap_base_dn,omitempty" required:"false" json:"ldap_base_dn,omitempty" path:"ldap_base_dn"`
	LdapDomain                     string                                  `url:"ldap_domain,omitempty" required:"false" json:"ldap_domain,omitempty" path:"ldap_domain"`
	LdapHost                       string                                  `url:"ldap_host,omitempty" required:"false" json:"ldap_host,omitempty" path:"ldap_host"`
	LdapHost2                      string                                  `url:"ldap_host_2,omitempty" required:"false" json:"ldap_host_2,omitempty" path:"ldap_host_2"`
	LdapHost3                      string                                  `url:"ldap_host_3,omitempty" required:"false" json:"ldap_host_3,omitempty" path:"ldap_host_3"`
	LdapPort                       int64                                   `url:"ldap_port,omitempty" required:"false" json:"ldap_port,omitempty" path:"ldap_port"`
	LdapSecure                     *bool                                   `url:"ldap_secure,omitempty" required:"false" json:"ldap_secure,omitempty" path:"ldap_secure"`
	LdapUsername                   string                                  `url:"ldap_username,omitempty" required:"false" json:"ldap_username,omitempty" path:"ldap_username"`
	LdapPassword                   string                                  `url:"ldap_password,omitempty" required:"false" json:"ldap_password,omitempty" path:"ldap_password"`
	LdapUsernameField              SsoStrategyLdapUsernameFieldEnum        `url:"ldap_username_field,omitempty" required:"false" json:"ldap_username_field,omitempty" path:"ldap_username_field"`
	Enabled                        *bool                                   `url:"enabled,omitempty" required:"false" json:"enabled,omitempty" path:"enabled"`
}

type SsoStrategyDeleteParams ¶ added in v2.0.276

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

type SsoStrategyDeprovisionBehaviorEnum ¶ added in v2.0.276

type SsoStrategyDeprovisionBehaviorEnum string

func (SsoStrategyDeprovisionBehaviorEnum) Enum ¶ added in v2.0.276

func (SsoStrategyDeprovisionBehaviorEnum) String ¶ added in v2.0.276

type SsoStrategyFindParams ¶

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

type SsoStrategyLdapUsernameFieldEnum ¶ added in v2.0.276

type SsoStrategyLdapUsernameFieldEnum string

func (SsoStrategyLdapUsernameFieldEnum) Enum ¶ added in v2.0.276

func (SsoStrategyLdapUsernameFieldEnum) String ¶ added in v2.0.276

type SsoStrategyListParams ¶

type SsoStrategyListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type SsoStrategyScimAuthenticationMethodEnum ¶ added in v2.0.276

type SsoStrategyScimAuthenticationMethodEnum string

func (SsoStrategyScimAuthenticationMethodEnum) Enum ¶ added in v2.0.276

func (SsoStrategyScimAuthenticationMethodEnum) String ¶ added in v2.0.276

type SsoStrategySyncParams ¶

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

Synchronize provisioning data with the SSO remote server

type SsoStrategyUpdateParams ¶ added in v2.0.276

type SsoStrategyUpdateParams struct {
	Id                             int64                                   `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Provider                       string                                  `url:"provider,omitempty" required:"false" json:"provider,omitempty" path:"provider"`
	Subdomain                      string                                  `url:"subdomain,omitempty" required:"false" json:"subdomain,omitempty" path:"subdomain"`
	ClientId                       string                                  `url:"client_id,omitempty" required:"false" json:"client_id,omitempty" path:"client_id"`
	ClientSecret                   string                                  `url:"client_secret,omitempty" required:"false" json:"client_secret,omitempty" path:"client_secret"`
	SamlProviderMetadataContent    string                                  `` /* 149-byte string literal not displayed */
	SamlProviderMetadataUrl        string                                  `` /* 137-byte string literal not displayed */
	SamlProviderCertFingerprint    string                                  `` /* 149-byte string literal not displayed */
	SamlProviderIssuerUrl          string                                  `` /* 131-byte string literal not displayed */
	SamlProviderSloTargetUrl       string                                  `` /* 143-byte string literal not displayed */
	SamlProviderSsoTargetUrl       string                                  `` /* 143-byte string literal not displayed */
	ScimAuthenticationMethod       SsoStrategyScimAuthenticationMethodEnum `` /* 137-byte string literal not displayed */
	ScimPassword                   string                                  `url:"scim_password,omitempty" required:"false" json:"scim_password,omitempty" path:"scim_password"`
	ScimUsername                   string                                  `url:"scim_username,omitempty" required:"false" json:"scim_username,omitempty" path:"scim_username"`
	ScimOauthAccessTokenExpiresAt  *time.Time                              `` /* 161-byte string literal not displayed */
	ResetScimOauthAccessToken      *bool                                   `` /* 146-byte string literal not displayed */
	Protocol                       string                                  `url:"protocol,omitempty" required:"false" json:"protocol,omitempty" path:"protocol"`
	ProvisionUsers                 *bool                                   `url:"provision_users,omitempty" required:"false" json:"provision_users,omitempty" path:"provision_users"`
	ProvisionGroups                *bool                                   `url:"provision_groups,omitempty" required:"false" json:"provision_groups,omitempty" path:"provision_groups"`
	DeprovisionUsers               *bool                                   `url:"deprovision_users,omitempty" required:"false" json:"deprovision_users,omitempty" path:"deprovision_users"`
	DeprovisionGroups              *bool                                   `url:"deprovision_groups,omitempty" required:"false" json:"deprovision_groups,omitempty" path:"deprovision_groups"`
	DeprovisionBehavior            SsoStrategyDeprovisionBehaviorEnum      `url:"deprovision_behavior,omitempty" required:"false" json:"deprovision_behavior,omitempty" path:"deprovision_behavior"`
	ProvisionGroupDefault          string                                  `` /* 128-byte string literal not displayed */
	ProvisionGroupExclusion        string                                  `` /* 134-byte string literal not displayed */
	ProvisionGroupInclusion        string                                  `` /* 134-byte string literal not displayed */
	ProvisionGroupRequired         string                                  `` /* 131-byte string literal not displayed */
	ProvisionAttachmentsPermission *bool                                   `` /* 155-byte string literal not displayed */
	ProvisionDavPermission         *bool                                   `` /* 131-byte string literal not displayed */
	ProvisionFtpPermission         *bool                                   `` /* 131-byte string literal not displayed */
	ProvisionSftpPermission        *bool                                   `` /* 134-byte string literal not displayed */
	ProvisionEmailSignupGroups     string                                  `` /* 146-byte string literal not displayed */
	ProvisionSiteAdminGroups       string                                  `` /* 140-byte string literal not displayed */
	ProvisionGroupAdminGroups      string                                  `` /* 143-byte string literal not displayed */
	ProvisionTimeZone              string                                  `url:"provision_time_zone,omitempty" required:"false" json:"provision_time_zone,omitempty" path:"provision_time_zone"`
	ProvisionCompany               string                                  `url:"provision_company,omitempty" required:"false" json:"provision_company,omitempty" path:"provision_company"`
	Label                          string                                  `url:"label,omitempty" required:"false" json:"label,omitempty" path:"label"`
	LogoFile                       io.Writer                               `url:"logo_file,omitempty" required:"false" json:"logo_file,omitempty" path:"logo_file"`
	LogoDelete                     *bool                                   `url:"logo_delete,omitempty" required:"false" json:"logo_delete,omitempty" path:"logo_delete"`
	LdapBaseDn                     string                                  `url:"ldap_base_dn,omitempty" required:"false" json:"ldap_base_dn,omitempty" path:"ldap_base_dn"`
	LdapDomain                     string                                  `url:"ldap_domain,omitempty" required:"false" json:"ldap_domain,omitempty" path:"ldap_domain"`
	LdapHost                       string                                  `url:"ldap_host,omitempty" required:"false" json:"ldap_host,omitempty" path:"ldap_host"`
	LdapHost2                      string                                  `url:"ldap_host_2,omitempty" required:"false" json:"ldap_host_2,omitempty" path:"ldap_host_2"`
	LdapHost3                      string                                  `url:"ldap_host_3,omitempty" required:"false" json:"ldap_host_3,omitempty" path:"ldap_host_3"`
	LdapPort                       int64                                   `url:"ldap_port,omitempty" required:"false" json:"ldap_port,omitempty" path:"ldap_port"`
	LdapSecure                     *bool                                   `url:"ldap_secure,omitempty" required:"false" json:"ldap_secure,omitempty" path:"ldap_secure"`
	LdapUsername                   string                                  `url:"ldap_username,omitempty" required:"false" json:"ldap_username,omitempty" path:"ldap_username"`
	LdapPassword                   string                                  `url:"ldap_password,omitempty" required:"false" json:"ldap_password,omitempty" path:"ldap_password"`
	LdapUsernameField              SsoStrategyLdapUsernameFieldEnum        `url:"ldap_username_field,omitempty" required:"false" json:"ldap_username_field,omitempty" path:"ldap_username_field"`
	Enabled                        *bool                                   `url:"enabled,omitempty" required:"false" json:"enabled,omitempty" path:"enabled"`
}

type StagingSite ¶ added in v2.0.276

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

func (*StagingSite) UnmarshalJSON ¶ added in v2.0.276

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

type StagingSiteCollection ¶ added in v2.0.276

type StagingSiteCollection []StagingSite

func (*StagingSiteCollection) ToSlice ¶ added in v2.0.276

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

func (*StagingSiteCollection) UnmarshalJSON ¶ added in v2.0.276

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

type StagingSiteCreateParams ¶ added in v2.0.276

type StagingSiteCreateParams struct {
	Name     string `url:"name,omitempty" required:"true" json:"name,omitempty" path:"name"`
	Email    string `url:"email,omitempty" required:"true" json:"email,omitempty" path:"email"`
	Username string `url:"username,omitempty" required:"false" json:"username,omitempty" path:"username"`
	Password string `url:"password,omitempty" required:"false" json:"password,omitempty" path:"password"`
}

type StagingSiteListParams ¶ added in v2.0.276

type StagingSiteListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type Status ¶

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

func (*Status) UnmarshalJSON ¶

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

type StatusCollection ¶

type StatusCollection []Status

func (*StatusCollection) ToSlice ¶

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

func (*StatusCollection) UnmarshalJSON ¶

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

type Style ¶

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

func (Style) Identifier ¶

func (s Style) Identifier() interface{}

func (*Style) UnmarshalJSON ¶

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

type StyleCollection ¶

type StyleCollection []Style

func (*StyleCollection) ToSlice ¶

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

func (*StyleCollection) UnmarshalJSON ¶

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

type StyleDeleteParams ¶

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

type StyleFindParams ¶

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

type StyleUpdateParams ¶

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

type SupportRequest ¶ added in v2.0.276

type SupportRequest struct {
	Id                    int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Subject               string     `json:"subject,omitempty" path:"subject,omitempty" url:"subject,omitempty"`
	Comment               string     `json:"comment,omitempty" path:"comment,omitempty" url:"comment,omitempty"`
	CreatedAt             *date.Date `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	AccessUntil           *date.Date `json:"access_until,omitempty" path:"access_until,omitempty" url:"access_until,omitempty"`
	CustomerSuccessAccess string     `json:"customer_success_access,omitempty" path:"customer_success_access,omitempty" url:"customer_success_access,omitempty"`
	Priority              string     `json:"priority,omitempty" path:"priority,omitempty" url:"priority,omitempty"`
	Name                  string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	PhoneNumber           string     `json:"phone_number,omitempty" path:"phone_number,omitempty" url:"phone_number,omitempty"`
	AccessReset           *bool      `json:"access_reset,omitempty" path:"access_reset,omitempty" url:"access_reset,omitempty"`
	Email                 string     `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	AttachmentsFiles      []string   `json:"attachments_files,omitempty" path:"attachments_files,omitempty" url:"attachments_files,omitempty"`
}

func (SupportRequest) Identifier ¶ added in v2.0.276

func (s SupportRequest) Identifier() interface{}

func (*SupportRequest) UnmarshalJSON ¶ added in v2.0.276

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

type SupportRequestCollection ¶ added in v2.0.276

type SupportRequestCollection []SupportRequest

func (*SupportRequestCollection) ToSlice ¶ added in v2.0.276

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

func (*SupportRequestCollection) UnmarshalJSON ¶ added in v2.0.276

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

type SupportRequestCreateParams ¶ added in v2.0.276

type SupportRequestCreateParams struct {
	CustomerSuccessAccess SupportRequestCustomerSuccessAccessEnum `` /* 128-byte string literal not displayed */
	AccessReset           *bool                                   `url:"access_reset,omitempty" required:"false" json:"access_reset,omitempty" path:"access_reset"`
	Email                 string                                  `url:"email,omitempty" required:"true" json:"email,omitempty" path:"email"`
	Subject               string                                  `url:"subject,omitempty" required:"true" json:"subject,omitempty" path:"subject"`
	Comment               string                                  `url:"comment,omitempty" required:"true" json:"comment,omitempty" path:"comment"`
	Priority              SupportRequestPriorityEnum              `url:"priority,omitempty" required:"false" json:"priority,omitempty" path:"priority"`
	PhoneNumber           string                                  `url:"phone_number,omitempty" required:"false" json:"phone_number,omitempty" path:"phone_number"`
	Name                  string                                  `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	AttachmentsFiles      []string                                `url:"attachments_files,omitempty" required:"false" json:"attachments_files,omitempty" path:"attachments_files"`
}

type SupportRequestCustomerSuccessAccessEnum ¶ added in v2.0.276

type SupportRequestCustomerSuccessAccessEnum string

func (SupportRequestCustomerSuccessAccessEnum) Enum ¶ added in v2.0.276

func (SupportRequestCustomerSuccessAccessEnum) String ¶ added in v2.0.276

type SupportRequestListParams ¶ added in v2.0.276

type SupportRequestListParams struct {
	Action string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

type SupportRequestPriorityEnum ¶ added in v2.0.276

type SupportRequestPriorityEnum string

func (SupportRequestPriorityEnum) Enum ¶ added in v2.0.276

func (SupportRequestPriorityEnum) String ¶ added in v2.0.276

type SupportRequestUpdateParams ¶ added in v2.0.276

type SupportRequestUpdateParams struct {
	Id                    int64                                   `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	CustomerSuccessAccess SupportRequestCustomerSuccessAccessEnum `` /* 128-byte string literal not displayed */
	AccessReset           *bool                                   `url:"access_reset,omitempty" required:"false" json:"access_reset,omitempty" path:"access_reset"`
}

type SyncBandwidthSnapshot ¶ added in v2.0.276

type SyncBandwidthSnapshot struct {
	Id                int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	SiteId            int64      `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	SyncBytesReceived string     `json:"sync_bytes_received,omitempty" path:"sync_bytes_received,omitempty" url:"sync_bytes_received,omitempty"`
	SyncBytesSent     string     `json:"sync_bytes_sent,omitempty" path:"sync_bytes_sent,omitempty" url:"sync_bytes_sent,omitempty"`
	CreatedAt         *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	RemoteServerId    int64      `json:"remote_server_id,omitempty" path:"remote_server_id,omitempty" url:"remote_server_id,omitempty"`
}

func (SyncBandwidthSnapshot) Identifier ¶ added in v2.0.276

func (s SyncBandwidthSnapshot) Identifier() interface{}

func (*SyncBandwidthSnapshot) UnmarshalJSON ¶ added in v2.0.276

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

type SyncBandwidthSnapshotCollection ¶ added in v2.0.276

type SyncBandwidthSnapshotCollection []SyncBandwidthSnapshot

func (*SyncBandwidthSnapshotCollection) ToSlice ¶ added in v2.0.276

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

func (*SyncBandwidthSnapshotCollection) UnmarshalJSON ¶ added in v2.0.276

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

type SyncBandwidthSnapshotCreateParams ¶ added in v2.0.276

type SyncBandwidthSnapshotCreateParams struct {
	RemoteServerId    int64 `url:"remote_server_id,omitempty" required:"true" json:"remote_server_id,omitempty" path:"remote_server_id"`
	SyncBytesSent     int64 `url:"sync_bytes_sent,omitempty" required:"true" json:"sync_bytes_sent,omitempty" path:"sync_bytes_sent"`
	SyncBytesReceived int64 `url:"sync_bytes_received,omitempty" required:"true" json:"sync_bytes_received,omitempty" path:"sync_bytes_received"`
}

type TwoFactorAuthenticationMethod ¶ added in v2.0.276

type TwoFactorAuthenticationMethod struct {
	Id                          int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                        string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	MethodType                  string     `json:"method_type,omitempty" path:"method_type,omitempty" url:"method_type,omitempty"`
	PhoneNumber                 string     `json:"phone_number,omitempty" path:"phone_number,omitempty" url:"phone_number,omitempty"`
	PhoneNumberCountry          string     `json:"phone_number_country,omitempty" path:"phone_number_country,omitempty" url:"phone_number_country,omitempty"`
	PhoneNumberNationalFormat   string     `` /* 136-byte string literal not displayed */
	SetupExpired                *bool      `json:"setup_expired,omitempty" path:"setup_expired,omitempty" url:"setup_expired,omitempty"`
	SetupComplete               *bool      `json:"setup_complete,omitempty" path:"setup_complete,omitempty" url:"setup_complete,omitempty"`
	SetupExpiresAt              *time.Time `json:"setup_expires_at,omitempty" path:"setup_expires_at,omitempty" url:"setup_expires_at,omitempty"`
	TotpProvisioningUri         string     `json:"totp_provisioning_uri,omitempty" path:"totp_provisioning_uri,omitempty" url:"totp_provisioning_uri,omitempty"`
	U2fAppId                    string     `json:"u2f_app_id,omitempty" path:"u2f_app_id,omitempty" url:"u2f_app_id,omitempty"`
	U2fRegistrationRequests     []string   `` /* 127-byte string literal not displayed */
	WebauthnRegistrationOptions []string   `` /* 139-byte string literal not displayed */
	BypassForFtpSftpDav         *bool      `json:"bypass_for_ftp_sftp_dav,omitempty" path:"bypass_for_ftp_sftp_dav,omitempty" url:"bypass_for_ftp_sftp_dav,omitempty"`
	Otp                         string     `json:"otp,omitempty" path:"otp,omitempty" url:"otp,omitempty"`
}

func (TwoFactorAuthenticationMethod) Identifier ¶ added in v2.0.276

func (t TwoFactorAuthenticationMethod) Identifier() interface{}

func (*TwoFactorAuthenticationMethod) UnmarshalJSON ¶ added in v2.0.276

func (t *TwoFactorAuthenticationMethod) UnmarshalJSON(data []byte) error

type TwoFactorAuthenticationMethodCollection ¶ added in v2.0.276

type TwoFactorAuthenticationMethodCollection []TwoFactorAuthenticationMethod

func (*TwoFactorAuthenticationMethodCollection) ToSlice ¶ added in v2.0.276

func (t *TwoFactorAuthenticationMethodCollection) ToSlice() *[]interface{}

func (*TwoFactorAuthenticationMethodCollection) UnmarshalJSON ¶ added in v2.0.276

func (t *TwoFactorAuthenticationMethodCollection) UnmarshalJSON(data []byte) error

type TwoFactorAuthenticationMethodCreateParams ¶ added in v2.0.276

type TwoFactorAuthenticationMethodCreateParams struct {
	MethodType          TwoFactorAuthenticationMethodMethodTypeEnum `url:"method_type,omitempty" required:"true" json:"method_type,omitempty" path:"method_type"`
	Name                string                                      `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	PhoneNumber         string                                      `url:"phone_number,omitempty" required:"false" json:"phone_number,omitempty" path:"phone_number"`
	BypassForFtpSftpDav *bool                                       `` /* 128-byte string literal not displayed */
}

type TwoFactorAuthenticationMethodDeleteParams ¶ added in v2.0.276

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

type TwoFactorAuthenticationMethodGetParams ¶ added in v2.0.276

type TwoFactorAuthenticationMethodGetParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type TwoFactorAuthenticationMethodMethodTypeEnum ¶ added in v2.0.276

type TwoFactorAuthenticationMethodMethodTypeEnum string

func (TwoFactorAuthenticationMethodMethodTypeEnum) Enum ¶ added in v2.0.276

func (TwoFactorAuthenticationMethodMethodTypeEnum) String ¶ added in v2.0.276

type TwoFactorAuthenticationMethodSendCodeParams ¶ added in v2.0.276

type TwoFactorAuthenticationMethodSendCodeParams struct {
	U2fOnly *bool `url:"u2f_only,omitempty" required:"false" json:"u2f_only,omitempty" path:"u2f_only"`
}

type TwoFactorAuthenticationMethodUpdateParams ¶ added in v2.0.276

type TwoFactorAuthenticationMethodUpdateParams struct {
	Id                  int64  `url:"-,omitempty" required:"false" json:"-,omitempty" path:"id"`
	Otp                 string `url:"otp,omitempty" required:"false" json:"otp,omitempty" path:"otp"`
	Name                string `url:"name,omitempty" required:"false" json:"name,omitempty" path:"name"`
	BypassForFtpSftpDav *bool  `` /* 128-byte string literal not displayed */
}

type TypedIterI ¶

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

type U2fSignRequest ¶ added in v2.0.276

type U2fSignRequest struct {
	AppId                         string   `json:"app_id,omitempty" path:"app_id,omitempty" url:"app_id,omitempty"`
	Challenge                     string   `json:"challenge,omitempty" path:"challenge,omitempty" url:"challenge,omitempty"`
	SignRequest                   string   `json:"sign_request,omitempty" path:"sign_request,omitempty" url:"sign_request,omitempty"`
	WebauthnAuthenticationOptions []string `` /* 145-byte string literal not displayed */
}

func (*U2fSignRequest) UnmarshalJSON ¶ added in v2.0.276

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

type U2fSignRequestCollection ¶ added in v2.0.276

type U2fSignRequestCollection []U2fSignRequest

func (*U2fSignRequestCollection) ToSlice ¶ added in v2.0.276

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

func (*U2fSignRequestCollection) UnmarshalJSON ¶ added in v2.0.276

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

type U2fSignRequests ¶

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

type UsageDailySnapshot ¶

type UsageDailySnapshot struct {
	Id                           int64                  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Date                         *date.Date             `json:"date,omitempty" path:"date,omitempty" url:"date,omitempty"`
	ApiUsageAvailable            *bool                  `json:"api_usage_available,omitempty" path:"api_usage_available,omitempty" url:"api_usage_available,omitempty"`
	ReadApiUsage                 int64                  `json:"read_api_usage,omitempty" path:"read_api_usage,omitempty" url:"read_api_usage,omitempty"`
	WriteApiUsage                int64                  `json:"write_api_usage,omitempty" path:"write_api_usage,omitempty" url:"write_api_usage,omitempty"`
	UserCount                    int64                  `json:"user_count,omitempty" path:"user_count,omitempty" url:"user_count,omitempty"`
	CurrentStorage               int64                  `json:"current_storage,omitempty" path:"current_storage,omitempty" url:"current_storage,omitempty"`
	DeletedFilesStorage          int64                  `json:"deleted_files_storage,omitempty" path:"deleted_files_storage,omitempty" url:"deleted_files_storage,omitempty"`
	DeletedFilesCountedInMinimum int64                  `` /* 148-byte string literal not displayed */
	RootStorage                  int64                  `json:"root_storage,omitempty" path:"root_storage,omitempty" url:"root_storage,omitempty"`
	UsageByTopLevelDir           map[string]interface{} `json:"usage_by_top_level_dir,omitempty" path:"usage_by_top_level_dir,omitempty" url:"usage_by_top_level_dir,omitempty"`
}

func (UsageDailySnapshot) Identifier ¶

func (u UsageDailySnapshot) Identifier() interface{}

func (*UsageDailySnapshot) UnmarshalJSON ¶

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

type UsageDailySnapshotCollection ¶

type UsageDailySnapshotCollection []UsageDailySnapshot

func (*UsageDailySnapshotCollection) ToSlice ¶

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

func (*UsageDailySnapshotCollection) UnmarshalJSON ¶

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

type UsageDailySnapshotListParams ¶

type UsageDailySnapshotListParams struct {
	Action     string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	SortBy     map[string]interface{} `url:"sort_by,omitempty" required:"false" json:"sort_by,omitempty" path:"sort_by"`
	Filter     UsageDailySnapshot     `url:"filter,omitempty" required:"false" json:"filter,omitempty" path:"filter"`
	FilterGt   map[string]interface{} `url:"filter_gt,omitempty" required:"false" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq map[string]interface{} `url:"filter_gteq,omitempty" required:"false" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   map[string]interface{} `url:"filter_lt,omitempty" required:"false" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq map[string]interface{} `url:"filter_lteq,omitempty" required:"false" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

type UsageSnapshot ¶

type UsageSnapshot struct {
	Id                           int64                  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	StartAt                      *time.Time             `json:"start_at,omitempty" path:"start_at,omitempty" url:"start_at,omitempty"`
	EndAt                        *time.Time             `json:"end_at,omitempty" path:"end_at,omitempty" url:"end_at,omitempty"`
	HighWaterUserCount           string                 `json:"high_water_user_count,omitempty" path:"high_water_user_count,omitempty" url:"high_water_user_count,omitempty"`
	CurrentStorage               string                 `json:"current_storage,omitempty" path:"current_storage,omitempty" url:"current_storage,omitempty"`
	HighWaterStorage             string                 `json:"high_water_storage,omitempty" path:"high_water_storage,omitempty" url:"high_water_storage,omitempty"`
	UsageByTopLevelDir           map[string]interface{} `json:"usage_by_top_level_dir,omitempty" path:"usage_by_top_level_dir,omitempty" url:"usage_by_top_level_dir,omitempty"`
	RootStorage                  string                 `json:"root_storage,omitempty" path:"root_storage,omitempty" url:"root_storage,omitempty"`
	DeletedFilesCountedInMinimum string                 `` /* 148-byte string literal not displayed */
	DeletedFilesStorage          string                 `json:"deleted_files_storage,omitempty" path:"deleted_files_storage,omitempty" url:"deleted_files_storage,omitempty"`
	TotalBillableUsage           string                 `json:"total_billable_usage,omitempty" path:"total_billable_usage,omitempty" url:"total_billable_usage,omitempty"`
	TotalBillableTransferUsage   string                 `` /* 139-byte string literal not displayed */
	BytesSent                    string                 `json:"bytes_sent,omitempty" path:"bytes_sent,omitempty" url:"bytes_sent,omitempty"`
	SyncBytesReceived            string                 `json:"sync_bytes_received,omitempty" path:"sync_bytes_received,omitempty" url:"sync_bytes_received,omitempty"`
	SyncBytesSent                string                 `json:"sync_bytes_sent,omitempty" path:"sync_bytes_sent,omitempty" url:"sync_bytes_sent,omitempty"`
}

func (UsageSnapshot) Identifier ¶

func (u UsageSnapshot) Identifier() interface{}

func (*UsageSnapshot) UnmarshalJSON ¶

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

type UsageSnapshotCollection ¶

type UsageSnapshotCollection []UsageSnapshot

func (*UsageSnapshotCollection) ToSlice ¶

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

func (*UsageSnapshotCollection) UnmarshalJSON ¶

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

type UsageSnapshotListParams ¶

type UsageSnapshotListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type User ¶

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

func (User) Identifier ¶

func (u User) Identifier() interface{}

func (*User) UnmarshalJSON ¶

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

type UserAuthenticationMethodEnum ¶

type UserAuthenticationMethodEnum string

func (UserAuthenticationMethodEnum) Enum ¶

func (UserAuthenticationMethodEnum) String ¶

type UserCipherUse ¶

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

func (UserCipherUse) Identifier ¶

func (u UserCipherUse) Identifier() interface{}

func (*UserCipherUse) UnmarshalJSON ¶

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

type UserCipherUseCollection ¶

type UserCipherUseCollection []UserCipherUse

func (*UserCipherUseCollection) ToSlice ¶

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

func (*UserCipherUseCollection) UnmarshalJSON ¶

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

type UserCipherUseListParams ¶

type UserCipherUseListParams struct {
	UserId int64  `url:"user_id,omitempty" required:"false" json:"user_id,omitempty" path:"user_id"`
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type UserCollection ¶

type UserCollection []User

func (*UserCollection) ToSlice ¶

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

func (*UserCollection) UnmarshalJSON ¶

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

type UserCreateParams ¶

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

type UserDeleteParams ¶

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

type UserFindParams ¶

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

type UserListParams ¶

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

type UserParam ¶ added in v2.0.276

type UserParam struct {
	ReceiveAdminAlerts  string `url:"receive_admin_alerts,omitempty" json:"receive_admin_alerts,omitempty" path:"receive_admin_alerts"`
	Unsubscribed        string `url:"unsubscribed,omitempty" json:"unsubscribed,omitempty" path:"unsubscribed"`
	Notifications       string `url:"notifications,omitempty" json:"notifications,omitempty" path:"notifications"`
	BundleNotifications string `url:"bundle_notifications,omitempty" json:"bundle_notifications,omitempty" path:"bundle_notifications"`
	Unsubscribe         string `url:"unsubscribe,omitempty" json:"unsubscribe,omitempty" path:"unsubscribe"`
}

type UserRequest ¶

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

func (UserRequest) Identifier ¶

func (u UserRequest) Identifier() interface{}

func (*UserRequest) UnmarshalJSON ¶

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

type UserRequestCollection ¶

type UserRequestCollection []UserRequest

func (*UserRequestCollection) ToSlice ¶

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

func (*UserRequestCollection) UnmarshalJSON ¶

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

type UserRequestCreateParams ¶

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

type UserRequestDeleteParams ¶

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

type UserRequestFindParams ¶

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

type UserRequestListParams ¶

type UserRequestListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type UserRequire2faEnum ¶

type UserRequire2faEnum string

func (UserRequire2faEnum) Enum ¶

func (UserRequire2faEnum) String ¶

func (u UserRequire2faEnum) String() string

type UserResendWelcomeEmailParams ¶

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

Resend user welcome email

type UserSslRequiredEnum ¶

type UserSslRequiredEnum string

func (UserSslRequiredEnum) Enum ¶

func (UserSslRequiredEnum) String ¶

func (u UserSslRequiredEnum) String() string

type UserUnlockParams ¶

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

Unlock user who has been locked out due to failed logins

type UserUpdateParams ¶

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

type UserUser2faResetParams ¶

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

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

type Warning ¶ added in v2.0.276

type Warning struct {
	Warnings []string `json:"warnings,omitempty" path:"warnings,omitempty" url:"warnings,omitempty"`
}

func (*Warning) UnmarshalJSON ¶ added in v2.0.276

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

type WarningCollection ¶ added in v2.0.276

type WarningCollection []Warning

func (*WarningCollection) ToSlice ¶ added in v2.0.276

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

func (*WarningCollection) UnmarshalJSON ¶ added in v2.0.276

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

type WarningListParams ¶ added in v2.0.276

type WarningListParams struct {
	Action string `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	ListParams
}

type WebhookTest ¶

type WebhookTest struct {
	Code            int64                  `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	Message         string                 `json:"message,omitempty" path:"message,omitempty" url:"message,omitempty"`
	Status          string                 `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	Data            Auto                   `json:"data,omitempty" path:"data,omitempty" url:"data,omitempty"`
	Success         *bool                  `json:"success,omitempty" path:"success,omitempty" url:"success,omitempty"`
	Url             string                 `json:"url,omitempty" path:"url,omitempty" url:"url,omitempty"`
	Method          string                 `json:"method,omitempty" path:"method,omitempty" url:"method,omitempty"`
	Encoding        string                 `json:"encoding,omitempty" path:"encoding,omitempty" url:"encoding,omitempty"`
	Headers         map[string]interface{} `json:"headers,omitempty" path:"headers,omitempty" url:"headers,omitempty"`
	Body            map[string]interface{} `json:"body,omitempty" path:"body,omitempty" url:"body,omitempty"`
	RawBody         string                 `json:"raw_body,omitempty" path:"raw_body,omitempty" url:"raw_body,omitempty"`
	FileAsBody      *bool                  `json:"file_as_body,omitempty" path:"file_as_body,omitempty" url:"file_as_body,omitempty"`
	FileFormField   string                 `json:"file_form_field,omitempty" path:"file_form_field,omitempty" url:"file_form_field,omitempty"`
	Action          string                 `json:"action,omitempty" path:"action,omitempty" url:"action,omitempty"`
	UseDedicatedIps *bool                  `json:"use_dedicated_ips,omitempty" path:"use_dedicated_ips,omitempty" url:"use_dedicated_ips,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" path:"url"`
	Method          string                 `url:"method,omitempty" required:"false" json:"method,omitempty" path:"method"`
	Encoding        string                 `url:"encoding,omitempty" required:"false" json:"encoding,omitempty" path:"encoding"`
	Headers         map[string]interface{} `url:"headers,omitempty" required:"false" json:"headers,omitempty" path:"headers"`
	Body            map[string]interface{} `url:"body,omitempty" required:"false" json:"body,omitempty" path:"body"`
	RawBody         string                 `url:"raw_body,omitempty" required:"false" json:"raw_body,omitempty" path:"raw_body"`
	FileAsBody      *bool                  `url:"file_as_body,omitempty" required:"false" json:"file_as_body,omitempty" path:"file_as_body"`
	FileFormField   string                 `url:"file_form_field,omitempty" required:"false" json:"file_form_field,omitempty" path:"file_form_field"`
	Action          string                 `url:"action,omitempty" required:"false" json:"action,omitempty" path:"action"`
	UseDedicatedIps *bool                  `url:"use_dedicated_ips,omitempty" required:"false" json:"use_dedicated_ips,omitempty" path:"use_dedicated_ips"`
}

type ZipDownload ¶ added in v2.0.276

type ZipDownload struct {
	DownloadUri            string   `json:"download_uri,omitempty" path:"download_uri,omitempty" url:"download_uri,omitempty"`
	Paths                  []string `json:"paths,omitempty" path:"paths,omitempty" url:"paths,omitempty"`
	BundleRegistrationCode string   `json:"bundle_registration_code,omitempty" path:"bundle_registration_code,omitempty" url:"bundle_registration_code,omitempty"`
	EncodedPaths           []string `json:"encoded_paths,omitempty" path:"encoded_paths,omitempty" url:"encoded_paths,omitempty"`
}

func (*ZipDownload) UnmarshalJSON ¶ added in v2.0.276

func (z *ZipDownload) UnmarshalJSON(data []byte) error

type ZipDownloadCollection ¶ added in v2.0.276

type ZipDownloadCollection []ZipDownload

func (*ZipDownloadCollection) ToSlice ¶ added in v2.0.276

func (z *ZipDownloadCollection) ToSlice() *[]interface{}

func (*ZipDownloadCollection) UnmarshalJSON ¶ added in v2.0.276

func (z *ZipDownloadCollection) UnmarshalJSON(data []byte) error

type ZipDownloadCreateParams ¶ added in v2.0.276

type ZipDownloadCreateParams struct {
	Paths                  []string `url:"paths,omitempty" required:"true" json:"paths,omitempty" path:"paths"`
	BundleRegistrationCode string   `` /* 131-byte string literal not displayed */
	EncodedPaths           []string `url:"encoded_paths,omitempty" required:"false" json:"encoded_paths,omitempty" path:"encoded_paths"`
}

type ZipDownloadFile ¶ added in v2.0.276

type ZipDownloadFile struct {
	Files  []string `json:"files,omitempty" path:"files,omitempty" url:"files,omitempty"`
	Cursor string   `json:"cursor,omitempty" path:"cursor,omitempty" url:"cursor,omitempty"`
	Code   string   `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	Limit  int64    `json:"limit,omitempty" path:"limit,omitempty" url:"limit,omitempty"`
	SiteId int64    `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
}

func (*ZipDownloadFile) UnmarshalJSON ¶ added in v2.0.276

func (z *ZipDownloadFile) UnmarshalJSON(data []byte) error

type ZipDownloadFileCollection ¶ added in v2.0.276

type ZipDownloadFileCollection []ZipDownloadFile

func (*ZipDownloadFileCollection) ToSlice ¶ added in v2.0.276

func (z *ZipDownloadFileCollection) ToSlice() *[]interface{}

func (*ZipDownloadFileCollection) UnmarshalJSON ¶ added in v2.0.276

func (z *ZipDownloadFileCollection) UnmarshalJSON(data []byte) error

type ZipDownloadFileCreateParams ¶ added in v2.0.276

type ZipDownloadFileCreateParams struct {
	Code   string `url:"code,omitempty" required:"true" json:"code,omitempty" path:"code"`
	Limit  int64  `url:"limit,omitempty" required:"false" json:"limit,omitempty" path:"limit"`
	SiteId int64  `url:"site_id,omitempty" required:"false" json:"site_id,omitempty" path:"site_id"`
	ListParams
}

type ZipDownloadFiles ¶ added in v2.0.276

type ZipDownloadFiles struct {
	Files  []string `json:"files,omitempty" path:"files,omitempty" url:"files,omitempty"`
	Cursor string   `json:"cursor,omitempty" path:"cursor,omitempty" url:"cursor,omitempty"`
}

func (*ZipDownloadFiles) UnmarshalJSON ¶ added in v2.0.276

func (z *ZipDownloadFiles) UnmarshalJSON(data []byte) error

type ZipDownloadFilesCollection ¶ added in v2.0.276

type ZipDownloadFilesCollection []ZipDownloadFiles

func (*ZipDownloadFilesCollection) ToSlice ¶ added in v2.0.276

func (z *ZipDownloadFilesCollection) ToSlice() *[]interface{}

func (*ZipDownloadFilesCollection) UnmarshalJSON ¶ added in v2.0.276

func (z *ZipDownloadFilesCollection) UnmarshalJSON(data []byte) error

Source Files ¶

Directories ¶

Path Synopsis
lib

Jump to

Keyboard shortcuts

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