files_sdk

package module
v3.3.317 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 31 Imported by: 13 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ¶

Files.com Go Client

The Files.com Go SDK lets Go applications manage files, folders, users, and other resources through the Files.com API.

Use the examples below to install the SDK, authenticate, and make API requests. The developer documentation covers the complete API.

Introduction

The Files.com Go SDK lets Go applications manage files, folders, users, automations, and other API resources. Resource clients accept configuration and request options and use standard Go error handling.

Installation

If your project does not already have a go.mod file, create a module. Replace example.com/myapp with your module path. Then add the SDK dependency:

go mod init example.com/myapp
go get github.com/Files-com/files-sdk-go/v3

Import the SDK models and the resource clients you need:

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

The examples show imports followed by code to place inside a function, such as main. Use go build to compile your application after adding the SDK dependency.

Files.com is Committed to Go

Files.com uses Go for internal development. The Go SDK also supports the Files.com CLI, desktop application, Terraform provider, and Rclone integration.

Explore the files-sdk-go code on GitHub.

Getting Support

The Files.com Support team provides official support for all of our official Files.com integration tools.

To initiate a support conversation, you can send an Authenticated Support Request or simply send an E-Mail to support@files.com.

Authentication

There are two ways to authenticate: API Key authentication and Session-based authentication.

Authenticate with an API Key

Authenticating with an API key is the recommended authentication method for most scenarios, and is the method used in the examples on this site.

To use an API Key, first generate an API key from the web interface or via the API or an SDK.

A user-specific API key uses the user's permissions. Workspaces describes account scope and administrative access.

Set Config.APIKey and initialize the configuration before passing it to a resource client. This configuration applies to that client.

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/folder"
)

config := files_sdk.Config{APIKey: "YOUR_API_KEY"}.Init()
client := folder.Client{Config: config}
it, err := client.ListFor(files_sdk.FolderListForParams{})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for file, err := range it.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(file.Path)
}

You can reuse files_sdk.GlobalConfig by passing it to a client, for example folder.Client{Config: files_sdk.GlobalConfig}.

To use the FILES_API_KEY environment variable, leave Config.APIKey empty. Package-level resource functions also read this variable:

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/folder"
)

it, err := folder.ListFor(files_sdk.FolderListForParams{})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for file, err := range it.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(file.Path)
}

Don't forget to replace the placeholder, YOUR_API_KEY, with your actual API key.

Authenticate with a Session

Create a session with the username and password of an active user. The session uses that user's permissions. Workspaces describes account scope and administrative access.

Sessions follow the same timeout settings as web sessions. When a session expires, create a new session and update the clients that use it. The SDK does not renew sessions automatically.

Logging In

Create a session.Client with your Files.com subdomain, then call Create with your username and password. Use the returned session ID as Config.SessionId when creating resource clients.

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/folder"
    "github.com/Files-com/files-sdk-go/v3/session"
)

sessionClient := session.Client{Config: files_sdk.Config{Subdomain: "MY-SUBDOMAIN"}.Init()}
thisSession, err := sessionClient.Create(files_sdk.SessionCreateParams{Username: "USERNAME", Password: "PASSWORD"})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

config := files_sdk.Config{Subdomain: "MY-SUBDOMAIN", SessionId: thisSession.Id}.Init()
folderClient := folder.Client{Config: config}

it, err := folderClient.ListFor(files_sdk.FolderListForParams{})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for file, err := range it.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(file.Path)
}
Using a Session

Set Config.SessionId to the session's Id and pass the configuration to each resource client that uses the session.

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/folder"
)

config := files_sdk.Config{Subdomain: "MY-SUBDOMAIN", SessionId: thisSession.Id}.Init()
folderClient := folder.Client{Config: config}

it, err := folderClient.ListFor(files_sdk.FolderListForParams{})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for file, err := range it.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(file.Path)
}
Logging Out

User sessions can be ended by calling Delete() on the Session client.

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/session"
)

sessionClient := session.Client{Config: files_sdk.Config{SessionId: thisSession.Id}.Init()}
err := sessionClient.Delete()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

Configuration

Initialize a files_sdk.Config with Init() and pass it to each resource client. The configuration controls authentication, the API endpoint, workspace scoping, and HTTP behavior for that client.

Configuration Options
Base URL

Set this to the full https:// URL of your Files.com subdomain (e.g. https://MY-SUBDOMAIN.files.com). This is not required in most cases, but one benefit of setting it is that it ensures that authentication failures will be logged to your site's API logs. Without setting this, we won't know which site to associate the authentication failure with, and it won't be logged to your site's API logs. This is always required if your site is configured to disable global acceleration. This can also be set to use a mock server in development or CI.

import (
    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/file"
)

config := files_sdk.Config{
    EndpointOverride: "https://MY-SUBDOMAIN.files.com",
}.Init()
client := file.Client{Config: config}
Diagnostic Logging

Set Config.Debug to true, or set the FILES_SDK_DEBUG environment variable to a non-empty value, to enable detailed SDK request and response diagnostics. Provide Config.Logger to receive the output. The default logger discards it. These DEBUG diagnostics can include signed URLs, API keys, session IDs, headers, and payloads.

SDK retry entries at INFO, WARN, and ERROR redact request URLs and credentials, even when debug mode is enabled. A logger with levels controls which retry DEBUG entries it displays. For a logger that only implements Printf, debug mode controls whether retry DEBUG entries are emitted.

Sort and Filter

Several of the Files.com API resources have list operations that return multiple instances of the resource. The List operations can be sorted and filtered.

Sorting

To sort the returned data, pass in the SortBy method argument.

Each resource supports a unique set of valid sort fields and can only be sorted by one field at a time.

The argument value is a Go map[string]interface{} map that has a key of the resource field name to sort on and a value of either "asc" or "desc" to specify the sort order.

Special note about the List Folder Endpoint

For historical reasons, and to maintain compatibility with a variety of other cloud-based MFT and EFSS services, Folders will always be listed before Files when listing a Folder. This applies regardless of the sorting parameters you provide. These will be used, after the initial sort application of Folders before Files.

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/user"
)

client := user.Client{Config: files_sdk.GlobalConfig}

// users sorted by username
parameters := files_sdk.UserListParams{SortBy: map[string]interface{}{"username":"asc"}}
userIterator, err := client.List(parameters)
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for user, err := range userIterator.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(user.Username)
}
Filtering

Filters apply selection criteria to the underlying query that returns the results. They can be applied individually or combined with other filters, and the resulting data can be sorted by a single field.

Each resource supports a unique set of valid filter fields, filter combinations, and combinations of filters and sort fields.

The passed in argument is a Go map[string]interface{} map that has a key of the resource field name to filter on and a passed in value to use in the filter comparison.

Filter Types
Filter Type Description
Filter Exact Find resources that have an exact field value match to a passed in value. (i.e., FIELD_VALUE = PASS_IN_VALUE).
FilterPrefix Pattern Find resources where the specified field is prefixed by the supplied value. This is applicable to values that are strings.
FilterGt Range Find resources that have a field value that is greater than the passed in value. (i.e., FIELD_VALUE > PASS_IN_VALUE).
FilterGteq Range Find resources that have a field value that is greater than or equal to the passed in value. (i.e., FIELD_VALUE >= PASS_IN_VALUE).
FilterLt Range Find resources that have a field value that is less than the passed in value. (i.e., FIELD_VALUE < PASS_IN_VALUE).
FilterLteq Range Find resources that have a field value that is less than or equal to the passed in value. (i.e., FIELD_VALUE <= PASS_IN_VALUE).
import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/user"
)

client := user.Client{Config: files_sdk.GlobalConfig}

// non admin users
parameters := files_sdk.UserListParams{
    Filter: map[string]interface{}{"not_site_admin": true},
}
userIterator, err := client.List(parameters)
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for user, err := range userIterator.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(user.Username)
}
import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/user"
)

client := user.Client{Config: files_sdk.GlobalConfig};

// users who haven't logged in since 2024-01-01
parameters := files_sdk.UserListParams{
    FilterLt: map[string]interface{}{"last_login_at": "2024-01-01"},
}
userIterator, err := client.List(parameters)
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for user, err := range userIterator.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(user.Username)
}
import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/user"
)

client := user.Client{Config: files_sdk.GlobalConfig};

// users whose usernames start with 'test'
parameters := files_sdk.UserListParams{
    FilterPrefix: map[string]interface{}{"username": "test"},
}
userIterator, err := client.List(parameters)
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for user, err := range userIterator.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(user.Username)
}
import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/user"
)

client := user.Client{Config: files_sdk.GlobalConfig};

// users whose usernames start with 'test' and are not admins
parameters := files_sdk.UserListParams{
    FilterPrefix: map[string]interface{}{"username": "test"},
    Filter:       map[string]interface{}{"not_site_admin": true},
    SortBy:       map[string]interface{}{"username": "asc"},
}
userIterator, err := client.List(parameters)
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for user, err := range userIterator.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(user.Username)
}

Paths

Files.com preserves the spelling of file and folder paths while comparing them using shared case and Unicode rules. Use the SDK comparison helpers when matching paths locally.

Capitalization

Files.com uses case-insensitive path matching based on its fixed Unicode comparison map.

For example, the following paths have the same comparison key:

Path Variant Comparison Key
Documents/Reports/Q1.pdf documents/reports/q1.pdf
documents/reports/q1.PDF documents/reports/q1.pdf
DOCUMENTS/REPORTS/Q1.PDF documents/reports/q1.pdf

This behavior applies across:

  • API requests
  • Folder and file lookup operations
  • Automations and workflows

See also: Case Sensitivity Documentation

Slashes

Use / between folder and file names, without leading or trailing slashes. SDK normalization helpers convert backslashes to /, remove duplicate separators, and discard exact . and .. components. Discarding .. leaves the preceding folder name intact.

Input Normalized path
folder/subfolder/file.txt folder/subfolder/file.txt
/folder/subfolder/file.txt folder/subfolder/file.txt
folder/subfolder/file.txt/ folder/subfolder/file.txt
//folder//file.txt folder/file.txt
folder/../file.txt folder/file.txt
Unicode and Path Comparison

Files.com compares paths using a fixed mapping shared by the server and SDKs. It treats case and many accent differences as equivalent: Résumé.txt and resume.txt identify the same file, as do q followed by a combining acute accent and q. The mapping also handles other equivalences, such as Hiragana and Katakana. Lowercasing or applying a standard Unicode normalization form alone does not reproduce these rules.

SDK comparison helpers normalize path separators and dot segments, then apply the bundled versioned comparison map. The shared examples give exact comparison results for integrations that implement their own matching. The map uses hexadecimal Unicode scalar values as keys: a missing entry preserves the character, an empty replacement removes it, and other replacements may contain several characters. Apply each replacement once without normalizing or lowercasing the result again.

Use comparison results only for matching. Send the original path spelling in API requests and preserve it for display and local filenames; comparison results can have a different spelling or length.

Trailing whitespace is significant for comparison. report.txt and report.txt are different file paths, and SDK helpers preserve spaces, tabs, and newlines. Folder names cannot end in whitespace. See Unicode Normalization for the complete path rules.

Workspaces

A Workspace groups files, users, groups, Partners, integrations, and workflows within a Files.com Site. An integration can provision a Workspace for a department or project and delegate its operation to a team without making that team Site Administrators. Every Site has a Default Workspace, with ID 0; additional Workspaces have their own IDs and root folders.

Account membership, request context, and permission grants serve different purposes. Creating an account in a Workspace determines where it belongs. Selecting a Workspace determines which resources a request operates on. A permission grant determines what the caller can do there. Selecting a Workspace never grants access to it.

Accounts and Administrative Access

A user's or group's workspace_id identifies the Workspace the account belongs to. Accounts belonging to a Custom Workspace stay within it. Default Workspace users and groups can receive permissions in one or more Custom Workspaces while keeping their existing accounts in Workspace 0.

Account Workspace Administrator assignment Scope
User belonging to a Custom Workspace Set the user's workspace_admin to true. That user's own Custom Workspace.
Default Workspace user Create an admin Permission for the user on a Custom Workspace's root folder. Each Custom Workspace with a root grant.
Default Workspace group Create an admin Permission for the group on a Custom Workspace's root folder. Every member inherits administration of each Workspace with a root grant.

workspace_admin is not a summary of a user's effective administrative access. A Default Workspace user can administer a Custom Workspace through a direct or group root grant while their workspace_admin remains false. Groups have no workspace_admin field. See Users and Groups for account fields.

An admin grant on the Custom Workspace root provides full Workspace Administrator authority over its files, users, groups, Partners, workflows, and integrations. An admin grant on a subfolder provides Folder Admin authority over that folder and its descendants; it does not provide Workspace administration. Other permission levels provide their corresponding folder access without Workspace administration. Permissions defines the levels.

Site Administrators manage cross-Workspace assignments to Default Workspace accounts. Workspace Administrators manage accounts and permissions within their own scope. Site Administrators retain access to every Workspace; adding a Workspace grant does not narrow Site Administrator authority. The product documentation explains the administrator's operational scope and site-wide controls.

Request Context and API Keys

You can include the X-Files-Workspace-Id REST header to select a Workspace for a request. SDK request options and CLI configuration send that same selection. When a Workspace is selected, Workspace-scoped resources are listed, created, and changed within that context, and ordinary paths are relative to its root.

A resource's workspace_id request field describes the resource's Workspace membership. It is separate from the SDK's Workspace request option or REST header. Creating a Workspace-scoped resource in a Custom Workspace defaults its workspace_id to the selected Workspace; a mismatching membership value is rejected with not-authorized/insufficient-permission-for-params.

Selecting another Workspace with an API key requires a Full Access key created in the Default Workspace. A user key follows that user's current access, including group permissions. A site-wide Full Access key created in the Default Workspace has Site Administrator authority in every Workspace. A Files Only key stays in its creation Workspace, even if its user has cross-Workspace access. Any key created in a Custom Workspace stays within that Workspace. Selecting another context with these confined keys is rejected with bad-request/invalid-workspace-id-header.

An account belonging to a Custom Workspace is scoped there when it authenticates normally. For a Default Workspace user, explicitly select the intended Workspace for an integration rather than relying on an interactive login preference. API Keys and Authentication cover credentials.

The Files.com Go SDK supports workspace scoping by using the WorkspaceId attribute on the Config object.

The adjacent scoping example uses a credential authorized for the selected Workspace. A group member uses their own Full Access user key from the Default Workspace; the Site Administrator credential used to assign the grant is not needed for their day-to-day work.

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

config := files_sdk.Config{WorkspaceId: 123}.Init()
client := folder.Client{Config: config}

client.ListFor(files_sdk.FolderListForParams{})
Delegating a Workspace to an Existing Group

An operations team already represented by a Default Workspace group can administer a Custom Workspace through one root Permission. The group and its members stay in the Default Workspace, so the same team can receive different access in other Workspaces.

First retrieve the target Workspace and Group IDs as a Site Administrator in Workspace 0. The examples use Workspace 123, group 456, and member user 789; replace them with your own IDs. Confirm that the group belongs to Workspace 0 and that the intended user is a member.

Create the Permission using a Default Workspace Full Access site-wide key or a Full Access user key belonging to a Site Administrator. Keep the request context at 0 and use the qualified root path _/Workspaces/123. Set group_id to the group's ID, permission to admin, and recursive to true. Save the returned Permission id for later removal. For an individual Default Workspace user, use user_id instead of group_id.

For a Default Workspace group, a Site Administrator can also select Workspace 123 and use an empty path to grant access to its root. The qualified path in Workspace 0 works for both Default Workspace users and groups and keeps the account scope and target Workspace explicit. Appending a subfolder to the path would grant Folder Admin access instead of Workspace Administrator authority.

After the grant, make a request as the member, using their own credential with Workspace 123 selected, such as listing that Workspace's root folder. That member can work with the Workspace's files and perform Workspace Administrator operations, such as managing its users, Partners, and integrations. A Site Administrator's successful request does not establish that the member has the intended access.

import (
    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/lib"
    "github.com/Files-com/files-sdk-go/v3/permission"
)

config := files_sdk.Config{ApiKey: "YOUR_SITE_ADMIN_API_KEY", WorkspaceId: 0}.Init()
permissions := permission.Client{Config: config}
grant, err := permissions.Create(files_sdk.PermissionCreateParams{
    Path: "_/Workspaces/123", GroupId: 456,
    Permission: "admin", Recursive: lib.Bool(true),
})
if err != nil { panic(err) }
println(grant.Id) // Save this Permission ID for removal.
Permission Inspection and Removal

List the member's Permissions with user_id and include_groups=true to include grants inherited through group membership. Listing only direct user grants can miss the Permission that provides Workspace administration. In Workspace 0, the Custom Workspace root appears as _/Workspaces/123; in Workspace 123, paths are relative to that root. Inspect the root path and permission=admin, rather than treating the user's workspace_admin field as their effective administrative access.

Permission lists show individual grants, rather than a single flag for effective administrative access. Membership in several groups combines their access. A Permission using group_ids instead of group_id requires membership in all the specified groups; it is not a shorthand for assigning the same grant to several independent groups.

Removing a member ends access received through that group. Deleting the root Permission ends the group's Workspace Administrator grant for every member. These changes leave independent direct and other group grants in place, so review all applicable grants when withdrawing access. Default Workspace user API keys follow those permission changes without being recreated.

Group membership maintained through SCIM follows the same rule. A Group Admin allowed to add members can give those users the group's existing Workspace Administrator access. Choose who manages the group with that authority in mind.

Delete the Permission by its returned id as the Site Administrator in Workspace 0. The removal examples use Permission ID 9001; replace it with the ID returned by your create request. Permissions are created and deleted, rather than updated in place. If narrower folder access is still needed, assign it explicitly; deleting a broad grant does not restore narrower grants it previously replaced.

grants, err := permissions.List(files_sdk.PermissionListParams{
    UserId: "789", IncludeGroups: lib.Bool(true),
})
if err != nil { panic(err) }
for grants.Next() {
    item := grants.Permission()
    println(item.Path, item.Permission)
}
if err := grants.Err(); err != nil { panic(err) }
if err := permissions.Delete(files_sdk.PermissionDeleteParams{Id: 9001}); err != nil {
    panic(err)
}

Foreign Language Support

The Files.com Go SDK supports localized responses by using the Language attribute on the Config struct. When configured, this guides the API in selecting a preferred language for applicable response content.

Language support currently applies to select human-facing fields only, such as notification messages and error descriptions.

If the specified language is not supported or the value is omitted, the API defaults to English.

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

files_sdk.GlobalConfig.Language = "es";

Errors

SDK methods return an error using the standard Go pattern. Check it before using a returned resource. Listing methods fetch pages during iteration. When ranging over All(), check the loop's error before using the resource. If you use Next(), check the iterator's Err() after the loop.

Errors can come from request preparation, HTTP transport, response decoding, or the Files.com API. A structured API error is a files_sdk.ResponseError, which implements the error interface and includes these fields:

  • Type: the API error identifier.
  • Title: a short description of the error.
  • ErrorMessage: additional error details.

Use errors.As to inspect a ResponseError, including one wrapped by another error. Use errors.Is with the SDK's error constants to match a type or group.

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/session"
)

_, err := session.Create(files_sdk.SessionCreateParams{Username: "USERNAME", Password: "BADPASSWORD"})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}
ResponseError Types

Match an exact error type with a ResponseErrorType constant, or use a group helper such as IsNotFound. The table below lists API types and their constants.

if err != nil {
    if errors.Is(err, files_sdk.ErrInvalidUsernameOrPassword) {
        fmt.Println("Bad username/password")
    } else if files_sdk.IsNotFound(err) {
        fmt.Println("Resource not found")
    }

    var responseErr files_sdk.ResponseError
    if errors.As(err, &responseErr) {
        fmt.Println(responseErr.Title)
    }
}
Type Go Error Title
bad-request ErrBadRequest Bad Request
bad-request/agent-upgrade-required ErrAgentUpgradeRequired Agent Upgrade Required
bad-request/attachment-too-large ErrAttachmentTooLarge Attachment Too Large
bad-request/cannot-download-directory ErrCannotDownloadDirectory Cannot Download Directory
bad-request/cant-move-with-multiple-locations ErrCantMoveWithMultipleLocations Cant Move With Multiple Locations
bad-request/datetime-parse ErrDatetimeParse Datetime Parse
bad-request/destination-same ErrDestinationSame Destination Same
bad-request/destination-site-mismatch ErrDestinationSiteMismatch Destination Site Mismatch
bad-request/does-not-support-sorting ErrDoesNotSupportSorting Does Not Support Sorting
bad-request/folder-must-not-be-a-file ErrFolderMustNotBeAFile Folder Must Not Be A File
bad-request/folders-not-allowed ErrFoldersNotAllowed Folders Not Allowed
bad-request/internal-general-error ErrInternalGeneralError Internal General Error
bad-request/invalid-body ErrInvalidBody Invalid Body
bad-request/invalid-cursor ErrInvalidCursor Invalid Cursor
bad-request/invalid-cursor-type-for-sort ErrInvalidCursorTypeForSort Invalid Cursor Type For Sort
bad-request/invalid-etags ErrInvalidEtags Invalid Etags
bad-request/invalid-filter-alias-combination ErrInvalidFilterAliasCombination Invalid Filter Alias Combination
bad-request/invalid-filter-field ErrInvalidFilterField Invalid Filter Field
bad-request/invalid-filter-param ErrInvalidFilterParam Invalid Filter Param
bad-request/invalid-filter-param-format ErrInvalidFilterParamFormat Invalid Filter Param Format
bad-request/invalid-filter-param-value ErrInvalidFilterParamValue Invalid Filter Param Value
bad-request/invalid-input-encoding ErrInvalidInputEncoding Invalid Input Encoding
bad-request/invalid-interface ErrInvalidInterface Invalid Interface
bad-request/invalid-oauth-provider ErrInvalidOauthProvider Invalid Oauth Provider
bad-request/invalid-path ErrInvalidPath Invalid Path
bad-request/invalid-return-to-url ErrInvalidReturnToUrl Invalid Return To Url
bad-request/invalid-search-query ErrInvalidSearchQuery Invalid Search Query
bad-request/invalid-sort-field ErrInvalidSortField Invalid Sort Field
bad-request/invalid-sort-filter-combination ErrInvalidSortFilterCombination Invalid Sort Filter Combination
bad-request/invalid-upload-offset ErrInvalidUploadOffset Invalid Upload Offset
bad-request/invalid-upload-part-gap ErrInvalidUploadPartGap Invalid Upload Part Gap
bad-request/invalid-upload-part-size ErrInvalidUploadPartSize Invalid Upload Part Size
bad-request/invalid-workspace-id-header ErrInvalidWorkspaceIdHeader Invalid Workspace Id Header
bad-request/method-not-allowed ErrMethodNotAllowed Method Not Allowed
bad-request/multiple-sort-params-not-allowed ErrMultipleSortParamsNotAllowed Multiple Sort Params Not Allowed
bad-request/no-valid-input-params ErrNoValidInputParams No Valid Input Params
bad-request/offset-upload-not-allowed-with-malware-scanning ErrOffsetUploadNotAllowedWithMalwareScanning Offset Upload Not Allowed With Malware Scanning
bad-request/part-number-too-large ErrPartNumberTooLarge Part Number Too Large
bad-request/path-cannot-have-trailing-whitespace ErrPathCannotHaveTrailingWhitespace Path Cannot Have Trailing Whitespace
bad-request/reauthentication-needed-fields ErrReauthenticationNeededFields Reauthentication Needed Fields
bad-request/request-body-too-large ErrRequestBodyTooLarge Request Body Too Large
bad-request/request-params-contain-invalid-character ErrRequestParamsContainInvalidCharacter Request Params Contain Invalid Character
bad-request/request-params-invalid ErrRequestParamsInvalid Request Params Invalid
bad-request/request-params-required ErrRequestParamsRequired Request Params Required
bad-request/search-all-on-child-path ErrSearchAllOnChildPath Search All On Child Path
bad-request/unrecognized-sort-index ErrUnrecognizedSortIndex Unrecognized Sort Index
bad-request/unsupported-currency ErrUnsupportedCurrency Unsupported Currency
bad-request/unsupported-http-response-format ErrUnsupportedHttpResponseFormat Unsupported Http Response Format
bad-request/unsupported-media-type ErrUnsupportedMediaType Unsupported Media Type
bad-request/user-id-invalid ErrUserIdInvalid User Id Invalid
bad-request/user-id-on-user-endpoint ErrUserIdOnUserEndpoint User Id On User Endpoint
bad-request/user-required ErrUserRequired User Required
not-authenticated/additional-authentication-required ErrAdditionalAuthenticationRequired Additional Authentication Required
not-authenticated/api-key-sessions-not-supported ErrApiKeySessionsNotSupported Api Key Sessions Not Supported
not-authenticated/authentication-required ErrAuthenticationRequired Authentication Required
not-authenticated/bundle-registration-code-failed ErrBundleRegistrationCodeFailed Bundle Registration Code Failed
not-authenticated/inbox-registration-code-failed ErrInboxRegistrationCodeFailed Inbox Registration Code Failed
not-authenticated/invalid-credentials ErrInvalidCredentials Invalid Credentials
not-authenticated/invalid-oauth ErrInvalidOauth Invalid Oauth
not-authenticated/invalid-or-expired-code ErrInvalidOrExpiredCode Invalid Or Expired Code
not-authenticated/invalid-session ErrInvalidSession Invalid Session
not-authenticated/invalid-username-or-password ErrInvalidUsernameOrPassword Invalid Username Or Password
not-authenticated/locked-out ErrLockedOut Locked Out
not-authenticated/lockout-region-mismatch ErrLockoutRegionMismatch Lockout Region Mismatch
not-authenticated/one-time-password-incorrect ErrOneTimePasswordIncorrect One Time Password Incorrect
not-authenticated/two-factor-authentication-error ErrTwoFactorAuthenticationError Two Factor Authentication Error
not-authenticated/two-factor-authentication-setup-expired ErrTwoFactorAuthenticationSetupExpired Two Factor Authentication Setup Expired
not-authorized/api-key-is-disabled ErrApiKeyIsDisabled Api Key Is Disabled
not-authorized/api-key-is-path-restricted ErrApiKeyIsPathRestricted Api Key Is Path Restricted
not-authorized/api-key-only-for-desktop-app ErrApiKeyOnlyForDesktopApp Api Key Only For Desktop App
not-authorized/api-key-only-for-file-operations ErrApiKeyOnlyForFileOperations Api Key Only For File Operations
not-authorized/api-key-only-for-mobile-app ErrApiKeyOnlyForMobileApp Api Key Only For Mobile App
not-authorized/api-key-only-for-office-integration ErrApiKeyOnlyForOfficeIntegration Api Key Only For Office Integration
not-authorized/billing-information-hidden ErrBillingInformationHidden Billing Information Hidden
not-authorized/billing-permission-required ErrBillingPermissionRequired Billing Permission Required
not-authorized/bundle-maximum-uses-reached ErrBundleMaximumUsesReached Bundle Maximum Uses Reached
not-authorized/bundle-permission-required ErrBundlePermissionRequired Bundle Permission Required
not-authorized/cannot-administer-higher-level-user ErrCannotAdministerHigherLevelUser Cannot Administer Higher Level User
not-authorized/cannot-login-while-using-key ErrCannotLoginWhileUsingKey Cannot Login While Using Key
not-authorized/cant-act-for-other-user ErrCantActForOtherUser Cant Act For Other User
not-authorized/contact-admin-for-password-change-help ErrContactAdminForPasswordChangeHelp Contact Admin For Password Change Help
not-authorized/files-agent-failed-authorization ErrFilesAgentFailedAuthorization Files Agent Failed Authorization
not-authorized/folder-admin-or-billing-permission-required ErrFolderAdminOrBillingPermissionRequired Folder Admin Or Billing Permission Required
not-authorized/folder-admin-permission-required ErrFolderAdminPermissionRequired Folder Admin Permission Required
not-authorized/full-permission-required ErrFullPermissionRequired Full Permission Required
not-authorized/history-permission-required ErrHistoryPermissionRequired History Permission Required
not-authorized/in-app-ai-assistant-unavailable ErrInAppAiAssistantUnavailable In App Ai Assistant Unavailable
not-authorized/insufficient-permission-for-params ErrInsufficientPermissionForParams Insufficient Permission For Params
not-authorized/insufficient-permission-for-site ErrInsufficientPermissionForSite Insufficient Permission For Site
not-authorized/mover-access-denied ErrMoverAccessDenied Mover Access Denied
not-authorized/mover-package-required ErrMoverPackageRequired Mover Package Required
not-authorized/must-authenticate-with-api-key ErrMustAuthenticateWithApiKey Must Authenticate With Api Key
not-authorized/need-admin-permission-for-inbox ErrNeedAdminPermissionForInbox Need Admin Permission For Inbox
not-authorized/non-admins-must-query-by-folder-or-path ErrNonAdminsMustQueryByFolderOrPath Non Admins Must Query By Folder Or Path
not-authorized/not-allowed-to-create-bundle ErrNotAllowedToCreateBundle Not Allowed To Create Bundle
not-authorized/not-enqueuable-sync ErrNotEnqueuableSync Not Enqueuable Sync
not-authorized/password-change-not-required ErrPasswordChangeNotRequired Password Change Not Required
not-authorized/password-change-required ErrPasswordChangeRequired Password Change Required
not-authorized/payment-method-error ErrPaymentMethodError Payment Method Error
not-authorized/preview-only-permission-cannot-download ErrPreviewOnlyPermissionCannotDownload Preview Only Permission Cannot Download
not-authorized/read-only-session ErrReadOnlySession Read Only Session
not-authorized/read-permission-required ErrReadPermissionRequired Read Permission Required
not-authorized/reauthentication-failed ErrReauthenticationFailed Reauthentication Failed
not-authorized/reauthentication-failed-final ErrReauthenticationFailedFinal Reauthentication Failed Final
not-authorized/reauthentication-needed-action ErrReauthenticationNeededAction Reauthentication Needed Action
not-authorized/recaptcha-failed ErrRecaptchaFailed Recaptcha Failed
not-authorized/remote-desktop-debug-logging-disabled ErrRemoteDesktopDebugLoggingDisabled Remote Desktop Debug Logging Disabled
not-authorized/root-folder-behavior-site-admin-required ErrRootFolderBehaviorSiteAdminRequired Root Folder Behavior Site Admin Required
not-authorized/root-folder-behavior-skip-site-admin-required ErrRootFolderBehaviorSkipSiteAdminRequired Root Folder Behavior Skip Site Admin Required
not-authorized/self-managed-required ErrSelfManagedRequired Self Managed Required
not-authorized/site-admin-or-partner-admin-permission-required ErrSiteAdminOrPartnerAdminPermissionRequired Site Admin Or Partner Admin Permission Required
not-authorized/site-admin-or-workspace-admin-or-folder-admin-permission-required ErrSiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequired Site Admin Or Workspace Admin Or Folder Admin Permission Required
not-authorized/site-admin-or-workspace-admin-or-partner-admin-or-folder-admin-permission-required ErrSiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequired Site Admin Or Workspace Admin Or Partner Admin Or Folder Admin Permission Required
not-authorized/site-admin-or-workspace-admin-or-partner-admin-permission-required ErrSiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequired Site Admin Or Workspace Admin Or Partner Admin Permission Required
not-authorized/site-admin-or-workspace-admin-permission-required ErrSiteAdminOrWorkspaceAdminPermissionRequired Site Admin Or Workspace Admin Permission Required
not-authorized/site-admin-required ErrSiteAdminRequired Site Admin Required
not-authorized/site-files-are-immutable ErrSiteFilesAreImmutable Site Files Are Immutable
not-authorized/two-factor-authentication-required ErrTwoFactorAuthenticationRequired Two Factor Authentication Required
not-authorized/user-id-without-site-admin ErrUserIdWithoutSiteAdmin User Id Without Site Admin
not-authorized/write-and-bundle-permission-required ErrWriteAndBundlePermissionRequired Write And Bundle Permission Required
not-authorized/write-permission-required ErrWritePermissionRequired Write Permission Required
not-found ErrNotFound Not Found
not-found/api-key-not-found ErrApiKeyNotFound Api Key Not Found
not-found/bundle-path-not-found ErrBundlePathNotFound Bundle Path Not Found
not-found/bundle-registration-not-found ErrBundleRegistrationNotFound Bundle Registration Not Found
not-found/code-not-found ErrCodeNotFound Code Not Found
not-found/file-not-found ErrFileNotFound File Not Found
not-found/file-upload-not-found ErrFileUploadNotFound File Upload Not Found
not-found/group-not-found ErrGroupNotFound Group Not Found
not-found/inbox-not-found ErrInboxNotFound Inbox Not Found
not-found/nested-not-found ErrNestedNotFound Nested Not Found
not-found/plan-not-found ErrPlanNotFound Plan Not Found
not-found/site-not-found ErrSiteNotFound Site Not Found
not-found/user-not-found ErrUserNotFound User Not Found
processing-failure ErrProcessingFailure Processing Failure
processing-failure/agent-push-update-blocked ErrAgentPushUpdateBlocked Agent Push Update Blocked
processing-failure/agent-unavailable ErrAgentUnavailable Agent Unavailable
processing-failure/ai-task-cannot-be-run-manually ErrAiTaskCannotBeRunManually Ai Task Cannot Be Run Manually
processing-failure/already-completed ErrAlreadyCompleted Already Completed
processing-failure/automation-cannot-be-run-manually ErrAutomationCannotBeRunManually Automation Cannot Be Run Manually
processing-failure/behavior-not-allowed-on-remote-server ErrBehaviorNotAllowedOnRemoteServer Behavior Not Allowed On Remote Server
processing-failure/buffered-upload-disabled-for-this-destination ErrBufferedUploadDisabledForThisDestination Buffered Upload Disabled For This Destination
processing-failure/bundle-only-allows-previews ErrBundleOnlyAllowsPreviews Bundle Only Allows Previews
processing-failure/bundle-operation-requires-subfolder ErrBundleOperationRequiresSubfolder Bundle Operation Requires Subfolder
processing-failure/configuration-locked-path ErrConfigurationLockedPath Configuration Locked Path
processing-failure/could-not-create-parent ErrCouldNotCreateParent Could Not Create Parent
processing-failure/destination-exists ErrDestinationExists Destination Exists
processing-failure/destination-folder-limited ErrDestinationFolderLimited Destination Folder Limited
processing-failure/destination-parent-conflict ErrDestinationParentConflict Destination Parent Conflict
processing-failure/destination-parent-does-not-exist ErrDestinationParentDoesNotExist Destination Parent Does Not Exist
processing-failure/exceeded-runtime-limit ErrExceededRuntimeLimit Exceeded Runtime Limit
processing-failure/expectation-already-has-open-window ErrExpectationAlreadyHasOpenWindow Expectation Already Has Open Window
processing-failure/expectation-not-manual-trigger ErrExpectationNotManualTrigger Expectation Not Manual Trigger
processing-failure/expired-private-key ErrExpiredPrivateKey Expired Private Key
processing-failure/expired-public-key ErrExpiredPublicKey Expired Public Key
processing-failure/export-failure ErrExportFailure Export Failure
processing-failure/export-not-ready ErrExportNotReady Export Not Ready
processing-failure/failed-to-change-password ErrFailedToChangePassword Failed To Change Password
processing-failure/file-locked ErrFileLocked File Locked
processing-failure/file-not-uploaded ErrFileNotUploaded File Not Uploaded
processing-failure/file-pending-processing ErrFilePendingProcessing File Pending Processing
processing-failure/file-processing-error ErrFileProcessingError File Processing Error
processing-failure/file-too-big-to-decrypt ErrFileTooBigToDecrypt File Too Big To Decrypt
processing-failure/file-too-big-to-encrypt ErrFileTooBigToEncrypt File Too Big To Encrypt
processing-failure/file-uploaded-to-wrong-region ErrFileUploadedToWrongRegion File Uploaded To Wrong Region
processing-failure/filename-too-long ErrFilenameTooLong Filename Too Long
processing-failure/folder-locked ErrFolderLocked Folder Locked
processing-failure/folder-not-empty ErrFolderNotEmpty Folder Not Empty
processing-failure/history-unavailable ErrHistoryUnavailable History Unavailable
processing-failure/invalid-bundle-code ErrInvalidBundleCode Invalid Bundle Code
processing-failure/invalid-file-type ErrInvalidFileType Invalid File Type
processing-failure/invalid-filename ErrInvalidFilename Invalid Filename
processing-failure/invalid-priority-color ErrInvalidPriorityColor Invalid Priority Color
processing-failure/invalid-range ErrInvalidRange Invalid Range
processing-failure/invalid-site ErrInvalidSite Invalid Site
processing-failure/invalid-zip-file ErrInvalidZipFile Invalid Zip File
processing-failure/metadata-not-supported-on-remotes ErrMetadataNotSupportedOnRemotes Metadata Not Supported On Remotes
processing-failure/model-save-error ErrModelSaveError Model Save Error
processing-failure/multiple-processing-errors ErrMultipleProcessingErrors Multiple Processing Errors
processing-failure/path-too-long ErrPathTooLong Path Too Long
processing-failure/recipient-already-shared ErrRecipientAlreadyShared Recipient Already Shared
processing-failure/remote-entry-read-only ErrRemoteEntryReadOnly Remote Entry Read Only
processing-failure/remote-server-error ErrRemoteServerError Remote Server Error
processing-failure/resource-belongs-to-parent-site ErrResourceBelongsToParentSite Resource Belongs To Parent Site
processing-failure/resource-locked ErrResourceLocked Resource Locked
processing-failure/subfolder-locked ErrSubfolderLocked Subfolder Locked
processing-failure/sync-in-progress ErrSyncInProgress Sync In Progress
processing-failure/two-factor-authentication-code-already-sent ErrTwoFactorAuthenticationCodeAlreadySent Two Factor Authentication Code Already Sent
processing-failure/two-factor-authentication-country-blacklisted ErrTwoFactorAuthenticationCountryBlacklisted Two Factor Authentication Country Blacklisted
processing-failure/two-factor-authentication-general-error ErrTwoFactorAuthenticationGeneralError Two Factor Authentication General Error
processing-failure/two-factor-authentication-method-unsupported-error ErrTwoFactorAuthenticationMethodUnsupportedError Two Factor Authentication Method Unsupported Error
processing-failure/two-factor-authentication-unsubscribed-recipient ErrTwoFactorAuthenticationUnsubscribedRecipient Two Factor Authentication Unsubscribed Recipient
processing-failure/updates-not-allowed-for-remotes ErrUpdatesNotAllowedForRemotes Updates Not Allowed For Remotes
rate-limited/duplicate-share-recipient ErrDuplicateShareRecipient Duplicate Share Recipient
rate-limited/reauthentication-rate-limited ErrReauthenticationRateLimited Reauthentication Rate Limited
rate-limited/too-many-concurrent-logins ErrTooManyConcurrentLogins Too Many Concurrent Logins
rate-limited/too-many-concurrent-requests ErrTooManyConcurrentRequests Too Many Concurrent Requests
rate-limited/too-many-login-attempts ErrTooManyLoginAttempts Too Many Login Attempts
rate-limited/too-many-requests ErrTooManyRequests Too Many Requests
rate-limited/too-many-shares ErrTooManyShares Too Many Shares
service-unavailable/automations-unavailable ErrAutomationsUnavailable Automations Unavailable
service-unavailable/lock-operation-busy ErrLockOperationBusy Lock Operation Busy
service-unavailable/migration-in-progress ErrMigrationInProgress Migration In Progress
service-unavailable/search-unavailable ErrSearchUnavailable Search Unavailable
service-unavailable/site-disabled ErrSiteDisabled Site Disabled
service-unavailable/uploads-unavailable ErrUploadsUnavailable Uploads Unavailable
site-configuration/account-already-exists ErrAccountAlreadyExists Account Already Exists
site-configuration/account-overdue ErrAccountOverdue Account Overdue
site-configuration/no-account-for-site ErrNoAccountForSite No Account For Site
site-configuration/site-was-removed ErrSiteWasRemoved Site Was Removed
site-configuration/trial-expired ErrTrialExpired Trial Expired
site-configuration/trial-locked ErrTrialLocked Trial Locked
site-configuration/user-requests-enabled-required ErrUserRequestsEnabledRequired User Requests Enabled Required
ResponseError Helpers

Helpers are provided for matching error families.

Error Type Prefix Go Error Helper
bad-request ErrBadRequest IsBadRequest
not-authenticated ErrNotAuthenticated IsAuthenticationError
not-authorized ErrNotAuthorized IsAuthorizationError
not-found ErrNotFound IsNotFound
processing-failure ErrProcessingFailure IsProcessingFailure
rate-limited ErrRateLimited IsRateLimited
service-unavailable ErrServiceUnavailable IsServiceUnavailable
site-configuration ErrSiteConfiguration IsSiteConfiguration

Pagination

Listing methods return lazy iterators. Use for resource, err := range listing.All() to read the results. Calling the listing method or All() makes no API request. The iterator fetches pages during iteration. All() does not collect all pages first.

Each resource has a nil error. Check the error before using the resource. An unhandled request, decoding, or cancellation error is yielded once and ends that traversal. An empty listing, normal completion, or a page limit ends the loop without an extra resource or error.

Set ListParams.PerPage to request a page size. Set ListParams.MaxPages to limit the number of pages requested. Its default value, 0, allows all pages.

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/folder"
)

listing, err := folder.ListFor(files_sdk.FolderListForParams{Path: "path"})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for file, err := range listing.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(file.Path)
}
Stop or Resume Iteration

Use break or return to stop the loop. No further results are yielded or pages requested by that traversal.

The listing is single-use. All() continues from its current position instead of restarting it. After earlier Next() calls or an early break, another All() loop or Next() call resumes at the next resource. After completion, reaching MaxPages, or a failure, later All() calls yield nothing and make no requests. Err() retains a failure, including one encountered through Next().

Call the listing method again to restart. Reload() also creates a fresh iterator, returned as files_sdk.IterI. Use a type assertion to the generated iterator type if you want to call All() on that result.

Both All() and Next() advance the same iterator. Use one traversal at a time. Do not call Next() inside an All() loop or use one iterator from several goroutines.

Use Next and Err

Existing Next() and Err() code remains supported. Read the typed resource, such as File(), only after Next() returns true. Check Err() after the loop.

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/folder"
)

listing, err := folder.ListFor(files_sdk.FolderListForParams{Path: "path"})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for listing.Next() {
    fmt.Println(listing.File().Path)
}
err = listing.Err()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

Mock Server

Files.com publishes a mock Files.com API server, which is useful for testing your use of the Files.com SDKs and other direct integrations against the Files.com API in an integration test environment. It never checks credentials: send any placeholder API key, such as YOUR_API_KEY, and never use real Files.com credentials with it.

The server has two modes, chosen when it starts:

  • Legacy mode (the default) checks required parameters and parameter types, then returns a fixed example response for each API endpoint. It does not maintain state and it does not deeply inspect your submissions for correctness, which makes it useful for testing basic network operations and JSON encoding for your SDK or API client.
  • Simulation mode keeps records, files and folders in memory, so a test can create, list, update and delete resources, upload a file and download the same bytes, and make chosen requests fail, stall or lose their connection on purpose. Requests it does not simulate fail with a clear error instead of returning an example response.
Quick Start with Docker

With Docker installed, start the published image from Docker Hub with the command shown. It runs legacy mode at http://127.0.0.1:4041, reachable from your machine only: point your integration's Files.com API base URL there and use a placeholder API key. Stop it with Ctrl+C; --rm removes its container.

The published image is built for linux/amd64 only, so the command asks for that platform; without it, Docker on a machine of another architecture, such as an Apple silicon Mac, looks for an image the tag does not have. The latest tag moves to whichever server was published last, and --pull=always fetches it again each time, so it need not include simulation mode. To run simulation mode, build the image from the source as below.

docker run --platform linux/amd64 --rm --pull=always -p 127.0.0.1:4041:4041 filescom/files-mock-server:latest

## In another terminal, with a placeholder API key:
curl -H "X-FilesAPI-Key: YOUR_API_KEY" http://127.0.0.1:4041/api/rest/v1/users
Simulation Mode in Docker

To run exactly the server the source's README describes, simulation mode included, build the image from a checkout of the source on GitHub and run it by the image ID you record with your test results. Only linux/amd64 builds of the source have been checked, so both commands ask for that platform.

Simulation mode listens only on loopback unless told otherwise, so the command binds it to the container's interfaces with -b tcp://0.0.0.0:4041 and publishes the port on your machine's loopback address only. FILES_MOCK_TRANSFER_ORIGIN tells it the address your tests use, so the upload and download URLs it returns point at the published port.

Simulation mode keeps its state only in the server process. Its control endpoints under /__files_mock/v1 report when the server is ready, reset it with your fixtures, add fault rules and return the journal of the requests it received. It refuses work over its limits instead of truncating it. The README in the source describes all of these, the operations it simulates and how to configure its limits.

## In a checkout of the source:
docker build --platform linux/amd64 -t files-mock-server:local .
image=$(docker image inspect --format '{{.Id}}' files-mock-server:local)
echo "$image"   # record this ID with your test results
docker run --platform linux/amd64 --rm -e FILES_MOCK_MODE=simulation \
  -e FILES_MOCK_TRANSFER_ORIGIN=http://127.0.0.1:40410 \
  -p 127.0.0.1:40410:4041 "$image" -b tcp://0.0.0.0:4041

## In another terminal:
curl http://127.0.0.1:40410/__files_mock/v1/ready
From the Source with Ruby

Start the server from its source with Ruby and Bundler. FILES_MOCK_MODE is read once at startup: leaving it unset or setting it to legacy starts legacy mode, simulation starts simulation mode, and any other value stops startup with an error. Legacy mode listens on port 4041 on all IPv4 interfaces, and simulation mode on 127.0.0.1:4041.

bundle install

## Legacy mode
bundle exec puma

## Simulation mode
FILES_MOCK_MODE=simulation bundle exec puma

Sending File Content with a Request

A parameter that takes a file, such as avatar_file when you create or update a user, has an io.Writer field in the params struct, AvatarFile. Set it to lib.NewAttachment("avatar.png", "image/png", content), a *bytes.Buffer or an *os.File, and the SDK sends the request as multipart/form-data, with the file as one part.

To send the content inside the JSON request instead, use the field named after the parameter with Attachment at the end: AvatarFileAttachment. Set it with lib.NewJSONAttachment when you know the content's size, as you do for a file, or with lib.NewJSONAttachmentUpTo and the most bytes you accept when you don't, as for a response body:

avatar, err := os.Open("avatar.png")
if err != nil {
	return err
}
defer avatar.Close()
info, err := avatar.Stat()
if err != nil {
	return err
}

_, err = client.Update(files_sdk.UserUpdateParams{
	Id:                   123,
	AvatarFileAttachment: lib.NewJSONAttachment(avatar, info.Size(), "avatar.png", "image/png"),
}, files_sdk.WithContext(ctx))

The SDK sends the content and the other parameters in one JSON request, with the content as a file object: {"encoded_content": "<base64>", "filename": "avatar.png", "type": "image/png"}. It reads the content before sending anything, keeps it encoded in memory or, above 1 MiB, in a temporary file it removes when the call returns, and resends that copy if the request is retried. If the HTTP transport is still sending the request body when the call returns, the file stays open until the transport closes the body; on Windows, where an open file cannot be removed, it is removed only then. The request fails without sending anything if the content does not have the size you gave, has more than your limit, cannot be read, or the context ends while it is being read. The SDK does not close your reader, and each attachment can be sent once.

Documentation ¶

Overview ¶

Package files_sdk provides Files.com API models, request parameters, configuration, pagination, and error handling. Resource-specific clients are in subpackages such as folder and user.

Initialize a Config and embed it in a resource client to authenticate with an API key or session. Package-level resource functions use the default configuration, including the FILES_API_KEY environment variable.

Listing methods return lazy iterators. Range over listing.All(), checking each error before using its resource. All walks the remaining results without restarting the listing. Next and Err remain available for existing callers. WithContext supplies cancellation and deadlines for requests. ResponseError supports errors.As for details and errors.Is for API error types and groups.

Index ¶

Constants ¶

View Source
const (
	UserAgent   = "Files.com Go SDK"
	DefaultSite = "app"
	APIPath     = "/api/rest/v1"
)
View Source
const (
	FeatureFlagAdaptiveUploadV2        = "adaptive-upload-v2"
	FeatureFlagSparseRangeReads        = "sparse-range-reads"
	FeatureFlagUploadV2ChecksumTrailer = "upload-v2-checksum-trailer"
)
View Source
const DestinationExists = string(ErrDestinationExists)

DestinationExists is the legacy string form of ErrDestinationExists.

Deprecated: Use ErrDestinationExists with errors.Is.

View Source
const DownloadRequestExpired = string(ErrDownloadRequestExpired)

DownloadRequestExpired is the legacy string form of ErrDownloadRequestExpired.

Deprecated: Use ErrDownloadRequestExpired with errors.Is.

View Source
const (
	ProductionEndpoint = "https://{{SUBDOMAIN}}.files.com"
)
View Source
const UploadObjectExpires = time.Minute * (24 * 3)
View Source
const UploadPartExpires = time.Minute * 15
View Source
const UploadRequestExpired = string(ErrUploadRequestExpired)

UploadRequestExpired is the legacy string form of ErrUploadRequestExpired.

Deprecated: Use ErrUploadRequestExpired with errors.Is.

Variables ¶

View Source
var (
	ErrDirectTransferUnavailable     = errors.New("direct transfer unavailable")
	ErrDirectTransferResponseStarted = errors.New("direct transfer response processing started")
)
View Source
var VERSION = "3.3.317"

Functions ¶

func APIError ¶

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

APIError returns a response handler that recognizes structured API errors and Files.com server error pages. callbacks transform a decoded ResponseError before it is returned. Other response formats require separate status handling.

func BuildRequest ¶ added in v3.2.271

func BuildRequest(request *http.Request, opts ...RequestResponseOption) (*http.Request, error)

BuildRequest applies opts in order and returns the resulting request. It stops at the first option error and does not send the request.

func BuildResponse ¶ added in v3.2.271

func BuildResponse(response *http.Response, opts ...RequestResponseOption) (*http.Response, error)

BuildResponse applies opts in order and returns the resulting response. It stops at the first option error.

func Call ¶

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

Call sends an API request and returns its response bytes, HTTP response, and any transport, response-reading, or API error. The caller must close the response body.

func CallRaw ¶

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

CallRaw sends a request without decoding the response. Client, when provided, overrides the configured retry client. The caller must close the response body. Returned URL errors redact the request URL in either debug mode; DEBUG diagnostics may contain the full URL. Retry entries above DEBUG redact URLs and credentials.

func ContextOption ¶

func ContextOption(opts []RequestResponseOption) context.Context

ContextOption extracts the context from opts, or returns context.Background when no context is set. Errors from options are ignored.

func DirectConnectionInfoPresent ¶ added in v3.3.194

func DirectConnectionInfoPresent(info DirectConnectionInfo) bool

DirectConnectionInfoPresent reports whether info has the supported version and the fields required for a direct connection. It does not validate the addresses, certificate, or reachability of the Agent.

func DirectTransferRequestHeaders ¶ added in v3.3.194

func DirectTransferRequestHeaders(headers *http.Header) *http.Header

DirectTransferRequestHeaders copies headers and removes Files.com credential and workspace headers, Authorization, Proxy-Authorization, and Cookie. A nil input returns an empty header map.

func DirectTransferRetryableClient ¶ added in v3.3.194

func DirectTransferRetryableClient(ctx context.Context, config Config, info DirectConnectionInfo) (string, *retryablehttp.Client, error)

DirectTransferRetryableClient returns the direct URL and a retryable HTTP client for info. It returns an error when direct transfers are disabled or info cannot be used to configure a direct connection.

func FeatureFlags ¶

func FeatureFlags() map[string]bool

func IsAnyErrorType ¶ added in v3.3.54

func IsAnyErrorType(err error, responseTypes ...ResponseErrorType) bool

IsAnyErrorType reports whether err contains any of the supplied API error types.

func IsAuthenticationError ¶ added in v3.3.54

func IsAuthenticationError(err error) bool

IsAuthenticationError reports whether err belongs to the not-authenticated API error group.

func IsAuthorizationError ¶ added in v3.3.54

func IsAuthorizationError(err error) bool

IsAuthorizationError reports whether err belongs to the not-authorized API error group.

func IsBadRequest ¶ added in v3.3.54

func IsBadRequest(err error) bool

IsBadRequest reports whether err belongs to the bad-request API error group.

func IsErrorGroup ¶ added in v3.3.54

func IsErrorGroup(err error, responseGroup ResponseErrorGroup) bool

IsErrorGroup reports whether err contains a ResponseError in responseGroup.

func IsErrorType ¶ added in v3.3.54

func IsErrorType(err error, responseType ResponseErrorType) bool

IsErrorType reports whether err contains a ResponseError with the exact responseType.

func IsExist ¶ added in v3.1.0

func IsExist(err error) bool

IsExist reports whether err matches ErrDestinationExists through errors.Is.

func IsExpired ¶ added in v3.2.236

func IsExpired(err error) bool

IsExpired reports whether an upload or download request has expired.

func IsNotAuthenticated ¶ added in v3.2.244

func IsNotAuthenticated(err error) bool

IsNotAuthenticated reports whether err belongs to the API not-authenticated error group.

func IsNotExist ¶ added in v3.1.0

func IsNotExist(err error) bool

IsNotExist reports whether err belongs to the API not-found error group.

func IsNotFound ¶ added in v3.3.54

func IsNotFound(err error) bool

IsNotFound reports whether err belongs to the not-found API error group.

func IsProcessingFailure ¶ added in v3.3.54

func IsProcessingFailure(err error) bool

IsProcessingFailure reports whether err belongs to the processing-failure API error group.

func IsRateLimited ¶ added in v3.3.54

func IsRateLimited(err error) bool

IsRateLimited reports whether err belongs to the rate-limited API error group.

func IsServiceUnavailable ¶ added in v3.3.54

func IsServiceUnavailable(err error) bool

IsServiceUnavailable reports whether err belongs to the service-unavailable API error group.

func IsSiteConfiguration ¶ added in v3.3.54

func IsSiteConfiguration(err error) bool

IsSiteConfiguration reports whether err belongs to the site-configuration API error group.

func IterAll ¶ added in v3.3.301

func IterAll[T any](i *Iter) iter.Seq2[T, error]

IterAll returns an iterator over the resources that later calls to i.Next would return, as values of type T. Generated listing iterators provide it as their All method:

for file, err := range it.All() {
	if err != nil {
		// Handle the listing error.
		return err
	}
	// Process file.
}

Creating the iterator requests nothing. Each page is requested when the loop reaches it, and breaking out of the loop requests nothing more. Each resource is yielded with a nil error. If a page request fails, the loop ends with one final yield of the zero value and the error, which Err also returns. The end of the listing, MaxPages, or an empty listing ends the loop without an extra yield. A resource that is not a T ends the loop the same way, with an error that Err also returns.

The iterator shares i's position: after a break or calls to Next, a new loop continues with the next resource. Once the listing has ended or failed, it yields nothing; call the listing method again, or Reload, to start over. Do not call i.Next during the loop.

func ParseResponse ¶

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

ParseResponse checks res for API errors and reads its body. It does not close the body; the caller must close it, including when this function returns an error.

func Resource ¶

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

Resource sends an API resource request, decodes its response into the resource entity, and closes the response body.

func WithDirectTransferClientCache ¶ added in v3.3.194

func WithDirectTransferClientCache(ctx context.Context) (context.Context, func())

WithDirectTransferClientCache returns a context that reuses a direct HTTP client within one transfer, and a cleanup function that closes idle connections. Call the cleanup function when the transfer finishes. If ctx already contains a cache, the returned cleanup function does nothing.

func WrapDirectTransferOptions ¶ added in v3.3.194

func WrapDirectTransferOptions(config Config, info DirectConnectionInfo, request *http.Request, opts ...RequestResponseOption) (*http.Response, error)

WrapDirectTransferOptions sends a copy of request to the Agent's direct endpoint and applies the supplied request and response options. The caller must close the body of a successful response. An unsuccessful HTTP response is closed here and returned with a DirectTransferResponseError.

func WrapRequestOptions ¶

func WrapRequestOptions(config Config, request *http.Request, opts ...RequestResponseOption) (*http.Response, error)

WrapRequestOptions applies request options, sends the request with config, and applies response options. The caller must close a returned response body.

Types ¶

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  []InvoiceLineItem `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  []PaymentLineItem `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"`
}

AccountLineItem is a Files.com API resource.

func (AccountLineItem) Identifier ¶

func (a AccountLineItem) Identifier() interface{}

Identifier returns the resource ID.

func (*AccountLineItem) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AccountLineItemCollection ¶

type AccountLineItemCollection []AccountLineItem

AccountLineItemCollection is a list of AccountLineItem resources.

func (*AccountLineItemCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*AccountLineItemCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

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              interface{} `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"`
	UserIsFromParentSite *bool       `json:"user_is_from_parent_site,omitempty" path:"user_is_from_parent_site,omitempty" url:"user_is_from_parent_site,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"`
}

Action is a Files.com API resource.

func (Action) Identifier ¶

func (a Action) Identifier() interface{}

Identifier returns the resource ID.

func (*Action) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ActionCollection ¶

type ActionCollection []Action

ActionCollection is a list of Action resources.

func (*ActionCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ActionCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ActionLog ¶ added in v3.3.37

type ActionLog struct {
	Action             string     `json:"action,omitempty" path:"action,omitempty" url:"action,omitempty"`
	CreatedAt          *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Destination        string     `json:"destination,omitempty" path:"destination,omitempty" url:"destination,omitempty"`
	FailureType        string     `json:"failure_type,omitempty" path:"failure_type,omitempty" url:"failure_type,omitempty"`
	Folder             string     `json:"folder,omitempty" path:"folder,omitempty" url:"folder,omitempty"`
	Interface          string     `json:"interface,omitempty" path:"interface,omitempty" url:"interface,omitempty"`
	Ip                 string     `json:"ip,omitempty" path:"ip,omitempty" url:"ip,omitempty"`
	MetadataDmId       int64      `json:"metadata_dm_id,omitempty" path:"metadata_dm_id,omitempty" url:"metadata_dm_id,omitempty"`
	ParentMetadataDmId int64      `json:"parent_metadata_dm_id,omitempty" path:"parent_metadata_dm_id,omitempty" url:"parent_metadata_dm_id,omitempty"`
	Path               string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	SiteId             int64      `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	Src                string     `json:"src,omitempty" path:"src,omitempty" url:"src,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"`
}

ActionLog is a Files.com API resource.

func (ActionLog) Identifier ¶ added in v3.3.37

func (a ActionLog) Identifier() interface{}

Identifier returns the resource path.

func (*ActionLog) UnmarshalJSON ¶ added in v3.3.37

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ActionLogCollection ¶ added in v3.3.37

type ActionLogCollection []ActionLog

ActionLogCollection is a list of ActionLog resources.

func (*ActionLogCollection) ToSlice ¶ added in v3.3.37

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

ToSlice returns a new slice containing the resources as interface values.

func (*ActionLogCollection) UnmarshalJSON ¶ added in v3.3.37

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ActionLogListParams ¶ added in v3.3.37

type ActionLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

ActionLogListParams contains the request parameters for GET /action_logs.

type ActionNotificationExport ¶

type ActionNotificationExport struct {
	Id                 int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId        int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_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"`
}

ActionNotificationExport is a Files.com API resource.

func (ActionNotificationExport) Identifier ¶

func (a ActionNotificationExport) Identifier() interface{}

Identifier returns the resource ID.

func (*ActionNotificationExport) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ActionNotificationExportCollection ¶

type ActionNotificationExportCollection []ActionNotificationExport

ActionNotificationExportCollection is a list of ActionNotificationExport resources.

func (*ActionNotificationExportCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ActionNotificationExportCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ActionNotificationExportCreateParams ¶

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

ActionNotificationExportCreateParams contains the request parameters for POST /action_notification_exports.

type ActionNotificationExportFindParams ¶

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

ActionNotificationExportFindParams contains the request parameters for GET /action_notification_exports/{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"`
}

ActionNotificationExportResult is a Files.com API resource.

func (ActionNotificationExportResult) Identifier ¶

func (a ActionNotificationExportResult) Identifier() interface{}

Identifier returns the resource ID.

func (*ActionNotificationExportResult) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ActionNotificationExportResultCollection ¶

type ActionNotificationExportResultCollection []ActionNotificationExportResult

ActionNotificationExportResultCollection is a list of ActionNotificationExportResult resources.

func (*ActionNotificationExportResultCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ActionNotificationExportResultCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ActionNotificationExportResultListParams ¶

type ActionNotificationExportResultListParams struct {
	UserId                     int64 `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	ActionNotificationExportId int64 `url:"action_notification_export_id" json:"action_notification_export_id" path:"action_notification_export_id"`
	ListParams
}

ActionNotificationExportResultListParams contains the request parameters for GET /action_notification_export_results.

type AgentNode ¶ added in v3.3.217

type AgentNode struct {
	NodeId                  string              `json:"node_id,omitempty" path:"node_id,omitempty" url:"node_id,omitempty"`
	Name                    string              `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Hostname                string              `json:"hostname,omitempty" path:"hostname,omitempty" url:"hostname,omitempty"`
	AvailabilityRole        string              `json:"availability_role,omitempty" path:"availability_role,omitempty" url:"availability_role,omitempty"`
	Status                  string              `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	IsDefault               *bool               `json:"is_default,omitempty" path:"is_default,omitempty" url:"is_default,omitempty"`
	DirectTransferAvailable *bool               `` /* 127-byte string literal not displayed */
	LastSeenAt              *time.Time          `json:"last_seen_at,omitempty" path:"last_seen_at,omitempty" url:"last_seen_at,omitempty"`
	Instances               []AgentNodeInstance `json:"instances,omitempty" path:"instances,omitempty" url:"instances,omitempty"`
}

AgentNode is a Files.com API resource.

func (*AgentNode) UnmarshalJSON ¶ added in v3.3.217

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AgentNodeCollection ¶ added in v3.3.217

type AgentNodeCollection []AgentNode

AgentNodeCollection is a list of AgentNode resources.

func (*AgentNodeCollection) ToSlice ¶ added in v3.3.217

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

ToSlice returns a new slice containing the resources as interface values.

func (*AgentNodeCollection) UnmarshalJSON ¶ added in v3.3.217

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AgentNodeConnection ¶ added in v3.3.225

type AgentNodeConnection struct {
	Mode       string     `json:"mode,omitempty" path:"mode,omitempty" url:"mode,omitempty"`
	Status     string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	LastSeenAt *time.Time `json:"last_seen_at,omitempty" path:"last_seen_at,omitempty" url:"last_seen_at,omitempty"`
}

AgentNodeConnection is a Files.com API resource.

func (*AgentNodeConnection) UnmarshalJSON ¶ added in v3.3.225

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AgentNodeConnectionCollection ¶ added in v3.3.225

type AgentNodeConnectionCollection []AgentNodeConnection

AgentNodeConnectionCollection is a list of AgentNodeConnection resources.

func (*AgentNodeConnectionCollection) ToSlice ¶ added in v3.3.225

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

ToSlice returns a new slice containing the resources as interface values.

func (*AgentNodeConnectionCollection) UnmarshalJSON ¶ added in v3.3.225

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AgentNodeInstance ¶ added in v3.3.225

type AgentNodeInstance struct {
	InstanceId   string                `json:"instance_id,omitempty" path:"instance_id,omitempty" url:"instance_id,omitempty"`
	ProcessState string                `json:"process_state,omitempty" path:"process_state,omitempty" url:"process_state,omitempty"`
	Status       string                `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	IsDefault    *bool                 `json:"is_default,omitempty" path:"is_default,omitempty" url:"is_default,omitempty"`
	AgentVersion string                `json:"agent_version,omitempty" path:"agent_version,omitempty" url:"agent_version,omitempty"`
	LastSeenAt   *time.Time            `json:"last_seen_at,omitempty" path:"last_seen_at,omitempty" url:"last_seen_at,omitempty"`
	Connections  []AgentNodeConnection `json:"connections,omitempty" path:"connections,omitempty" url:"connections,omitempty"`
}

AgentNodeInstance is a Files.com API resource.

func (*AgentNodeInstance) UnmarshalJSON ¶ added in v3.3.225

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AgentNodeInstanceCollection ¶ added in v3.3.225

type AgentNodeInstanceCollection []AgentNodeInstance

AgentNodeInstanceCollection is a list of AgentNodeInstance resources.

func (*AgentNodeInstanceCollection) ToSlice ¶ added in v3.3.225

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

ToSlice returns a new slice containing the resources as interface values.

func (*AgentNodeInstanceCollection) UnmarshalJSON ¶ added in v3.3.225

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AgentPushUpdate ¶ added in v3.3.19

type AgentPushUpdate struct {
	Version        string `json:"version,omitempty" path:"version,omitempty" url:"version,omitempty"`
	Message        string `json:"message,omitempty" path:"message,omitempty" url:"message,omitempty"`
	CurrentVersion string `json:"current_version,omitempty" path:"current_version,omitempty" url:"current_version,omitempty"`
	PendingVersion string `json:"pending_version,omitempty" path:"pending_version,omitempty" url:"pending_version,omitempty"`
	LastError      string `json:"last_error,omitempty" path:"last_error,omitempty" url:"last_error,omitempty"`
	Error          string `json:"error,omitempty" path:"error,omitempty" url:"error,omitempty"`
}

AgentPushUpdate is a Files.com API resource.

func (*AgentPushUpdate) UnmarshalJSON ¶ added in v3.3.19

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AgentPushUpdateCollection ¶ added in v3.3.19

type AgentPushUpdateCollection []AgentPushUpdate

AgentPushUpdateCollection is a list of AgentPushUpdate resources.

func (*AgentPushUpdateCollection) ToSlice ¶ added in v3.3.19

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

ToSlice returns a new slice containing the resources as interface values.

func (*AgentPushUpdateCollection) UnmarshalJSON ¶ added in v3.3.19

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AiAssistantPersonality ¶ added in v3.3.168

type AiAssistantPersonality struct {
	Id                   int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId          int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Name                 string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	SystemPrompt         string     `json:"system_prompt,omitempty" path:"system_prompt,omitempty" url:"system_prompt,omitempty"`
	UseByDefault         *bool      `json:"use_by_default,omitempty" path:"use_by_default,omitempty" url:"use_by_default,omitempty"`
	ApplyToAllWorkspaces *bool      `json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces,omitempty" url:"apply_to_all_workspaces,omitempty"`
	CreatedAt            *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt            *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

AiAssistantPersonality is a Files.com API resource.

func (AiAssistantPersonality) Identifier ¶ added in v3.3.168

func (a AiAssistantPersonality) Identifier() interface{}

Identifier returns the resource ID.

func (*AiAssistantPersonality) UnmarshalJSON ¶ added in v3.3.168

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AiAssistantPersonalityCollection ¶ added in v3.3.168

type AiAssistantPersonalityCollection []AiAssistantPersonality

AiAssistantPersonalityCollection is a list of AiAssistantPersonality resources.

func (*AiAssistantPersonalityCollection) ToSlice ¶ added in v3.3.168

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

ToSlice returns a new slice containing the resources as interface values.

func (*AiAssistantPersonalityCollection) UnmarshalJSON ¶ added in v3.3.168

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AiAssistantPersonalityCreateParams ¶ added in v3.3.168

type AiAssistantPersonalityCreateParams struct {
	ApplyToAllWorkspaces *bool  `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	Name                 string `url:"name" json:"name" path:"name"`
	SystemPrompt         string `url:"system_prompt" json:"system_prompt" path:"system_prompt"`
	UseByDefault         *bool  `url:"use_by_default,omitempty" json:"use_by_default,omitempty" path:"use_by_default"`
	WorkspaceId          int64  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

AiAssistantPersonalityCreateParams contains the request parameters for POST /ai_assistant_personalities.

type AiAssistantPersonalityDeleteParams ¶ added in v3.3.168

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

AiAssistantPersonalityDeleteParams contains the request parameters for DELETE /ai_assistant_personalities/{id}.

type AiAssistantPersonalityFindParams ¶ added in v3.3.168

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

AiAssistantPersonalityFindParams contains the request parameters for GET /ai_assistant_personalities/{id}.

type AiAssistantPersonalityListParams ¶ added in v3.3.168

type AiAssistantPersonalityListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

AiAssistantPersonalityListParams contains the request parameters for GET /ai_assistant_personalities.

type AiAssistantPersonalityUpdateParams ¶ added in v3.3.168

type AiAssistantPersonalityUpdateParams struct {
	Id                   int64  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	ApplyToAllWorkspaces *bool  `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	Name                 string `url:"name,omitempty" json:"name,omitempty" path:"name"`
	SystemPrompt         string `url:"system_prompt,omitempty" json:"system_prompt,omitempty" path:"system_prompt"`
	UseByDefault         *bool  `url:"use_by_default,omitempty" json:"use_by_default,omitempty" path:"use_by_default"`
	WorkspaceId          int64  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

AiAssistantPersonalityUpdateParams contains the request parameters for PATCH /ai_assistant_personalities/{id}.

type AiTask ¶ added in v3.3.166

type AiTask struct {
	Id                    int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId           int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Name                  string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Description           string     `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	Prompt                string     `json:"prompt,omitempty" path:"prompt,omitempty" url:"prompt,omitempty"`
	PermissionSet         string     `json:"permission_set,omitempty" path:"permission_set,omitempty" url:"permission_set,omitempty"`
	Path                  string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	Source                string     `json:"source,omitempty" path:"source,omitempty" url:"source,omitempty"`
	Disabled              *bool      `json:"disabled,omitempty" path:"disabled,omitempty" url:"disabled,omitempty"`
	Trigger               string     `json:"trigger,omitempty" path:"trigger,omitempty" url:"trigger,omitempty"`
	TriggerActions        []string   `json:"trigger_actions,omitempty" path:"trigger_actions,omitempty" url:"trigger_actions,omitempty"`
	Interval              string     `json:"interval,omitempty" path:"interval,omitempty" url:"interval,omitempty"`
	RecurringDay          int64      `json:"recurring_day,omitempty" path:"recurring_day,omitempty" url:"recurring_day,omitempty"`
	RecurringDays         []int64    `json:"recurring_days,omitempty" path:"recurring_days,omitempty" url:"recurring_days,omitempty"`
	ScheduleId            int64      `json:"schedule_id,omitempty" path:"schedule_id,omitempty" url:"schedule_id,omitempty"`
	ScheduleDaysOfWeek    []int64    `json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week,omitempty" url:"schedule_days_of_week,omitempty"`
	ScheduleTimesOfDay    []string   `json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day,omitempty" url:"schedule_times_of_day,omitempty"`
	ScheduleTimeZone      string     `json:"schedule_time_zone,omitempty" path:"schedule_time_zone,omitempty" url:"schedule_time_zone,omitempty"`
	HolidayRegion         string     `json:"holiday_region,omitempty" path:"holiday_region,omitempty" url:"holiday_region,omitempty"`
	HumanReadableSchedule string     `json:"human_readable_schedule,omitempty" path:"human_readable_schedule,omitempty" url:"human_readable_schedule,omitempty"`
	LastRunAt             *time.Time `json:"last_run_at,omitempty" path:"last_run_at,omitempty" url:"last_run_at,omitempty"`
	MasterAdminUserId     int64      `json:"master_admin_user_id,omitempty" path:"master_admin_user_id,omitempty" url:"master_admin_user_id,omitempty"`
	CreatedAt             *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt             *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

AiTask is a Files.com API resource.

func (AiTask) Identifier ¶ added in v3.3.166

func (a AiTask) Identifier() interface{}

Identifier returns the resource ID.

func (*AiTask) UnmarshalJSON ¶ added in v3.3.166

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AiTaskCollection ¶ added in v3.3.166

type AiTaskCollection []AiTask

AiTaskCollection is a list of AiTask resources.

func (*AiTaskCollection) ToSlice ¶ added in v3.3.166

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

ToSlice returns a new slice containing the resources as interface values.

func (*AiTaskCollection) UnmarshalJSON ¶ added in v3.3.166

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AiTaskCreateParams ¶ added in v3.3.166

type AiTaskCreateParams struct {
	Description        string                  `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Disabled           *bool                   `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	HolidayRegion      string                  `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
	Interval           string                  `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	Name               string                  `url:"name" json:"name" path:"name"`
	Path               string                  `url:"path,omitempty" json:"path,omitempty" path:"path"`
	PermissionSet      AiTaskPermissionSetEnum `url:"permission_set,omitempty" json:"permission_set,omitempty" path:"permission_set"`
	Prompt             string                  `url:"prompt" json:"prompt" path:"prompt"`
	RecurringDay       int64                   `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays      []int64                 `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	ScheduleId         int64                   `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek []int64                 `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimeZone   string                  `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	ScheduleTimesOfDay []string                `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	Source             string                  `url:"source,omitempty" json:"source,omitempty" path:"source"`
	Trigger            AiTaskTriggerEnum       `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	TriggerActions     []string                `url:"trigger_actions,omitempty" json:"trigger_actions,omitempty" path:"trigger_actions"`
	WorkspaceId        int64                   `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

AiTaskCreateParams contains the request parameters for POST /ai_tasks.

type AiTaskDeleteParams ¶ added in v3.3.166

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

AiTaskDeleteParams contains the request parameters for DELETE /ai_tasks/{id}.

type AiTaskFindParams ¶ added in v3.3.166

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

AiTaskFindParams contains the request parameters for GET /ai_tasks/{id}.

type AiTaskListParams ¶ added in v3.3.166

type AiTaskListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

AiTaskListParams contains the request parameters for GET /ai_tasks.

type AiTaskManualRunParams ¶ added in v3.3.166

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

AiTaskManualRunParams contains the request parameters for POST /ai_tasks/{id}/manual_run.

Manually Run AI Task

type AiTaskPermissionSetEnum ¶ added in v3.3.167

type AiTaskPermissionSetEnum string

AiTaskPermissionSetEnum is a string value for permission_set. Enum lists the values documented by the API.

func (AiTaskPermissionSetEnum) Enum ¶ added in v3.3.167

Enum returns the documented values keyed by their API strings.

func (AiTaskPermissionSetEnum) String ¶ added in v3.3.167

func (u AiTaskPermissionSetEnum) String() string

String returns the API parameter value.

type AiTaskTriggerEnum ¶ added in v3.3.166

type AiTaskTriggerEnum string

AiTaskTriggerEnum is a string value for trigger. Enum lists the values documented by the API.

func (AiTaskTriggerEnum) Enum ¶ added in v3.3.166

Enum returns the documented values keyed by their API strings.

func (AiTaskTriggerEnum) String ¶ added in v3.3.166

func (u AiTaskTriggerEnum) String() string

String returns the API parameter value.

type AiTaskUpdateParams ¶ added in v3.3.166

type AiTaskUpdateParams struct {
	Id                 int64                   `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Description        string                  `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Disabled           *bool                   `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	HolidayRegion      string                  `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
	Interval           string                  `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	Name               string                  `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Path               string                  `url:"path,omitempty" json:"path,omitempty" path:"path"`
	PermissionSet      AiTaskPermissionSetEnum `url:"permission_set,omitempty" json:"permission_set,omitempty" path:"permission_set"`
	Prompt             string                  `url:"prompt,omitempty" json:"prompt,omitempty" path:"prompt"`
	RecurringDay       int64                   `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays      []int64                 `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	ScheduleId         int64                   `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek []int64                 `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimeZone   string                  `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	ScheduleTimesOfDay []string                `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	Source             string                  `url:"source,omitempty" json:"source,omitempty" path:"source"`
	Trigger            AiTaskTriggerEnum       `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	TriggerActions     []string                `url:"trigger_actions,omitempty" json:"trigger_actions,omitempty" path:"trigger_actions"`
	WorkspaceId        int64                   `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

AiTaskUpdateParams contains the request parameters for PATCH /ai_tasks/{id}.

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"`
	AwsStyleCredentials *bool      `json:"aws_style_credentials,omitempty" path:"aws_style_credentials,omitempty" url:"aws_style_credentials,omitempty"`
	AwsAccessKeyId      string     `json:"aws_access_key_id,omitempty" path:"aws_access_key_id,omitempty" url:"aws_access_key_id,omitempty"`
	AwsSecretKey        string     `json:"aws_secret_key,omitempty" path:"aws_secret_key,omitempty" url:"aws_secret_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"`
	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"`
	SiteId              int64      `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	SiteName            string     `json:"site_name,omitempty" path:"site_name,omitempty" url:"site_name,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"`
	WorkspaceId         int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Path                string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
}

ApiKey is a Files.com API resource.

func (ApiKey) Identifier ¶

func (a ApiKey) Identifier() interface{}

Identifier returns the resource ID.

func (*ApiKey) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ApiKeyCollection ¶

type ApiKeyCollection []ApiKey

ApiKeyCollection is a list of ApiKey resources.

func (*ApiKeyCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ApiKeyCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ApiKeyCreateParams ¶

type ApiKeyCreateParams struct {
	UserId              int64                   `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Description         string                  `url:"description,omitempty" json:"description,omitempty" path:"description"`
	ExpiresAt           *time.Time              `url:"expires_at,omitempty" json:"expires_at,omitempty" path:"expires_at"`
	Name                string                  `url:"name" json:"name" path:"name"`
	AwsStyleCredentials *bool                   `url:"aws_style_credentials,omitempty" json:"aws_style_credentials,omitempty" path:"aws_style_credentials"`
	Path                string                  `url:"path,omitempty" json:"path,omitempty" path:"path"`
	PermissionSet       ApiKeyPermissionSetEnum `url:"permission_set,omitempty" json:"permission_set,omitempty" path:"permission_set"`
	WorkspaceId         int64                   `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

ApiKeyCreateParams contains the request parameters for POST /api_keys.

type ApiKeyDeleteParams ¶

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

ApiKeyDeleteParams contains the request parameters for DELETE /api_keys/{id}.

type ApiKeyFindParams ¶

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

ApiKeyFindParams contains the request parameters for GET /api_keys/{id}.

type ApiKeyListParams ¶

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

ApiKeyListParams contains the request parameters for GET /api_keys.

type ApiKeyPermissionSetEnum ¶

type ApiKeyPermissionSetEnum string

ApiKeyPermissionSetEnum is a string value for permission_set. Enum lists the values documented by the API.

func (ApiKeyPermissionSetEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (ApiKeyPermissionSetEnum) String ¶

func (u ApiKeyPermissionSetEnum) String() string

String returns the API parameter value.

type ApiKeyUpdateCurrentParams ¶

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

ApiKeyUpdateCurrentParams contains the request parameters for PATCH /api_key.

type ApiKeyUpdateParams ¶

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

ApiKeyUpdateParams contains the request parameters for PATCH /api_keys/{id}.

type ApiRequestLog ¶ added in v3.1.48

type ApiRequestLog struct {
	Timestamp            *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	ApiKeyId             int64      `json:"api_key_id,omitempty" path:"api_key_id,omitempty" url:"api_key_id,omitempty"`
	ApiKeyPrefix         string     `json:"api_key_prefix,omitempty" path:"api_key_prefix,omitempty" url:"api_key_prefix,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"`
	UserIsFromParentSite *bool      `json:"user_is_from_parent_site,omitempty" path:"user_is_from_parent_site,omitempty" url:"user_is_from_parent_site,omitempty"`
	Interface            string     `json:"interface,omitempty" path:"interface,omitempty" url:"interface,omitempty"`
	RequestMethod        string     `json:"request_method,omitempty" path:"request_method,omitempty" url:"request_method,omitempty"`
	RequestPath          string     `json:"request_path,omitempty" path:"request_path,omitempty" url:"request_path,omitempty"`
	RequestIp            string     `json:"request_ip,omitempty" path:"request_ip,omitempty" url:"request_ip,omitempty"`
	RequestHost          string     `json:"request_host,omitempty" path:"request_host,omitempty" url:"request_host,omitempty"`
	RequestId            string     `json:"request_id,omitempty" path:"request_id,omitempty" url:"request_id,omitempty"`
	ApiName              string     `json:"api_name,omitempty" path:"api_name,omitempty" url:"api_name,omitempty"`
	UserAgent            string     `json:"user_agent,omitempty" path:"user_agent,omitempty" url:"user_agent,omitempty"`
	ErrorType            string     `json:"error_type,omitempty" path:"error_type,omitempty" url:"error_type,omitempty"`
	ErrorMessage         string     `json:"error_message,omitempty" path:"error_message,omitempty" url:"error_message,omitempty"`
	ResponseCode         int64      `json:"response_code,omitempty" path:"response_code,omitempty" url:"response_code,omitempty"`
	Success              *bool      `json:"success,omitempty" path:"success,omitempty" url:"success,omitempty"`
	DurationMs           int64      `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	ImpersonatorUserId   int64      `json:"impersonator_user_id,omitempty" path:"impersonator_user_id,omitempty" url:"impersonator_user_id,omitempty"`
	CreatedAt            *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

ApiRequestLog is a Files.com API resource.

func (*ApiRequestLog) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ApiRequestLogCollection ¶ added in v3.1.48

type ApiRequestLogCollection []ApiRequestLog

ApiRequestLogCollection is a list of ApiRequestLog resources.

func (*ApiRequestLogCollection) ToSlice ¶ added in v3.1.48

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

ToSlice returns a new slice containing the resources as interface values.

func (*ApiRequestLogCollection) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ApiRequestLogListParams ¶ added in v3.1.48

type ApiRequestLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

ApiRequestLogListParams contains the request parameters for GET /api_request_logs.

type App ¶

type App struct {
	AppType                             string      `json:"app_type,omitempty" path:"app_type,omitempty" url:"app_type,omitempty"`
	DocumentationLinks                  interface{} `json:"documentation_links,omitempty" path:"documentation_links,omitempty" url:"documentation_links,omitempty"`
	ExtendedDescription                 string      `json:"extended_description,omitempty" path:"extended_description,omitempty" url:"extended_description,omitempty"`
	ExtendedDescriptionForMarketingSite string      `` /* 169-byte string literal not displayed */
	ExternalHomepageUrl                 string      `json:"external_homepage_url,omitempty" path:"external_homepage_url,omitempty" url:"external_homepage_url,omitempty"`
	Featured                            *bool       `json:"featured,omitempty" path:"featured,omitempty" url:"featured,omitempty"`
	FolderBehaviorType                  string      `json:"folder_behavior_type,omitempty" path:"folder_behavior_type,omitempty" url:"folder_behavior_type,omitempty"`
	IconUrl                             string      `json:"icon_url,omitempty" path:"icon_url,omitempty" url:"icon_url,omitempty"`
	LogoThumbnailUrl                    string      `json:"logo_thumbnail_url,omitempty" path:"logo_thumbnail_url,omitempty" url:"logo_thumbnail_url,omitempty"`
	LogoUrl                             string      `json:"logo_url,omitempty" path:"logo_url,omitempty" url:"logo_url,omitempty"`
	MarketingIntro                      string      `json:"marketing_intro,omitempty" path:"marketing_intro,omitempty" url:"marketing_intro,omitempty"`
	MarketingYoutubeUrl                 string      `json:"marketing_youtube_url,omitempty" path:"marketing_youtube_url,omitempty" url:"marketing_youtube_url,omitempty"`
	Name                                string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	PackageManagerInstallCommand        string      `` /* 145-byte string literal not displayed */
	RemoteServerType                    string      `json:"remote_server_type,omitempty" path:"remote_server_type,omitempty" url:"remote_server_type,omitempty"`
	ScreenshotListUrls                  []string    `json:"screenshot_list_urls,omitempty" path:"screenshot_list_urls,omitempty" url:"screenshot_list_urls,omitempty"`
	SdkInstallationInstructionsLink     string      `` /* 154-byte string literal not displayed */
	ShortDescription                    string      `json:"short_description,omitempty" path:"short_description,omitempty" url:"short_description,omitempty"`
	SsoStrategyType                     string      `json:"sso_strategy_type,omitempty" path:"sso_strategy_type,omitempty" url:"sso_strategy_type,omitempty"`
	SiemType                            string      `json:"siem_type,omitempty" path:"siem_type,omitempty" url:"siem_type,omitempty"`
	TutorialYoutubeUrl                  string      `json:"tutorial_youtube_url,omitempty" path:"tutorial_youtube_url,omitempty" url:"tutorial_youtube_url,omitempty"`
}

App is a Files.com API resource.

func (*App) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AppCollection ¶

type AppCollection []App

AppCollection is a list of App resources.

func (*AppCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*AppCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AppListParams ¶

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

AppListParams contains the request parameters for GET /apps.

type As2IncomingMessage ¶

type As2IncomingMessage struct {
	Id                          int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                 int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_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                 interface{} `json:"http_headers,omitempty" path:"http_headers,omitempty" url:"http_headers,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         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"`
}

As2IncomingMessage is a Files.com API resource.

func (As2IncomingMessage) Identifier ¶

func (a As2IncomingMessage) Identifier() interface{}

Identifier returns the resource ID.

func (*As2IncomingMessage) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type As2IncomingMessageCollection ¶

type As2IncomingMessageCollection []As2IncomingMessage

As2IncomingMessageCollection is a list of As2IncomingMessage resources.

func (*As2IncomingMessageCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*As2IncomingMessageCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type As2IncomingMessageListParams ¶

type As2IncomingMessageListParams struct {
	SortBy     interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

As2IncomingMessageListParams contains the request parameters for GET /as2_incoming_messages.

type As2OutgoingMessage ¶

type As2OutgoingMessage struct {
	Id                          int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                 int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_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                 interface{} `json:"http_headers,omitempty" path:"http_headers,omitempty" url:"http_headers,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"`
	As2Subject                  string      `json:"as2_subject,omitempty" path:"as2_subject,omitempty" url:"as2_subject,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         interface{} `json:"http_response_headers,omitempty" path:"http_response_headers,omitempty" url:"http_response_headers,omitempty"`
	HttpTransmissionDuration    float64     `` /* 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"`
}

As2OutgoingMessage is a Files.com API resource.

func (As2OutgoingMessage) Identifier ¶

func (a As2OutgoingMessage) Identifier() interface{}

Identifier returns the resource ID.

func (*As2OutgoingMessage) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type As2OutgoingMessageCollection ¶

type As2OutgoingMessageCollection []As2OutgoingMessage

As2OutgoingMessageCollection is a list of As2OutgoingMessage resources.

func (*As2OutgoingMessageCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*As2OutgoingMessageCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type As2OutgoingMessageListParams ¶

type As2OutgoingMessageListParams struct {
	SortBy     interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

As2OutgoingMessageListParams contains the request parameters for GET /as2_outgoing_messages.

type As2Partner ¶

type As2Partner struct {
	Id                         int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_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"`
	HttpAuthUsername           string      `json:"http_auth_username,omitempty" path:"http_auth_username,omitempty" url:"http_auth_username,omitempty"`
	AdditionalHttpHeaders      interface{} `json:"additional_http_headers,omitempty" path:"additional_http_headers,omitempty" url:"additional_http_headers,omitempty"`
	DefaultMimeType            string      `json:"default_mime_type,omitempty" path:"default_mime_type,omitempty" url:"default_mime_type,omitempty"`
	MdnValidationLevel         string      `json:"mdn_validation_level,omitempty" path:"mdn_validation_level,omitempty" url:"mdn_validation_level,omitempty"`
	SignatureValidationLevel   string      `` /* 130-byte string literal not displayed */
	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 */
	PublicCertificate          string      `json:"public_certificate,omitempty" path:"public_certificate,omitempty" url:"public_certificate,omitempty"`
	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 */
	HttpAuthPassword           string      `json:"http_auth_password,omitempty" path:"http_auth_password,omitempty" url:"http_auth_password,omitempty"`
	Pkcs12                     string      `json:"pkcs12,omitempty" path:"pkcs12,omitempty" url:"pkcs12,omitempty"`
	Pkcs12Password             string      `json:"pkcs12_password,omitempty" path:"pkcs12_password,omitempty" url:"pkcs12_password,omitempty"`
}

As2Partner is a Files.com API resource.

func (As2Partner) Identifier ¶

func (a As2Partner) Identifier() interface{}

Identifier returns the resource ID.

func (*As2Partner) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type As2PartnerCollection ¶

type As2PartnerCollection []As2Partner

As2PartnerCollection is a list of As2Partner resources.

func (*As2PartnerCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*As2PartnerCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type As2PartnerCreateParams ¶

type As2PartnerCreateParams struct {
	EnableDedicatedIps       *bool                                  `url:"enable_dedicated_ips,omitempty" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	HttpAuthUsername         string                                 `url:"http_auth_username,omitempty" json:"http_auth_username,omitempty" path:"http_auth_username"`
	HttpAuthPassword         string                                 `url:"http_auth_password,omitempty" json:"http_auth_password,omitempty" path:"http_auth_password"`
	MdnValidationLevel       As2PartnerMdnValidationLevelEnum       `url:"mdn_validation_level,omitempty" json:"mdn_validation_level,omitempty" path:"mdn_validation_level"`
	SignatureValidationLevel As2PartnerSignatureValidationLevelEnum `url:"signature_validation_level,omitempty" json:"signature_validation_level,omitempty" path:"signature_validation_level"`
	ServerCertificate        As2PartnerServerCertificateEnum        `url:"server_certificate,omitempty" json:"server_certificate,omitempty" path:"server_certificate"`
	DefaultMimeType          string                                 `url:"default_mime_type,omitempty" json:"default_mime_type,omitempty" path:"default_mime_type"`
	AdditionalHttpHeaders    interface{}                            `url:"additional_http_headers,omitempty" json:"additional_http_headers,omitempty" path:"additional_http_headers"`
	As2StationId             int64                                  `url:"as2_station_id" json:"as2_station_id" path:"as2_station_id"`
	Name                     string                                 `url:"name" json:"name" path:"name"`
	Uri                      string                                 `url:"uri" json:"uri" path:"uri"`
	PublicCertificate        string                                 `url:"public_certificate,omitempty" json:"public_certificate,omitempty" path:"public_certificate"`
	Pkcs12                   string                                 `url:"pkcs12,omitempty" json:"pkcs12,omitempty" path:"pkcs12"`
	Pkcs12Password           string                                 `url:"pkcs12_password,omitempty" json:"pkcs12_password,omitempty" path:"pkcs12_password"`
}

As2PartnerCreateParams contains the request parameters for POST /as2_partners.

type As2PartnerDeleteParams ¶

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

As2PartnerDeleteParams contains the request parameters for DELETE /as2_partners/{id}.

type As2PartnerFindParams ¶

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

As2PartnerFindParams contains the request parameters for GET /as2_partners/{id}.

type As2PartnerListParams ¶

type As2PartnerListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

As2PartnerListParams contains the request parameters for GET /as2_partners.

type As2PartnerMdnValidationLevelEnum ¶ added in v3.2.17

type As2PartnerMdnValidationLevelEnum string

As2PartnerMdnValidationLevelEnum is a string value for mdn_validation_level. Enum lists the values documented by the API.

func (As2PartnerMdnValidationLevelEnum) Enum ¶ added in v3.2.17

Enum returns the documented values keyed by their API strings.

func (As2PartnerMdnValidationLevelEnum) String ¶ added in v3.2.17

String returns the API parameter value.

type As2PartnerServerCertificateEnum ¶ added in v3.2.17

type As2PartnerServerCertificateEnum string

As2PartnerServerCertificateEnum is a string value for server_certificate. Enum lists the values documented by the API.

func (As2PartnerServerCertificateEnum) Enum ¶ added in v3.2.17

Enum returns the documented values keyed by their API strings.

func (As2PartnerServerCertificateEnum) String ¶ added in v3.2.17

String returns the API parameter value.

type As2PartnerSignatureValidationLevelEnum ¶ added in v3.2.177

type As2PartnerSignatureValidationLevelEnum string

As2PartnerSignatureValidationLevelEnum is a string value for signature_validation_level. Enum lists the values documented by the API.

func (As2PartnerSignatureValidationLevelEnum) Enum ¶ added in v3.2.177

Enum returns the documented values keyed by their API strings.

func (As2PartnerSignatureValidationLevelEnum) String ¶ added in v3.2.177

String returns the API parameter value.

type As2PartnerUpdateParams ¶

type As2PartnerUpdateParams struct {
	Id                       int64                                  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	EnableDedicatedIps       *bool                                  `url:"enable_dedicated_ips,omitempty" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	HttpAuthUsername         string                                 `url:"http_auth_username,omitempty" json:"http_auth_username,omitempty" path:"http_auth_username"`
	HttpAuthPassword         string                                 `url:"http_auth_password,omitempty" json:"http_auth_password,omitempty" path:"http_auth_password"`
	MdnValidationLevel       As2PartnerMdnValidationLevelEnum       `url:"mdn_validation_level,omitempty" json:"mdn_validation_level,omitempty" path:"mdn_validation_level"`
	SignatureValidationLevel As2PartnerSignatureValidationLevelEnum `url:"signature_validation_level,omitempty" json:"signature_validation_level,omitempty" path:"signature_validation_level"`
	ServerCertificate        As2PartnerServerCertificateEnum        `url:"server_certificate,omitempty" json:"server_certificate,omitempty" path:"server_certificate"`
	DefaultMimeType          string                                 `url:"default_mime_type,omitempty" json:"default_mime_type,omitempty" path:"default_mime_type"`
	AdditionalHttpHeaders    interface{}                            `url:"additional_http_headers,omitempty" json:"additional_http_headers,omitempty" path:"additional_http_headers"`
	Name                     string                                 `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Uri                      string                                 `url:"uri,omitempty" json:"uri,omitempty" path:"uri"`
	PublicCertificate        string                                 `url:"public_certificate,omitempty" json:"public_certificate,omitempty" path:"public_certificate"`
	Pkcs12                   string                                 `url:"pkcs12,omitempty" json:"pkcs12,omitempty" path:"pkcs12"`
	Pkcs12Password           string                                 `url:"pkcs12_password,omitempty" json:"pkcs12_password,omitempty" path:"pkcs12_password"`
}

As2PartnerUpdateParams contains the request parameters for PATCH /as2_partners/{id}.

type As2Station ¶

type As2Station struct {
	Id                         int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                int64  `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_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"`
	PublicCertificate          string `json:"public_certificate,omitempty" path:"public_certificate,omitempty" url:"public_certificate,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"`
	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"`
	Pkcs12                     string `json:"pkcs12,omitempty" path:"pkcs12,omitempty" url:"pkcs12,omitempty"`
	Pkcs12Password             string `json:"pkcs12_password,omitempty" path:"pkcs12_password,omitempty" url:"pkcs12_password,omitempty"`
}

As2Station is a Files.com API resource.

func (As2Station) Identifier ¶

func (a As2Station) Identifier() interface{}

Identifier returns the resource ID.

func (*As2Station) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type As2StationCollection ¶

type As2StationCollection []As2Station

As2StationCollection is a list of As2Station resources.

func (*As2StationCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*As2StationCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type As2StationCreateParams ¶

type As2StationCreateParams struct {
	Name               string `url:"name" json:"name" path:"name"`
	WorkspaceId        int64  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	PublicCertificate  string `url:"public_certificate,omitempty" json:"public_certificate,omitempty" path:"public_certificate"`
	PrivateKey         string `url:"private_key,omitempty" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassword string `url:"private_key_password,omitempty" json:"private_key_password,omitempty" path:"private_key_password"`
	Pkcs12             string `url:"pkcs12,omitempty" json:"pkcs12,omitempty" path:"pkcs12"`
	Pkcs12Password     string `url:"pkcs12_password,omitempty" json:"pkcs12_password,omitempty" path:"pkcs12_password"`
}

As2StationCreateParams contains the request parameters for POST /as2_stations.

type As2StationDeleteParams ¶

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

As2StationDeleteParams contains the request parameters for DELETE /as2_stations/{id}.

type As2StationFindParams ¶

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

As2StationFindParams contains the request parameters for GET /as2_stations/{id}.

type As2StationListParams ¶

type As2StationListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

As2StationListParams contains the request parameters for GET /as2_stations.

type As2StationUpdateParams ¶

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

As2StationUpdateParams contains the request parameters for PATCH /as2_stations/{id}.

type Auto ¶

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

Auto is a Files.com API resource.

func (*Auto) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AutoCollection ¶

type AutoCollection []Auto

AutoCollection is a list of Auto resources.

func (*AutoCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*AutoCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type Automation ¶

type Automation struct {
	Id                               int64                    `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                      int64                    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	AlwaysSerializeJobs              *bool                    `json:"always_serialize_jobs,omitempty" path:"always_serialize_jobs,omitempty" url:"always_serialize_jobs,omitempty"`
	AlwaysOverwriteSizeMatchingFiles *bool                    `` /* 160-byte string literal not displayed */
	Automation                       string                   `json:"automation,omitempty" path:"automation,omitempty" url:"automation,omitempty"`
	Deleted                          *bool                    `json:"deleted,omitempty" path:"deleted,omitempty" url:"deleted,omitempty"`
	Description                      string                   `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	Definition                       interface{}              `json:"definition,omitempty" path:"definition,omitempty" url:"definition,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"`
	Destinations                     []string                 `json:"destinations,omitempty" path:"destinations,omitempty" url:"destinations,omitempty"`
	Disabled                         *bool                    `json:"disabled,omitempty" path:"disabled,omitempty" url:"disabled,omitempty"`
	ExcludePattern                   string                   `json:"exclude_pattern,omitempty" path:"exclude_pattern,omitempty" url:"exclude_pattern,omitempty"`
	ImportUrls                       []map[string]interface{} `json:"import_urls,omitempty" path:"import_urls,omitempty" url:"import_urls,omitempty"`
	InboundEmailAddress              string                   `json:"inbound_email_address,omitempty" path:"inbound_email_address,omitempty" url:"inbound_email_address,omitempty"`
	FlattenDestinationStructure      *bool                    `` /* 139-byte string literal not displayed */
	GroupIds                         []int64                  `json:"group_ids,omitempty" path:"group_ids,omitempty" url:"group_ids,omitempty"`
	IgnoreLockedFolders              *bool                    `json:"ignore_locked_folders,omitempty" path:"ignore_locked_folders,omitempty" url:"ignore_locked_folders,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"`
	LegacyFolderMatching             *bool                    `json:"legacy_folder_matching,omitempty" path:"legacy_folder_matching,omitempty" url:"legacy_folder_matching,omitempty"`
	Name                             string                   `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	OverwriteFiles                   *bool                    `json:"overwrite_files,omitempty" path:"overwrite_files,omitempty" url:"overwrite_files,omitempty"`
	Path                             string                   `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	PathTimeZone                     string                   `json:"path_time_zone,omitempty" path:"path_time_zone,omitempty" url:"path_time_zone,omitempty"`
	Version                          int64                    `json:"version,omitempty" path:"version,omitempty" url:"version,omitempty"`
	RecurringDay                     int64                    `json:"recurring_day,omitempty" path:"recurring_day,omitempty" url:"recurring_day,omitempty"`
	RecurringDays                    []int64                  `json:"recurring_days,omitempty" path:"recurring_days,omitempty" url:"recurring_days,omitempty"`
	ScheduleId                       int64                    `json:"schedule_id,omitempty" path:"schedule_id,omitempty" url:"schedule_id,omitempty"`
	RetryOnFailureIntervalInMinutes  int64                    `` /* 160-byte string literal not displayed */
	RetryOnFailureNumberOfAttempts   int64                    `` /* 157-byte string literal not displayed */
	Schedule                         interface{}              `json:"schedule,omitempty" path:"schedule,omitempty" url:"schedule,omitempty"`
	HumanReadableSchedule            string                   `json:"human_readable_schedule,omitempty" path:"human_readable_schedule,omitempty" url:"human_readable_schedule,omitempty"`
	ScheduleDaysOfWeek               []int64                  `json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week,omitempty" url:"schedule_days_of_week,omitempty"`
	ScheduleTimesOfDay               []string                 `json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day,omitempty" url:"schedule_times_of_day,omitempty"`
	ScheduleTimeZone                 string                   `json:"schedule_time_zone,omitempty" path:"schedule_time_zone,omitempty" url:"schedule_time_zone,omitempty"`
	Source                           string                   `json:"source,omitempty" path:"source,omitempty" url:"source,omitempty"`
	SyncIds                          []int64                  `json:"sync_ids,omitempty" path:"sync_ids,omitempty" url:"sync_ids,omitempty"`
	TriggerActions                   []string                 `json:"trigger_actions,omitempty" path:"trigger_actions,omitempty" url:"trigger_actions,omitempty"`
	Trigger                          string                   `json:"trigger,omitempty" path:"trigger,omitempty" url:"trigger,omitempty"`
	UserId                           int64                    `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	UserIds                          []int64                  `json:"user_ids,omitempty" path:"user_ids,omitempty" url:"user_ids,omitempty"`
	Value                            interface{}              `json:"value,omitempty" path:"value,omitempty" url:"value,omitempty"`
	WebhookUrl                       string                   `json:"webhook_url,omitempty" path:"webhook_url,omitempty" url:"webhook_url,omitempty"`
	HolidayRegion                    string                   `json:"holiday_region,omitempty" path:"holiday_region,omitempty" url:"holiday_region,omitempty"`
}

Automation is a Files.com API resource.

func (Automation) Identifier ¶

func (a Automation) Identifier() interface{}

Identifier returns the resource ID.

func (*Automation) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AutomationAuthoringSchema ¶ added in v3.3.189

type AutomationAuthoringSchema struct {
	DefinitionSchema interface{}              `json:"definition_schema,omitempty" path:"definition_schema,omitempty" url:"definition_schema,omitempty"`
	ErrorFamilies    []map[string]interface{} `json:"error_families,omitempty" path:"error_families,omitempty" url:"error_families,omitempty"`
	Nodes            []map[string]interface{} `json:"nodes,omitempty" path:"nodes,omitempty" url:"nodes,omitempty"`
	SchemaUrl        string                   `json:"schema_url,omitempty" path:"schema_url,omitempty" url:"schema_url,omitempty"`
}

AutomationAuthoringSchema is a Files.com API resource.

func (*AutomationAuthoringSchema) UnmarshalJSON ¶ added in v3.3.189

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AutomationAuthoringSchemaCollection ¶ added in v3.3.189

type AutomationAuthoringSchemaCollection []AutomationAuthoringSchema

AutomationAuthoringSchemaCollection is a list of AutomationAuthoringSchema resources.

func (*AutomationAuthoringSchemaCollection) ToSlice ¶ added in v3.3.189

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

ToSlice returns a new slice containing the resources as interface values.

func (*AutomationAuthoringSchemaCollection) UnmarshalJSON ¶ added in v3.3.189

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AutomationCollection ¶

type AutomationCollection []Automation

AutomationCollection is a list of Automation resources.

func (*AutomationCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*AutomationCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AutomationCreateParams ¶

type AutomationCreateParams struct {
	Source                           string                   `url:"source,omitempty" json:"source,omitempty" path:"source"`
	Destinations                     []string                 `url:"destinations,omitempty" json:"destinations,omitempty" path:"destinations"`
	DestinationReplaceFrom           string                   `url:"destination_replace_from,omitempty" json:"destination_replace_from,omitempty" path:"destination_replace_from"`
	DestinationReplaceTo             string                   `url:"destination_replace_to,omitempty" json:"destination_replace_to,omitempty" path:"destination_replace_to"`
	Interval                         string                   `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	Path                             string                   `url:"path,omitempty" json:"path,omitempty" path:"path"`
	SyncIds                          string                   `url:"sync_ids,omitempty" json:"sync_ids,omitempty" path:"sync_ids"`
	UserIds                          string                   `url:"user_ids,omitempty" json:"user_ids,omitempty" path:"user_ids"`
	GroupIds                         string                   `url:"group_ids,omitempty" json:"group_ids,omitempty" path:"group_ids"`
	ScheduleId                       int64                    `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek               []int64                  `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimesOfDay               []string                 `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	ScheduleTimeZone                 string                   `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	HolidayRegion                    string                   `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
	AlwaysOverwriteSizeMatchingFiles *bool                    `` /* 150-byte string literal not displayed */
	AlwaysSerializeJobs              *bool                    `url:"always_serialize_jobs,omitempty" json:"always_serialize_jobs,omitempty" path:"always_serialize_jobs"`
	Description                      string                   `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Definition                       interface{}              `url:"definition,omitempty" json:"definition,omitempty" path:"definition"`
	Disabled                         *bool                    `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	ExcludePattern                   string                   `url:"exclude_pattern,omitempty" json:"exclude_pattern,omitempty" path:"exclude_pattern"`
	ImportUrls                       []map[string]interface{} `url:"import_urls,omitempty" json:"import_urls,omitempty" path:"import_urls"`
	FlattenDestinationStructure      *bool                    `` /* 129-byte string literal not displayed */
	IgnoreLockedFolders              *bool                    `url:"ignore_locked_folders,omitempty" json:"ignore_locked_folders,omitempty" path:"ignore_locked_folders"`
	LegacyFolderMatching             *bool                    `url:"legacy_folder_matching,omitempty" json:"legacy_folder_matching,omitempty" path:"legacy_folder_matching"`
	Name                             string                   `url:"name,omitempty" json:"name,omitempty" path:"name"`
	OverwriteFiles                   *bool                    `url:"overwrite_files,omitempty" json:"overwrite_files,omitempty" path:"overwrite_files"`
	PathTimeZone                     string                   `url:"path_time_zone,omitempty" json:"path_time_zone,omitempty" path:"path_time_zone"`
	RetryOnFailureIntervalInMinutes  int64                    `` /* 150-byte string literal not displayed */
	RetryOnFailureNumberOfAttempts   int64                    `` /* 147-byte string literal not displayed */
	Trigger                          AutomationTriggerEnum    `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	TriggerActions                   []string                 `url:"trigger_actions,omitempty" json:"trigger_actions,omitempty" path:"trigger_actions"`
	Value                            interface{}              `url:"value,omitempty" json:"value,omitempty" path:"value"`
	RecurringDay                     int64                    `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays                    []int64                  `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	Automation                       AutomationEnum           `url:"automation" json:"automation" path:"automation"`
	WorkspaceId                      int64                    `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

AutomationCreateParams contains the request parameters for POST /automations.

type AutomationDeleteParams ¶

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

AutomationDeleteParams contains the request parameters for DELETE /automations/{id}.

type AutomationEnum ¶

type AutomationEnum string

AutomationEnum is a string value for automation. Enum lists the values documented by the API.

func (AutomationEnum) Enum ¶

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

Enum returns the documented values keyed by their API strings.

func (AutomationEnum) String ¶

func (u AutomationEnum) String() string

String returns the API parameter value.

type AutomationExecutionNode ¶ added in v3.3.191

type AutomationExecutionNode struct {
	NodeId               string                   `json:"node_id,omitempty" path:"node_id,omitempty" url:"node_id,omitempty"`
	NodeType             string                   `json:"node_type,omitempty" path:"node_type,omitempty" url:"node_type,omitempty"`
	Status               string                   `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	RunStage             string                   `json:"run_stage,omitempty" path:"run_stage,omitempty" url:"run_stage,omitempty"`
	Reused               *bool                    `json:"reused,omitempty" path:"reused,omitempty" url:"reused,omitempty"`
	SuccessfulOperations int64                    `json:"successful_operations,omitempty" path:"successful_operations,omitempty" url:"successful_operations,omitempty"`
	FailedOperations     int64                    `json:"failed_operations,omitempty" path:"failed_operations,omitempty" url:"failed_operations,omitempty"`
	StartedAt            *time.Time               `json:"started_at,omitempty" path:"started_at,omitempty" url:"started_at,omitempty"`
	CompletedAt          *time.Time               `json:"completed_at,omitempty" path:"completed_at,omitempty" url:"completed_at,omitempty"`
	DurationMs           int64                    `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	Inputs               []map[string]interface{} `json:"inputs,omitempty" path:"inputs,omitempty" url:"inputs,omitempty"`
	Outputs              interface{}              `json:"outputs,omitempty" path:"outputs,omitempty" url:"outputs,omitempty"`
	InputItems           interface{}              `json:"input_items,omitempty" path:"input_items,omitempty" url:"input_items,omitempty"`
	OutputItems          interface{}              `json:"output_items,omitempty" path:"output_items,omitempty" url:"output_items,omitempty"`
}

AutomationExecutionNode is a Files.com API resource.

func (*AutomationExecutionNode) UnmarshalJSON ¶ added in v3.3.191

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AutomationExecutionNodeCollection ¶ added in v3.3.191

type AutomationExecutionNodeCollection []AutomationExecutionNode

AutomationExecutionNodeCollection is a list of AutomationExecutionNode resources.

func (*AutomationExecutionNodeCollection) ToSlice ¶ added in v3.3.191

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

ToSlice returns a new slice containing the resources as interface values.

func (*AutomationExecutionNodeCollection) UnmarshalJSON ¶ added in v3.3.191

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AutomationFindParams ¶

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

AutomationFindParams contains the request parameters for GET /automations/{id}.

type AutomationListParams ¶

type AutomationListParams struct {
	SortBy     interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

AutomationListParams contains the request parameters for GET /automations.

type AutomationLog ¶ added in v3.1.48

type AutomationLog struct {
	Timestamp               *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	AutomationId            int64      `json:"automation_id,omitempty" path:"automation_id,omitempty" url:"automation_id,omitempty"`
	AutomationRunId         int64      `json:"automation_run_id,omitempty" path:"automation_run_id,omitempty" url:"automation_run_id,omitempty"`
	CorrelationId           string     `json:"correlation_id,omitempty" path:"correlation_id,omitempty" url:"correlation_id,omitempty"`
	DestPath                string     `json:"dest_path,omitempty" path:"dest_path,omitempty" url:"dest_path,omitempty"`
	ErrorType               string     `json:"error_type,omitempty" path:"error_type,omitempty" url:"error_type,omitempty"`
	SourceAutomationId      int64      `json:"source_automation_id,omitempty" path:"source_automation_id,omitempty" url:"source_automation_id,omitempty"`
	SourceAutomationVersion int64      `` /* 127-byte string literal not displayed */
	Message                 string     `json:"message,omitempty" path:"message,omitempty" url:"message,omitempty"`
	NodeId                  string     `json:"node_id,omitempty" path:"node_id,omitempty" url:"node_id,omitempty"`
	NodeType                string     `json:"node_type,omitempty" path:"node_type,omitempty" url:"node_type,omitempty"`
	Operation               string     `json:"operation,omitempty" path:"operation,omitempty" url:"operation,omitempty"`
	Output                  string     `json:"output,omitempty" path:"output,omitempty" url:"output,omitempty"`
	Path                    string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	Status                  string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	CreatedAt               *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

AutomationLog is a Files.com API resource.

func (AutomationLog) Identifier ¶ added in v3.1.48

func (a AutomationLog) Identifier() interface{}

Identifier returns the resource path.

func (*AutomationLog) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AutomationLogCollection ¶ added in v3.1.48

type AutomationLogCollection []AutomationLog

AutomationLogCollection is a list of AutomationLog resources.

func (*AutomationLogCollection) ToSlice ¶ added in v3.1.48

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

ToSlice returns a new slice containing the resources as interface values.

func (*AutomationLogCollection) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AutomationLogListParams ¶ added in v3.1.48

type AutomationLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

AutomationLogListParams contains the request parameters for GET /automation_logs.

type AutomationManualRunParams ¶

type AutomationManualRunParams struct {
	Id    int64                    `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Items []map[string]interface{} `url:"items,omitempty" json:"items,omitempty" path:"items"`
}

AutomationManualRunParams contains the request parameters for POST /automations/{id}/manual_run.

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"`
	AutomationVersionId  int64                     `json:"automation_version_id,omitempty" path:"automation_version_id,omitempty" url:"automation_version_id,omitempty"`
	Version              int64                     `json:"version,omitempty" path:"version,omitempty" url:"version,omitempty"`
	WorkspaceId          int64                     `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	CancelRequestedAt    *time.Time                `json:"cancel_requested_at,omitempty" path:"cancel_requested_at,omitempty" url:"cancel_requested_at,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"`
	RetryAt              *time.Time                `json:"retry_at,omitempty" path:"retry_at,omitempty" url:"retry_at,omitempty"`
	RetriedAt            *time.Time                `json:"retried_at,omitempty" path:"retried_at,omitempty" url:"retried_at,omitempty"`
	RetriedInRunId       int64                     `json:"retried_in_run_id,omitempty" path:"retried_in_run_id,omitempty" url:"retried_in_run_id,omitempty"`
	RetryOfRunId         int64                     `json:"retry_of_run_id,omitempty" path:"retry_of_run_id,omitempty" url:"retry_of_run_id,omitempty"`
	RerunOfRunId         int64                     `json:"rerun_of_run_id,omitempty" path:"rerun_of_run_id,omitempty" url:"rerun_of_run_id,omitempty"`
	RerunFromNodeId      string                    `json:"rerun_from_node_id,omitempty" path:"rerun_from_node_id,omitempty" url:"rerun_from_node_id,omitempty"`
	Runtime              float64                   `json:"runtime,omitempty" path:"runtime,omitempty" url:"runtime,omitempty"`
	Status               string                    `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	SuccessfulOperations int64                     `json:"successful_operations,omitempty" path:"successful_operations,omitempty" url:"successful_operations,omitempty"`
	FailedOperations     int64                     `json:"failed_operations,omitempty" path:"failed_operations,omitempty" url:"failed_operations,omitempty"`
	Definition           interface{}               `json:"definition,omitempty" path:"definition,omitempty" url:"definition,omitempty"`
	NodeStates           interface{}               `json:"node_states,omitempty" path:"node_states,omitempty" url:"node_states,omitempty"`
	ExecutionNodes       []AutomationExecutionNode `json:"execution_nodes,omitempty" path:"execution_nodes,omitempty" url:"execution_nodes,omitempty"`
	JournalUrl           string                    `json:"journal_url,omitempty" path:"journal_url,omitempty" url:"journal_url,omitempty"`
	StatusMessagesUrl    string                    `json:"status_messages_url,omitempty" path:"status_messages_url,omitempty" url:"status_messages_url,omitempty"`
}

AutomationRun is a Files.com API resource.

func (AutomationRun) Identifier ¶

func (a AutomationRun) Identifier() interface{}

Identifier returns the resource ID.

func (*AutomationRun) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type AutomationRunCancelParams ¶ added in v3.3.188

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

AutomationRunCancelParams contains the request parameters for POST /automation_runs/{id}/cancel.

Cancel Automation Run

type AutomationRunCollection ¶

type AutomationRunCollection []AutomationRun

AutomationRunCollection is a list of AutomationRun resources.

func (*AutomationRunCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*AutomationRunCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type AutomationRunFindNodeParams ¶ added in v3.3.191

type AutomationRunFindNodeParams struct {
	Id     int64  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	NodeId string `url:"node_id" json:"node_id" path:"node_id"`
}

AutomationRunFindNodeParams contains the request parameters for GET /automation_runs/{id}/node.

type AutomationRunFindParams ¶

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

AutomationRunFindParams contains the request parameters for GET /automation_runs/{id}.

type AutomationRunListParams ¶

type AutomationRunListParams struct {
	UserId       int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	AutomationId int64       `url:"automation_id" json:"automation_id" path:"automation_id"`
	ListParams
}

AutomationRunListParams contains the request parameters for GET /automation_runs.

type AutomationRunRerunParams ¶ added in v3.3.191

type AutomationRunRerunParams struct {
	Id     int64  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	NodeId string `url:"node_id" json:"node_id" path:"node_id"`
}

AutomationRunRerunParams contains the request parameters for POST /automation_runs/{id}/rerun.

Re-run Automation from Node

type AutomationTriggerEnum ¶

type AutomationTriggerEnum string

AutomationTriggerEnum is a string value for trigger. Enum lists the values documented by the API.

func (AutomationTriggerEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (AutomationTriggerEnum) String ¶

func (u AutomationTriggerEnum) String() string

String returns the API parameter value.

type AutomationUpdateParams ¶

type AutomationUpdateParams struct {
	Id                               int64                    `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Source                           string                   `url:"source,omitempty" json:"source,omitempty" path:"source"`
	Destinations                     []string                 `url:"destinations,omitempty" json:"destinations,omitempty" path:"destinations"`
	DestinationReplaceFrom           string                   `url:"destination_replace_from,omitempty" json:"destination_replace_from,omitempty" path:"destination_replace_from"`
	DestinationReplaceTo             string                   `url:"destination_replace_to,omitempty" json:"destination_replace_to,omitempty" path:"destination_replace_to"`
	Interval                         string                   `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	Path                             string                   `url:"path,omitempty" json:"path,omitempty" path:"path"`
	SyncIds                          string                   `url:"sync_ids,omitempty" json:"sync_ids,omitempty" path:"sync_ids"`
	UserIds                          string                   `url:"user_ids,omitempty" json:"user_ids,omitempty" path:"user_ids"`
	GroupIds                         string                   `url:"group_ids,omitempty" json:"group_ids,omitempty" path:"group_ids"`
	ScheduleId                       int64                    `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek               []int64                  `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimesOfDay               []string                 `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	ScheduleTimeZone                 string                   `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	HolidayRegion                    string                   `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
	AlwaysOverwriteSizeMatchingFiles *bool                    `` /* 150-byte string literal not displayed */
	AlwaysSerializeJobs              *bool                    `url:"always_serialize_jobs,omitempty" json:"always_serialize_jobs,omitempty" path:"always_serialize_jobs"`
	Description                      string                   `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Definition                       interface{}              `url:"definition,omitempty" json:"definition,omitempty" path:"definition"`
	Disabled                         *bool                    `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	ExcludePattern                   string                   `url:"exclude_pattern,omitempty" json:"exclude_pattern,omitempty" path:"exclude_pattern"`
	ImportUrls                       []map[string]interface{} `url:"import_urls,omitempty" json:"import_urls,omitempty" path:"import_urls"`
	FlattenDestinationStructure      *bool                    `` /* 129-byte string literal not displayed */
	IgnoreLockedFolders              *bool                    `url:"ignore_locked_folders,omitempty" json:"ignore_locked_folders,omitempty" path:"ignore_locked_folders"`
	LegacyFolderMatching             *bool                    `url:"legacy_folder_matching,omitempty" json:"legacy_folder_matching,omitempty" path:"legacy_folder_matching"`
	Name                             string                   `url:"name,omitempty" json:"name,omitempty" path:"name"`
	OverwriteFiles                   *bool                    `url:"overwrite_files,omitempty" json:"overwrite_files,omitempty" path:"overwrite_files"`
	PathTimeZone                     string                   `url:"path_time_zone,omitempty" json:"path_time_zone,omitempty" path:"path_time_zone"`
	RetryOnFailureIntervalInMinutes  int64                    `` /* 150-byte string literal not displayed */
	RetryOnFailureNumberOfAttempts   int64                    `` /* 147-byte string literal not displayed */
	Trigger                          AutomationTriggerEnum    `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	TriggerActions                   []string                 `url:"trigger_actions,omitempty" json:"trigger_actions,omitempty" path:"trigger_actions"`
	Value                            interface{}              `url:"value,omitempty" json:"value,omitempty" path:"value"`
	RecurringDay                     int64                    `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays                    []int64                  `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	Automation                       AutomationEnum           `url:"automation,omitempty" json:"automation,omitempty" path:"automation"`
}

AutomationUpdateParams contains the request parameters for PATCH /automations/{id}.

type AutomationUpgradeParams ¶ added in v3.3.192

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

AutomationUpgradeParams contains the request parameters for POST /automations/{id}/upgrade.

Upgrade a legacy Automation to Automation v2

type BandwidthSnapshot ¶

type BandwidthSnapshot struct {
	Id                int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	BytesReceived     int64      `json:"bytes_received,omitempty" path:"bytes_received,omitempty" url:"bytes_received,omitempty"`
	BytesSent         int64      `json:"bytes_sent,omitempty" path:"bytes_sent,omitempty" url:"bytes_sent,omitempty"`
	SyncBytesReceived int64      `json:"sync_bytes_received,omitempty" path:"sync_bytes_received,omitempty" url:"sync_bytes_received,omitempty"`
	SyncBytesSent     int64      `json:"sync_bytes_sent,omitempty" path:"sync_bytes_sent,omitempty" url:"sync_bytes_sent,omitempty"`
	RequestsGet       int64      `json:"requests_get,omitempty" path:"requests_get,omitempty" url:"requests_get,omitempty"`
	RequestsPut       int64      `json:"requests_put,omitempty" path:"requests_put,omitempty" url:"requests_put,omitempty"`
	RequestsOther     int64      `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"`
}

BandwidthSnapshot is a Files.com API resource.

func (BandwidthSnapshot) Identifier ¶

func (b BandwidthSnapshot) Identifier() interface{}

Identifier returns the resource ID.

func (*BandwidthSnapshot) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BandwidthSnapshotCollection ¶

type BandwidthSnapshotCollection []BandwidthSnapshot

BandwidthSnapshotCollection is a list of BandwidthSnapshot resources.

func (*BandwidthSnapshotCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*BandwidthSnapshotCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BandwidthSnapshotListParams ¶

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

BandwidthSnapshotListParams contains the request parameters for GET /bandwidth_snapshots.

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                       interface{} `json:"value,omitempty" path:"value,omitempty" url:"value,omitempty"`
	PublicHostingUrl            string      `json:"public_hosting_url,omitempty" path:"public_hosting_url,omitempty" url:"public_hosting_url,omitempty"`
	DisableParentFolderBehavior *bool       `` /* 142-byte string literal not displayed */
	Recursive                   *bool       `json:"recursive,omitempty" path:"recursive,omitempty" url:"recursive,omitempty"`
	Inherited                   *bool       `json:"inherited,omitempty" path:"inherited,omitempty" url:"inherited,omitempty"`
	Managed                     *bool       `json:"managed,omitempty" path:"managed,omitempty" url:"managed,omitempty"`
	RootBehaviorSiteAdminOnly   *bool       `` /* 139-byte string literal not displayed */
	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"`
}

Behavior is a Files.com API resource.

func (Behavior) Identifier ¶

func (b Behavior) Identifier() interface{}

Identifier returns the resource ID.

func (*Behavior) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BehaviorCollection ¶

type BehaviorCollection []Behavior

BehaviorCollection is a list of Behavior resources.

func (*BehaviorCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*BehaviorCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BehaviorCreateParams ¶

type BehaviorCreateParams struct {
	Value          interface{} `url:"value,omitempty" json:"value,omitempty" path:"value"`
	AttachmentFile io.Writer   `url:"attachment_file,omitempty" json:"attachment_file,omitempty" path:"attachment_file"`
	// AttachmentFileAttachment sends file content as attachment_file; see lib.JSONAttachment. Leave AttachmentFile nil when you set it.
	AttachmentFileAttachment    *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"attachment_file"`
	DisableParentFolderBehavior *bool               `` /* 132-byte string literal not displayed */
	Recursive                   *bool               `url:"recursive,omitempty" json:"recursive,omitempty" path:"recursive"`
	Name                        string              `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description                 string              `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Path                        string              `url:"path" json:"path" path:"path"`
	Behavior                    string              `url:"behavior" json:"behavior" path:"behavior"`
}

BehaviorCreateParams contains the request parameters for POST /behaviors.

type BehaviorDeleteParams ¶

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

BehaviorDeleteParams contains the request parameters for DELETE /behaviors/{id}.

type BehaviorFindParams ¶

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

BehaviorFindParams contains the request parameters for GET /behaviors/{id}.

type BehaviorListForParams ¶

type BehaviorListForParams struct {
	SortBy            interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter            interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	Path              string      `url:"-,omitempty" json:"-,omitempty" path:"path"`
	AncestorBehaviors *bool       `url:"ancestor_behaviors,omitempty" json:"ancestor_behaviors,omitempty" path:"ancestor_behaviors"`
	ListParams
}

BehaviorListForParams contains the request parameters for GET /behaviors/folders/{path}.

type BehaviorListParams ¶

type BehaviorListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

BehaviorListParams contains the request parameters for GET /behaviors.

type BehaviorUpdateParams ¶

type BehaviorUpdateParams struct {
	Id             int64       `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Value          interface{} `url:"value,omitempty" json:"value,omitempty" path:"value"`
	AttachmentFile io.Writer   `url:"attachment_file,omitempty" json:"attachment_file,omitempty" path:"attachment_file"`
	// AttachmentFileAttachment sends file content as attachment_file; see lib.JSONAttachment. Leave AttachmentFile nil when you set it.
	AttachmentFileAttachment    *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"attachment_file"`
	DisableParentFolderBehavior *bool               `` /* 132-byte string literal not displayed */
	Recursive                   *bool               `url:"recursive,omitempty" json:"recursive,omitempty" path:"recursive"`
	Name                        string              `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description                 string              `url:"description,omitempty" json:"description,omitempty" path:"description"`
	AttachmentDelete            *bool               `url:"attachment_delete,omitempty" json:"attachment_delete,omitempty" path:"attachment_delete"`
}

BehaviorUpdateParams contains the request parameters for PATCH /behaviors/{id}.

type BehaviorWebhookTestParams ¶

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

BehaviorWebhookTestParams contains the request parameters for POST /behaviors/webhook/test.

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"`
	BypassesSiteExpirationRules                  *bool                    `` /* 142-byte string literal not displayed */
	CreatedAt                                    *time.Time               `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Deleted                                      *bool                    `json:"deleted,omitempty" path:"deleted,omitempty" url:"deleted,omitempty"`
	DeletedAt                                    *time.Time               `json:"deleted_at,omitempty" path:"deleted_at,omitempty" url:"deleted_at,omitempty"`
	DontSeparateSubmissionsByFolder              *bool                    `` /* 157-byte string literal not displayed */
	EffectiveExpiresAt                           *time.Time               `json:"effective_expires_at,omitempty" path:"effective_expires_at,omitempty" url:"effective_expires_at,omitempty"`
	MaxUses                                      int64                    `json:"max_uses,omitempty" path:"max_uses,omitempty" url:"max_uses,omitempty"`
	InternalName                                 string                   `json:"internal_name,omitempty" path:"internal_name,omitempty" url:"internal_name,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"`
	PathTemplateTimeZone                         string                   `json:"path_template_time_zone,omitempty" path:"path_template_time_zone,omitempty" url:"path_template_time_zone,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"`
	GroupId                                      int64                    `json:"group_id,omitempty" path:"group_id,omitempty" url:"group_id,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                               interface{}              `json:"watermark_value,omitempty" path:"watermark_value,omitempty" url:"watermark_value,omitempty"`
	SendOneTimePasswordToRecipientAtRegistration *bool                    `` /* 205-byte string literal not displayed */
	WorkspaceId                                  int64                    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	HasInbox                                     *bool                    `json:"has_inbox,omitempty" path:"has_inbox,omitempty" url:"has_inbox,omitempty"`
	DontAllowFoldersInUploads                    *bool                    `` /* 139-byte string literal not displayed */
	RequestedUploadSlots                         []map[string]interface{} `json:"requested_upload_slots,omitempty" path:"requested_upload_slots,omitempty" url:"requested_upload_slots,omitempty"`
	Paths                                        []string                 `json:"paths,omitempty" path:"paths,omitempty" url:"paths,omitempty"`
	Bundlepaths                                  []BundlePath             `json:"bundlepaths,omitempty" path:"bundlepaths,omitempty" url:"bundlepaths,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 */
}

Bundle is a Files.com API resource.

func (Bundle) Identifier ¶

func (b Bundle) Identifier() interface{}

Identifier returns the resource ID.

func (*Bundle) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BundleAction ¶ added in v3.1.58

type BundleAction struct {
	Action                  string             `json:"action,omitempty" path:"action,omitempty" url:"action,omitempty"`
	BundleRegistration      BundleRegistration `json:"bundle_registration,omitempty" path:"bundle_registration,omitempty" url:"bundle_registration,omitempty"`
	CreatedAt               *time.Time         `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Destination             string             `json:"destination,omitempty" path:"destination,omitempty" url:"destination,omitempty"`
	Path                    string             `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	Source                  string             `json:"source,omitempty" path:"source,omitempty" url:"source,omitempty"`
	BundleRegistrationId    int64              `json:"bundle_registration_id,omitempty" path:"bundle_registration_id,omitempty" url:"bundle_registration_id,omitempty"`
	WorkspaceId             int64              `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	BundleRegistrationName  string             `json:"bundle_registration_name,omitempty" path:"bundle_registration_name,omitempty" url:"bundle_registration_name,omitempty"`
	BundleRegistrationEmail string             `` /* 127-byte string literal not displayed */
	BundleRegistrationIp    string             `json:"bundle_registration_ip,omitempty" path:"bundle_registration_ip,omitempty" url:"bundle_registration_ip,omitempty"`
	FormFieldSetId          int64              `json:"form_field_set_id,omitempty" path:"form_field_set_id,omitempty" url:"form_field_set_id,omitempty"`
	FormFieldData           interface{}        `json:"form_field_data,omitempty" path:"form_field_data,omitempty" url:"form_field_data,omitempty"`
}

BundleAction is a Files.com API resource.

func (BundleAction) Identifier ¶ added in v3.1.58

func (b BundleAction) Identifier() interface{}

Identifier returns the resource path.

func (*BundleAction) UnmarshalJSON ¶ added in v3.1.58

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BundleActionCollection ¶ added in v3.1.58

type BundleActionCollection []BundleAction

BundleActionCollection is a list of BundleAction resources.

func (*BundleActionCollection) ToSlice ¶ added in v3.1.58

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

ToSlice returns a new slice containing the resources as interface values.

func (*BundleActionCollection) UnmarshalJSON ¶ added in v3.1.58

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BundleActionListParams ¶ added in v3.1.58

type BundleActionListParams struct {
	UserId               int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy               interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter               interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt             interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq           interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt             interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq           interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	BundleId             int64       `url:"bundle_id,omitempty" json:"bundle_id,omitempty" path:"bundle_id"`
	BundleRegistrationId int64       `url:"bundle_registration_id,omitempty" json:"bundle_registration_id,omitempty" path:"bundle_registration_id"`
	ListParams
}

BundleActionListParams contains the request parameters for GET /bundle_actions.

type BundleCollection ¶

type BundleCollection []Bundle

BundleCollection is a list of Bundle resources.

func (*BundleCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*BundleCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BundleCreateParams ¶

type BundleCreateParams struct {
	UserId                                       int64                 `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Paths                                        []string              `url:"paths" json:"paths" path:"paths"`
	Password                                     string                `url:"password,omitempty" json:"password,omitempty" path:"password"`
	BypassesSiteExpirationRules                  *bool                 `` /* 132-byte string literal not displayed */
	FormFieldSetId                               int64                 `url:"form_field_set_id,omitempty" json:"form_field_set_id,omitempty" path:"form_field_set_id"`
	CreateSnapshot                               *bool                 `url:"create_snapshot,omitempty" json:"create_snapshot,omitempty" path:"create_snapshot"`
	DontSeparateSubmissionsByFolder              *bool                 `` /* 147-byte string literal not displayed */
	ExpiresAt                                    *time.Time            `url:"expires_at,omitempty" json:"expires_at,omitempty" path:"expires_at"`
	FinalizeSnapshot                             *bool                 `url:"finalize_snapshot,omitempty" json:"finalize_snapshot,omitempty" path:"finalize_snapshot"`
	MaxUses                                      int64                 `url:"max_uses,omitempty" json:"max_uses,omitempty" path:"max_uses"`
	GroupId                                      int64                 `url:"group_id,omitempty" json:"group_id,omitempty" path:"group_id"`
	InternalName                                 string                `url:"internal_name,omitempty" json:"internal_name,omitempty" path:"internal_name"`
	Description                                  string                `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Note                                         string                `url:"note,omitempty" json:"note,omitempty" path:"note"`
	Code                                         string                `url:"code,omitempty" json:"code,omitempty" path:"code"`
	PathTemplate                                 string                `url:"path_template,omitempty" json:"path_template,omitempty" path:"path_template"`
	PathTemplateTimeZone                         string                `url:"path_template_time_zone,omitempty" json:"path_template_time_zone,omitempty" path:"path_template_time_zone"`
	Permissions                                  BundlePermissionsEnum `url:"permissions,omitempty" json:"permissions,omitempty" path:"permissions"`
	RequireRegistration                          *bool                 `url:"require_registration,omitempty" json:"require_registration,omitempty" path:"require_registration"`
	ClickwrapId                                  int64                 `url:"clickwrap_id,omitempty" json:"clickwrap_id,omitempty" path:"clickwrap_id"`
	InboxId                                      int64                 `url:"inbox_id,omitempty" json:"inbox_id,omitempty" path:"inbox_id"`
	RequireShareRecipient                        *bool                 `url:"require_share_recipient,omitempty" json:"require_share_recipient,omitempty" path:"require_share_recipient"`
	SendOneTimePasswordToRecipientAtRegistration *bool                 `` /* 195-byte string literal not displayed */
	SendEmailReceiptToUploader                   *bool                 `` /* 132-byte string literal not displayed */
	SkipEmail                                    *bool                 `url:"skip_email,omitempty" json:"skip_email,omitempty" path:"skip_email"`
	SkipName                                     *bool                 `url:"skip_name,omitempty" json:"skip_name,omitempty" path:"skip_name"`
	SkipCompany                                  *bool                 `url:"skip_company,omitempty" json:"skip_company,omitempty" path:"skip_company"`
	StartAccessOnDate                            *time.Time            `url:"start_access_on_date,omitempty" json:"start_access_on_date,omitempty" path:"start_access_on_date"`
	SnapshotId                                   int64                 `url:"snapshot_id,omitempty" json:"snapshot_id,omitempty" path:"snapshot_id"`
	WorkspaceId                                  int64                 `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	WatermarkAttachmentFile                      io.Writer             `url:"watermark_attachment_file,omitempty" json:"watermark_attachment_file,omitempty" path:"watermark_attachment_file"`
	// WatermarkAttachmentFileAttachment sends file content as watermark_attachment_file; see lib.JSONAttachment. Leave WatermarkAttachmentFile nil when you set it.
	WatermarkAttachmentFileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"watermark_attachment_file"`
	WatermarkValue                    interface{}         `url:"watermark_value,omitempty" json:"watermark_value,omitempty" path:"watermark_value"`
}

BundleCreateParams contains the request parameters for POST /bundles.

type BundleDeleteParams ¶

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

BundleDeleteParams contains the request parameters for DELETE /bundles/{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"`
	WorkspaceId        int64              `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	CreatedAt          *time.Time         `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

BundleDownload is a Files.com API resource.

func (BundleDownload) Identifier ¶

func (b BundleDownload) Identifier() interface{}

Identifier returns the resource path.

func (*BundleDownload) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BundleDownloadCollection ¶

type BundleDownloadCollection []BundleDownload

BundleDownloadCollection is a list of BundleDownload resources.

func (*BundleDownloadCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*BundleDownloadCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BundleDownloadListParams ¶

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

BundleDownloadListParams contains the request parameters for GET /bundle_downloads.

type BundleFindParams ¶

type BundleFindParams struct {
	Id      int64 `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Deleted *bool `url:"deleted,omitempty" json:"deleted,omitempty" path:"deleted"`
}

BundleFindParams contains the request parameters for GET /bundles/{id}.

type BundleListParams ¶

type BundleListParams struct {
	UserId       int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	Deleted      *bool       `url:"deleted,omitempty" json:"deleted,omitempty" path:"deleted"`
	ListParams
}

BundleListParams contains the request parameters for GET /bundles.

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"`
	NotifyCurrentUser    *bool `json:"notify_current_user,omitempty" path:"notify_current_user,omitempty" url:"notify_current_user,omitempty"`
	NotifyUserId         int64 `json:"notify_user_id,omitempty" path:"notify_user_id,omitempty" url:"notify_user_id,omitempty"`
	WorkspaceId          int64 `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	UserId               int64 `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
}

BundleNotification is a Files.com API resource.

func (BundleNotification) Identifier ¶

func (b BundleNotification) Identifier() interface{}

Identifier returns the resource ID.

func (*BundleNotification) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BundleNotificationCollection ¶

type BundleNotificationCollection []BundleNotification

BundleNotificationCollection is a list of BundleNotification resources.

func (*BundleNotificationCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*BundleNotificationCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BundleNotificationCreateParams ¶

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

BundleNotificationCreateParams contains the request parameters for POST /bundle_notifications.

type BundleNotificationDeleteParams ¶

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

BundleNotificationDeleteParams contains the request parameters for DELETE /bundle_notifications/{id}.

type BundleNotificationFindParams ¶

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

BundleNotificationFindParams contains the request parameters for GET /bundle_notifications/{id}.

type BundleNotificationListParams ¶

type BundleNotificationListParams struct {
	UserId   int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy   interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter   interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	BundleId int64       `url:"bundle_id,omitempty" json:"bundle_id,omitempty" path:"bundle_id"`
	ListParams
}

BundleNotificationListParams contains the request parameters for GET /bundle_notifications.

type BundleNotificationUpdateParams ¶

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

BundleNotificationUpdateParams contains the request parameters for PATCH /bundle_notifications/{id}.

type BundlePath ¶ added in v3.1.49

type BundlePath struct {
	Recursive *bool  `json:"recursive,omitempty" path:"recursive,omitempty" url:"recursive,omitempty"`
	Path      string `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
}

BundlePath is a Files.com API resource.

func (BundlePath) Identifier ¶ added in v3.1.49

func (b BundlePath) Identifier() interface{}

Identifier returns the resource path.

func (*BundlePath) UnmarshalJSON ¶ added in v3.1.49

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BundlePathCollection ¶ added in v3.1.49

type BundlePathCollection []BundlePath

BundlePathCollection is a list of BundlePath resources.

func (*BundlePathCollection) ToSlice ¶ added in v3.1.49

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

ToSlice returns a new slice containing the resources as interface values.

func (*BundlePathCollection) UnmarshalJSON ¶ added in v3.1.49

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BundlePermissionsEnum ¶

type BundlePermissionsEnum string

BundlePermissionsEnum is a string value for permissions. Enum lists the values documented by the API.

func (BundlePermissionsEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (BundlePermissionsEnum) String ¶

func (u BundlePermissionsEnum) String() string

String returns the API parameter value.

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"`
	WorkspaceId      int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,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"`
	ShareAfterCreate *bool      `json:"share_after_create,omitempty" path:"share_after_create,omitempty" url:"share_after_create,omitempty"`
}

BundleRecipient is a Files.com API resource.

func (*BundleRecipient) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BundleRecipientCollection ¶

type BundleRecipientCollection []BundleRecipient

BundleRecipientCollection is a list of BundleRecipient resources.

func (*BundleRecipientCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*BundleRecipientCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BundleRecipientCreateParams ¶

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

BundleRecipientCreateParams contains the request parameters for POST /bundle_recipients.

type BundleRecipientListParams ¶

type BundleRecipientListParams struct {
	UserId   int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy   interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter   interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	BundleId int64       `url:"bundle_id" json:"bundle_id" path:"bundle_id"`
	ListParams
}

BundleRecipientListParams contains the request parameters for GET /bundle_recipients.

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     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"`
	WorkspaceId       int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	CreatedAt         *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

BundleRegistration is a Files.com API resource.

func (*BundleRegistration) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type BundleRegistrationCollection ¶

type BundleRegistrationCollection []BundleRegistration

BundleRegistrationCollection is a list of BundleRegistration resources.

func (*BundleRegistrationCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*BundleRegistrationCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type BundleRegistrationListParams ¶

type BundleRegistrationListParams struct {
	UserId   int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy   interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	BundleId int64       `url:"bundle_id,omitempty" json:"bundle_id,omitempty" path:"bundle_id"`
	ListParams
}

BundleRegistrationListParams contains the request parameters for GET /bundle_registrations.

type BundleShareParams ¶

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

BundleShareParams contains the request parameters for POST /bundles/{id}/share.

Send email(s) with a link to bundle

type BundleUpdateParams ¶

type BundleUpdateParams struct {
	Id                                           int64                 `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Paths                                        []string              `url:"paths,omitempty" json:"paths,omitempty" path:"paths"`
	Password                                     string                `url:"password,omitempty" json:"password,omitempty" path:"password"`
	BypassesSiteExpirationRules                  *bool                 `` /* 132-byte string literal not displayed */
	FormFieldSetId                               int64                 `url:"form_field_set_id,omitempty" json:"form_field_set_id,omitempty" path:"form_field_set_id"`
	ClickwrapId                                  int64                 `url:"clickwrap_id,omitempty" json:"clickwrap_id,omitempty" path:"clickwrap_id"`
	Code                                         string                `url:"code,omitempty" json:"code,omitempty" path:"code"`
	CreateSnapshot                               *bool                 `url:"create_snapshot,omitempty" json:"create_snapshot,omitempty" path:"create_snapshot"`
	Description                                  string                `url:"description,omitempty" json:"description,omitempty" path:"description"`
	DontSeparateSubmissionsByFolder              *bool                 `` /* 147-byte string literal not displayed */
	ExpiresAt                                    *time.Time            `url:"expires_at,omitempty" json:"expires_at,omitempty" path:"expires_at"`
	FinalizeSnapshot                             *bool                 `url:"finalize_snapshot,omitempty" json:"finalize_snapshot,omitempty" path:"finalize_snapshot"`
	InboxId                                      int64                 `url:"inbox_id,omitempty" json:"inbox_id,omitempty" path:"inbox_id"`
	MaxUses                                      int64                 `url:"max_uses,omitempty" json:"max_uses,omitempty" path:"max_uses"`
	GroupId                                      int64                 `url:"group_id,omitempty" json:"group_id,omitempty" path:"group_id"`
	InternalName                                 string                `url:"internal_name,omitempty" json:"internal_name,omitempty" path:"internal_name"`
	Note                                         string                `url:"note,omitempty" json:"note,omitempty" path:"note"`
	PathTemplate                                 string                `url:"path_template,omitempty" json:"path_template,omitempty" path:"path_template"`
	PathTemplateTimeZone                         string                `url:"path_template_time_zone,omitempty" json:"path_template_time_zone,omitempty" path:"path_template_time_zone"`
	Permissions                                  BundlePermissionsEnum `url:"permissions,omitempty" json:"permissions,omitempty" path:"permissions"`
	RequireRegistration                          *bool                 `url:"require_registration,omitempty" json:"require_registration,omitempty" path:"require_registration"`
	RequireShareRecipient                        *bool                 `url:"require_share_recipient,omitempty" json:"require_share_recipient,omitempty" path:"require_share_recipient"`
	SendOneTimePasswordToRecipientAtRegistration *bool                 `` /* 195-byte string literal not displayed */
	SendEmailReceiptToUploader                   *bool                 `` /* 132-byte string literal not displayed */
	SkipCompany                                  *bool                 `url:"skip_company,omitempty" json:"skip_company,omitempty" path:"skip_company"`
	StartAccessOnDate                            *time.Time            `url:"start_access_on_date,omitempty" json:"start_access_on_date,omitempty" path:"start_access_on_date"`
	SkipEmail                                    *bool                 `url:"skip_email,omitempty" json:"skip_email,omitempty" path:"skip_email"`
	SkipName                                     *bool                 `url:"skip_name,omitempty" json:"skip_name,omitempty" path:"skip_name"`
	UserId                                       int64                 `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	WatermarkAttachmentDelete                    *bool                 `url:"watermark_attachment_delete,omitempty" json:"watermark_attachment_delete,omitempty" path:"watermark_attachment_delete"`
	WatermarkAttachmentFile                      io.Writer             `url:"watermark_attachment_file,omitempty" json:"watermark_attachment_file,omitempty" path:"watermark_attachment_file"`
	// WatermarkAttachmentFileAttachment sends file content as watermark_attachment_file; see lib.JSONAttachment. Leave WatermarkAttachmentFile nil when you set it.
	WatermarkAttachmentFileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"watermark_attachment_file"`
	WatermarkValue                    interface{}         `url:"watermark_value,omitempty" json:"watermark_value,omitempty" path:"watermark_value"`
	WorkspaceId                       int64               `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

BundleUpdateParams contains the request parameters for PATCH /bundles/{id}.

type CallParams ¶

type CallParams struct {
	Method string
	Config Config
	Uri    string
	Params lib.Values
	BodyIo io.ReadCloser
	// RetryableBody builds a fresh body reader for retries.
	// Leave nil unless this request needs retryable streaming body support.
	RetryableBody retryablehttp.ReaderFunc
	// Client overrides the HTTP client for this raw request.
	// Leave nil to use the configured SDK client.
	Client  *retryablehttp.Client
	Headers *http.Header
	context.Context
}

CallParams describes a raw HTTP request, including its body, context, and retry client.

type ChatMessage ¶ added in v3.3.159

type ChatMessage struct {
	Id        int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Role      string     `json:"role,omitempty" path:"role,omitempty" url:"role,omitempty"`
	Content   string     `json:"content,omitempty" path:"content,omitempty" url:"content,omitempty"`
	CreatedAt *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

ChatMessage is a Files.com API resource.

func (ChatMessage) Identifier ¶ added in v3.3.159

func (c ChatMessage) Identifier() interface{}

Identifier returns the resource ID.

func (*ChatMessage) UnmarshalJSON ¶ added in v3.3.159

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ChatMessageCollection ¶ added in v3.3.159

type ChatMessageCollection []ChatMessage

ChatMessageCollection is a list of ChatMessage resources.

func (*ChatMessageCollection) ToSlice ¶ added in v3.3.159

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

ToSlice returns a new slice containing the resources as interface values.

func (*ChatMessageCollection) UnmarshalJSON ¶ added in v3.3.159

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ChatSession ¶ added in v3.3.159

type ChatSession struct {
	Id           string        `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Title        string        `json:"title,omitempty" path:"title,omitempty" url:"title,omitempty"`
	UserId       int64         `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	AiTaskId     int64         `json:"ai_task_id,omitempty" path:"ai_task_id,omitempty" url:"ai_task_id,omitempty"`
	WorkspaceId  int64         `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	LastActiveAt *time.Time    `json:"last_active_at,omitempty" path:"last_active_at,omitempty" url:"last_active_at,omitempty"`
	CreatedAt    *time.Time    `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	Messages     []ChatMessage `json:"messages,omitempty" path:"messages,omitempty" url:"messages,omitempty"`
}

ChatSession is a Files.com API resource.

func (ChatSession) Identifier ¶ added in v3.3.159

func (c ChatSession) Identifier() interface{}

Identifier returns the resource ID.

func (*ChatSession) UnmarshalJSON ¶ added in v3.3.159

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ChatSessionCollection ¶ added in v3.3.159

type ChatSessionCollection []ChatSession

ChatSessionCollection is a list of ChatSession resources.

func (*ChatSessionCollection) ToSlice ¶ added in v3.3.159

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

ToSlice returns a new slice containing the resources as interface values.

func (*ChatSessionCollection) UnmarshalJSON ¶ added in v3.3.159

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ChatSessionFindParams ¶ added in v3.3.159

type ChatSessionFindParams struct {
	Id string `url:"-,omitempty" json:"-,omitempty" path:"id"`
}

ChatSessionFindParams contains the request parameters for GET /chat_sessions/{id}.

type ChatSessionListParams ¶ added in v3.3.159

type ChatSessionListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

ChatSessionListParams contains the request parameters for GET /chat_sessions.

type ChildSiteManagementPolicy ¶ added in v3.2.207

type ChildSiteManagementPolicy struct {
	Id                  int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	PolicyType          string      `json:"policy_type,omitempty" path:"policy_type,omitempty" url:"policy_type,omitempty"`
	Name                string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Description         string      `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	Value               interface{} `json:"value,omitempty" path:"value,omitempty" url:"value,omitempty"`
	AppliedChildSiteIds []int64     `json:"applied_child_site_ids,omitempty" path:"applied_child_site_ids,omitempty" url:"applied_child_site_ids,omitempty"`
	SkipChildSiteIds    []int64     `json:"skip_child_site_ids,omitempty" path:"skip_child_site_ids,omitempty" url:"skip_child_site_ids,omitempty"`
	ChildSiteIds        []int64     `json:"child_site_ids,omitempty" path:"child_site_ids,omitempty" url:"child_site_ids,omitempty"`
	DefaultPolicy       *bool       `json:"default_policy,omitempty" path:"default_policy,omitempty" url:"default_policy,omitempty"`
	CreatedAt           *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt           *time.Time  `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

ChildSiteManagementPolicy is a Files.com API resource.

func (ChildSiteManagementPolicy) Identifier ¶ added in v3.2.207

func (c ChildSiteManagementPolicy) Identifier() interface{}

Identifier returns the resource ID.

func (*ChildSiteManagementPolicy) UnmarshalJSON ¶ added in v3.2.207

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ChildSiteManagementPolicyCollection ¶ added in v3.2.207

type ChildSiteManagementPolicyCollection []ChildSiteManagementPolicy

ChildSiteManagementPolicyCollection is a list of ChildSiteManagementPolicy resources.

func (*ChildSiteManagementPolicyCollection) ToSlice ¶ added in v3.2.207

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

ToSlice returns a new slice containing the resources as interface values.

func (*ChildSiteManagementPolicyCollection) UnmarshalJSON ¶ added in v3.2.207

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ChildSiteManagementPolicyCreateParams ¶ added in v3.2.207

type ChildSiteManagementPolicyCreateParams struct {
	Value            interface{}                             `url:"value,omitempty" json:"value,omitempty" path:"value"`
	SkipChildSiteIds []int64                                 `url:"skip_child_site_ids,omitempty" json:"skip_child_site_ids,omitempty" path:"skip_child_site_ids"`
	ChildSiteIds     []int64                                 `url:"child_site_ids,omitempty" json:"child_site_ids,omitempty" path:"child_site_ids"`
	DefaultPolicy    *bool                                   `url:"default_policy,omitempty" json:"default_policy,omitempty" path:"default_policy"`
	PolicyType       ChildSiteManagementPolicyPolicyTypeEnum `url:"policy_type" json:"policy_type" path:"policy_type"`
	Name             string                                  `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description      string                                  `url:"description,omitempty" json:"description,omitempty" path:"description"`
}

ChildSiteManagementPolicyCreateParams contains the request parameters for POST /child_site_management_policies.

type ChildSiteManagementPolicyDeleteParams ¶ added in v3.2.207

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

ChildSiteManagementPolicyDeleteParams contains the request parameters for DELETE /child_site_management_policies/{id}.

type ChildSiteManagementPolicyFindParams ¶ added in v3.2.207

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

ChildSiteManagementPolicyFindParams contains the request parameters for GET /child_site_management_policies/{id}.

type ChildSiteManagementPolicyListParams ¶ added in v3.2.207

type ChildSiteManagementPolicyListParams struct {
	ListParams
}

ChildSiteManagementPolicyListParams contains the request parameters for GET /child_site_management_policies.

type ChildSiteManagementPolicyPolicyTypeEnum ¶ added in v3.2.242

type ChildSiteManagementPolicyPolicyTypeEnum string

ChildSiteManagementPolicyPolicyTypeEnum is a string value for policy_type. Enum lists the values documented by the API.

func (ChildSiteManagementPolicyPolicyTypeEnum) Enum ¶ added in v3.2.242

Enum returns the documented values keyed by their API strings.

func (ChildSiteManagementPolicyPolicyTypeEnum) String ¶ added in v3.2.242

String returns the API parameter value.

type ChildSiteManagementPolicyUpdateParams ¶ added in v3.2.207

type ChildSiteManagementPolicyUpdateParams struct {
	Id               int64                                   `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Value            interface{}                             `url:"value,omitempty" json:"value,omitempty" path:"value"`
	SkipChildSiteIds []int64                                 `url:"skip_child_site_ids,omitempty" json:"skip_child_site_ids,omitempty" path:"skip_child_site_ids"`
	ChildSiteIds     []int64                                 `url:"child_site_ids,omitempty" json:"child_site_ids,omitempty" path:"child_site_ids"`
	DefaultPolicy    *bool                                   `url:"default_policy,omitempty" json:"default_policy,omitempty" path:"default_policy"`
	PolicyType       ChildSiteManagementPolicyPolicyTypeEnum `url:"policy_type,omitempty" json:"policy_type,omitempty" path:"policy_type"`
	Name             string                                  `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description      string                                  `url:"description,omitempty" json:"description,omitempty" path:"description"`
}

ChildSiteManagementPolicyUpdateParams contains the request parameters for PATCH /child_site_management_policies/{id}.

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"`
}

Clickwrap is a Files.com API resource.

func (Clickwrap) Identifier ¶

func (c Clickwrap) Identifier() interface{}

Identifier returns the resource ID.

func (*Clickwrap) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ClickwrapCollection ¶

type ClickwrapCollection []Clickwrap

ClickwrapCollection is a list of Clickwrap resources.

func (*ClickwrapCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ClickwrapCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ClickwrapCreateParams ¶

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

ClickwrapCreateParams contains the request parameters for POST /clickwraps.

type ClickwrapDeleteParams ¶

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

ClickwrapDeleteParams contains the request parameters for DELETE /clickwraps/{id}.

type ClickwrapFindParams ¶

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

ClickwrapFindParams contains the request parameters for GET /clickwraps/{id}.

type ClickwrapListParams ¶

type ClickwrapListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

ClickwrapListParams contains the request parameters for GET /clickwraps.

type ClickwrapUpdateParams ¶

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

ClickwrapUpdateParams contains the request parameters for PATCH /clickwraps/{id}.

type ClickwrapUseWithBundlesEnum ¶

type ClickwrapUseWithBundlesEnum string

ClickwrapUseWithBundlesEnum is a string value for use_with_bundles. Enum lists the values documented by the API.

func (ClickwrapUseWithBundlesEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (ClickwrapUseWithBundlesEnum) String ¶

String returns the API parameter value.

type ClickwrapUseWithInboxesEnum ¶

type ClickwrapUseWithInboxesEnum string

ClickwrapUseWithInboxesEnum is a string value for use_with_inboxes. Enum lists the values documented by the API.

func (ClickwrapUseWithInboxesEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (ClickwrapUseWithInboxesEnum) String ¶

String returns the API parameter value.

type ClickwrapUseWithUsersEnum ¶

type ClickwrapUseWithUsersEnum string

ClickwrapUseWithUsersEnum is a string value for use_with_users. Enum lists the values documented by the API.

func (ClickwrapUseWithUsersEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (ClickwrapUseWithUsersEnum) String ¶

func (u ClickwrapUseWithUsersEnum) String() string

String returns the API parameter value.

type Config ¶

type Config struct {
	APIKey    string `header:"X-FilesAPI-Key" json:"api_key"`
	SessionId string `header:"X-FilesAPI-Auth" json:"session_id"`
	// WorkspaceId scopes Files.com API requests when non-zero.
	WorkspaceId      int64  `header:"X-Files-Workspace-Id" json:"workspace_id,omitempty"`
	Language         string `header:"Accept-Language"`
	Subdomain        string `json:"subdomain"`
	EndpointOverride string `json:"endpoint_override"`
	*retryablehttp.Client
	AdditionalHeaders map[string]string `json:"additional_headers"`
	// Logger receives SDK diagnostics. Init uses a logger that discards output when this is nil.
	lib.Logger
	// Debug enables detailed request and response diagnostics, which may contain credentials
	// and signed URLs. FILES_SDK_DEBUG also enables these diagnostics. SDK retry log entries
	// at INFO, WARN, and ERROR still redact request URLs and credentials.
	Debug        bool   `json:"debug"`
	UserAgent    string `json:"user_agents"`
	Environment  `json:"environment"`
	FeatureFlags map[string]bool `json:"feature_flags"`
	// DisableDirectTransfers forces upload and download requests to use proxied transfer paths.
	DisableDirectTransfers bool `json:"disable_direct_transfers"`
}

Config controls Files.com API authentication, workspace scoping, and transport behavior.

var GlobalConfig Config

func (Config) Do ¶

func (c Config) Do(req *http.Request) (*http.Response, error)

Do sends req through the configured retry client with redirect handling. The caller must close the returned response body. Outside debug mode, returned URL errors redact the request URL while preserving the operation and cause. Retry log entries above DEBUG redact request URLs and credentials in either mode.

func (Config) Endpoint ¶

func (c Config) Endpoint() string

func (Config) FeatureFlag ¶

func (c Config) FeatureFlag(flag string) bool

func (Config) GetAPIKey ¶

func (c Config) GetAPIKey() string

func (Config) InDebug ¶

func (c Config) InDebug() bool

InDebug reports whether Debug is set or FILES_SDK_DEBUG is non-empty. A logger with levels controls which retry DEBUG entries it displays independently of this setting. A Printf-only logger receives retry DEBUG entries only in debug mode.

func (Config) Init ¶

func (c Config) Init() Config

Init returns a copy of c with defaults for its logger, retry client, feature flags, and user agent. It preserves values already supplied by the caller.

func (Config) LogPath ¶

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

func (Config) RootPath ¶

func (c Config) RootPath() string

func (Config) SetCustomClient ¶

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

func (Config) SetHeaders ¶

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

func (Config) SetHeadersForRequest ¶ added in v3.3.105

func (c Config) SetHeadersForRequest(req *http.Request)

func (Config) SetUserAgentHeader ¶ added in v3.3.103

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

type CustomDomain ¶ added in v3.3.150

type CustomDomain struct {
	Id                       int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId              int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	AvailableToAllWorkspaces *bool      `` /* 133-byte string literal not displayed */
	OutboundIpAddresses      []string   `json:"outbound_ip_addresses,omitempty" path:"outbound_ip_addresses,omitempty" url:"outbound_ip_addresses,omitempty"`
	Domain                   string     `json:"domain,omitempty" path:"domain,omitempty" url:"domain,omitempty"`
	Destination              string     `json:"destination,omitempty" path:"destination,omitempty" url:"destination,omitempty"`
	DnsStatus                string     `json:"dns_status,omitempty" path:"dns_status,omitempty" url:"dns_status,omitempty"`
	SslCertificateId         int64      `json:"ssl_certificate_id,omitempty" path:"ssl_certificate_id,omitempty" url:"ssl_certificate_id,omitempty"`
	BrickManaged             *bool      `json:"brick_managed,omitempty" path:"brick_managed,omitempty" url:"brick_managed,omitempty"`
	FolderBehaviorId         int64      `json:"folder_behavior_id,omitempty" path:"folder_behavior_id,omitempty" url:"folder_behavior_id,omitempty"`
	IpAddresses              []string   `json:"ip_addresses,omitempty" path:"ip_addresses,omitempty" url:"ip_addresses,omitempty"`
	CreatedAt                *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt                *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

CustomDomain is a Files.com API resource.

func (CustomDomain) Identifier ¶ added in v3.3.150

func (c CustomDomain) Identifier() interface{}

Identifier returns the resource ID.

func (*CustomDomain) UnmarshalJSON ¶ added in v3.3.150

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type CustomDomainCollection ¶ added in v3.3.150

type CustomDomainCollection []CustomDomain

CustomDomainCollection is a list of CustomDomain resources.

func (*CustomDomainCollection) ToSlice ¶ added in v3.3.150

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

ToSlice returns a new slice containing the resources as interface values.

func (*CustomDomainCollection) UnmarshalJSON ¶ added in v3.3.150

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type CustomDomainCreateAllocateIpParams ¶ added in v3.3.249

type CustomDomainCreateAllocateIpParams struct {
	Id    int64 `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Count int64 `url:"count" json:"count" path:"count"`
}

CustomDomainCreateAllocateIpParams contains the request parameters for POST /custom_domains/{id}/allocate_ips.

type CustomDomainCreateParams ¶ added in v3.3.150

type CustomDomainCreateParams struct {
	AvailableToAllWorkspaces *bool                       `url:"available_to_all_workspaces,omitempty" json:"available_to_all_workspaces,omitempty" path:"available_to_all_workspaces"`
	WorkspaceId              int64                       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	Destination              CustomDomainDestinationEnum `url:"destination,omitempty" json:"destination,omitempty" path:"destination"`
	FolderBehaviorId         int64                       `url:"folder_behavior_id,omitempty" json:"folder_behavior_id,omitempty" path:"folder_behavior_id"`
	SslCertificateId         int64                       `url:"ssl_certificate_id,omitempty" json:"ssl_certificate_id,omitempty" path:"ssl_certificate_id"`
	Domain                   string                      `url:"domain" json:"domain" path:"domain"`
}

CustomDomainCreateParams contains the request parameters for POST /custom_domains.

type CustomDomainDeleteParams ¶ added in v3.3.150

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

CustomDomainDeleteParams contains the request parameters for DELETE /custom_domains/{id}.

type CustomDomainDestinationEnum ¶ added in v3.3.150

type CustomDomainDestinationEnum string

CustomDomainDestinationEnum is a string value for destination. Enum lists the values documented by the API.

func (CustomDomainDestinationEnum) Enum ¶ added in v3.3.150

Enum returns the documented values keyed by their API strings.

func (CustomDomainDestinationEnum) String ¶ added in v3.3.150

String returns the API parameter value.

type CustomDomainFindParams ¶ added in v3.3.150

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

CustomDomainFindParams contains the request parameters for GET /custom_domains/{id}.

type CustomDomainListParams ¶ added in v3.3.150

type CustomDomainListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

CustomDomainListParams contains the request parameters for GET /custom_domains.

type CustomDomainUpdateParams ¶ added in v3.3.150

type CustomDomainUpdateParams struct {
	Id                       int64                       `url:"-,omitempty" json:"-,omitempty" path:"id"`
	AvailableToAllWorkspaces *bool                       `url:"available_to_all_workspaces,omitempty" json:"available_to_all_workspaces,omitempty" path:"available_to_all_workspaces"`
	WorkspaceId              int64                       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	Destination              CustomDomainDestinationEnum `url:"destination,omitempty" json:"destination,omitempty" path:"destination"`
	FolderBehaviorId         int64                       `url:"folder_behavior_id,omitempty" json:"folder_behavior_id,omitempty" path:"folder_behavior_id"`
	SslCertificateId         int64                       `url:"ssl_certificate_id,omitempty" json:"ssl_certificate_id,omitempty" path:"ssl_certificate_id"`
	Domain                   string                      `url:"domain,omitempty" json:"domain,omitempty" path:"domain"`
}

CustomDomainUpdateParams contains the request parameters for PATCH /custom_domains/{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"`
	Host                          string            `json:"host,omitempty"`
	// Download Request Status
	BytesTransferred int64      `json:"bytes_transferred,omitempty"`
	Status           string     `json:"status,omitempty"`
	StartedAt        *time.Time `json:"started_at,omitempty"`
	CompletedAt      *time.Time `json:"completed_at,omitempty"`
	TouchedAt        *time.Time `json:"touched_at,omitempty"`
}

Data contains structured details accompanying an API error, including authentication challenges and download-request status.

type DesktopConfigurationProfile ¶ added in v3.3.54

type DesktopConfigurationProfile struct {
	Id                   int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                 string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	WorkspaceId          int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	UseForAllUsers       *bool       `json:"use_for_all_users,omitempty" path:"use_for_all_users,omitempty" url:"use_for_all_users,omitempty"`
	DisableDriveMounting *bool       `json:"disable_drive_mounting,omitempty" path:"disable_drive_mounting,omitempty" url:"disable_drive_mounting,omitempty"`
	MountMappings        interface{} `json:"mount_mappings,omitempty" path:"mount_mappings,omitempty" url:"mount_mappings,omitempty"`
}

DesktopConfigurationProfile is a Files.com API resource.

func (DesktopConfigurationProfile) Identifier ¶ added in v3.3.54

func (d DesktopConfigurationProfile) Identifier() interface{}

Identifier returns the resource ID.

func (*DesktopConfigurationProfile) UnmarshalJSON ¶ added in v3.3.54

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type DesktopConfigurationProfileCollection ¶ added in v3.3.54

type DesktopConfigurationProfileCollection []DesktopConfigurationProfile

DesktopConfigurationProfileCollection is a list of DesktopConfigurationProfile resources.

func (*DesktopConfigurationProfileCollection) ToSlice ¶ added in v3.3.54

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

ToSlice returns a new slice containing the resources as interface values.

func (*DesktopConfigurationProfileCollection) UnmarshalJSON ¶ added in v3.3.54

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type DesktopConfigurationProfileCreateParams ¶ added in v3.3.54

type DesktopConfigurationProfileCreateParams struct {
	Name                 string      `url:"name" json:"name" path:"name"`
	MountMappings        interface{} `url:"mount_mappings" json:"mount_mappings" path:"mount_mappings"`
	WorkspaceId          int64       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	UseForAllUsers       *bool       `url:"use_for_all_users,omitempty" json:"use_for_all_users,omitempty" path:"use_for_all_users"`
	DisableDriveMounting *bool       `url:"disable_drive_mounting,omitempty" json:"disable_drive_mounting,omitempty" path:"disable_drive_mounting"`
}

DesktopConfigurationProfileCreateParams contains the request parameters for POST /desktop_configuration_profiles.

type DesktopConfigurationProfileDeleteParams ¶ added in v3.3.54

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

DesktopConfigurationProfileDeleteParams contains the request parameters for DELETE /desktop_configuration_profiles/{id}.

type DesktopConfigurationProfileFindParams ¶ added in v3.3.54

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

DesktopConfigurationProfileFindParams contains the request parameters for GET /desktop_configuration_profiles/{id}.

type DesktopConfigurationProfileListParams ¶ added in v3.3.54

type DesktopConfigurationProfileListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

DesktopConfigurationProfileListParams contains the request parameters for GET /desktop_configuration_profiles.

type DesktopConfigurationProfileUpdateParams ¶ added in v3.3.54

type DesktopConfigurationProfileUpdateParams struct {
	Id                   int64       `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name                 string      `url:"name,omitempty" json:"name,omitempty" path:"name"`
	WorkspaceId          int64       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	MountMappings        interface{} `url:"mount_mappings,omitempty" json:"mount_mappings,omitempty" path:"mount_mappings"`
	UseForAllUsers       *bool       `url:"use_for_all_users,omitempty" json:"use_for_all_users,omitempty" path:"use_for_all_users"`
	DisableDriveMounting *bool       `url:"disable_drive_mounting,omitempty" json:"disable_drive_mounting,omitempty" path:"disable_drive_mounting"`
}

DesktopConfigurationProfileUpdateParams contains the request parameters for PATCH /desktop_configuration_profiles/{id}.

type DirEntry ¶ added in v3.1.0

type DirEntry struct {
	File
}

func (DirEntry) Info ¶ added in v3.1.0

func (f DirEntry) Info() (fs.FileInfo, error)

func (DirEntry) ModTime ¶ added in v3.1.0

func (f DirEntry) ModTime() time.Time

func (DirEntry) Mode ¶ added in v3.1.0

func (f DirEntry) Mode() fs.FileMode

func (DirEntry) Name ¶ added in v3.1.0

func (f DirEntry) Name() string

func (DirEntry) Size ¶ added in v3.1.0

func (f DirEntry) Size() int64

func (DirEntry) Sys ¶ added in v3.1.0

func (f DirEntry) Sys() any

func (DirEntry) Type ¶ added in v3.1.0

func (f DirEntry) Type() fs.FileMode

type DirectConnectionInfo ¶ added in v3.3.193

type DirectConnectionInfo struct {
	Version    int64    `json:"version,omitempty" path:"version,omitempty" url:"version,omitempty"`
	ServerName string   `json:"server_name,omitempty" path:"server_name,omitempty" url:"server_name,omitempty"`
	Addresses  []string `json:"addresses,omitempty" path:"addresses,omitempty" url:"addresses,omitempty"`
	DirectUri  string   `json:"direct_uri,omitempty" path:"direct_uri,omitempty" url:"direct_uri,omitempty"`
	CaPem      string   `json:"ca_pem,omitempty" path:"ca_pem,omitempty" url:"ca_pem,omitempty"`
}

DirectConnectionInfo is a Files.com API resource.

func (*DirectConnectionInfo) UnmarshalJSON ¶ added in v3.3.193

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type DirectConnectionInfoCollection ¶ added in v3.3.193

type DirectConnectionInfoCollection []DirectConnectionInfo

DirectConnectionInfoCollection is a list of DirectConnectionInfo resources.

func (*DirectConnectionInfoCollection) ToSlice ¶ added in v3.3.193

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

ToSlice returns a new slice containing the resources as interface values.

func (*DirectConnectionInfoCollection) UnmarshalJSON ¶ added in v3.3.193

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type DirectTransferResponseError ¶ added in v3.3.197

type DirectTransferResponseError struct {
	StatusCode int
	RetryAfter time.Duration
}

DirectTransferResponseError describes an unsuccessful response from an Agent's direct endpoint. StatusCode contains the HTTP status; RetryAfter contains the parsed Retry-After delay, or zero when no valid delay is available.

func (*DirectTransferResponseError) Error ¶ added in v3.3.197

Error returns a message containing the direct endpoint's HTTP status.

func (*DirectTransferResponseError) Unwrap ¶ added in v3.3.197

func (e *DirectTransferResponseError) Unwrap() error

Unwrap returns ErrDirectTransferUnavailable for errors.Is matching.

type DirectTransferSession ¶ added in v3.3.317

type DirectTransferSession struct {
	// contains filtered or unexported fields
}

DirectTransferSession sends the requests of one transfer, such as the ranges of a download, to an Agent's direct endpoint until a direct request fails. From then on Send returns ErrDirectTransferUnavailable without sending, and the caller sends the rest of the transfer over its own route. A session is safe for concurrent requests. Call Close when the transfer ends.

func NewDirectTransferSession ¶ added in v3.3.317

func NewDirectTransferSession(options DirectTransferSessionOptions) *DirectTransferSession

NewDirectTransferSession returns a session for one transfer.

func (*DirectTransferSession) Close ¶ added in v3.3.317

func (s *DirectTransferSession) Close()

Close closes the idle connections of the session's direct client. Call it once the transfer's requests and response bodies are finished. Requests whose context carries a WithDirectTransferClientCache cache use that cache instead.

func (*DirectTransferSession) Send ¶ added in v3.3.317

Send sends a copy of request to info's direct endpoint, as WrapDirectTransferOptions does, and the caller must close the body of a successful response. A failure while reading or closing that body disables direct transfer for the session; the response itself is never sent again. A body failure after the request context was canceled, or after its deadline passed, leaves the session enabled. To report the response as failed, cancel the context with another cause, using context.WithCancelCause.

Send returns ErrDirectTransferUnavailable without sending when config disables direct transfers, info is not present, or the session is disabled. When the direct request fails, Send disables the session and returns an error that wraps ErrDirectTransferUnavailable; the caller can then send request over its own route. A request context that ends before the response arrives never disables the session, and Send returns the context's error. When response options fail, Send closes the response and returns an error that wraps ErrDirectTransferResponseStarted and the options' error. That request must not be sent again, even when the options' error also wraps ErrDirectTransferUnavailable.

func (*DirectTransferSession) Stats ¶ added in v3.3.317

Stats returns the session's current counts and disabled reason.

type DirectTransferSessionOptions ¶ added in v3.3.317

type DirectTransferSessionOptions struct {
	// RetryResponse is called after each unsuccessful direct response. request
	// is the request as sent, after request options, and attempt counts the
	// direct requests sent for it so far. It returns how long to wait and
	// whether to send the request directly again. When RetryResponse is nil or
	// returns false, the response disables direct transfer for the session.
	RetryResponse func(request *http.Request, attempt int, err *DirectTransferResponseError) (time.Duration, bool)
	// OnDisable is called once, by the request or response body whose failure
	// disabled direct transfer, with DirectTransferSessionStats.DisabledReason
	// and the failure.
	OnDisable func(reason string, err error)
	// WrapTransport, when set, is called once, when the session builds its
	// direct client, with the SDK's direct transport, and returns the round
	// tripper the session sends direct requests with. The SDK transport
	// verifies the Agent's TLS identity against info's CA and server name,
	// dials only info's candidate addresses within bounded connect budgets, and
	// times out waiting for response headers. Wrap it to observe, log or adjust
	// requests and keep those protections; a round tripper that does not call
	// it takes them over.
	//
	// Requests reach the round tripper already addressed to the direct URI,
	// with Files.com credentials removed, and the session's client never
	// follows redirects. The direct URI's query carries the transfer token:
	// the session removes it from every *url.Error in a failure's chain,
	// including one from an http.Client the round tripper sends through, so
	// keep the request URL out of any other error the round tripper returns. Return responses with unread bodies: the session
	// tracks body failures and never sends a request again once its response
	// arrived. The round tripper is used by concurrent requests. Close closes
	// the idle connections of the SDK transport, and of the round tripper when
	// it has a CloseIdleConnections method; any other resources it holds belong
	// to the caller. A session with WrapTransport always uses its own client,
	// never a WithDirectTransferClientCache cache from the request context.
	WrapTransport func(direct http.RoundTripper) http.RoundTripper
}

DirectTransferSessionOptions customize how a DirectTransferSession handles direct failures. The zero value disables direct transfer at the first one.

type DirectTransferSessionStats ¶ added in v3.3.317

type DirectTransferSessionStats struct {
	// Attempts counts the direct requests sent, including retries.
	Attempts int64
	// Successes counts the direct requests that returned a successful response.
	Successes int64
	// DisabledReason is empty while direct transfer is enabled. Otherwise it
	// names the first failure: direct_request_failed when no response arrived,
	// direct_response_failed for an unsuccessful response, or
	// direct_body_read_failed or direct_body_close_failed for a response body.
	DisabledReason string
}

DirectTransferSessionStats summarizes the direct requests of a session.

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"`
}

DnsRecord is a Files.com API resource.

func (DnsRecord) Identifier ¶

func (d DnsRecord) Identifier() interface{}

Identifier returns the resource ID.

func (*DnsRecord) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type DnsRecordCollection ¶

type DnsRecordCollection []DnsRecord

DnsRecordCollection is a list of DnsRecord resources.

func (*DnsRecordCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*DnsRecordCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type DnsRecordListParams ¶

type DnsRecordListParams struct {
	ListParams
}

DnsRecordListParams contains the request parameters for GET /dns_records.

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"`
	InboxTitle string     `json:"inbox_title,omitempty" path:"inbox_title,omitempty" url:"inbox_title,omitempty"`
}

EmailIncomingMessage is a Files.com API resource.

func (EmailIncomingMessage) Identifier ¶

func (e EmailIncomingMessage) Identifier() interface{}

Identifier returns the resource ID.

func (*EmailIncomingMessage) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type EmailIncomingMessageCollection ¶

type EmailIncomingMessageCollection []EmailIncomingMessage

EmailIncomingMessageCollection is a list of EmailIncomingMessage resources.

func (*EmailIncomingMessageCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*EmailIncomingMessageCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type EmailIncomingMessageListParams ¶

type EmailIncomingMessageListParams struct {
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

EmailIncomingMessageListParams contains the request parameters for GET /email_incoming_messages.

type EmailLog ¶ added in v3.1.48

type EmailLog struct {
	Timestamp      *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	Message        string     `json:"message,omitempty" path:"message,omitempty" url:"message,omitempty"`
	Status         string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	Subject        string     `json:"subject,omitempty" path:"subject,omitempty" url:"subject,omitempty"`
	To             string     `json:"to,omitempty" path:"to,omitempty" url:"to,omitempty"`
	Cc             string     `json:"cc,omitempty" path:"cc,omitempty" url:"cc,omitempty"`
	DeliveryMethod string     `json:"delivery_method,omitempty" path:"delivery_method,omitempty" url:"delivery_method,omitempty"`
	SmtpHostname   string     `json:"smtp_hostname,omitempty" path:"smtp_hostname,omitempty" url:"smtp_hostname,omitempty"`
	SmtpIp         string     `json:"smtp_ip,omitempty" path:"smtp_ip,omitempty" url:"smtp_ip,omitempty"`
	CreatedAt      *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

EmailLog is a Files.com API resource.

func (*EmailLog) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type EmailLogCollection ¶ added in v3.1.48

type EmailLogCollection []EmailLog

EmailLogCollection is a list of EmailLog resources.

func (*EmailLogCollection) ToSlice ¶ added in v3.1.48

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

ToSlice returns a new slice containing the resources as interface values.

func (*EmailLogCollection) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type EmailLogListParams ¶ added in v3.1.48

type EmailLogListParams struct {
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

EmailLogListParams contains the request parameters for GET /email_logs.

type Environment ¶

type Environment int64

Environment selects the Files.com API environment.

const (
	Production Environment = iota
	Staging
	Development
)

func NewEnvironment ¶

func NewEnvironment(env string) Environment

NewEnvironment recognizes "staging" and "development". All other values select production.

func (Environment) Endpoint ¶

func (e Environment) Endpoint() string

Endpoint returns the base URL template for the environment. Config.Endpoint replaces {{SUBDOMAIN}} with the configured site subdomain.

func (Environment) String ¶

func (e Environment) String() string

String returns the environment name. Unknown values return "production".

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"`
}

Errors is a Files.com API resource.

func (*Errors) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ErrorsCollection ¶

type ErrorsCollection []Errors

ErrorsCollection is a list of Errors resources.

func (*ErrorsCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ErrorsCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

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"`
}

EtagsParam contains the nested request parameters named by its fields.

type EventChannel ¶ added in v3.3.111

type EventChannel struct {
	Id             int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name           string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	WorkspaceId    int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Description    string     `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	Enabled        *bool      `json:"enabled,omitempty" path:"enabled,omitempty" url:"enabled,omitempty"`
	DefaultChannel *bool      `json:"default_channel,omitempty" path:"default_channel,omitempty" url:"default_channel,omitempty"`
	CreatedAt      *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt      *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

EventChannel is a Files.com API resource.

func (EventChannel) Identifier ¶ added in v3.3.111

func (e EventChannel) Identifier() interface{}

Identifier returns the resource ID.

func (*EventChannel) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type EventChannelCollection ¶ added in v3.3.111

type EventChannelCollection []EventChannel

EventChannelCollection is a list of EventChannel resources.

func (*EventChannelCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*EventChannelCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type EventChannelCreateParams ¶ added in v3.3.111

type EventChannelCreateParams struct {
	Name           string `url:"name" json:"name" path:"name"`
	WorkspaceId    int64  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	Description    string `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Enabled        *bool  `url:"enabled,omitempty" json:"enabled,omitempty" path:"enabled"`
	DefaultChannel *bool  `url:"default_channel,omitempty" json:"default_channel,omitempty" path:"default_channel"`
}

EventChannelCreateParams contains the request parameters for POST /event_channels.

type EventChannelDeleteParams ¶ added in v3.3.111

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

EventChannelDeleteParams contains the request parameters for DELETE /event_channels/{id}.

type EventChannelFindParams ¶ added in v3.3.111

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

EventChannelFindParams contains the request parameters for GET /event_channels/{id}.

type EventChannelListParams ¶ added in v3.3.111

type EventChannelListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

EventChannelListParams contains the request parameters for GET /event_channels.

type EventChannelUpdateParams ¶ added in v3.3.111

type EventChannelUpdateParams struct {
	Id             int64  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name           string `url:"name,omitempty" json:"name,omitempty" path:"name"`
	WorkspaceId    int64  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	Description    string `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Enabled        *bool  `url:"enabled,omitempty" json:"enabled,omitempty" path:"enabled"`
	DefaultChannel *bool  `url:"default_channel,omitempty" json:"default_channel,omitempty" path:"default_channel"`
}

EventChannelUpdateParams contains the request parameters for PATCH /event_channels/{id}.

type EventDeliveryAttempt ¶ added in v3.3.111

type EventDeliveryAttempt struct {
	Id                          int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	EventRecordId               int64      `json:"event_record_id,omitempty" path:"event_record_id,omitempty" url:"event_record_id,omitempty"`
	EventSubscriptionId         int64      `json:"event_subscription_id,omitempty" path:"event_subscription_id,omitempty" url:"event_subscription_id,omitempty"`
	EventTargetId               int64      `json:"event_target_id,omitempty" path:"event_target_id,omitempty" url:"event_target_id,omitempty"`
	ActivityNotificationBatchId int64      `` /* 142-byte string literal not displayed */
	WorkspaceId                 int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Status                      string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	AttemptNumber               int64      `json:"attempt_number,omitempty" path:"attempt_number,omitempty" url:"attempt_number,omitempty"`
	ResponseCode                int64      `json:"response_code,omitempty" path:"response_code,omitempty" url:"response_code,omitempty"`
	ErrorMessage                string     `json:"error_message,omitempty" path:"error_message,omitempty" url:"error_message,omitempty"`
	ResponseBody                string     `json:"response_body,omitempty" path:"response_body,omitempty" url:"response_body,omitempty"`
	LatencyMs                   int64      `json:"latency_ms,omitempty" path:"latency_ms,omitempty" url:"latency_ms,omitempty"`
	DeliveredAt                 *time.Time `json:"delivered_at,omitempty" path:"delivered_at,omitempty" url:"delivered_at,omitempty"`
	LastAttemptedAt             *time.Time `json:"last_attempted_at,omitempty" path:"last_attempted_at,omitempty" url:"last_attempted_at,omitempty"`
	NextAttemptAt               *time.Time `json:"next_attempt_at,omitempty" path:"next_attempt_at,omitempty" url:"next_attempt_at,omitempty"`
	CreatedAt                   *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

EventDeliveryAttempt is a Files.com API resource.

func (EventDeliveryAttempt) Identifier ¶ added in v3.3.111

func (e EventDeliveryAttempt) Identifier() interface{}

Identifier returns the resource ID.

func (*EventDeliveryAttempt) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type EventDeliveryAttemptCollection ¶ added in v3.3.111

type EventDeliveryAttemptCollection []EventDeliveryAttempt

EventDeliveryAttemptCollection is a list of EventDeliveryAttempt resources.

func (*EventDeliveryAttemptCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*EventDeliveryAttemptCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type EventDeliveryAttemptFindParams ¶ added in v3.3.111

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

EventDeliveryAttemptFindParams contains the request parameters for GET /event_delivery_attempts/{id}.

type EventDeliveryAttemptListParams ¶ added in v3.3.111

type EventDeliveryAttemptListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

EventDeliveryAttemptListParams contains the request parameters for GET /event_delivery_attempts.

type EventRecord ¶ added in v3.3.111

type EventRecord struct {
	Id           int64                    `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId  int64                    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	EventUuid    string                   `json:"event_uuid,omitempty" path:"event_uuid,omitempty" url:"event_uuid,omitempty"`
	EventType    string                   `json:"event_type,omitempty" path:"event_type,omitempty" url:"event_type,omitempty"`
	Severity     string                   `json:"severity,omitempty" path:"severity,omitempty" url:"severity,omitempty"`
	SourceType   string                   `json:"source_type,omitempty" path:"source_type,omitempty" url:"source_type,omitempty"`
	SourceId     int64                    `json:"source_id,omitempty" path:"source_id,omitempty" url:"source_id,omitempty"`
	OccurredAt   *time.Time               `json:"occurred_at,omitempty" path:"occurred_at,omitempty" url:"occurred_at,omitempty"`
	HumanTitle   string                   `json:"human_title,omitempty" path:"human_title,omitempty" url:"human_title,omitempty"`
	HumanSummary string                   `json:"human_summary,omitempty" path:"human_summary,omitempty" url:"human_summary,omitempty"`
	HumanFields  []map[string]interface{} `json:"human_fields,omitempty" path:"human_fields,omitempty" url:"human_fields,omitempty"`
	Actor        interface{}              `json:"actor,omitempty" path:"actor,omitempty" url:"actor,omitempty"`
	Resources    []map[string]interface{} `json:"resources,omitempty" path:"resources,omitempty" url:"resources,omitempty"`
	Payload      interface{}              `json:"payload,omitempty" path:"payload,omitempty" url:"payload,omitempty"`
	CreatedAt    *time.Time               `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

EventRecord is a Files.com API resource.

func (EventRecord) Identifier ¶ added in v3.3.111

func (e EventRecord) Identifier() interface{}

Identifier returns the resource ID.

func (*EventRecord) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type EventRecordCollection ¶ added in v3.3.111

type EventRecordCollection []EventRecord

EventRecordCollection is a list of EventRecord resources.

func (*EventRecordCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*EventRecordCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type EventRecordFindParams ¶ added in v3.3.111

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

EventRecordFindParams contains the request parameters for GET /event_records/{id}.

type EventRecordListParams ¶ added in v3.3.111

type EventRecordListParams struct {
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

EventRecordListParams contains the request parameters for GET /event_records.

type EventSubscription ¶ added in v3.3.111

type EventSubscription struct {
	Id                   int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	EventChannelId       int64       `json:"event_channel_id,omitempty" path:"event_channel_id,omitempty" url:"event_channel_id,omitempty"`
	WorkspaceId          int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	ApplyToAllWorkspaces *bool       `json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces,omitempty" url:"apply_to_all_workspaces,omitempty"`
	Name                 string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Subject              string      `json:"subject,omitempty" path:"subject,omitempty" url:"subject,omitempty"`
	Message              string      `json:"message,omitempty" path:"message,omitempty" url:"message,omitempty"`
	MessageOnly          *bool       `json:"message_only,omitempty" path:"message_only,omitempty" url:"message_only,omitempty"`
	Enabled              *bool       `json:"enabled,omitempty" path:"enabled,omitempty" url:"enabled,omitempty"`
	EventTypes           []string    `json:"event_types,omitempty" path:"event_types,omitempty" url:"event_types,omitempty"`
	Filter               interface{} `json:"filter,omitempty" path:"filter,omitempty" url:"filter,omitempty"`
	DeliveryPolicy       interface{} `json:"delivery_policy,omitempty" path:"delivery_policy,omitempty" url:"delivery_policy,omitempty"`
	EventTargetIds       []int64     `json:"event_target_ids,omitempty" path:"event_target_ids,omitempty" url:"event_target_ids,omitempty"`
	CreatedAt            *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt            *time.Time  `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

EventSubscription is a Files.com API resource.

func (EventSubscription) Identifier ¶ added in v3.3.111

func (e EventSubscription) Identifier() interface{}

Identifier returns the resource ID.

func (*EventSubscription) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type EventSubscriptionCollection ¶ added in v3.3.111

type EventSubscriptionCollection []EventSubscription

EventSubscriptionCollection is a list of EventSubscription resources.

func (*EventSubscriptionCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*EventSubscriptionCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type EventSubscriptionCreateParams ¶ added in v3.3.111

type EventSubscriptionCreateParams struct {
	EventChannelId       int64       `url:"event_channel_id,omitempty" json:"event_channel_id,omitempty" path:"event_channel_id"`
	WorkspaceId          int64       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	ApplyToAllWorkspaces *bool       `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	Name                 string      `url:"name" json:"name" path:"name"`
	Subject              string      `url:"subject,omitempty" json:"subject,omitempty" path:"subject"`
	Message              string      `url:"message,omitempty" json:"message,omitempty" path:"message"`
	MessageOnly          *bool       `url:"message_only,omitempty" json:"message_only,omitempty" path:"message_only"`
	Enabled              *bool       `url:"enabled,omitempty" json:"enabled,omitempty" path:"enabled"`
	EventTypes           []string    `url:"event_types,omitempty" json:"event_types,omitempty" path:"event_types"`
	Filter               interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	DeliveryPolicy       interface{} `url:"delivery_policy,omitempty" json:"delivery_policy,omitempty" path:"delivery_policy"`
	EventTargetIds       []int64     `url:"event_target_ids,omitempty" json:"event_target_ids,omitempty" path:"event_target_ids"`
}

EventSubscriptionCreateParams contains the request parameters for POST /event_subscriptions.

type EventSubscriptionDeleteParams ¶ added in v3.3.111

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

EventSubscriptionDeleteParams contains the request parameters for DELETE /event_subscriptions/{id}.

type EventSubscriptionFindParams ¶ added in v3.3.111

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

EventSubscriptionFindParams contains the request parameters for GET /event_subscriptions/{id}.

type EventSubscriptionListParams ¶ added in v3.3.111

type EventSubscriptionListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

EventSubscriptionListParams contains the request parameters for GET /event_subscriptions.

type EventSubscriptionUpdateParams ¶ added in v3.3.111

type EventSubscriptionUpdateParams struct {
	Id                   int64       `url:"-,omitempty" json:"-,omitempty" path:"id"`
	EventChannelId       int64       `url:"event_channel_id,omitempty" json:"event_channel_id,omitempty" path:"event_channel_id"`
	WorkspaceId          int64       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	ApplyToAllWorkspaces *bool       `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	Name                 string      `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Subject              string      `url:"subject,omitempty" json:"subject,omitempty" path:"subject"`
	Message              string      `url:"message,omitempty" json:"message,omitempty" path:"message"`
	MessageOnly          *bool       `url:"message_only,omitempty" json:"message_only,omitempty" path:"message_only"`
	Enabled              *bool       `url:"enabled,omitempty" json:"enabled,omitempty" path:"enabled"`
	EventTypes           []string    `url:"event_types,omitempty" json:"event_types,omitempty" path:"event_types"`
	Filter               interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	DeliveryPolicy       interface{} `url:"delivery_policy,omitempty" json:"delivery_policy,omitempty" path:"delivery_policy"`
	EventTargetIds       []int64     `url:"event_target_ids,omitempty" json:"event_target_ids,omitempty" path:"event_target_ids"`
}

EventSubscriptionUpdateParams contains the request parameters for PATCH /event_subscriptions/{id}.

type EventTarget ¶ added in v3.3.111

type EventTarget struct {
	Id                   int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                 string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	TargetType           string      `json:"target_type,omitempty" path:"target_type,omitempty" url:"target_type,omitempty"`
	WorkspaceId          int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	ApplyToAllWorkspaces *bool       `json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces,omitempty" url:"apply_to_all_workspaces,omitempty"`
	Enabled              *bool       `json:"enabled,omitempty" path:"enabled,omitempty" url:"enabled,omitempty"`
	Config               interface{} `json:"config,omitempty" path:"config,omitempty" url:"config,omitempty"`
	DeliveryPolicy       interface{} `json:"delivery_policy,omitempty" path:"delivery_policy,omitempty" url:"delivery_policy,omitempty"`
	CreatedAt            *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt            *time.Time  `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

EventTarget is a Files.com API resource.

func (EventTarget) Identifier ¶ added in v3.3.111

func (e EventTarget) Identifier() interface{}

Identifier returns the resource ID.

func (*EventTarget) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type EventTargetCollection ¶ added in v3.3.111

type EventTargetCollection []EventTarget

EventTargetCollection is a list of EventTarget resources.

func (*EventTargetCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*EventTargetCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type EventTargetCreateParams ¶ added in v3.3.111

type EventTargetCreateParams struct {
	Name                 string                    `url:"name" json:"name" path:"name"`
	WorkspaceId          int64                     `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	ApplyToAllWorkspaces *bool                     `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	Enabled              *bool                     `url:"enabled,omitempty" json:"enabled,omitempty" path:"enabled"`
	Config               interface{}               `url:"config" json:"config" path:"config"`
	DeliveryPolicy       interface{}               `url:"delivery_policy,omitempty" json:"delivery_policy,omitempty" path:"delivery_policy"`
	TargetType           EventTargetTargetTypeEnum `url:"target_type" json:"target_type" path:"target_type"`
}

EventTargetCreateParams contains the request parameters for POST /event_targets.

type EventTargetDeleteParams ¶ added in v3.3.111

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

EventTargetDeleteParams contains the request parameters for DELETE /event_targets/{id}.

type EventTargetFindParams ¶ added in v3.3.111

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

EventTargetFindParams contains the request parameters for GET /event_targets/{id}.

type EventTargetListParams ¶ added in v3.3.111

type EventTargetListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

EventTargetListParams contains the request parameters for GET /event_targets.

type EventTargetTargetTypeEnum ¶ added in v3.3.111

type EventTargetTargetTypeEnum string

EventTargetTargetTypeEnum is a string value for target_type. Enum lists the values documented by the API.

func (EventTargetTargetTypeEnum) Enum ¶ added in v3.3.111

Enum returns the documented values keyed by their API strings.

func (EventTargetTargetTypeEnum) String ¶ added in v3.3.111

func (u EventTargetTargetTypeEnum) String() string

String returns the API parameter value.

type EventTargetUpdateParams ¶ added in v3.3.111

type EventTargetUpdateParams struct {
	Id                   int64       `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name                 string      `url:"name,omitempty" json:"name,omitempty" path:"name"`
	WorkspaceId          int64       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	ApplyToAllWorkspaces *bool       `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	Enabled              *bool       `url:"enabled,omitempty" json:"enabled,omitempty" path:"enabled"`
	Config               interface{} `url:"config,omitempty" json:"config,omitempty" path:"config"`
	DeliveryPolicy       interface{} `url:"delivery_policy,omitempty" json:"delivery_policy,omitempty" path:"delivery_policy"`
}

EventTargetUpdateParams contains the request parameters for PATCH /event_targets/{id}.

type ExavaultApiRequestLog ¶ added in v3.1.48

type ExavaultApiRequestLog struct {
	Timestamp     *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	Endpoint      string     `json:"endpoint,omitempty" path:"endpoint,omitempty" url:"endpoint,omitempty"`
	Version       float64    `json:"version,omitempty" path:"version,omitempty" url:"version,omitempty"`
	RequestIp     string     `json:"request_ip,omitempty" path:"request_ip,omitempty" url:"request_ip,omitempty"`
	RequestMethod string     `json:"request_method,omitempty" path:"request_method,omitempty" url:"request_method,omitempty"`
	ErrorType     string     `json:"error_type,omitempty" path:"error_type,omitempty" url:"error_type,omitempty"`
	ErrorMessage  string     `json:"error_message,omitempty" path:"error_message,omitempty" url:"error_message,omitempty"`
	UserAgent     string     `json:"user_agent,omitempty" path:"user_agent,omitempty" url:"user_agent,omitempty"`
	ResponseCode  int64      `json:"response_code,omitempty" path:"response_code,omitempty" url:"response_code,omitempty"`
	Success       *bool      `json:"success,omitempty" path:"success,omitempty" url:"success,omitempty"`
	DurationMs    int64      `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	CreatedAt     *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

ExavaultApiRequestLog is a Files.com API resource.

func (*ExavaultApiRequestLog) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ExavaultApiRequestLogCollection ¶ added in v3.1.48

type ExavaultApiRequestLogCollection []ExavaultApiRequestLog

ExavaultApiRequestLogCollection is a list of ExavaultApiRequestLog resources.

func (*ExavaultApiRequestLogCollection) ToSlice ¶ added in v3.1.48

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

ToSlice returns a new slice containing the resources as interface values.

func (*ExavaultApiRequestLogCollection) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ExavaultApiRequestLogListParams ¶ added in v3.1.48

type ExavaultApiRequestLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

ExavaultApiRequestLogListParams contains the request parameters for GET /exavault_api_request_logs.

type Expectation ¶ added in v3.3.64

type Expectation struct {
	Id                     int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId            int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Name                   string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Description            string      `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	Path                   string      `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	Source                 string      `json:"source,omitempty" path:"source,omitempty" url:"source,omitempty"`
	ExcludePattern         string      `json:"exclude_pattern,omitempty" path:"exclude_pattern,omitempty" url:"exclude_pattern,omitempty"`
	Disabled               *bool       `json:"disabled,omitempty" path:"disabled,omitempty" url:"disabled,omitempty"`
	ExpectationsVersion    int64       `json:"expectations_version,omitempty" path:"expectations_version,omitempty" url:"expectations_version,omitempty"`
	Trigger                string      `json:"trigger,omitempty" path:"trigger,omitempty" url:"trigger,omitempty"`
	Interval               string      `json:"interval,omitempty" path:"interval,omitempty" url:"interval,omitempty"`
	RecurringDay           int64       `json:"recurring_day,omitempty" path:"recurring_day,omitempty" url:"recurring_day,omitempty"`
	RecurringDays          []int64     `json:"recurring_days,omitempty" path:"recurring_days,omitempty" url:"recurring_days,omitempty"`
	ScheduleId             int64       `json:"schedule_id,omitempty" path:"schedule_id,omitempty" url:"schedule_id,omitempty"`
	ScheduleDaysOfWeek     []int64     `json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week,omitempty" url:"schedule_days_of_week,omitempty"`
	ScheduleTimesOfDay     []string    `json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day,omitempty" url:"schedule_times_of_day,omitempty"`
	ScheduleTimeZone       string      `json:"schedule_time_zone,omitempty" path:"schedule_time_zone,omitempty" url:"schedule_time_zone,omitempty"`
	HolidayRegion          string      `json:"holiday_region,omitempty" path:"holiday_region,omitempty" url:"holiday_region,omitempty"`
	LookbackInterval       int64       `json:"lookback_interval,omitempty" path:"lookback_interval,omitempty" url:"lookback_interval,omitempty"`
	LateAcceptanceInterval int64       `json:"late_acceptance_interval,omitempty" path:"late_acceptance_interval,omitempty" url:"late_acceptance_interval,omitempty"`
	InactivityInterval     int64       `json:"inactivity_interval,omitempty" path:"inactivity_interval,omitempty" url:"inactivity_interval,omitempty"`
	MaxOpenInterval        int64       `json:"max_open_interval,omitempty" path:"max_open_interval,omitempty" url:"max_open_interval,omitempty"`
	Criteria               interface{} `json:"criteria,omitempty" path:"criteria,omitempty" url:"criteria,omitempty"`
	LastEvaluatedAt        *time.Time  `json:"last_evaluated_at,omitempty" path:"last_evaluated_at,omitempty" url:"last_evaluated_at,omitempty"`
	LastSuccessAt          *time.Time  `json:"last_success_at,omitempty" path:"last_success_at,omitempty" url:"last_success_at,omitempty"`
	LastFailureAt          *time.Time  `json:"last_failure_at,omitempty" path:"last_failure_at,omitempty" url:"last_failure_at,omitempty"`
	LastResult             string      `json:"last_result,omitempty" path:"last_result,omitempty" url:"last_result,omitempty"`
	CreatedAt              *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt              *time.Time  `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

Expectation is a Files.com API resource.

func (Expectation) Identifier ¶ added in v3.3.64

func (e Expectation) Identifier() interface{}

Identifier returns the resource ID.

func (*Expectation) UnmarshalJSON ¶ added in v3.3.64

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ExpectationCollection ¶ added in v3.3.64

type ExpectationCollection []Expectation

ExpectationCollection is a list of Expectation resources.

func (*ExpectationCollection) ToSlice ¶ added in v3.3.64

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

ToSlice returns a new slice containing the resources as interface values.

func (*ExpectationCollection) UnmarshalJSON ¶ added in v3.3.64

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ExpectationCreateParams ¶ added in v3.3.64

type ExpectationCreateParams struct {
	Name                   string                 `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description            string                 `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Path                   string                 `url:"path,omitempty" json:"path,omitempty" path:"path"`
	Source                 string                 `url:"source,omitempty" json:"source,omitempty" path:"source"`
	ExcludePattern         string                 `url:"exclude_pattern,omitempty" json:"exclude_pattern,omitempty" path:"exclude_pattern"`
	Disabled               *bool                  `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	Trigger                ExpectationTriggerEnum `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	Interval               string                 `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	RecurringDay           int64                  `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays          []int64                `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	ScheduleId             int64                  `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek     []int64                `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimesOfDay     []string               `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	ScheduleTimeZone       string                 `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	HolidayRegion          string                 `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
	LookbackInterval       int64                  `url:"lookback_interval,omitempty" json:"lookback_interval,omitempty" path:"lookback_interval"`
	LateAcceptanceInterval int64                  `url:"late_acceptance_interval,omitempty" json:"late_acceptance_interval,omitempty" path:"late_acceptance_interval"`
	InactivityInterval     int64                  `url:"inactivity_interval,omitempty" json:"inactivity_interval,omitempty" path:"inactivity_interval"`
	MaxOpenInterval        int64                  `url:"max_open_interval,omitempty" json:"max_open_interval,omitempty" path:"max_open_interval"`
	Criteria               interface{}            `url:"criteria,omitempty" json:"criteria,omitempty" path:"criteria"`
	WorkspaceId            int64                  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

ExpectationCreateParams contains the request parameters for POST /expectations.

type ExpectationDeleteParams ¶ added in v3.3.64

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

ExpectationDeleteParams contains the request parameters for DELETE /expectations/{id}.

type ExpectationEvaluation ¶ added in v3.3.64

type ExpectationEvaluation struct {
	Id                     int64                    `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId            int64                    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	ExpectationId          int64                    `json:"expectation_id,omitempty" path:"expectation_id,omitempty" url:"expectation_id,omitempty"`
	Status                 string                   `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	OpenedVia              string                   `json:"opened_via,omitempty" path:"opened_via,omitempty" url:"opened_via,omitempty"`
	OpenedAt               *time.Time               `json:"opened_at,omitempty" path:"opened_at,omitempty" url:"opened_at,omitempty"`
	WindowStartAt          *time.Time               `json:"window_start_at,omitempty" path:"window_start_at,omitempty" url:"window_start_at,omitempty"`
	WindowEndAt            *time.Time               `json:"window_end_at,omitempty" path:"window_end_at,omitempty" url:"window_end_at,omitempty"`
	DeadlineAt             *time.Time               `json:"deadline_at,omitempty" path:"deadline_at,omitempty" url:"deadline_at,omitempty"`
	LateAcceptanceCutoffAt *time.Time               `` /* 127-byte string literal not displayed */
	HardCloseAt            *time.Time               `json:"hard_close_at,omitempty" path:"hard_close_at,omitempty" url:"hard_close_at,omitempty"`
	ClosedAt               *time.Time               `json:"closed_at,omitempty" path:"closed_at,omitempty" url:"closed_at,omitempty"`
	MatchedFiles           []map[string]interface{} `json:"matched_files,omitempty" path:"matched_files,omitempty" url:"matched_files,omitempty"`
	MissingFiles           []map[string]interface{} `json:"missing_files,omitempty" path:"missing_files,omitempty" url:"missing_files,omitempty"`
	CriteriaErrors         []string                 `json:"criteria_errors,omitempty" path:"criteria_errors,omitempty" url:"criteria_errors,omitempty"`
	Summary                interface{}              `json:"summary,omitempty" path:"summary,omitempty" url:"summary,omitempty"`
	CreatedAt              *time.Time               `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt              *time.Time               `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

ExpectationEvaluation is a Files.com API resource.

func (ExpectationEvaluation) Identifier ¶ added in v3.3.64

func (e ExpectationEvaluation) Identifier() interface{}

Identifier returns the resource ID.

func (*ExpectationEvaluation) UnmarshalJSON ¶ added in v3.3.64

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ExpectationEvaluationCollection ¶ added in v3.3.64

type ExpectationEvaluationCollection []ExpectationEvaluation

ExpectationEvaluationCollection is a list of ExpectationEvaluation resources.

func (*ExpectationEvaluationCollection) ToSlice ¶ added in v3.3.64

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

ToSlice returns a new slice containing the resources as interface values.

func (*ExpectationEvaluationCollection) UnmarshalJSON ¶ added in v3.3.64

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ExpectationEvaluationFindParams ¶ added in v3.3.64

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

ExpectationEvaluationFindParams contains the request parameters for GET /expectation_evaluations/{id}.

type ExpectationEvaluationListParams ¶ added in v3.3.64

type ExpectationEvaluationListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

ExpectationEvaluationListParams contains the request parameters for GET /expectation_evaluations.

type ExpectationFindParams ¶ added in v3.3.64

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

ExpectationFindParams contains the request parameters for GET /expectations/{id}.

type ExpectationIncident ¶ added in v3.3.64

type ExpectationIncident struct {
	Id                     int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId            int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	ExpectationId          int64       `json:"expectation_id,omitempty" path:"expectation_id,omitempty" url:"expectation_id,omitempty"`
	Status                 string      `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	OpenedAt               *time.Time  `json:"opened_at,omitempty" path:"opened_at,omitempty" url:"opened_at,omitempty"`
	LastFailedAt           *time.Time  `json:"last_failed_at,omitempty" path:"last_failed_at,omitempty" url:"last_failed_at,omitempty"`
	AcknowledgedAt         *time.Time  `json:"acknowledged_at,omitempty" path:"acknowledged_at,omitempty" url:"acknowledged_at,omitempty"`
	SnoozedUntil           *time.Time  `json:"snoozed_until,omitempty" path:"snoozed_until,omitempty" url:"snoozed_until,omitempty"`
	ResolvedAt             *time.Time  `json:"resolved_at,omitempty" path:"resolved_at,omitempty" url:"resolved_at,omitempty"`
	OpenedByEvaluationId   int64       `json:"opened_by_evaluation_id,omitempty" path:"opened_by_evaluation_id,omitempty" url:"opened_by_evaluation_id,omitempty"`
	LastEvaluationId       int64       `json:"last_evaluation_id,omitempty" path:"last_evaluation_id,omitempty" url:"last_evaluation_id,omitempty"`
	ResolvedByEvaluationId int64       `` /* 127-byte string literal not displayed */
	Summary                interface{} `json:"summary,omitempty" path:"summary,omitempty" url:"summary,omitempty"`
	CreatedAt              *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt              *time.Time  `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

ExpectationIncident is a Files.com API resource.

func (ExpectationIncident) Identifier ¶ added in v3.3.64

func (e ExpectationIncident) Identifier() interface{}

Identifier returns the resource ID.

func (*ExpectationIncident) UnmarshalJSON ¶ added in v3.3.64

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ExpectationIncidentAcknowledgeParams ¶ added in v3.3.64

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

ExpectationIncidentAcknowledgeParams contains the request parameters for POST /expectation_incidents/{id}/acknowledge.

Acknowledge an expectation incident

type ExpectationIncidentCollection ¶ added in v3.3.64

type ExpectationIncidentCollection []ExpectationIncident

ExpectationIncidentCollection is a list of ExpectationIncident resources.

func (*ExpectationIncidentCollection) ToSlice ¶ added in v3.3.64

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

ToSlice returns a new slice containing the resources as interface values.

func (*ExpectationIncidentCollection) UnmarshalJSON ¶ added in v3.3.64

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ExpectationIncidentFindParams ¶ added in v3.3.64

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

ExpectationIncidentFindParams contains the request parameters for GET /expectation_incidents/{id}.

type ExpectationIncidentListParams ¶ added in v3.3.64

type ExpectationIncidentListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

ExpectationIncidentListParams contains the request parameters for GET /expectation_incidents.

type ExpectationIncidentResolveParams ¶ added in v3.3.64

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

ExpectationIncidentResolveParams contains the request parameters for POST /expectation_incidents/{id}/resolve.

Resolve an expectation incident

type ExpectationIncidentSnoozeParams ¶ added in v3.3.64

type ExpectationIncidentSnoozeParams struct {
	Id           int64      `url:"-,omitempty" json:"-,omitempty" path:"id"`
	SnoozedUntil *time.Time `url:"snoozed_until" json:"snoozed_until" path:"snoozed_until"`
}

ExpectationIncidentSnoozeParams contains the request parameters for POST /expectation_incidents/{id}/snooze.

Snooze an expectation incident until a specified time

type ExpectationListParams ¶ added in v3.3.64

type ExpectationListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

ExpectationListParams contains the request parameters for GET /expectations.

type ExpectationTriggerEnum ¶ added in v3.3.64

type ExpectationTriggerEnum string

ExpectationTriggerEnum is a string value for trigger. Enum lists the values documented by the API.

func (ExpectationTriggerEnum) Enum ¶ added in v3.3.64

Enum returns the documented values keyed by their API strings.

func (ExpectationTriggerEnum) String ¶ added in v3.3.64

func (u ExpectationTriggerEnum) String() string

String returns the API parameter value.

type ExpectationTriggerEvaluationParams ¶ added in v3.3.66

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

ExpectationTriggerEvaluationParams contains the request parameters for POST /expectations/{id}/trigger_evaluation.

Manually open an Expectation window

type ExpectationUpdateParams ¶ added in v3.3.64

type ExpectationUpdateParams struct {
	Id                     int64                  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name                   string                 `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description            string                 `url:"description,omitempty" json:"description,omitempty" path:"description"`
	Path                   string                 `url:"path,omitempty" json:"path,omitempty" path:"path"`
	Source                 string                 `url:"source,omitempty" json:"source,omitempty" path:"source"`
	ExcludePattern         string                 `url:"exclude_pattern,omitempty" json:"exclude_pattern,omitempty" path:"exclude_pattern"`
	Disabled               *bool                  `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	Trigger                ExpectationTriggerEnum `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	Interval               string                 `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	RecurringDay           int64                  `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays          []int64                `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	ScheduleId             int64                  `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek     []int64                `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimesOfDay     []string               `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	ScheduleTimeZone       string                 `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	HolidayRegion          string                 `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
	LookbackInterval       int64                  `url:"lookback_interval,omitempty" json:"lookback_interval,omitempty" path:"lookback_interval"`
	LateAcceptanceInterval int64                  `url:"late_acceptance_interval,omitempty" json:"late_acceptance_interval,omitempty" path:"late_acceptance_interval"`
	InactivityInterval     int64                  `url:"inactivity_interval,omitempty" json:"inactivity_interval,omitempty" path:"inactivity_interval"`
	MaxOpenInterval        int64                  `url:"max_open_interval,omitempty" json:"max_open_interval,omitempty" path:"max_open_interval"`
	Criteria               interface{}            `url:"criteria,omitempty" json:"criteria,omitempty" path:"criteria"`
	WorkspaceId            int64                  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

ExpectationUpdateParams contains the request parameters for PATCH /expectations/{id}.

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"`
}

ExternalEvent is a Files.com API resource.

func (ExternalEvent) Identifier ¶

func (e ExternalEvent) Identifier() interface{}

Identifier returns the resource ID.

func (*ExternalEvent) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ExternalEventCollection ¶

type ExternalEventCollection []ExternalEvent

ExternalEventCollection is a list of ExternalEvent resources.

func (*ExternalEventCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ExternalEventCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ExternalEventCreateParams ¶

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

ExternalEventCreateParams contains the request parameters for POST /external_events.

type ExternalEventFindParams ¶

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

ExternalEventFindParams contains the request parameters for GET /external_events/{id}.

type ExternalEventListParams ¶

type ExternalEventListParams struct {
	SortBy     interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

ExternalEventListParams contains the request parameters for GET /external_events.

type ExternalEventStatusEnum ¶

type ExternalEventStatusEnum string

ExternalEventStatusEnum is a string value for status. Enum lists the values documented by the API.

func (ExternalEventStatusEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (ExternalEventStatusEnum) String ¶

func (u ExternalEventStatusEnum) String() string

String returns the API parameter value.

type File ¶

type File struct {
	Path                               string               `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	CreatedById                        int64                `json:"created_by_id,omitempty" path:"created_by_id,omitempty" url:"created_by_id,omitempty"`
	CreatedByApiKeyId                  int64                `json:"created_by_api_key_id,omitempty" path:"created_by_api_key_id,omitempty" url:"created_by_api_key_id,omitempty"`
	CreatedByAs2IncomingMessageId      int64                `` /* 154-byte string literal not displayed */
	CreatedByAutomationId              int64                `json:"created_by_automation_id,omitempty" path:"created_by_automation_id,omitempty" url:"created_by_automation_id,omitempty"`
	CreatedByBundleRegistrationId      int64                `` /* 151-byte string literal not displayed */
	CreatedByInboxId                   int64                `json:"created_by_inbox_id,omitempty" path:"created_by_inbox_id,omitempty" url:"created_by_inbox_id,omitempty"`
	CreatedByRemoteServerId            int64                `` /* 133-byte string literal not displayed */
	CreatedBySyncId                    int64                `json:"created_by_sync_id,omitempty" path:"created_by_sync_id,omitempty" url:"created_by_sync_id,omitempty"`
	CustomMetadata                     interface{}          `json:"custom_metadata,omitempty" path:"custom_metadata,omitempty" url:"custom_metadata,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"`
	LastModifiedById                   int64                `json:"last_modified_by_id,omitempty" path:"last_modified_by_id,omitempty" url:"last_modified_by_id,omitempty"`
	LastModifiedByApiKeyId             int64                `` /* 133-byte string literal not displayed */
	LastModifiedByAutomationId         int64                `` /* 142-byte string literal not displayed */
	LastModifiedByBundleRegistrationId int64                `` /* 169-byte string literal not displayed */
	LastModifiedByRemoteServerId       int64                `` /* 151-byte string literal not displayed */
	LastModifiedBySyncId               int64                `json:"last_modified_by_sync_id,omitempty" path:"last_modified_by_sync_id,omitempty" url:"last_modified_by_sync_id,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"`
	Sha1                               string               `json:"sha1,omitempty" path:"sha1,omitempty" url:"sha1,omitempty"`
	Sha256                             string               `json:"sha256,omitempty" path:"sha256,omitempty" url:"sha256,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"`
	DownloadUri                        string               `json:"download_uri,omitempty" path:"download_uri,omitempty" url:"download_uri,omitempty"`
	DirectConnectionInfo               DirectConnectionInfo `json:"direct_connection_info,omitempty" path:"direct_connection_info,omitempty" url:"direct_connection_info,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"`
	Action                             string               `json:"action,omitempty" path:"action,omitempty" url:"action,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"`
	Ref                                string               `json:"ref,omitempty" path:"ref,omitempty" url:"ref,omitempty"`
	Restart                            int64                `json:"restart,omitempty" path:"restart,omitempty" url:"restart,omitempty"`
	CopyBehaviors                      *bool                `json:"copy_behaviors,omitempty" path:"copy_behaviors,omitempty" url:"copy_behaviors,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"`
	BufferedUpload                     *bool                `json:"buffered_upload,omitempty" path:"buffered_upload,omitempty" url:"buffered_upload,omitempty"`
	WithDirectConnectionInfo           *bool                `` /* 133-byte string literal not displayed */
}

File is a Files.com API resource.

func (File) CreationTime ¶ added in v3.2.206

func (f File) CreationTime() time.Time

CreationTime returns CreatedAt, or the zero time when it is unavailable.

func (File) Identifier ¶

func (f File) Identifier() interface{}

Identifier returns the resource path.

func (File) IsDir ¶

func (f File) IsDir() bool

IsDir reports whether the API resource type is "directory".

func (File) Iterable ¶

func (f File) Iterable() bool

Iterable reports whether f is a directory whose children can be listed.

func (File) ModTime ¶ added in v3.1.50

func (f File) ModTime() time.Time

ModTime returns ProvidedMtime when present, then Mtime, or the zero time when neither timestamp is available.

func (File) String ¶

func (f File) String() string

String returns the Files.com path.

func (File) ToFolder ¶

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

ToFolder copies the fields shared with Folder through their JSON representation. It does not check whether f is a directory.

func (*File) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

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"`
}

FileAction is a Files.com API resource.

func (*FileAction) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FileActionCollection ¶

type FileActionCollection []FileAction

FileActionCollection is a list of FileAction resources.

func (*FileActionCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FileActionCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FileBeginDeleteParams ¶ added in v3.3.302

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

FileBeginDeleteParams contains the request parameters for POST /file_actions/delete/{path}.

Delete File/Folder and return its File Action. A pending or processing deletion continues in the background after this returns; check its File Migration for completion. Waiting for the File Migration does not cancel the deletion

type FileBeginUploadParams ¶

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

FileBeginUploadParams contains the request parameters for POST /file_actions/begin_upload/{path}.

Begin File Upload

type FileCollection ¶

type FileCollection []File

FileCollection is a list of File resources.

func (*FileCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FileCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

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 []FileCommentReaction `json:"reactions,omitempty" path:"reactions,omitempty" url:"reactions,omitempty"`
	Path      string                `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
}

FileComment is a Files.com API resource.

func (FileComment) Identifier ¶

func (f FileComment) Identifier() interface{}

Identifier returns the resource ID.

func (*FileComment) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FileCommentCollection ¶

type FileCommentCollection []FileComment

FileCommentCollection is a list of FileComment resources.

func (*FileCommentCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FileCommentCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FileCommentCreateParams ¶

type FileCommentCreateParams struct {
	Body string `url:"body" json:"body" path:"body"`
	Path string `url:"path" json:"path" path:"path"`
}

FileCommentCreateParams contains the request parameters for POST /file_comments.

type FileCommentDeleteParams ¶

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

FileCommentDeleteParams contains the request parameters for DELETE /file_comments/{id}.

type FileCommentListForParams ¶

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

FileCommentListForParams contains the request parameters for GET /file_comments/files/{path}.

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"`
}

FileCommentReaction is a Files.com API resource.

func (FileCommentReaction) Identifier ¶

func (f FileCommentReaction) Identifier() interface{}

Identifier returns the resource ID.

func (*FileCommentReaction) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FileCommentReactionCollection ¶

type FileCommentReactionCollection []FileCommentReaction

FileCommentReactionCollection is a list of FileCommentReaction resources.

func (*FileCommentReactionCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FileCommentReactionCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FileCommentReactionCreateParams ¶

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

FileCommentReactionCreateParams contains the request parameters for POST /file_comment_reactions.

type FileCommentReactionDeleteParams ¶

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

FileCommentReactionDeleteParams contains the request parameters for DELETE /file_comment_reactions/{id}.

type FileCommentUpdateParams ¶

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

FileCommentUpdateParams contains the request parameters for PATCH /file_comments/{id}.

type FileCopyParams ¶

type FileCopyParams struct {
	Path          string `url:"-,omitempty" json:"-,omitempty" path:"path"`
	Destination   string `url:"destination" json:"destination" path:"destination"`
	CopyBehaviors *bool  `url:"copy_behaviors,omitempty" json:"copy_behaviors,omitempty" path:"copy_behaviors"`
	Structure     *bool  `url:"structure,omitempty" json:"structure,omitempty" path:"structure"`
	Overwrite     *bool  `url:"overwrite,omitempty" json:"overwrite,omitempty" path:"overwrite"`
}

FileCopyParams contains the request parameters for POST /file_actions/copy/{path}.

Copy File/Folder

type FileCreateParams ¶

type FileCreateParams struct {
	Path                     string         `url:"-,omitempty" json:"-,omitempty" path:"path"`
	Action                   string         `url:"action,omitempty" json:"action,omitempty" path:"action"`
	CustomMetadata           interface{}    `url:"custom_metadata,omitempty" json:"custom_metadata,omitempty" path:"custom_metadata"`
	EtagsParam               []EtagsParam   `url:"etags,omitempty" json:"etags,omitempty" path:"etags"`
	Length                   int64          `url:"length,omitempty" json:"length,omitempty" path:"length"`
	MkdirParents             *bool          `url:"mkdir_parents,omitempty" json:"mkdir_parents,omitempty" path:"mkdir_parents"`
	Part                     int64          `url:"part,omitempty" json:"part,omitempty" path:"part"`
	Parts                    int64          `url:"parts,omitempty" json:"parts,omitempty" path:"parts"`
	ProvidedMtime            *time.Time     `url:"provided_mtime,omitempty" json:"provided_mtime,omitempty" path:"provided_mtime"`
	Ref                      string         `url:"ref,omitempty" json:"ref,omitempty" path:"ref"`
	Restart                  int64          `url:"restart,omitempty" json:"restart,omitempty" path:"restart"`
	Size                     int64          `url:"size,omitempty" json:"size,omitempty" path:"size"`
	CopyBehaviors            *bool          `url:"copy_behaviors,omitempty" json:"copy_behaviors,omitempty" path:"copy_behaviors"`
	Structure                string         `url:"structure,omitempty" json:"structure,omitempty" path:"structure"`
	WithRename               *bool          `url:"with_rename,omitempty" json:"with_rename,omitempty" path:"with_rename"`
	BufferedUpload           *bool          `url:"buffered_upload,omitempty" json:"buffered_upload,omitempty" path:"buffered_upload"`
	WithDirectConnectionInfo *bool          `url:"with_direct_connection_info,omitempty" json:"with_direct_connection_info,omitempty" path:"with_direct_connection_info"`
	ActionAttributes         map[string]any `url:"action_attributes,omitempty" json:"action_attributes,omitempty" path:"action_attributes"`
}

FileCreateParams contains the request parameters for POST /files/{path}.

type FileDeleteParams ¶

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

FileDeleteParams contains the request parameters for DELETE /files/{path}.

type FileDownloadParams ¶

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

FileDownloadParams contains the request parameters for GET /files/{path}.

Download File

type FileFindParams ¶

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

FileFindParams contains the request parameters for GET /file_actions/metadata/{path}.

type FileGpgDecryptParams ¶ added in v3.3.151

type FileGpgDecryptParams struct {
	Path              string  `url:"-,omitempty" json:"-,omitempty" path:"path"`
	Destination       string  `url:"destination" json:"destination" path:"destination"`
	GpgKeyIds         []int64 `url:"gpg_key_ids,omitempty" json:"gpg_key_ids,omitempty" path:"gpg_key_ids"`
	GpgKeyPartnerId   int64   `url:"gpg_key_partner_id,omitempty" json:"gpg_key_partner_id,omitempty" path:"gpg_key_partner_id"`
	UseAllPrivateKeys *bool   `url:"use_all_private_keys,omitempty" json:"use_all_private_keys,omitempty" path:"use_all_private_keys"`
	IgnoreMdcError    *bool   `url:"ignore_mdc_error,omitempty" json:"ignore_mdc_error,omitempty" path:"ignore_mdc_error"`
	Overwrite         *bool   `url:"overwrite,omitempty" json:"overwrite,omitempty" path:"overwrite"`
}

FileGpgDecryptParams contains the request parameters for POST /file_actions/gpg_decrypt/{path}.

Decrypt a GPG-encrypted file and save it to a destination path

type FileGpgEncryptParams ¶ added in v3.3.151

type FileGpgEncryptParams struct {
	Path            string  `url:"-,omitempty" json:"-,omitempty" path:"path"`
	Destination     string  `url:"destination" json:"destination" path:"destination"`
	GpgKeyIds       []int64 `url:"gpg_key_ids,omitempty" json:"gpg_key_ids,omitempty" path:"gpg_key_ids"`
	GpgKeyPartnerId int64   `url:"gpg_key_partner_id,omitempty" json:"gpg_key_partner_id,omitempty" path:"gpg_key_partner_id"`
	SigningKeyId    int64   `url:"signing_key_id,omitempty" json:"signing_key_id,omitempty" path:"signing_key_id"`
	Armor           *bool   `url:"armor,omitempty" json:"armor,omitempty" path:"armor"`
	Overwrite       *bool   `url:"overwrite,omitempty" json:"overwrite,omitempty" path:"overwrite"`
}

FileGpgEncryptParams contains the request parameters for POST /file_actions/gpg_encrypt/{path}.

Encrypt a file with GPG and save it to a destination path

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"`
	FailureMessage string `json:"failure_message,omitempty" path:"failure_message,omitempty" url:"failure_message,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"`
}

FileMigration is a Files.com API resource.

func (FileMigration) Identifier ¶

func (f FileMigration) Identifier() interface{}

Identifier returns the resource ID.

func (*FileMigration) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FileMigrationCollection ¶

type FileMigrationCollection []FileMigration

FileMigrationCollection is a list of FileMigration resources.

func (*FileMigrationCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FileMigrationCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FileMigrationFindParams ¶

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

FileMigrationFindParams contains the request parameters for GET /file_migrations/{id}.

type FileMigrationLog ¶ added in v3.1.48

type FileMigrationLog struct {
	Timestamp       *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	FileMigrationId int64      `json:"file_migration_id,omitempty" path:"file_migration_id,omitempty" url:"file_migration_id,omitempty"`
	DestPath        string     `json:"dest_path,omitempty" path:"dest_path,omitempty" url:"dest_path,omitempty"`
	ErrorType       string     `json:"error_type,omitempty" path:"error_type,omitempty" url:"error_type,omitempty"`
	Message         string     `json:"message,omitempty" path:"message,omitempty" url:"message,omitempty"`
	Operation       string     `json:"operation,omitempty" path:"operation,omitempty" url:"operation,omitempty"`
	Path            string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	Status          string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	CreatedAt       *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

FileMigrationLog is a Files.com API resource.

func (FileMigrationLog) Identifier ¶ added in v3.1.48

func (f FileMigrationLog) Identifier() interface{}

Identifier returns the resource path.

func (*FileMigrationLog) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FileMigrationLogCollection ¶ added in v3.1.48

type FileMigrationLogCollection []FileMigrationLog

FileMigrationLogCollection is a list of FileMigrationLog resources.

func (*FileMigrationLogCollection) ToSlice ¶ added in v3.1.48

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

ToSlice returns a new slice containing the resources as interface values.

func (*FileMigrationLogCollection) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FileMigrationLogListParams ¶ added in v3.1.48

type FileMigrationLogListParams struct {
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

FileMigrationLogListParams contains the request parameters for GET /file_migration_logs.

type FileMoveParams ¶

type FileMoveParams struct {
	Path        string `url:"-,omitempty" json:"-,omitempty" path:"path"`
	Destination string `url:"destination" json:"destination" path:"destination"`
	Overwrite   *bool  `url:"overwrite,omitempty" json:"overwrite,omitempty" path:"overwrite"`
}

FileMoveParams contains the request parameters for POST /file_actions/move/{path}.

Move File/Folder

type FileTransformParams ¶ added in v3.3.164

type FileTransformParams struct {
	Path          string `url:"-,omitempty" json:"-,omitempty" path:"path"`
	Destination   string `url:"destination" json:"destination" path:"destination"`
	TransformType string `url:"transform_type" json:"transform_type" path:"transform_type"`
	TargetFormat  string `url:"target_format" json:"target_format" path:"target_format"`
	Script        string `url:"script,omitempty" json:"script,omitempty" path:"script"`
	Width         int64  `url:"width,omitempty" json:"width,omitempty" path:"width"`
	Height        int64  `url:"height,omitempty" json:"height,omitempty" path:"height"`
	Overwrite     *bool  `url:"overwrite,omitempty" json:"overwrite,omitempty" path:"overwrite"`
}

FileTransformParams contains the request parameters for POST /file_actions/transform/{path}.

Transform a file and save the output to a destination path

type FileUnzipParams ¶ added in v3.3.33

type FileUnzipParams struct {
	Path        string `url:"path" json:"path" path:"path"`
	Destination string `url:"destination" json:"destination" path:"destination"`
	Filename    string `url:"filename,omitempty" json:"filename,omitempty" path:"filename"`
	Overwrite   *bool  `url:"overwrite,omitempty" json:"overwrite,omitempty" path:"overwrite"`
}

FileUnzipParams contains the request parameters for POST /file_actions/unzip.

Extract a ZIP file to a destination folder

type FileUpdateParams ¶

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

FileUpdateParams contains the request parameters for PATCH /files/{path}.

type FileUploadPart ¶

type FileUploadPart struct {
	Send                 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              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           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"`
	DirectConnectionInfo DirectConnectionInfo `json:"direct_connection_info,omitempty" path:"direct_connection_info,omitempty" url:"direct_connection_info,omitempty"`
}

FileUploadPart is a Files.com API resource.

func (FileUploadPart) ExpiresTime ¶

func (f FileUploadPart) ExpiresTime() time.Time

func (FileUploadPart) Identifier ¶

func (f FileUploadPart) Identifier() interface{}

Identifier returns the resource path.

func (*FileUploadPart) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

func (FileUploadPart) UploadExpires ¶

func (f FileUploadPart) UploadExpires() time.Time

UploadExpires only valid on first part request

type FileUploadPartCollection ¶

type FileUploadPartCollection []FileUploadPart

FileUploadPartCollection is a list of FileUploadPart resources.

func (*FileUploadPartCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FileUploadPartCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FileZipListContentsParams ¶ added in v3.3.33

type FileZipListContentsParams struct {
	Path string `url:"-,omitempty" json:"-,omitempty" path:"path"`
}

FileZipListContentsParams contains the request parameters for GET /file_actions/zip_list/{path}.

List the contents of a ZIP file

type FileZipParams ¶ added in v3.3.33

type FileZipParams struct {
	Paths       []string `url:"paths" json:"paths" path:"paths"`
	Destination string   `url:"destination" json:"destination" path:"destination"`
	Overwrite   *bool    `url:"overwrite,omitempty" json:"overwrite,omitempty" path:"overwrite"`
}

FileZipParams contains the request parameters for POST /file_actions/zip.

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
}

FilesMigrationLogIter Transforms migrations into a log iterator

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"`
	CreatedById                        int64                `json:"created_by_id,omitempty" path:"created_by_id,omitempty" url:"created_by_id,omitempty"`
	CreatedByApiKeyId                  int64                `json:"created_by_api_key_id,omitempty" path:"created_by_api_key_id,omitempty" url:"created_by_api_key_id,omitempty"`
	CreatedByAs2IncomingMessageId      int64                `` /* 154-byte string literal not displayed */
	CreatedByAutomationId              int64                `json:"created_by_automation_id,omitempty" path:"created_by_automation_id,omitempty" url:"created_by_automation_id,omitempty"`
	CreatedByBundleRegistrationId      int64                `` /* 151-byte string literal not displayed */
	CreatedByInboxId                   int64                `json:"created_by_inbox_id,omitempty" path:"created_by_inbox_id,omitempty" url:"created_by_inbox_id,omitempty"`
	CreatedByRemoteServerId            int64                `` /* 133-byte string literal not displayed */
	CreatedBySyncId                    int64                `json:"created_by_sync_id,omitempty" path:"created_by_sync_id,omitempty" url:"created_by_sync_id,omitempty"`
	CustomMetadata                     interface{}          `json:"custom_metadata,omitempty" path:"custom_metadata,omitempty" url:"custom_metadata,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"`
	LastModifiedById                   int64                `json:"last_modified_by_id,omitempty" path:"last_modified_by_id,omitempty" url:"last_modified_by_id,omitempty"`
	LastModifiedByApiKeyId             int64                `` /* 133-byte string literal not displayed */
	LastModifiedByAutomationId         int64                `` /* 142-byte string literal not displayed */
	LastModifiedByBundleRegistrationId int64                `` /* 169-byte string literal not displayed */
	LastModifiedByRemoteServerId       int64                `` /* 151-byte string literal not displayed */
	LastModifiedBySyncId               int64                `json:"last_modified_by_sync_id,omitempty" path:"last_modified_by_sync_id,omitempty" url:"last_modified_by_sync_id,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"`
	Sha1                               string               `json:"sha1,omitempty" path:"sha1,omitempty" url:"sha1,omitempty"`
	Sha256                             string               `json:"sha256,omitempty" path:"sha256,omitempty" url:"sha256,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"`
	DownloadUri                        string               `json:"download_uri,omitempty" path:"download_uri,omitempty" url:"download_uri,omitempty"`
	DirectConnectionInfo               DirectConnectionInfo `json:"direct_connection_info,omitempty" path:"direct_connection_info,omitempty" url:"direct_connection_info,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"`
}

Folder is a Files.com API resource.

func (Folder) Identifier ¶

func (f Folder) Identifier() interface{}

Identifier returns the resource path.

func (Folder) IsDir ¶

func (f Folder) IsDir() bool

IsDir reports whether the API resource type is "directory".

func (*Folder) ToFile ¶

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

ToFile copies the fields shared with File through their JSON representation.

func (*Folder) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FolderCollection ¶

type FolderCollection []Folder

FolderCollection is a list of Folder resources.

func (*FolderCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FolderCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FolderCreateParams ¶

type FolderCreateParams struct {
	Path          string     `url:"-,omitempty" json:"-,omitempty" path:"path"`
	MkdirParents  *bool      `url:"mkdir_parents,omitempty" json:"mkdir_parents,omitempty" path:"mkdir_parents"`
	ProvidedMtime *time.Time `url:"provided_mtime,omitempty" json:"provided_mtime,omitempty" path:"provided_mtime"`
}

FolderCreateParams contains the request parameters for POST /folders/{path}.

type FolderListForParams ¶

type FolderListForParams struct {
	Path                    string                              `url:"-,omitempty" json:"-,omitempty" path:"path"`
	PreviewSize             string                              `url:"preview_size,omitempty" json:"preview_size,omitempty" path:"preview_size"`
	SortBy                  interface{}                         `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Search                  string                              `url:"search,omitempty" json:"search,omitempty" path:"search"`
	SearchCustomMetadataKey string                              `url:"search_custom_metadata_key,omitempty" json:"search_custom_metadata_key,omitempty" path:"search_custom_metadata_key"`
	SearchAll               *bool                               `url:"search_all,omitempty" json:"search_all,omitempty" path:"search_all"`
	WithPreviews            *bool                               `url:"with_previews,omitempty" json:"with_previews,omitempty" path:"with_previews"`
	WithPriorityColor       *bool                               `url:"with_priority_color,omitempty" json:"with_priority_color,omitempty" path:"with_priority_color"`
	Type                    string                              `url:"type,omitempty" json:"type,omitempty" path:"type"`
	ModifiedAtDatetime      *time.Time                          `url:"modified_at_datetime,omitempty" json:"modified_at_datetime,omitempty" path:"modified_at_datetime"`
	ConcurrencyManager      lib.ConcurrencyManagerWithSubWorker `url:"-" required:"false" json:"-"`
	ListParams
}

FolderListForParams contains the request parameters for GET /folders/{path}.

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"`
}

FormField is a Files.com API resource.

func (FormField) Identifier ¶

func (f FormField) Identifier() interface{}

Identifier returns the resource ID.

func (*FormField) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FormFieldCollection ¶

type FormFieldCollection []FormField

FormFieldCollection is a list of FormField resources.

func (*FormFieldCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FormFieldCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

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"`
	RequireCompleteMetadataCapture *bool       `` /* 151-byte string literal not displayed */
	FormLayout                     []int64     `json:"form_layout,omitempty" path:"form_layout,omitempty" url:"form_layout,omitempty"`
	FormFields                     []FormField `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"`
	InUse                          *bool       `json:"in_use,omitempty" path:"in_use,omitempty" url:"in_use,omitempty"`
	UserId                         int64       `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	WorkspaceId                    int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
}

FormFieldSet is a Files.com API resource.

func (FormFieldSet) Identifier ¶

func (f FormFieldSet) Identifier() interface{}

Identifier returns the resource ID.

func (*FormFieldSet) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FormFieldSetCollection ¶

type FormFieldSetCollection []FormFieldSet

FormFieldSetCollection is a list of FormFieldSet resources.

func (*FormFieldSetCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*FormFieldSetCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FormFieldSetCreateParams ¶

type FormFieldSetCreateParams struct {
	UserId                         int64                    `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Title                          string                   `url:"title,omitempty" json:"title,omitempty" path:"title"`
	RequireCompleteMetadataCapture *bool                    `` /* 141-byte string literal not displayed */
	WorkspaceId                    int64                    `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	SkipEmail                      *bool                    `url:"skip_email,omitempty" json:"skip_email,omitempty" path:"skip_email"`
	SkipName                       *bool                    `url:"skip_name,omitempty" json:"skip_name,omitempty" path:"skip_name"`
	SkipCompany                    *bool                    `url:"skip_company,omitempty" json:"skip_company,omitempty" path:"skip_company"`
	FormFields                     []map[string]interface{} `url:"form_fields,omitempty" json:"form_fields,omitempty" path:"form_fields"`
}

FormFieldSetCreateParams contains the request parameters for POST /form_field_sets.

type FormFieldSetDeleteParams ¶

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

FormFieldSetDeleteParams contains the request parameters for DELETE /form_field_sets/{id}.

type FormFieldSetFindParams ¶

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

FormFieldSetFindParams contains the request parameters for GET /form_field_sets/{id}.

type FormFieldSetListParams ¶

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

FormFieldSetListParams contains the request parameters for GET /form_field_sets.

type FormFieldSetUpdateParams ¶

type FormFieldSetUpdateParams struct {
	Id                             int64                    `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Title                          string                   `url:"title,omitempty" json:"title,omitempty" path:"title"`
	RequireCompleteMetadataCapture *bool                    `` /* 141-byte string literal not displayed */
	WorkspaceId                    int64                    `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	SkipEmail                      *bool                    `url:"skip_email,omitempty" json:"skip_email,omitempty" path:"skip_email"`
	SkipName                       *bool                    `url:"skip_name,omitempty" json:"skip_name,omitempty" path:"skip_name"`
	SkipCompany                    *bool                    `url:"skip_company,omitempty" json:"skip_company,omitempty" path:"skip_company"`
	FormFields                     []map[string]interface{} `url:"form_fields,omitempty" json:"form_fields,omitempty" path:"form_fields"`
}

FormFieldSetUpdateParams contains the request parameters for PATCH /form_field_sets/{id}.

type FtpActionLog ¶ added in v3.1.68

type FtpActionLog struct {
	Timestamp       *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	RemoteIp        string     `json:"remote_ip,omitempty" path:"remote_ip,omitempty" url:"remote_ip,omitempty"`
	ServerIp        string     `json:"server_ip,omitempty" path:"server_ip,omitempty" url:"server_ip,omitempty"`
	Username        string     `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	SessionUuid     string     `json:"session_uuid,omitempty" path:"session_uuid,omitempty" url:"session_uuid,omitempty"`
	SeqId           int64      `json:"seq_id,omitempty" path:"seq_id,omitempty" url:"seq_id,omitempty"`
	AuthCiphers     string     `json:"auth_ciphers,omitempty" path:"auth_ciphers,omitempty" url:"auth_ciphers,omitempty"`
	ActionType      string     `json:"action_type,omitempty" path:"action_type,omitempty" url:"action_type,omitempty"`
	Path            string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	TruePath        string     `json:"true_path,omitempty" path:"true_path,omitempty" url:"true_path,omitempty"`
	Name            string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Cmd             string     `json:"cmd,omitempty" path:"cmd,omitempty" url:"cmd,omitempty"`
	Param           string     `json:"param,omitempty" path:"param,omitempty" url:"param,omitempty"`
	ResponseCode    int64      `json:"responseCode,omitempty" path:"responseCode,omitempty" url:"responseCode,omitempty"`
	ResponseMessage string     `json:"responseMessage,omitempty" path:"responseMessage,omitempty" url:"responseMessage,omitempty"`
	EntriesReturned int64      `json:"entries_returned,omitempty" path:"entries_returned,omitempty" url:"entries_returned,omitempty"`
	Success         *bool      `json:"success,omitempty" path:"success,omitempty" url:"success,omitempty"`
	Status          string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	DurationMs      int64      `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	CreatedAt       *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

FtpActionLog is a Files.com API resource.

func (FtpActionLog) Identifier ¶ added in v3.1.68

func (f FtpActionLog) Identifier() interface{}

Identifier returns the resource path.

func (*FtpActionLog) UnmarshalJSON ¶ added in v3.1.68

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type FtpActionLogCollection ¶ added in v3.1.68

type FtpActionLogCollection []FtpActionLog

FtpActionLogCollection is a list of FtpActionLog resources.

func (*FtpActionLogCollection) ToSlice ¶ added in v3.1.68

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

ToSlice returns a new slice containing the resources as interface values.

func (*FtpActionLogCollection) UnmarshalJSON ¶ added in v3.1.68

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type FtpActionLogListParams ¶ added in v3.1.68

type FtpActionLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

FtpActionLogListParams contains the request parameters for GET /ftp_action_logs.

type GpgKey ¶

type GpgKey struct {
	Id                    int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId           int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_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"`
	PartnerId             int64      `json:"partner_id,omitempty" path:"partner_id,omitempty" url:"partner_id,omitempty"`
	PartnerName           string     `json:"partner_name,omitempty" path:"partner_name,omitempty" url:"partner_name,omitempty"`
	UserId                int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	PublicKeyMd5          string     `json:"public_key_md5,omitempty" path:"public_key_md5,omitempty" url:"public_key_md5,omitempty"`
	PrivateKeyMd5         string     `json:"private_key_md5,omitempty" path:"private_key_md5,omitempty" url:"private_key_md5,omitempty"`
	GeneratedPublicKey    string     `json:"generated_public_key,omitempty" path:"generated_public_key,omitempty" url:"generated_public_key,omitempty"`
	GeneratedPrivateKey   string     `json:"generated_private_key,omitempty" path:"generated_private_key,omitempty" url:"generated_private_key,omitempty"`
	PrivateKeyPasswordMd5 string     `json:"private_key_password_md5,omitempty" path:"private_key_password_md5,omitempty" url:"private_key_password_md5,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"`
	GenerateExpiresAt     string     `json:"generate_expires_at,omitempty" path:"generate_expires_at,omitempty" url:"generate_expires_at,omitempty"`
	GenerateKeypair       *bool      `json:"generate_keypair,omitempty" path:"generate_keypair,omitempty" url:"generate_keypair,omitempty"`
	GenerateFullName      string     `json:"generate_full_name,omitempty" path:"generate_full_name,omitempty" url:"generate_full_name,omitempty"`
	GenerateEmail         string     `json:"generate_email,omitempty" path:"generate_email,omitempty" url:"generate_email,omitempty"`
}

GpgKey is a Files.com API resource.

func (GpgKey) Identifier ¶

func (g GpgKey) Identifier() interface{}

Identifier returns the resource ID.

func (*GpgKey) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type GpgKeyCollection ¶

type GpgKeyCollection []GpgKey

GpgKeyCollection is a list of GpgKey resources.

func (*GpgKeyCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*GpgKeyCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type GpgKeyCreateParams ¶

type GpgKeyCreateParams struct {
	UserId             int64      `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	PartnerId          int64      `url:"partner_id,omitempty" json:"partner_id,omitempty" path:"partner_id"`
	PublicKey          string     `url:"public_key,omitempty" json:"public_key,omitempty" path:"public_key"`
	PrivateKey         string     `url:"private_key,omitempty" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassword string     `url:"private_key_password,omitempty" json:"private_key_password,omitempty" path:"private_key_password"`
	Name               string     `url:"name" json:"name" path:"name"`
	WorkspaceId        int64      `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	GenerateExpiresAt  *time.Time `url:"generate_expires_at,omitempty" json:"generate_expires_at,omitempty" path:"generate_expires_at"`
	GenerateKeypair    *bool      `url:"generate_keypair,omitempty" json:"generate_keypair,omitempty" path:"generate_keypair"`
	GenerateFullName   string     `url:"generate_full_name,omitempty" json:"generate_full_name,omitempty" path:"generate_full_name"`
	GenerateEmail      string     `url:"generate_email,omitempty" json:"generate_email,omitempty" path:"generate_email"`
}

GpgKeyCreateParams contains the request parameters for POST /gpg_keys.

type GpgKeyDeleteParams ¶

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

GpgKeyDeleteParams contains the request parameters for DELETE /gpg_keys/{id}.

type GpgKeyFindParams ¶

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

GpgKeyFindParams contains the request parameters for GET /gpg_keys/{id}.

type GpgKeyListParams ¶

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

GpgKeyListParams contains the request parameters for GET /gpg_keys.

type GpgKeyUpdateParams ¶

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

GpgKeyUpdateParams contains the request parameters for PATCH /gpg_keys/{id}.

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"`
	AllowedIps                     string `json:"allowed_ips,omitempty" path:"allowed_ips,omitempty" url:"allowed_ips,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"`
	AiAssistantPersonalityId       int64  `` /* 133-byte string literal not displayed */
	FtpPermission                  *bool  `json:"ftp_permission,omitempty" path:"ftp_permission,omitempty" url:"ftp_permission,omitempty"`
	SftpPermission                 *bool  `json:"sftp_permission,omitempty" path:"sftp_permission,omitempty" url:"sftp_permission,omitempty"`
	DavPermission                  *bool  `json:"dav_permission,omitempty" path:"dav_permission,omitempty" url:"dav_permission,omitempty"`
	RestapiPermission              *bool  `json:"restapi_permission,omitempty" path:"restapi_permission,omitempty" url:"restapi_permission,omitempty"`
	S3CompatibleEndpointPermission *bool  `` /* 151-byte string literal not displayed */
	DesktopConfigurationProfileId  int64  `` /* 148-byte string literal not displayed */
	IntegrationCentricProfileId    int64  `` /* 142-byte string literal not displayed */
	SiteId                         int64  `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	WorkspaceId                    int64  `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
}

Group is a Files.com API resource.

func (Group) Identifier ¶

func (g Group) Identifier() interface{}

Identifier returns the resource ID.

func (*Group) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type GroupCollection ¶

type GroupCollection []Group

GroupCollection is a list of Group resources.

func (*GroupCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*GroupCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type GroupCreateParams ¶

type GroupCreateParams struct {
	Notes                          string `url:"notes,omitempty" json:"notes,omitempty" path:"notes"`
	UserIds                        string `url:"user_ids,omitempty" json:"user_ids,omitempty" path:"user_ids"`
	AdminIds                       string `url:"admin_ids,omitempty" json:"admin_ids,omitempty" path:"admin_ids"`
	AiAssistantPersonalityId       int64  `url:"ai_assistant_personality_id,omitempty" json:"ai_assistant_personality_id,omitempty" path:"ai_assistant_personality_id"`
	FtpPermission                  *bool  `url:"ftp_permission,omitempty" json:"ftp_permission,omitempty" path:"ftp_permission"`
	SftpPermission                 *bool  `url:"sftp_permission,omitempty" json:"sftp_permission,omitempty" path:"sftp_permission"`
	DavPermission                  *bool  `url:"dav_permission,omitempty" json:"dav_permission,omitempty" path:"dav_permission"`
	RestapiPermission              *bool  `url:"restapi_permission,omitempty" json:"restapi_permission,omitempty" path:"restapi_permission"`
	S3CompatibleEndpointPermission *bool  `` /* 141-byte string literal not displayed */
	DesktopConfigurationProfileId  int64  `` /* 138-byte string literal not displayed */
	IntegrationCentricProfileId    int64  `` /* 132-byte string literal not displayed */
	AllowedIps                     string `url:"allowed_ips,omitempty" json:"allowed_ips,omitempty" path:"allowed_ips"`
	Name                           string `url:"name" json:"name" path:"name"`
	WorkspaceId                    int64  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

GroupCreateParams contains the request parameters for POST /groups.

type GroupDeleteParams ¶

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

GroupDeleteParams contains the request parameters for DELETE /groups/{id}.

type GroupFindParams ¶

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

GroupFindParams contains the request parameters for GET /groups/{id}.

type GroupListParams ¶

type GroupListParams struct {
	SortBy                        interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter                        interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterPrefix                  interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Ids                           string      `url:"ids,omitempty" json:"ids,omitempty" path:"ids"`
	IncludeParentSiteGroups       *bool       `url:"include_parent_site_groups,omitempty" json:"include_parent_site_groups,omitempty" path:"include_parent_site_groups"`
	IncludeDefaultWorkspaceGroups *bool       `` /* 138-byte string literal not displayed */
	ListParams
}

GroupListParams contains the request parameters for GET /groups.

type GroupUpdateParams ¶

type GroupUpdateParams struct {
	Id                             int64  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Notes                          string `url:"notes,omitempty" json:"notes,omitempty" path:"notes"`
	UserIds                        string `url:"user_ids,omitempty" json:"user_ids,omitempty" path:"user_ids"`
	AdminIds                       string `url:"admin_ids,omitempty" json:"admin_ids,omitempty" path:"admin_ids"`
	AiAssistantPersonalityId       int64  `url:"ai_assistant_personality_id,omitempty" json:"ai_assistant_personality_id,omitempty" path:"ai_assistant_personality_id"`
	FtpPermission                  *bool  `url:"ftp_permission,omitempty" json:"ftp_permission,omitempty" path:"ftp_permission"`
	SftpPermission                 *bool  `url:"sftp_permission,omitempty" json:"sftp_permission,omitempty" path:"sftp_permission"`
	DavPermission                  *bool  `url:"dav_permission,omitempty" json:"dav_permission,omitempty" path:"dav_permission"`
	RestapiPermission              *bool  `url:"restapi_permission,omitempty" json:"restapi_permission,omitempty" path:"restapi_permission"`
	S3CompatibleEndpointPermission *bool  `` /* 141-byte string literal not displayed */
	DesktopConfigurationProfileId  int64  `` /* 138-byte string literal not displayed */
	IntegrationCentricProfileId    int64  `` /* 132-byte string literal not displayed */
	AllowedIps                     string `url:"allowed_ips,omitempty" json:"allowed_ips,omitempty" path:"allowed_ips"`
	Name                           string `url:"name,omitempty" json:"name,omitempty" path:"name"`
}

GroupUpdateParams contains the request parameters for PATCH /groups/{id}.

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"`
	Username  string `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	Id        int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
}

GroupUser is a Files.com API resource.

func (GroupUser) Identifier ¶

func (g GroupUser) Identifier() interface{}

Identifier returns the resource ID.

func (*GroupUser) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type GroupUserCollection ¶

type GroupUserCollection []GroupUser

GroupUserCollection is a list of GroupUser resources.

func (*GroupUserCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*GroupUserCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type GroupUserCreateParams ¶

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

GroupUserCreateParams contains the request parameters for POST /group_users.

type GroupUserDeleteParams ¶

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

GroupUserDeleteParams contains the request parameters for DELETE /group_users/{id}.

type GroupUserListParams ¶

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

GroupUserListParams contains the request parameters for GET /group_users.

type GroupUserUpdateParams ¶

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

GroupUserUpdateParams contains the request parameters for PATCH /group_users/{id}.

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              interface{} `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"`
	UserIsFromParentSite *bool       `json:"user_is_from_parent_site,omitempty" path:"user_is_from_parent_site,omitempty" url:"user_is_from_parent_site,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"`
}

History is a Files.com API resource.

func (History) Identifier ¶

func (h History) Identifier() interface{}

Identifier returns the resource ID.

func (*History) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type HistoryCollection ¶

type HistoryCollection []History

HistoryCollection is a list of History resources.

func (*HistoryCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*HistoryCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type HistoryExport ¶

type HistoryExport struct {
	WorkspaceId              int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	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"`
}

HistoryExport is a Files.com API resource.

func (HistoryExport) Identifier ¶

func (h HistoryExport) Identifier() interface{}

Identifier returns the resource ID.

func (*HistoryExport) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type HistoryExportCollection ¶

type HistoryExportCollection []HistoryExport

HistoryExportCollection is a list of HistoryExport resources.

func (*HistoryExportCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*HistoryExportCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type HistoryExportCreateParams ¶

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

HistoryExportCreateParams contains the request parameters for POST /history_exports.

type HistoryExportFindParams ¶

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

HistoryExportFindParams contains the request parameters for GET /history_exports/{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"`
	UserIsFromParentSite   *bool  `json:"user_is_from_parent_site,omitempty" path:"user_is_from_parent_site,omitempty" url:"user_is_from_parent_site,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"`
}

HistoryExportResult is a Files.com API resource.

func (HistoryExportResult) Identifier ¶

func (h HistoryExportResult) Identifier() interface{}

Identifier returns the resource ID.

func (*HistoryExportResult) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type HistoryExportResultCollection ¶

type HistoryExportResultCollection []HistoryExportResult

HistoryExportResultCollection is a list of HistoryExportResult resources.

func (*HistoryExportResultCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*HistoryExportResultCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type HistoryExportResultListParams ¶

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

HistoryExportResultListParams contains the request parameters for GET /history_export_results.

type HistoryListForFileParams ¶

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

HistoryListForFileParams contains the request parameters for GET /history/files/{path}.

type HistoryListForFolderParams ¶

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

HistoryListForFolderParams contains the request parameters for GET /history/folders/{path}.

type HistoryListForUserParams ¶

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

HistoryListForUserParams contains the request parameters for GET /history/users/{user_id}.

type HistoryListLoginsParams ¶

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

HistoryListLoginsParams contains the request parameters for GET /history/login.

type HistoryListParams ¶

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

HistoryListParams contains the request parameters for GET /history.

type HolidayCalendar ¶ added in v3.3.195

type HolidayCalendar struct {
	Id         int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name       string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Definition interface{} `json:"definition,omitempty" path:"definition,omitempty" url:"definition,omitempty"`
	CreatedAt  *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt  *time.Time  `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

HolidayCalendar is a Files.com API resource.

func (HolidayCalendar) Identifier ¶ added in v3.3.195

func (h HolidayCalendar) Identifier() interface{}

Identifier returns the resource ID.

func (*HolidayCalendar) UnmarshalJSON ¶ added in v3.3.195

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type HolidayCalendarCollection ¶ added in v3.3.195

type HolidayCalendarCollection []HolidayCalendar

HolidayCalendarCollection is a list of HolidayCalendar resources.

func (*HolidayCalendarCollection) ToSlice ¶ added in v3.3.195

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

ToSlice returns a new slice containing the resources as interface values.

func (*HolidayCalendarCollection) UnmarshalJSON ¶ added in v3.3.195

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type HolidayCalendarCreateParams ¶ added in v3.3.195

type HolidayCalendarCreateParams struct {
	Definition interface{} `url:"definition" json:"definition" path:"definition"`
	Name       string      `url:"name" json:"name" path:"name"`
}

HolidayCalendarCreateParams contains the request parameters for POST /holiday_calendars.

type HolidayCalendarDeleteParams ¶ added in v3.3.195

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

HolidayCalendarDeleteParams contains the request parameters for DELETE /holiday_calendars/{id}.

type HolidayCalendarFindParams ¶ added in v3.3.195

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

HolidayCalendarFindParams contains the request parameters for GET /holiday_calendars/{id}.

type HolidayCalendarListParams ¶ added in v3.3.195

type HolidayCalendarListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

HolidayCalendarListParams contains the request parameters for GET /holiday_calendars.

type HolidayCalendarUpdateParams ¶ added in v3.3.195

type HolidayCalendarUpdateParams struct {
	Id         int64       `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Definition interface{} `url:"definition,omitempty" json:"definition,omitempty" path:"definition"`
	Name       string      `url:"name,omitempty" json:"name,omitempty" path:"name"`
}

HolidayCalendarUpdateParams contains the request parameters for PATCH /holiday_calendars/{id}.

type HolidayRegion ¶ added in v3.2.185

type HolidayRegion struct {
	Code string `json:"code,omitempty" path:"code,omitempty" url:"code,omitempty"`
	Name string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
}

HolidayRegion is a Files.com API resource.

func (*HolidayRegion) UnmarshalJSON ¶ added in v3.2.185

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type HolidayRegionCollection ¶ added in v3.2.185

type HolidayRegionCollection []HolidayRegion

HolidayRegionCollection is a list of HolidayRegion resources.

func (*HolidayRegionCollection) ToSlice ¶ added in v3.2.185

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

ToSlice returns a new slice containing the resources as interface values.

func (*HolidayRegionCollection) UnmarshalJSON ¶ added in v3.2.185

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type HolidayRegionGetSupportedParams ¶ added in v3.2.185

type HolidayRegionGetSupportedParams struct {
	ListParams
}

HolidayRegionGetSupportedParams contains the request parameters for GET /holiday_regions/supported.

type Identifier ¶

type Identifier interface {
	Identifier() interface{}
}

Identifier exposes an API resource ID or path.

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"`
}

Image is a Files.com API resource.

func (*Image) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ImageCollection ¶

type ImageCollection []Image

ImageCollection is a list of Image resources.

func (*ImageCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ImageCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type InboundS3Log ¶ added in v3.3.13

type InboundS3Log struct {
	Path         string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	ClientIp     string     `json:"client_ip,omitempty" path:"client_ip,omitempty" url:"client_ip,omitempty"`
	Operation    string     `json:"operation,omitempty" path:"operation,omitempty" url:"operation,omitempty"`
	Status       string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	AwsAccessKey string     `json:"aws_access_key,omitempty" path:"aws_access_key,omitempty" url:"aws_access_key,omitempty"`
	ErrorMessage string     `json:"error_message,omitempty" path:"error_message,omitempty" url:"error_message,omitempty"`
	ErrorType    string     `json:"error_type,omitempty" path:"error_type,omitempty" url:"error_type,omitempty"`
	DurationMs   int64      `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	RequestId    string     `json:"request_id,omitempty" path:"request_id,omitempty" url:"request_id,omitempty"`
	UserAgent    string     `json:"user_agent,omitempty" path:"user_agent,omitempty" url:"user_agent,omitempty"`
	CreatedAt    *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

InboundS3Log is a Files.com API resource.

func (InboundS3Log) Identifier ¶ added in v3.3.13

func (i InboundS3Log) Identifier() interface{}

Identifier returns the resource path.

func (*InboundS3Log) UnmarshalJSON ¶ added in v3.3.13

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type InboundS3LogCollection ¶ added in v3.3.13

type InboundS3LogCollection []InboundS3Log

InboundS3LogCollection is a list of InboundS3Log resources.

func (*InboundS3LogCollection) ToSlice ¶ added in v3.3.13

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

ToSlice returns a new slice containing the resources as interface values.

func (*InboundS3LogCollection) UnmarshalJSON ¶ added in v3.3.13

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type InboundS3LogListParams ¶ added in v3.3.13

type InboundS3LogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

InboundS3LogListParams contains the request parameters for GET /inbound_s3_logs.

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"`
	ShareAfterCreate *bool      `json:"share_after_create,omitempty" path:"share_after_create,omitempty" url:"share_after_create,omitempty"`
}

InboxRecipient is a Files.com API resource.

func (*InboxRecipient) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type InboxRecipientCollection ¶

type InboxRecipientCollection []InboxRecipient

InboxRecipientCollection is a list of InboxRecipient resources.

func (*InboxRecipientCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*InboxRecipientCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type InboxRecipientCreateParams ¶

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

InboxRecipientCreateParams contains the request parameters for POST /inbox_recipients.

type InboxRecipientListParams ¶

type InboxRecipientListParams struct {
	SortBy  interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter  interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	InboxId int64       `url:"inbox_id" json:"inbox_id" path:"inbox_id"`
	ListParams
}

InboxRecipientListParams contains the request parameters for GET /inbox_recipients.

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"`
	Ip               string      `json:"ip,omitempty" path:"ip,omitempty" url:"ip,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    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"`
}

InboxRegistration is a Files.com API resource.

func (*InboxRegistration) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type InboxRegistrationCollection ¶

type InboxRegistrationCollection []InboxRegistration

InboxRegistrationCollection is a list of InboxRegistration resources.

func (*InboxRegistrationCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*InboxRegistrationCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type InboxRegistrationListParams ¶

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

InboxRegistrationListParams contains the request parameters for GET /inbox_registrations.

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"`
}

InboxUpload is a Files.com API resource.

func (InboxUpload) Identifier ¶

func (i InboxUpload) Identifier() interface{}

Identifier returns the resource path.

func (*InboxUpload) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type InboxUploadCollection ¶

type InboxUploadCollection []InboxUpload

InboxUploadCollection is a list of InboxUpload resources.

func (*InboxUploadCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*InboxUploadCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type InboxUploadListParams ¶

type InboxUploadListParams struct {
	SortBy     interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

InboxUploadListParams contains the request parameters for GET /inbox_uploads.

type IntegrationCentricProfile ¶ added in v3.3.185

type IntegrationCentricProfile struct {
	Id                    int64                    `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                  string                   `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	WorkspaceId           int64                    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	UseForAllUsers        *bool                    `json:"use_for_all_users,omitempty" path:"use_for_all_users,omitempty" url:"use_for_all_users,omitempty"`
	ExpectedRemoteServers []map[string]interface{} `json:"expected_remote_servers,omitempty" path:"expected_remote_servers,omitempty" url:"expected_remote_servers,omitempty"`
}

IntegrationCentricProfile is a Files.com API resource.

func (IntegrationCentricProfile) Identifier ¶ added in v3.3.185

func (i IntegrationCentricProfile) Identifier() interface{}

Identifier returns the resource ID.

func (*IntegrationCentricProfile) UnmarshalJSON ¶ added in v3.3.185

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type IntegrationCentricProfileCollection ¶ added in v3.3.185

type IntegrationCentricProfileCollection []IntegrationCentricProfile

IntegrationCentricProfileCollection is a list of IntegrationCentricProfile resources.

func (*IntegrationCentricProfileCollection) ToSlice ¶ added in v3.3.185

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

ToSlice returns a new slice containing the resources as interface values.

func (*IntegrationCentricProfileCollection) UnmarshalJSON ¶ added in v3.3.185

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type IntegrationCentricProfileCreateParams ¶ added in v3.3.185

type IntegrationCentricProfileCreateParams struct {
	Name                  string                   `url:"name" json:"name" path:"name"`
	ExpectedRemoteServers []map[string]interface{} `url:"expected_remote_servers" json:"expected_remote_servers" path:"expected_remote_servers"`
	WorkspaceId           int64                    `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	UseForAllUsers        *bool                    `url:"use_for_all_users,omitempty" json:"use_for_all_users,omitempty" path:"use_for_all_users"`
}

IntegrationCentricProfileCreateParams contains the request parameters for POST /integration_centric_profiles.

type IntegrationCentricProfileDeleteParams ¶ added in v3.3.185

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

IntegrationCentricProfileDeleteParams contains the request parameters for DELETE /integration_centric_profiles/{id}.

type IntegrationCentricProfileFindParams ¶ added in v3.3.185

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

IntegrationCentricProfileFindParams contains the request parameters for GET /integration_centric_profiles/{id}.

type IntegrationCentricProfileListParams ¶ added in v3.3.185

type IntegrationCentricProfileListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

IntegrationCentricProfileListParams contains the request parameters for GET /integration_centric_profiles.

type IntegrationCentricProfileUpdateParams ¶ added in v3.3.185

type IntegrationCentricProfileUpdateParams struct {
	Id                    int64                    `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name                  string                   `url:"name,omitempty" json:"name,omitempty" path:"name"`
	WorkspaceId           int64                    `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	ExpectedRemoteServers []map[string]interface{} `url:"expected_remote_servers,omitempty" json:"expected_remote_servers,omitempty" path:"expected_remote_servers"`
	UseForAllUsers        *bool                    `url:"use_for_all_users,omitempty" json:"use_for_all_users,omitempty" path:"use_for_all_users"`
}

IntegrationCentricProfileUpdateParams contains the request parameters for PATCH /integration_centric_profiles/{id}.

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  []InvoiceLineItem `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  []PaymentLineItem `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"`
}

Invoice is a Files.com API resource.

func (Invoice) Identifier ¶

func (i Invoice) Identifier() interface{}

Identifier returns the resource ID.

func (*Invoice) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type InvoiceCollection ¶

type InvoiceCollection []Invoice

InvoiceCollection is a list of Invoice resources.

func (*InvoiceCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*InvoiceCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type InvoiceFindParams ¶

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

InvoiceFindParams contains the request parameters for GET /invoices/{id}.

type InvoiceLineItem ¶

type InvoiceLineItem struct {
	Id                    int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	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"`
	Plan                  string     `json:"plan,omitempty" path:"plan,omitempty" url:"plan,omitempty"`
	Site                  string     `json:"site,omitempty" path:"site,omitempty" url:"site,omitempty"`
	PrepaidBytes          int64      `json:"prepaid_bytes,omitempty" path:"prepaid_bytes,omitempty" url:"prepaid_bytes,omitempty"`
	PrepaidBytesExpireAt  *time.Time `json:"prepaid_bytes_expire_at,omitempty" path:"prepaid_bytes_expire_at,omitempty" url:"prepaid_bytes_expire_at,omitempty"`
	PrepaidBytesUsed      int64      `json:"prepaid_bytes_used,omitempty" path:"prepaid_bytes_used,omitempty" url:"prepaid_bytes_used,omitempty"`
	PrepaidBytesAvailable int64      `json:"prepaid_bytes_available,omitempty" path:"prepaid_bytes_available,omitempty" url:"prepaid_bytes_available,omitempty"`
}

InvoiceLineItem is a Files.com API resource.

func (InvoiceLineItem) Identifier ¶ added in v3.2.212

func (i InvoiceLineItem) Identifier() interface{}

Identifier returns the resource ID.

func (*InvoiceLineItem) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type InvoiceLineItemCollection ¶

type InvoiceLineItemCollection []InvoiceLineItem

InvoiceLineItemCollection is a list of InvoiceLineItem resources.

func (*InvoiceLineItemCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*InvoiceLineItemCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type InvoiceListParams ¶

type InvoiceListParams struct {
	ListParams
}

InvoiceListParams contains the request parameters for GET /invoices.

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"`
}

IpAddress is a Files.com API resource.

func (IpAddress) Identifier ¶

func (i IpAddress) Identifier() interface{}

Identifier returns the resource ID.

func (*IpAddress) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type IpAddressCollection ¶

type IpAddressCollection []IpAddress

IpAddressCollection is a list of IpAddress resources.

func (*IpAddressCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*IpAddressCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type IpAddressGetExavaultReservedParams ¶

type IpAddressGetExavaultReservedParams struct {
	ListParams
}

IpAddressGetExavaultReservedParams contains the request parameters for GET /ip_addresses/exavault-reserved.

type IpAddressGetReservedParams ¶

type IpAddressGetReservedParams struct {
	ListParams
}

IpAddressGetReservedParams contains the request parameters for GET /ip_addresses/reserved.

type IpAddressGetSmartfileReservedParams ¶ added in v3.1.23

type IpAddressGetSmartfileReservedParams struct {
	ListParams
}

IpAddressGetSmartfileReservedParams contains the request parameters for GET /ip_addresses/smartfile-reserved.

type IpAddressListParams ¶

type IpAddressListParams struct {
	ListParams
}

IpAddressListParams contains the request parameters for GET /ip_addresses.

type Iter ¶

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

Iter traverses API results, fetching additional pages on demand. Use the generated client listing methods to create an iterator.

func (*Iter) Current ¶

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

Current returns the resource selected by the last successful Next call. Call it only after Next returns true.

func (*Iter) EOFPage ¶

func (i *Iter) EOFPage() bool

EOFPage reports whether the current resource is the last one on the loaded page. It does not report whether the listing has more pages.

func (*Iter) Err ¶

func (i *Iter) Err() error

Err returns the error that stopped iteration, or nil if none occurred. Check it after Next returns false.

func (*Iter) ExportParams ¶

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

ExportParams combines the listing filters and current paging settings as query values.

func (*Iter) GetCursor ¶

func (i *Iter) GetCursor() string

GetCursor returns the cursor that will be sent with the next page request.

func (*Iter) GetPage ¶

func (i *Iter) GetPage() bool

GetPage fetches the next nonempty page within MaxPages. It returns false when no results remain, the page limit is reached, or an error occurs. Check Err after a false return.

func (*Iter) GetParams ¶

func (i *Iter) GetParams() *ListParams

GetParams returns the paging settings used by the iterator.

func (*Iter) Next ¶

func (i *Iter) Next() bool

Next advances to the next resource, fetching pages as needed. It returns false when the listing ends, MaxPages is reached, or an error occurs. Check Err after it returns false. PerPage controls page size; MaxPages defaults to zero, which allows all pages.

for i.Next() {
	// Process i.Current().
}
if err := i.Err(); err != nil {
	// Handle the listing error.
}

func (*Iter) NextPage ¶

func (i *Iter) NextPage() bool

NextPage reports whether the API supplied a cursor for another page. It does not fetch that page or account for MaxPages.

func (*Iter) Paging ¶

func (i *Iter) Paging() bool

Paging reports that this iterator supports pagination.

func (*Iter) Reload ¶

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

Reload returns a new iterator for the same listing that starts again from the first page, even if i started from a cursor. It keeps the listing's parameters as they were before i requested its first page, along with its page limits, error handler, and request options. opts run after those options, so WithContext replaces the listing's context; without it, the original context still applies. Reload does not read or change i's traversal state, so it can run while another goroutine is still in i.Next, as when a caller cancels a traversal and reloads it without waiting.

func (*Iter) SetCursor ¶

func (i *Iter) SetCursor(cursor string)

SetCursor sets the cursor for the next page request.

type IterI ¶

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

IterI traverses resources. Call Current only after Next returns true, and check Err after Next returns false.

type IterPagingI ¶

type IterPagingI interface {
	IterI
	EOFPage() bool
}

IterPagingI reports whether the current resource is the last one on its page.

type Iterable ¶

type Iterable interface {
	Iterable() bool
}

Iterable reports whether a resource can be listed for child resources.

type KeyLifecycleRule ¶ added in v3.3.20

type KeyLifecycleRule struct {
	Id                   int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	KeyType              string `json:"key_type,omitempty" path:"key_type,omitempty" url:"key_type,omitempty"`
	InactivityDays       int64  `json:"inactivity_days,omitempty" path:"inactivity_days,omitempty" url:"inactivity_days,omitempty"`
	ExpirationDays       int64  `json:"expiration_days,omitempty" path:"expiration_days,omitempty" url:"expiration_days,omitempty"`
	ApplyToAllWorkspaces *bool  `json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces,omitempty" url:"apply_to_all_workspaces,omitempty"`
	Name                 string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	WorkspaceId          int64  `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
}

KeyLifecycleRule is a Files.com API resource.

func (KeyLifecycleRule) Identifier ¶ added in v3.3.20

func (k KeyLifecycleRule) Identifier() interface{}

Identifier returns the resource ID.

func (*KeyLifecycleRule) UnmarshalJSON ¶ added in v3.3.20

func (k *KeyLifecycleRule) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type KeyLifecycleRuleCollection ¶ added in v3.3.20

type KeyLifecycleRuleCollection []KeyLifecycleRule

KeyLifecycleRuleCollection is a list of KeyLifecycleRule resources.

func (*KeyLifecycleRuleCollection) ToSlice ¶ added in v3.3.20

func (k *KeyLifecycleRuleCollection) ToSlice() *[]interface{}

ToSlice returns a new slice containing the resources as interface values.

func (*KeyLifecycleRuleCollection) UnmarshalJSON ¶ added in v3.3.20

func (k *KeyLifecycleRuleCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type KeyLifecycleRuleCreateParams ¶ added in v3.3.20

type KeyLifecycleRuleCreateParams struct {
	ApplyToAllWorkspaces *bool                       `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	ExpirationDays       int64                       `url:"expiration_days,omitempty" json:"expiration_days,omitempty" path:"expiration_days"`
	KeyType              KeyLifecycleRuleKeyTypeEnum `url:"key_type,omitempty" json:"key_type,omitempty" path:"key_type"`
	InactivityDays       int64                       `url:"inactivity_days,omitempty" json:"inactivity_days,omitempty" path:"inactivity_days"`
	Name                 string                      `url:"name,omitempty" json:"name,omitempty" path:"name"`
	WorkspaceId          int64                       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

KeyLifecycleRuleCreateParams contains the request parameters for POST /key_lifecycle_rules.

type KeyLifecycleRuleDeleteParams ¶ added in v3.3.20

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

KeyLifecycleRuleDeleteParams contains the request parameters for DELETE /key_lifecycle_rules/{id}.

type KeyLifecycleRuleFindParams ¶ added in v3.3.20

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

KeyLifecycleRuleFindParams contains the request parameters for GET /key_lifecycle_rules/{id}.

type KeyLifecycleRuleKeyTypeEnum ¶ added in v3.3.20

type KeyLifecycleRuleKeyTypeEnum string

KeyLifecycleRuleKeyTypeEnum is a string value for key_type. Enum lists the values documented by the API.

func (KeyLifecycleRuleKeyTypeEnum) Enum ¶ added in v3.3.20

Enum returns the documented values keyed by their API strings.

func (KeyLifecycleRuleKeyTypeEnum) String ¶ added in v3.3.20

String returns the API parameter value.

type KeyLifecycleRuleListParams ¶ added in v3.3.20

type KeyLifecycleRuleListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

KeyLifecycleRuleListParams contains the request parameters for GET /key_lifecycle_rules.

type KeyLifecycleRuleUpdateParams ¶ added in v3.3.20

type KeyLifecycleRuleUpdateParams struct {
	Id                   int64                       `url:"-,omitempty" json:"-,omitempty" path:"id"`
	ApplyToAllWorkspaces *bool                       `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	ExpirationDays       int64                       `url:"expiration_days,omitempty" json:"expiration_days,omitempty" path:"expiration_days"`
	KeyType              KeyLifecycleRuleKeyTypeEnum `url:"key_type,omitempty" json:"key_type,omitempty" path:"key_type"`
	InactivityDays       int64                       `url:"inactivity_days,omitempty" json:"inactivity_days,omitempty" path:"inactivity_days"`
	Name                 string                      `url:"name,omitempty" json:"name,omitempty" path:"name"`
	WorkspaceId          int64                       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

KeyLifecycleRuleUpdateParams contains the request parameters for PATCH /key_lifecycle_rules/{id}.

type ListParams ¶

type ListParams struct {
	// PerPage requests the number of results per page. Zero uses the API default.
	PerPage int64 `json:"per_page,omitempty" url:"per_page,omitempty" required:"false"`
	// Cursor starts the listing at an API cursor. Empty starts at the first page.
	Cursor   string `json:"cursor,omitempty" url:"cursor,omitempty" required:"false"`
	MaxPages int64  `json:"-" url:"-"`
}

ListParams controls cursor-based pagination. A zero MaxPages allows all pages; a positive value limits the number of pages requested.

func (*ListParams) GetListParams ¶

func (p *ListParams) GetListParams() *ListParams

GetListParams returns p. Structs embedding ListParams inherit this method.

type ListParamsContainer ¶

type ListParamsContainer interface {
	GetListParams() *ListParams
}

ListParamsContainer exposes paging settings. Generated list parameter structs implement it by embedding ListParams.

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"`
	ExpectedToken        string `json:"expected_token,omitempty" path:"expected_token,omitempty" url:"expected_token,omitempty"`
}

Lock is a Files.com API resource.

func (Lock) Identifier ¶

func (l Lock) Identifier() interface{}

Identifier returns the resource path.

func (*Lock) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type LockCollection ¶

type LockCollection []Lock

LockCollection is a list of Lock resources.

func (*LockCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*LockCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type LockCreateParams ¶

type LockCreateParams struct {
	Path                 string `url:"-,omitempty" json:"-,omitempty" path:"path"`
	Token                string `url:"token,omitempty" json:"token,omitempty" path:"token"`
	ExpectedToken        string `url:"expected_token,omitempty" json:"expected_token,omitempty" path:"expected_token"`
	AllowAccessByAnyUser *bool  `url:"allow_access_by_any_user,omitempty" json:"allow_access_by_any_user,omitempty" path:"allow_access_by_any_user"`
	Exclusive            *bool  `url:"exclusive,omitempty" json:"exclusive,omitempty" path:"exclusive"`
	Recursive            *bool  `url:"recursive,omitempty" json:"recursive,omitempty" path:"recursive"`
	Owner                string `url:"owner,omitempty" json:"owner,omitempty" path:"owner"`
	Timeout              int64  `url:"timeout,omitempty" json:"timeout,omitempty" path:"timeout"`
}

LockCreateParams contains the request parameters for POST /locks/{path}.

type LockDeleteParams ¶

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

LockDeleteParams contains the request parameters for DELETE /locks/{path}.

type LockListForParams ¶

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

LockListForParams contains the request parameters for GET /locks/{path}.

type MetadataCategory ¶ added in v3.3.84

type MetadataCategory struct {
	Id             int64               `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name           string              `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Definitions    map[string][]string `json:"definitions,omitempty" path:"definitions,omitempty" url:"definitions,omitempty"`
	DefaultColumns []string            `json:"default_columns,omitempty" path:"default_columns,omitempty" url:"default_columns,omitempty"`
}

MetadataCategory is a Files.com API resource.

func (MetadataCategory) Identifier ¶ added in v3.3.84

func (m MetadataCategory) Identifier() interface{}

Identifier returns the resource ID.

func (*MetadataCategory) UnmarshalJSON ¶ added in v3.3.84

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type MetadataCategoryCollection ¶ added in v3.3.84

type MetadataCategoryCollection []MetadataCategory

MetadataCategoryCollection is a list of MetadataCategory resources.

func (*MetadataCategoryCollection) ToSlice ¶ added in v3.3.84

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

ToSlice returns a new slice containing the resources as interface values.

func (*MetadataCategoryCollection) UnmarshalJSON ¶ added in v3.3.84

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type MetadataCategoryCreateParams ¶ added in v3.3.84

type MetadataCategoryCreateParams struct {
	Name           string   `url:"name" json:"name" path:"name"`
	DefaultColumns []string `url:"default_columns,omitempty" json:"default_columns,omitempty" path:"default_columns"`
}

MetadataCategoryCreateParams contains the request parameters for POST /metadata_categories.

type MetadataCategoryDeleteParams ¶ added in v3.3.84

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

MetadataCategoryDeleteParams contains the request parameters for DELETE /metadata_categories/{id}.

type MetadataCategoryFindParams ¶ added in v3.3.84

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

MetadataCategoryFindParams contains the request parameters for GET /metadata_categories/{id}.

type MetadataCategoryListForParams ¶ added in v3.3.91

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

MetadataCategoryListForParams contains the request parameters for GET /metadata_categories/list_by_path/{path}.

type MetadataCategoryListParams ¶ added in v3.3.84

type MetadataCategoryListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

MetadataCategoryListParams contains the request parameters for GET /metadata_categories.

type MetadataCategoryUpdateParams ¶ added in v3.3.84

type MetadataCategoryUpdateParams struct {
	Id             int64    `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name           string   `url:"name,omitempty" json:"name,omitempty" path:"name"`
	DefaultColumns []string `url:"default_columns,omitempty" json:"default_columns,omitempty" path:"default_columns"`
}

MetadataCategoryUpdateParams contains the request parameters for PATCH /metadata_categories/{id}.

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"`
	GroupIds                 []int64  `json:"group_ids,omitempty" path:"group_ids,omitempty" url:"group_ids,omitempty"`
	GroupNames               []string `json:"group_names,omitempty" path:"group_names,omitempty" url:"group_names,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"`
	Subject                  string   `json:"subject,omitempty" path:"subject,omitempty" url:"subject,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"`
	WorkspaceId              int64    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,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"`
}

Notification is a Files.com API resource.

func (Notification) Identifier ¶

func (n Notification) Identifier() interface{}

Identifier returns the resource ID.

func (*Notification) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type NotificationCollection ¶

type NotificationCollection []Notification

NotificationCollection is a list of Notification resources.

func (*NotificationCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*NotificationCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type NotificationCreateParams ¶

type NotificationCreateParams struct {
	UserId                   int64    `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	NotifyOnCopy             *bool    `url:"notify_on_copy,omitempty" json:"notify_on_copy,omitempty" path:"notify_on_copy"`
	NotifyOnDelete           *bool    `url:"notify_on_delete,omitempty" json:"notify_on_delete,omitempty" path:"notify_on_delete"`
	NotifyOnDownload         *bool    `url:"notify_on_download,omitempty" json:"notify_on_download,omitempty" path:"notify_on_download"`
	NotifyOnMove             *bool    `url:"notify_on_move,omitempty" json:"notify_on_move,omitempty" path:"notify_on_move"`
	NotifyOnUpload           *bool    `url:"notify_on_upload,omitempty" json:"notify_on_upload,omitempty" path:"notify_on_upload"`
	NotifyUserActions        *bool    `url:"notify_user_actions,omitempty" json:"notify_user_actions,omitempty" path:"notify_user_actions"`
	Recursive                *bool    `url:"recursive,omitempty" json:"recursive,omitempty" path:"recursive"`
	SendInterval             string   `url:"send_interval,omitempty" json:"send_interval,omitempty" path:"send_interval"`
	Subject                  string   `url:"subject,omitempty" json:"subject,omitempty" path:"subject"`
	Message                  string   `url:"message,omitempty" json:"message,omitempty" path:"message"`
	TriggeringFilenames      []string `url:"triggering_filenames,omitempty" json:"triggering_filenames,omitempty" path:"triggering_filenames"`
	TriggeringGroupIds       []int64  `url:"triggering_group_ids,omitempty" json:"triggering_group_ids,omitempty" path:"triggering_group_ids"`
	TriggeringUserIds        []int64  `url:"triggering_user_ids,omitempty" json:"triggering_user_ids,omitempty" path:"triggering_user_ids"`
	TriggerByShareRecipients *bool    `url:"trigger_by_share_recipients,omitempty" json:"trigger_by_share_recipients,omitempty" path:"trigger_by_share_recipients"`
	WorkspaceId              int64    `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	GroupId                  int64    `url:"group_id,omitempty" json:"group_id,omitempty" path:"group_id"`
	GroupIds                 string   `url:"group_ids,omitempty" json:"group_ids,omitempty" path:"group_ids"`
	Path                     string   `url:"path,omitempty" json:"path,omitempty" path:"path"`
	Username                 string   `url:"username,omitempty" json:"username,omitempty" path:"username"`
}

NotificationCreateParams contains the request parameters for POST /notifications.

type NotificationDeleteParams ¶

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

NotificationDeleteParams contains the request parameters for DELETE /notifications/{id}.

type NotificationFindParams ¶

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

NotificationFindParams contains the request parameters for GET /notifications/{id}.

type NotificationListParams ¶

type NotificationListParams struct {
	SortBy           interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter           interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterPrefix     interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	Path             string      `url:"path,omitempty" json:"path,omitempty" path:"path"`
	IncludeAncestors *bool       `url:"include_ancestors,omitempty" json:"include_ancestors,omitempty" path:"include_ancestors"`
	GroupId          string      `url:"group_id,omitempty" json:"group_id,omitempty" path:"group_id"`
	ListParams
}

NotificationListParams contains the request parameters for GET /notifications.

type NotificationUpdateParams ¶

type NotificationUpdateParams struct {
	Id                       int64    `url:"-,omitempty" json:"-,omitempty" path:"id"`
	NotifyOnCopy             *bool    `url:"notify_on_copy,omitempty" json:"notify_on_copy,omitempty" path:"notify_on_copy"`
	NotifyOnDelete           *bool    `url:"notify_on_delete,omitempty" json:"notify_on_delete,omitempty" path:"notify_on_delete"`
	NotifyOnDownload         *bool    `url:"notify_on_download,omitempty" json:"notify_on_download,omitempty" path:"notify_on_download"`
	NotifyOnMove             *bool    `url:"notify_on_move,omitempty" json:"notify_on_move,omitempty" path:"notify_on_move"`
	NotifyOnUpload           *bool    `url:"notify_on_upload,omitempty" json:"notify_on_upload,omitempty" path:"notify_on_upload"`
	NotifyUserActions        *bool    `url:"notify_user_actions,omitempty" json:"notify_user_actions,omitempty" path:"notify_user_actions"`
	Recursive                *bool    `url:"recursive,omitempty" json:"recursive,omitempty" path:"recursive"`
	SendInterval             string   `url:"send_interval,omitempty" json:"send_interval,omitempty" path:"send_interval"`
	Subject                  string   `url:"subject,omitempty" json:"subject,omitempty" path:"subject"`
	Message                  string   `url:"message,omitempty" json:"message,omitempty" path:"message"`
	TriggeringFilenames      []string `url:"triggering_filenames,omitempty" json:"triggering_filenames,omitempty" path:"triggering_filenames"`
	TriggeringGroupIds       []int64  `url:"triggering_group_ids,omitempty" json:"triggering_group_ids,omitempty" path:"triggering_group_ids"`
	TriggeringUserIds        []int64  `url:"triggering_user_ids,omitempty" json:"triggering_user_ids,omitempty" path:"triggering_user_ids"`
	TriggerByShareRecipients *bool    `url:"trigger_by_share_recipients,omitempty" json:"trigger_by_share_recipients,omitempty" path:"trigger_by_share_recipients"`
	WorkspaceId              int64    `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

NotificationUpdateParams contains the request parameters for PATCH /notifications/{id}.

type OnPageError ¶

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

OnPageError handles a page-fetch error. It can return replacement results and a nil error to continue iteration, or an error to stop.

type OutboundConnectionLog ¶ added in v3.2.18

type OutboundConnectionLog struct {
	Timestamp            *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	Path                 string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	ClientIp             string     `json:"client_ip,omitempty" path:"client_ip,omitempty" url:"client_ip,omitempty"`
	SrcRemoteServerId    int64      `json:"src_remote_server_id,omitempty" path:"src_remote_server_id,omitempty" url:"src_remote_server_id,omitempty"`
	SrcRemoteServerName  string     `json:"src_remote_server_name,omitempty" path:"src_remote_server_name,omitempty" url:"src_remote_server_name,omitempty"`
	DestRemoteServerId   int64      `json:"dest_remote_server_id,omitempty" path:"dest_remote_server_id,omitempty" url:"dest_remote_server_id,omitempty"`
	DestRemoteServerName string     `json:"dest_remote_server_name,omitempty" path:"dest_remote_server_name,omitempty" url:"dest_remote_server_name,omitempty"`
	Operation            string     `json:"operation,omitempty" path:"operation,omitempty" url:"operation,omitempty"`
	ErrorMessage         string     `json:"error_message,omitempty" path:"error_message,omitempty" url:"error_message,omitempty"`
	ErrorOperation       string     `json:"error_operation,omitempty" path:"error_operation,omitempty" url:"error_operation,omitempty"`
	ErrorType            string     `json:"error_type,omitempty" path:"error_type,omitempty" url:"error_type,omitempty"`
	Status               string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	DurationMs           int64      `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	BytesUploaded        int64      `json:"bytes_uploaded,omitempty" path:"bytes_uploaded,omitempty" url:"bytes_uploaded,omitempty"`
	BytesDownloaded      int64      `json:"bytes_downloaded,omitempty" path:"bytes_downloaded,omitempty" url:"bytes_downloaded,omitempty"`
	ListCount            int64      `json:"list_count,omitempty" path:"list_count,omitempty" url:"list_count,omitempty"`
	CreatedAt            *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

OutboundConnectionLog is a Files.com API resource.

func (OutboundConnectionLog) Identifier ¶ added in v3.2.18

func (o OutboundConnectionLog) Identifier() interface{}

Identifier returns the resource path.

func (*OutboundConnectionLog) UnmarshalJSON ¶ added in v3.2.18

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type OutboundConnectionLogCollection ¶ added in v3.2.18

type OutboundConnectionLogCollection []OutboundConnectionLog

OutboundConnectionLogCollection is a list of OutboundConnectionLog resources.

func (*OutboundConnectionLogCollection) ToSlice ¶ added in v3.2.18

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

ToSlice returns a new slice containing the resources as interface values.

func (*OutboundConnectionLogCollection) UnmarshalJSON ¶ added in v3.2.18

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type OutboundConnectionLogListParams ¶ added in v3.2.18

type OutboundConnectionLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

OutboundConnectionLogListParams contains the request parameters for GET /outbound_connection_logs.

type Partner ¶ added in v3.2.249

type Partner struct {
	AllowBypassing2faPolicies  *bool               `` /* 136-byte string literal not displayed */
	AllowedIps                 string              `json:"allowed_ips,omitempty" path:"allowed_ips,omitempty" url:"allowed_ips,omitempty"`
	AllowCredentialChanges     *bool               `json:"allow_credential_changes,omitempty" path:"allow_credential_changes,omitempty" url:"allow_credential_changes,omitempty"`
	AllowProvidingGpgKeys      *bool               `json:"allow_providing_gpg_keys,omitempty" path:"allow_providing_gpg_keys,omitempty" url:"allow_providing_gpg_keys,omitempty"`
	AllowUserCreation          *bool               `json:"allow_user_creation,omitempty" path:"allow_user_creation,omitempty" url:"allow_user_creation,omitempty"`
	CcEmailsToResponsibleParty *bool               `` /* 142-byte string literal not displayed */
	Connections                []PartnerConnection `json:"connections,omitempty" path:"connections,omitempty" url:"connections,omitempty"`
	Id                         int64               `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	AiAssistantPersonalityId   int64               `` /* 133-byte string literal not displayed */
	WorkspaceId                int64               `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Name                       string              `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Notes                      string              `json:"notes,omitempty" path:"notes,omitempty" url:"notes,omitempty"`
	PartnerAdminIds            []int64             `json:"partner_admin_ids,omitempty" path:"partner_admin_ids,omitempty" url:"partner_admin_ids,omitempty"`
	PartnerChannelTemplateId   int64               `` /* 133-byte string literal not displayed */
	PartnershipRole            string              `json:"partnership_role,omitempty" path:"partnership_role,omitempty" url:"partnership_role,omitempty"`
	ResponsibleGroupId         int64               `json:"responsible_group_id,omitempty" path:"responsible_group_id,omitempty" url:"responsible_group_id,omitempty"`
	ResponsibleUserId          int64               `json:"responsible_user_id,omitempty" path:"responsible_user_id,omitempty" url:"responsible_user_id,omitempty"`
	RootFolder                 string              `json:"root_folder,omitempty" path:"root_folder,omitempty" url:"root_folder,omitempty"`
	ShowPartnerChannelHomePage *bool               `` /* 142-byte string literal not displayed */
	Tags                       string              `json:"tags,omitempty" path:"tags,omitempty" url:"tags,omitempty"`
	UserIds                    []int64             `json:"user_ids,omitempty" path:"user_ids,omitempty" url:"user_ids,omitempty"`
}

Partner is a Files.com API resource.

func (Partner) Identifier ¶ added in v3.2.249

func (p Partner) Identifier() interface{}

Identifier returns the resource ID.

func (*Partner) UnmarshalJSON ¶ added in v3.2.249

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PartnerChannel ¶ added in v3.3.152

type PartnerChannel struct {
	Id                             int64    `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                    int64    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Direction                      string   `json:"direction,omitempty" path:"direction,omitempty" url:"direction,omitempty"`
	UseChannelRoot                 *bool    `json:"use_channel_root,omitempty" path:"use_channel_root,omitempty" url:"use_channel_root,omitempty"`
	PartnerId                      int64    `json:"partner_id,omitempty" path:"partner_id,omitempty" url:"partner_id,omitempty"`
	PartnerChannelTemplateId       int64    `` /* 133-byte string literal not displayed */
	Path                           string   `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	ToPartnerFolderName            string   `json:"to_partner_folder_name,omitempty" path:"to_partner_folder_name,omitempty" url:"to_partner_folder_name,omitempty"`
	FromPartnerFolderName          string   `json:"from_partner_folder_name,omitempty" path:"from_partner_folder_name,omitempty" url:"from_partner_folder_name,omitempty"`
	FromPartnerRoutePath           string   `json:"from_partner_route_path,omitempty" path:"from_partner_route_path,omitempty" url:"from_partner_route_path,omitempty"`
	ToPartnerRoutePath             string   `json:"to_partner_route_path,omitempty" path:"to_partner_route_path,omitempty" url:"to_partner_route_path,omitempty"`
	ToPartnerManagedFolderPaths    []string `` /* 145-byte string literal not displayed */
	FromPartnerManagedFolderPaths  []string `` /* 151-byte string literal not displayed */
	EffectiveToPartnerFolderName   string   `` /* 148-byte string literal not displayed */
	EffectiveFromPartnerFolderName string   `` /* 154-byte string literal not displayed */
	ChannelPath                    string   `json:"channel_path,omitempty" path:"channel_path,omitempty" url:"channel_path,omitempty"`
	ToPartnerFolderPath            string   `json:"to_partner_folder_path,omitempty" path:"to_partner_folder_path,omitempty" url:"to_partner_folder_path,omitempty"`
	FromPartnerFolderPath          string   `json:"from_partner_folder_path,omitempty" path:"from_partner_folder_path,omitempty" url:"from_partner_folder_path,omitempty"`
}

PartnerChannel is a Files.com API resource.

func (PartnerChannel) Identifier ¶ added in v3.3.152

func (p PartnerChannel) Identifier() interface{}

Identifier returns the resource ID.

func (*PartnerChannel) UnmarshalJSON ¶ added in v3.3.152

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PartnerChannelCollection ¶ added in v3.3.152

type PartnerChannelCollection []PartnerChannel

PartnerChannelCollection is a list of PartnerChannel resources.

func (*PartnerChannelCollection) ToSlice ¶ added in v3.3.152

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

ToSlice returns a new slice containing the resources as interface values.

func (*PartnerChannelCollection) UnmarshalJSON ¶ added in v3.3.152

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PartnerChannelCreateParams ¶ added in v3.3.152

type PartnerChannelCreateParams struct {
	Direction                     PartnerChannelDirectionEnum `url:"direction,omitempty" json:"direction,omitempty" path:"direction"`
	UseChannelRoot                *bool                       `url:"use_channel_root,omitempty" json:"use_channel_root,omitempty" path:"use_channel_root"`
	FromPartnerFolderName         string                      `url:"from_partner_folder_name,omitempty" json:"from_partner_folder_name,omitempty" path:"from_partner_folder_name"`
	FromPartnerManagedFolderPaths []string                    `` /* 141-byte string literal not displayed */
	FromPartnerRoutePath          string                      `url:"from_partner_route_path,omitempty" json:"from_partner_route_path,omitempty" path:"from_partner_route_path"`
	ToPartnerFolderName           string                      `url:"to_partner_folder_name,omitempty" json:"to_partner_folder_name,omitempty" path:"to_partner_folder_name"`
	ToPartnerManagedFolderPaths   []string                    `` /* 135-byte string literal not displayed */
	ToPartnerRoutePath            string                      `url:"to_partner_route_path,omitempty" json:"to_partner_route_path,omitempty" path:"to_partner_route_path"`
	PartnerId                     int64                       `url:"partner_id" json:"partner_id" path:"partner_id"`
	Path                          string                      `url:"path" json:"path" path:"path"`
	WorkspaceId                   int64                       `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

PartnerChannelCreateParams contains the request parameters for POST /partner_channels.

type PartnerChannelDeleteParams ¶ added in v3.3.152

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

PartnerChannelDeleteParams contains the request parameters for DELETE /partner_channels/{id}.

type PartnerChannelDirectionEnum ¶ added in v3.3.238

type PartnerChannelDirectionEnum string

PartnerChannelDirectionEnum is a string value for direction. Enum lists the values documented by the API.

func (PartnerChannelDirectionEnum) Enum ¶ added in v3.3.238

Enum returns the documented values keyed by their API strings.

func (PartnerChannelDirectionEnum) String ¶ added in v3.3.238

String returns the API parameter value.

type PartnerChannelFindParams ¶ added in v3.3.152

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

PartnerChannelFindParams contains the request parameters for GET /partner_channels/{id}.

type PartnerChannelListParams ¶ added in v3.3.152

type PartnerChannelListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

PartnerChannelListParams contains the request parameters for GET /partner_channels.

type PartnerChannelTemplate ¶ added in v3.3.183

type PartnerChannelTemplate struct {
	Id                             int64    `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                    int64    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Direction                      string   `json:"direction,omitempty" path:"direction,omitempty" url:"direction,omitempty"`
	UseChannelRoot                 *bool    `json:"use_channel_root,omitempty" path:"use_channel_root,omitempty" url:"use_channel_root,omitempty"`
	Name                           string   `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Path                           string   `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	ToPartnerFolderName            string   `json:"to_partner_folder_name,omitempty" path:"to_partner_folder_name,omitempty" url:"to_partner_folder_name,omitempty"`
	FromPartnerFolderName          string   `json:"from_partner_folder_name,omitempty" path:"from_partner_folder_name,omitempty" url:"from_partner_folder_name,omitempty"`
	FromPartnerRoutePathPattern    string   `` /* 145-byte string literal not displayed */
	ToPartnerRoutePathPattern      string   `` /* 139-byte string literal not displayed */
	ToPartnerManagedFolderPaths    []string `` /* 145-byte string literal not displayed */
	FromPartnerManagedFolderPaths  []string `` /* 151-byte string literal not displayed */
	EffectiveToPartnerFolderName   string   `` /* 148-byte string literal not displayed */
	EffectiveFromPartnerFolderName string   `` /* 154-byte string literal not displayed */
}

PartnerChannelTemplate is a Files.com API resource.

func (PartnerChannelTemplate) Identifier ¶ added in v3.3.183

func (p PartnerChannelTemplate) Identifier() interface{}

Identifier returns the resource ID.

func (*PartnerChannelTemplate) UnmarshalJSON ¶ added in v3.3.183

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PartnerChannelTemplateCollection ¶ added in v3.3.183

type PartnerChannelTemplateCollection []PartnerChannelTemplate

PartnerChannelTemplateCollection is a list of PartnerChannelTemplate resources.

func (*PartnerChannelTemplateCollection) ToSlice ¶ added in v3.3.183

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

ToSlice returns a new slice containing the resources as interface values.

func (*PartnerChannelTemplateCollection) UnmarshalJSON ¶ added in v3.3.183

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PartnerChannelTemplateCreateParams ¶ added in v3.3.183

type PartnerChannelTemplateCreateParams struct {
	Direction                     PartnerChannelTemplateDirectionEnum `url:"direction,omitempty" json:"direction,omitempty" path:"direction"`
	UseChannelRoot                *bool                               `url:"use_channel_root,omitempty" json:"use_channel_root,omitempty" path:"use_channel_root"`
	FromPartnerFolderName         string                              `url:"from_partner_folder_name,omitempty" json:"from_partner_folder_name,omitempty" path:"from_partner_folder_name"`
	FromPartnerManagedFolderPaths []string                            `` /* 141-byte string literal not displayed */
	FromPartnerRoutePathPattern   string                              `` /* 135-byte string literal not displayed */
	ToPartnerFolderName           string                              `url:"to_partner_folder_name,omitempty" json:"to_partner_folder_name,omitempty" path:"to_partner_folder_name"`
	ToPartnerManagedFolderPaths   []string                            `` /* 135-byte string literal not displayed */
	ToPartnerRoutePathPattern     string                              `` /* 129-byte string literal not displayed */
	Name                          string                              `url:"name" json:"name" path:"name"`
	Path                          string                              `url:"path" json:"path" path:"path"`
	WorkspaceId                   int64                               `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

PartnerChannelTemplateCreateParams contains the request parameters for POST /partner_channel_templates.

type PartnerChannelTemplateDeleteParams ¶ added in v3.3.183

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

PartnerChannelTemplateDeleteParams contains the request parameters for DELETE /partner_channel_templates/{id}.

type PartnerChannelTemplateDirectionEnum ¶ added in v3.3.238

type PartnerChannelTemplateDirectionEnum string

PartnerChannelTemplateDirectionEnum is a string value for direction. Enum lists the values documented by the API.

func (PartnerChannelTemplateDirectionEnum) Enum ¶ added in v3.3.238

Enum returns the documented values keyed by their API strings.

func (PartnerChannelTemplateDirectionEnum) String ¶ added in v3.3.238

String returns the API parameter value.

type PartnerChannelTemplateFindParams ¶ added in v3.3.183

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

PartnerChannelTemplateFindParams contains the request parameters for GET /partner_channel_templates/{id}.

type PartnerChannelTemplateListParams ¶ added in v3.3.183

type PartnerChannelTemplateListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

PartnerChannelTemplateListParams contains the request parameters for GET /partner_channel_templates.

type PartnerChannelTemplateUpdateParams ¶ added in v3.3.183

type PartnerChannelTemplateUpdateParams struct {
	Id                            int64                               `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Direction                     PartnerChannelTemplateDirectionEnum `url:"direction,omitempty" json:"direction,omitempty" path:"direction"`
	UseChannelRoot                *bool                               `url:"use_channel_root,omitempty" json:"use_channel_root,omitempty" path:"use_channel_root"`
	FromPartnerFolderName         string                              `url:"from_partner_folder_name,omitempty" json:"from_partner_folder_name,omitempty" path:"from_partner_folder_name"`
	FromPartnerManagedFolderPaths []string                            `` /* 141-byte string literal not displayed */
	FromPartnerRoutePathPattern   string                              `` /* 135-byte string literal not displayed */
	ToPartnerFolderName           string                              `url:"to_partner_folder_name,omitempty" json:"to_partner_folder_name,omitempty" path:"to_partner_folder_name"`
	ToPartnerManagedFolderPaths   []string                            `` /* 135-byte string literal not displayed */
	ToPartnerRoutePathPattern     string                              `` /* 129-byte string literal not displayed */
	Name                          string                              `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Path                          string                              `url:"path,omitempty" json:"path,omitempty" path:"path"`
}

PartnerChannelTemplateUpdateParams contains the request parameters for PATCH /partner_channel_templates/{id}.

type PartnerChannelUpdateParams ¶ added in v3.3.152

type PartnerChannelUpdateParams struct {
	Id                            int64                       `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Direction                     PartnerChannelDirectionEnum `url:"direction,omitempty" json:"direction,omitempty" path:"direction"`
	UseChannelRoot                *bool                       `url:"use_channel_root,omitempty" json:"use_channel_root,omitempty" path:"use_channel_root"`
	FromPartnerFolderName         string                      `url:"from_partner_folder_name,omitempty" json:"from_partner_folder_name,omitempty" path:"from_partner_folder_name"`
	FromPartnerManagedFolderPaths []string                    `` /* 141-byte string literal not displayed */
	FromPartnerRoutePath          string                      `url:"from_partner_route_path,omitempty" json:"from_partner_route_path,omitempty" path:"from_partner_route_path"`
	ToPartnerFolderName           string                      `url:"to_partner_folder_name,omitempty" json:"to_partner_folder_name,omitempty" path:"to_partner_folder_name"`
	ToPartnerManagedFolderPaths   []string                    `` /* 135-byte string literal not displayed */
	ToPartnerRoutePath            string                      `url:"to_partner_route_path,omitempty" json:"to_partner_route_path,omitempty" path:"to_partner_route_path"`
	Path                          string                      `url:"path,omitempty" json:"path,omitempty" path:"path"`
}

PartnerChannelUpdateParams contains the request parameters for PATCH /partner_channels/{id}.

type PartnerCollection ¶ added in v3.2.249

type PartnerCollection []Partner

PartnerCollection is a list of Partner resources.

func (*PartnerCollection) ToSlice ¶ added in v3.2.249

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

ToSlice returns a new slice containing the resources as interface values.

func (*PartnerCollection) UnmarshalJSON ¶ added in v3.2.249

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PartnerConnection ¶ added in v3.3.257

type PartnerConnection struct {
	Id        int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Role      string `json:"role,omitempty" path:"role,omitempty" url:"role,omitempty"`
	SiteId    int64  `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	SiteName  string `json:"site_name,omitempty" path:"site_name,omitempty" url:"site_name,omitempty"`
	MountPath string `json:"mount_path,omitempty" path:"mount_path,omitempty" url:"mount_path,omitempty"`
}

PartnerConnection is a Files.com API resource.

func (PartnerConnection) Identifier ¶ added in v3.3.257

func (p PartnerConnection) Identifier() interface{}

Identifier returns the resource ID.

func (*PartnerConnection) UnmarshalJSON ¶ added in v3.3.257

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PartnerConnectionCollection ¶ added in v3.3.257

type PartnerConnectionCollection []PartnerConnection

PartnerConnectionCollection is a list of PartnerConnection resources.

func (*PartnerConnectionCollection) ToSlice ¶ added in v3.3.257

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

ToSlice returns a new slice containing the resources as interface values.

func (*PartnerConnectionCollection) UnmarshalJSON ¶ added in v3.3.257

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PartnerCreateParams ¶ added in v3.2.249

type PartnerCreateParams struct {
	AiAssistantPersonalityId   int64  `url:"ai_assistant_personality_id,omitempty" json:"ai_assistant_personality_id,omitempty" path:"ai_assistant_personality_id"`
	AllowedIps                 string `url:"allowed_ips,omitempty" json:"allowed_ips,omitempty" path:"allowed_ips"`
	AllowBypassing2faPolicies  *bool  `` /* 126-byte string literal not displayed */
	AllowCredentialChanges     *bool  `url:"allow_credential_changes,omitempty" json:"allow_credential_changes,omitempty" path:"allow_credential_changes"`
	AllowProvidingGpgKeys      *bool  `url:"allow_providing_gpg_keys,omitempty" json:"allow_providing_gpg_keys,omitempty" path:"allow_providing_gpg_keys"`
	AllowUserCreation          *bool  `url:"allow_user_creation,omitempty" json:"allow_user_creation,omitempty" path:"allow_user_creation"`
	CcEmailsToResponsibleParty *bool  `` /* 132-byte string literal not displayed */
	Notes                      string `url:"notes,omitempty" json:"notes,omitempty" path:"notes"`
	PartnerChannelTemplateId   int64  `url:"partner_channel_template_id,omitempty" json:"partner_channel_template_id,omitempty" path:"partner_channel_template_id"`
	ResponsibleGroupId         int64  `url:"responsible_group_id,omitempty" json:"responsible_group_id,omitempty" path:"responsible_group_id"`
	ResponsibleUserId          int64  `url:"responsible_user_id,omitempty" json:"responsible_user_id,omitempty" path:"responsible_user_id"`
	ShowPartnerChannelHomePage *bool  `` /* 132-byte string literal not displayed */
	Tags                       string `url:"tags,omitempty" json:"tags,omitempty" path:"tags"`
	Name                       string `url:"name" json:"name" path:"name"`
	RootFolder                 string `url:"root_folder" json:"root_folder" path:"root_folder"`
	WorkspaceId                int64  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

PartnerCreateParams contains the request parameters for POST /partners.

type PartnerDeleteParams ¶ added in v3.2.249

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

PartnerDeleteParams contains the request parameters for DELETE /partners/{id}.

type PartnerFindParams ¶ added in v3.2.249

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

PartnerFindParams contains the request parameters for GET /partners/{id}.

type PartnerListParams ¶ added in v3.2.249

type PartnerListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

PartnerListParams contains the request parameters for GET /partners.

type PartnerPartnershipRoleEnum ¶ added in v3.3.256

type PartnerPartnershipRoleEnum string

PartnerPartnershipRoleEnum is a string value for partnership_role. Enum lists the values documented by the API.

func (PartnerPartnershipRoleEnum) Enum ¶ added in v3.3.256

Enum returns the documented values keyed by their API strings.

func (PartnerPartnershipRoleEnum) String ¶ added in v3.3.256

String returns the API parameter value.

type PartnerSite ¶ added in v3.3.33

type PartnerSite struct {
}

PartnerSite is a Files.com API resource.

func (*PartnerSite) UnmarshalJSON ¶ added in v3.3.33

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PartnerSiteCollection ¶ added in v3.3.33

type PartnerSiteCollection []PartnerSite

PartnerSiteCollection is a list of PartnerSite resources.

func (*PartnerSiteCollection) ToSlice ¶ added in v3.3.33

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

ToSlice returns a new slice containing the resources as interface values.

func (*PartnerSiteCollection) UnmarshalJSON ¶ added in v3.3.33

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PartnerSiteDeleteParams ¶ added in v3.3.145

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

PartnerSiteDeleteParams contains the request parameters for DELETE /partner_sites/{id}.

type PartnerSiteRequest ¶ added in v3.3.33

type PartnerSiteRequest struct {
	Id            int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	HostPartnerId int64      `json:"host_partner_id,omitempty" path:"host_partner_id,omitempty" url:"host_partner_id,omitempty"`
	GuestSiteUrl  string     `json:"guest_site_url,omitempty" path:"guest_site_url,omitempty" url:"guest_site_url,omitempty"`
	Status        string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	HostSiteName  string     `json:"host_site_name,omitempty" path:"host_site_name,omitempty" url:"host_site_name,omitempty"`
	PairingKey    string     `json:"pairing_key,omitempty" path:"pairing_key,omitempty" url:"pairing_key,omitempty"`
	CreatedAt     *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt     *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

PartnerSiteRequest is a Files.com API resource.

func (PartnerSiteRequest) Identifier ¶ added in v3.3.33

func (p PartnerSiteRequest) Identifier() interface{}

Identifier returns the resource ID.

func (*PartnerSiteRequest) UnmarshalJSON ¶ added in v3.3.33

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PartnerSiteRequestApproveParams ¶ added in v3.3.33

type PartnerSiteRequestApproveParams struct {
	PairingKey string `url:"pairing_key" json:"pairing_key" path:"pairing_key"`
	PartnerId  int64  `url:"partner_id,omitempty" json:"partner_id,omitempty" path:"partner_id"`
}

PartnerSiteRequestApproveParams contains the request parameters for POST /partner_site_requests/approve.

type PartnerSiteRequestCollection ¶ added in v3.3.33

type PartnerSiteRequestCollection []PartnerSiteRequest

PartnerSiteRequestCollection is a list of PartnerSiteRequest resources.

func (*PartnerSiteRequestCollection) ToSlice ¶ added in v3.3.33

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

ToSlice returns a new slice containing the resources as interface values.

func (*PartnerSiteRequestCollection) UnmarshalJSON ¶ added in v3.3.33

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PartnerSiteRequestCreateParams ¶ added in v3.3.33

type PartnerSiteRequestCreateParams struct {
	HostPartnerId int64  `url:"host_partner_id" json:"host_partner_id" path:"host_partner_id"`
	GuestSiteUrl  string `url:"guest_site_url" json:"guest_site_url" path:"guest_site_url"`
}

PartnerSiteRequestCreateParams contains the request parameters for POST /partner_site_requests.

type PartnerSiteRequestDeleteParams ¶ added in v3.3.33

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

PartnerSiteRequestDeleteParams contains the request parameters for DELETE /partner_site_requests/{id}.

type PartnerSiteRequestFindByPairingKeyParams ¶ added in v3.3.33

type PartnerSiteRequestFindByPairingKeyParams struct {
	PairingKey string `url:"pairing_key" json:"pairing_key" path:"pairing_key"`
}

PartnerSiteRequestFindByPairingKeyParams contains the request parameters for GET /partner_site_requests/find_by_pairing_key.

type PartnerSiteRequestListParams ¶ added in v3.3.33

type PartnerSiteRequestListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

PartnerSiteRequestListParams contains the request parameters for GET /partner_site_requests.

type PartnerSiteRequestRejectParams ¶ added in v3.3.33

type PartnerSiteRequestRejectParams struct {
	PairingKey string `url:"pairing_key" json:"pairing_key" path:"pairing_key"`
}

PartnerSiteRequestRejectParams contains the request parameters for POST /partner_site_requests/reject.

type PartnerUpdateParams ¶ added in v3.2.249

type PartnerUpdateParams struct {
	Id                         int64                      `url:"-,omitempty" json:"-,omitempty" path:"id"`
	AiAssistantPersonalityId   int64                      `url:"ai_assistant_personality_id,omitempty" json:"ai_assistant_personality_id,omitempty" path:"ai_assistant_personality_id"`
	AllowedIps                 string                     `url:"allowed_ips,omitempty" json:"allowed_ips,omitempty" path:"allowed_ips"`
	AllowBypassing2faPolicies  *bool                      `` /* 126-byte string literal not displayed */
	AllowCredentialChanges     *bool                      `url:"allow_credential_changes,omitempty" json:"allow_credential_changes,omitempty" path:"allow_credential_changes"`
	AllowProvidingGpgKeys      *bool                      `url:"allow_providing_gpg_keys,omitempty" json:"allow_providing_gpg_keys,omitempty" path:"allow_providing_gpg_keys"`
	AllowUserCreation          *bool                      `url:"allow_user_creation,omitempty" json:"allow_user_creation,omitempty" path:"allow_user_creation"`
	CcEmailsToResponsibleParty *bool                      `` /* 132-byte string literal not displayed */
	Notes                      string                     `url:"notes,omitempty" json:"notes,omitempty" path:"notes"`
	PartnerChannelTemplateId   int64                      `url:"partner_channel_template_id,omitempty" json:"partner_channel_template_id,omitempty" path:"partner_channel_template_id"`
	ResponsibleGroupId         int64                      `url:"responsible_group_id,omitempty" json:"responsible_group_id,omitempty" path:"responsible_group_id"`
	ResponsibleUserId          int64                      `url:"responsible_user_id,omitempty" json:"responsible_user_id,omitempty" path:"responsible_user_id"`
	ShowPartnerChannelHomePage *bool                      `` /* 132-byte string literal not displayed */
	Tags                       string                     `url:"tags,omitempty" json:"tags,omitempty" path:"tags"`
	Name                       string                     `url:"name,omitempty" json:"name,omitempty" path:"name"`
	PartnershipRole            PartnerPartnershipRoleEnum `url:"partnership_role,omitempty" json:"partnership_role,omitempty" path:"partnership_role"`
	RootFolder                 string                     `url:"root_folder,omitempty" json:"root_folder,omitempty" path:"root_folder"`
}

PartnerUpdateParams contains the request parameters for PATCH /partners/{id}.

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  []InvoiceLineItem `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  []PaymentLineItem `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"`
}

Payment is a Files.com API resource.

func (Payment) Identifier ¶

func (p Payment) Identifier() interface{}

Identifier returns the resource ID.

func (*Payment) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PaymentCollection ¶

type PaymentCollection []Payment

PaymentCollection is a list of Payment resources.

func (*PaymentCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*PaymentCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PaymentFindParams ¶

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

PaymentFindParams contains the request parameters for GET /payments/{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"`
}

PaymentLineItem is a Files.com API resource.

func (*PaymentLineItem) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PaymentLineItemCollection ¶

type PaymentLineItemCollection []PaymentLineItem

PaymentLineItemCollection is a list of PaymentLineItem resources.

func (*PaymentLineItemCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*PaymentLineItemCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PaymentListParams ¶

type PaymentListParams struct {
	ListParams
}

PaymentListParams contains the request parameters for GET /payments.

type PendingWorkEvent ¶ added in v3.3.111

type PendingWorkEvent 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"`
	EventErrors      []string   `json:"event_errors,omitempty" path:"event_errors,omitempty" url:"event_errors,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"`
}

PendingWorkEvent is a Files.com API resource.

func (PendingWorkEvent) Identifier ¶ added in v3.3.111

func (p PendingWorkEvent) Identifier() interface{}

Identifier returns the resource ID.

func (*PendingWorkEvent) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PendingWorkEventCollection ¶ added in v3.3.111

type PendingWorkEventCollection []PendingWorkEvent

PendingWorkEventCollection is a list of PendingWorkEvent resources.

func (*PendingWorkEventCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*PendingWorkEventCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PendingWorkEventFindParams ¶ added in v3.3.111

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

PendingWorkEventFindParams contains the request parameters for GET /pending_work_events/{id}.

type PendingWorkEventListParams ¶ added in v3.3.111

type PendingWorkEventListParams struct {
	SortBy     interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

PendingWorkEventListParams contains the request parameters for GET /pending_work_events.

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"`
	GroupIds    []int64  `json:"group_ids,omitempty" path:"group_ids,omitempty" url:"group_ids,omitempty"`
	GroupNames  []string `json:"group_names,omitempty" path:"group_names,omitempty" url:"group_names,omitempty"`
	PartnerId   int64    `json:"partner_id,omitempty" path:"partner_id,omitempty" url:"partner_id,omitempty"`
	PartnerName string   `json:"partner_name,omitempty" path:"partner_name,omitempty" url:"partner_name,omitempty"`
	Permission  string   `json:"permission,omitempty" path:"permission,omitempty" url:"permission,omitempty"`
	Recursive   *bool    `json:"recursive,omitempty" path:"recursive,omitempty" url:"recursive,omitempty"`
	SiteId      int64    `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
}

Permission is a Files.com API resource.

func (Permission) Identifier ¶

func (p Permission) Identifier() interface{}

Identifier returns the resource ID.

func (*Permission) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PermissionCollection ¶

type PermissionCollection []Permission

PermissionCollection is a list of Permission resources.

func (*PermissionCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*PermissionCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PermissionCreateParams ¶

type PermissionCreateParams struct {
	Path       string `url:"path" json:"path" path:"path"`
	GroupId    int64  `url:"group_id,omitempty" json:"group_id,omitempty" path:"group_id"`
	GroupIds   string `url:"group_ids,omitempty" json:"group_ids,omitempty" path:"group_ids"`
	Permission string `url:"permission,omitempty" json:"permission,omitempty" path:"permission"`
	Recursive  *bool  `url:"recursive,omitempty" json:"recursive,omitempty" path:"recursive"`
	PartnerId  int64  `url:"partner_id,omitempty" json:"partner_id,omitempty" path:"partner_id"`
	UserId     int64  `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Username   string `url:"username,omitempty" json:"username,omitempty" path:"username"`
	GroupName  string `url:"group_name,omitempty" json:"group_name,omitempty" path:"group_name"`
	SiteId     int64  `url:"site_id,omitempty" json:"site_id,omitempty" path:"site_id"`
}

PermissionCreateParams contains the request parameters for POST /permissions.

type PermissionDeleteParams ¶

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

PermissionDeleteParams contains the request parameters for DELETE /permissions/{id}.

type PermissionListParams ¶

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

PermissionListParams contains the request parameters for GET /permissions.

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"`
}

Preview is a Files.com API resource.

func (Preview) Identifier ¶

func (p Preview) Identifier() interface{}

Identifier returns the resource ID.

func (*Preview) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PreviewCollection ¶

type PreviewCollection []Preview

PreviewCollection is a list of Preview resources.

func (*PreviewCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*PreviewCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PublicHostingRequestLog ¶ added in v3.2.11

type PublicHostingRequestLog struct {
	Timestamp        *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	RemoteIp         string     `json:"remote_ip,omitempty" path:"remote_ip,omitempty" url:"remote_ip,omitempty"`
	ServerIp         string     `json:"server_ip,omitempty" path:"server_ip,omitempty" url:"server_ip,omitempty"`
	Hostname         string     `json:"hostname,omitempty" path:"hostname,omitempty" url:"hostname,omitempty"`
	Path             string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	ResponseCode     int64      `json:"responseCode,omitempty" path:"responseCode,omitempty" url:"responseCode,omitempty"`
	Success          *bool      `json:"success,omitempty" path:"success,omitempty" url:"success,omitempty"`
	DurationMs       int64      `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	CreatedAt        *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	BytesTransferred int64      `json:"bytes_transferred,omitempty" path:"bytes_transferred,omitempty" url:"bytes_transferred,omitempty"`
	HttpMethod       string     `json:"http_method,omitempty" path:"http_method,omitempty" url:"http_method,omitempty"`
}

PublicHostingRequestLog is a Files.com API resource.

func (PublicHostingRequestLog) Identifier ¶ added in v3.2.11

func (p PublicHostingRequestLog) Identifier() interface{}

Identifier returns the resource path.

func (*PublicHostingRequestLog) UnmarshalJSON ¶ added in v3.2.11

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PublicHostingRequestLogCollection ¶ added in v3.2.11

type PublicHostingRequestLogCollection []PublicHostingRequestLog

PublicHostingRequestLogCollection is a list of PublicHostingRequestLog resources.

func (*PublicHostingRequestLogCollection) ToSlice ¶ added in v3.2.11

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

ToSlice returns a new slice containing the resources as interface values.

func (*PublicHostingRequestLogCollection) UnmarshalJSON ¶ added in v3.2.11

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PublicHostingRequestLogListParams ¶ added in v3.2.11

type PublicHostingRequestLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

PublicHostingRequestLogListParams contains the request parameters for GET /public_hosting_request_logs.

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"`
}

PublicIpAddress is a Files.com API resource.

func (*PublicIpAddress) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PublicIpAddressCollection ¶

type PublicIpAddressCollection []PublicIpAddress

PublicIpAddressCollection is a list of PublicIpAddress resources.

func (*PublicIpAddressCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*PublicIpAddressCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PublicKey ¶

type PublicKey struct {
	Id                         int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_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"`
	ExpiresAt                  *time.Time `json:"expires_at,omitempty" path:"expires_at,omitempty" url:"expires_at,omitempty"`
	Expired                    *bool      `json:"expired,omitempty" path:"expired,omitempty" url:"expired,omitempty"`
	Fingerprint                string     `json:"fingerprint,omitempty" path:"fingerprint,omitempty" url:"fingerprint,omitempty"`
	FingerprintSha256          string     `json:"fingerprint_sha256,omitempty" path:"fingerprint_sha256,omitempty" url:"fingerprint_sha256,omitempty"`
	Status                     string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	LastLoginAt                *time.Time `json:"last_login_at,omitempty" path:"last_login_at,omitempty" url:"last_login_at,omitempty"`
	GeneratedPrivateKey        string     `json:"generated_private_key,omitempty" path:"generated_private_key,omitempty" url:"generated_private_key,omitempty"`
	GeneratedPublicKey         string     `json:"generated_public_key,omitempty" path:"generated_public_key,omitempty" url:"generated_public_key,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"`
	GenerateKeypair            *bool      `json:"generate_keypair,omitempty" path:"generate_keypair,omitempty" url:"generate_keypair,omitempty"`
	GeneratePrivateKeyPassword string     `` /* 139-byte string literal not displayed */
	GenerateAlgorithm          string     `json:"generate_algorithm,omitempty" path:"generate_algorithm,omitempty" url:"generate_algorithm,omitempty"`
	GenerateLength             int64      `json:"generate_length,omitempty" path:"generate_length,omitempty" url:"generate_length,omitempty"`
}

PublicKey is a Files.com API resource.

func (PublicKey) Identifier ¶

func (p PublicKey) Identifier() interface{}

Identifier returns the resource ID.

func (*PublicKey) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type PublicKeyCollection ¶

type PublicKeyCollection []PublicKey

PublicKeyCollection is a list of PublicKey resources.

func (*PublicKeyCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*PublicKeyCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type PublicKeyCreateParams ¶

type PublicKeyCreateParams struct {
	UserId                     int64  `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Title                      string `url:"title" json:"title" path:"title"`
	PublicKey                  string `url:"public_key,omitempty" json:"public_key,omitempty" path:"public_key"`
	GenerateKeypair            *bool  `url:"generate_keypair,omitempty" json:"generate_keypair,omitempty" path:"generate_keypair"`
	GeneratePrivateKeyPassword string `` /* 129-byte string literal not displayed */
	GenerateAlgorithm          string `url:"generate_algorithm,omitempty" json:"generate_algorithm,omitempty" path:"generate_algorithm"`
	GenerateLength             int64  `url:"generate_length,omitempty" json:"generate_length,omitempty" path:"generate_length"`
}

PublicKeyCreateParams contains the request parameters for POST /public_keys.

type PublicKeyDeleteParams ¶

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

PublicKeyDeleteParams contains the request parameters for DELETE /public_keys/{id}.

type PublicKeyFindParams ¶

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

PublicKeyFindParams contains the request parameters for GET /public_keys/{id}.

type PublicKeyListParams ¶

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

PublicKeyListParams contains the request parameters for GET /public_keys.

type PublicKeyUpdateParams ¶

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

PublicKeyUpdateParams contains the request parameters for PATCH /public_keys/{id}.

type Query ¶

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

Query fetches one page and returns its resources, the next cursor, and any error.

type ReloadIterator ¶

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

ReloadIterator starts a fresh traversal of the same listing.

type RemoteBandwidthSnapshot ¶

type RemoteBandwidthSnapshot struct {
	Id                int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	SyncBytesReceived int64      `json:"sync_bytes_received,omitempty" path:"sync_bytes_received,omitempty" url:"sync_bytes_received,omitempty"`
	SyncBytesSent     int64      `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"`
}

RemoteBandwidthSnapshot is a Files.com API resource.

func (RemoteBandwidthSnapshot) Identifier ¶

func (r RemoteBandwidthSnapshot) Identifier() interface{}

Identifier returns the resource ID.

func (*RemoteBandwidthSnapshot) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type RemoteBandwidthSnapshotCollection ¶

type RemoteBandwidthSnapshotCollection []RemoteBandwidthSnapshot

RemoteBandwidthSnapshotCollection is a list of RemoteBandwidthSnapshot resources.

func (*RemoteBandwidthSnapshotCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*RemoteBandwidthSnapshotCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type RemoteBandwidthSnapshotListParams ¶

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

RemoteBandwidthSnapshotListParams contains the request parameters for GET /remote_bandwidth_snapshots.

type RemoteMountBackend ¶ added in v3.2.178

type RemoteMountBackend struct {
	CanaryFilePath        string                   `json:"canary_file_path,omitempty" path:"canary_file_path,omitempty" url:"canary_file_path,omitempty"`
	Enabled               *bool                    `json:"enabled,omitempty" path:"enabled,omitempty" url:"enabled,omitempty"`
	Fall                  int64                    `json:"fall,omitempty" path:"fall,omitempty" url:"fall,omitempty"`
	HealthCheckEnabled    *bool                    `json:"health_check_enabled,omitempty" path:"health_check_enabled,omitempty" url:"health_check_enabled,omitempty"`
	HealthCheckResults    []map[string]interface{} `json:"health_check_results,omitempty" path:"health_check_results,omitempty" url:"health_check_results,omitempty"`
	HealthCheckType       string                   `json:"health_check_type,omitempty" path:"health_check_type,omitempty" url:"health_check_type,omitempty"`
	Id                    int64                    `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Interval              int64                    `json:"interval,omitempty" path:"interval,omitempty" url:"interval,omitempty"`
	MinFreeCpu            string                   `json:"min_free_cpu,omitempty" path:"min_free_cpu,omitempty" url:"min_free_cpu,omitempty"`
	MinFreeMem            string                   `json:"min_free_mem,omitempty" path:"min_free_mem,omitempty" url:"min_free_mem,omitempty"`
	Priority              int64                    `json:"priority,omitempty" path:"priority,omitempty" url:"priority,omitempty"`
	RemotePath            string                   `json:"remote_path,omitempty" path:"remote_path,omitempty" url:"remote_path,omitempty"`
	RemoteServerId        int64                    `json:"remote_server_id,omitempty" path:"remote_server_id,omitempty" url:"remote_server_id,omitempty"`
	RemoteServerMountId   int64                    `json:"remote_server_mount_id,omitempty" path:"remote_server_mount_id,omitempty" url:"remote_server_mount_id,omitempty"`
	Rise                  int64                    `json:"rise,omitempty" path:"rise,omitempty" url:"rise,omitempty"`
	Status                string                   `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	UndergoingMaintenance *bool                    `json:"undergoing_maintenance,omitempty" path:"undergoing_maintenance,omitempty" url:"undergoing_maintenance,omitempty"`
}

RemoteMountBackend is a Files.com API resource.

func (RemoteMountBackend) Identifier ¶ added in v3.2.178

func (r RemoteMountBackend) Identifier() interface{}

Identifier returns the resource ID.

func (*RemoteMountBackend) UnmarshalJSON ¶ added in v3.2.178

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type RemoteMountBackendCollection ¶ added in v3.2.178

type RemoteMountBackendCollection []RemoteMountBackend

RemoteMountBackendCollection is a list of RemoteMountBackend resources.

func (*RemoteMountBackendCollection) ToSlice ¶ added in v3.2.178

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

ToSlice returns a new slice containing the resources as interface values.

func (*RemoteMountBackendCollection) UnmarshalJSON ¶ added in v3.2.178

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type RemoteMountBackendCreateParams ¶ added in v3.2.178

type RemoteMountBackendCreateParams struct {
	Enabled            *bool                                 `url:"enabled,omitempty" json:"enabled,omitempty" path:"enabled"`
	Fall               int64                                 `url:"fall,omitempty" json:"fall,omitempty" path:"fall"`
	HealthCheckEnabled *bool                                 `url:"health_check_enabled,omitempty" json:"health_check_enabled,omitempty" path:"health_check_enabled"`
	HealthCheckType    RemoteMountBackendHealthCheckTypeEnum `url:"health_check_type,omitempty" json:"health_check_type,omitempty" path:"health_check_type"`
	Interval           int64                                 `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	MinFreeCpu         float64                               `url:"min_free_cpu,omitempty" json:"min_free_cpu,omitempty" path:"min_free_cpu"`
	// MinFreeCpuDecimal sends exact decimal text, such as "1.5", as min_free_cpu. Leave MinFreeCpu zero when you set it.
	MinFreeCpuDecimal *string `json:"-" url:"-" path:"-"`
	MinFreeMem        float64 `url:"min_free_mem,omitempty" json:"min_free_mem,omitempty" path:"min_free_mem"`
	// MinFreeMemDecimal sends exact decimal text, such as "1.5", as min_free_mem. Leave MinFreeMem zero when you set it.
	MinFreeMemDecimal   *string `json:"-" url:"-" path:"-"`
	Priority            int64   `url:"priority,omitempty" json:"priority,omitempty" path:"priority"`
	RemotePath          string  `url:"remote_path,omitempty" json:"remote_path,omitempty" path:"remote_path"`
	Rise                int64   `url:"rise,omitempty" json:"rise,omitempty" path:"rise"`
	CanaryFilePath      string  `url:"canary_file_path" json:"canary_file_path" path:"canary_file_path"`
	RemoteServerMountId int64   `url:"remote_server_mount_id" json:"remote_server_mount_id" path:"remote_server_mount_id"`
	RemoteServerId      int64   `url:"remote_server_id" json:"remote_server_id" path:"remote_server_id"`
}

RemoteMountBackendCreateParams contains the request parameters for POST /remote_mount_backends.

func (RemoteMountBackendCreateParams) MarshalJSON ¶ added in v3.3.272

func (p RemoteMountBackendCreateParams) MarshalJSON() ([]byte, error)

MarshalJSON sends each set MinFreeCpuDecimal or MinFreeMemDecimal as a JSON string.

func (RemoteMountBackendCreateParams) ToValues ¶ added in v3.3.272

ToValues encodes p as query values, sending each set MinFreeCpuDecimal or MinFreeMemDecimal as its text.

func (*RemoteMountBackendCreateParams) UnmarshalJSON ¶ added in v3.3.272

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

UnmarshalJSON decodes JSON strings for min_free_cpu and min_free_mem as exact decimal text.

type RemoteMountBackendDeleteParams ¶ added in v3.2.178

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

RemoteMountBackendDeleteParams contains the request parameters for DELETE /remote_mount_backends/{id}.

type RemoteMountBackendFindParams ¶ added in v3.2.178

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

RemoteMountBackendFindParams contains the request parameters for GET /remote_mount_backends/{id}.

type RemoteMountBackendHealthCheckTypeEnum ¶ added in v3.2.178

type RemoteMountBackendHealthCheckTypeEnum string

RemoteMountBackendHealthCheckTypeEnum is a string value for health_check_type. Enum lists the values documented by the API.

func (RemoteMountBackendHealthCheckTypeEnum) Enum ¶ added in v3.2.178

Enum returns the documented values keyed by their API strings.

func (RemoteMountBackendHealthCheckTypeEnum) String ¶ added in v3.2.178

String returns the API parameter value.

type RemoteMountBackendListParams ¶ added in v3.2.178

type RemoteMountBackendListParams struct {
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

RemoteMountBackendListParams contains the request parameters for GET /remote_mount_backends.

type RemoteMountBackendResetStatusParams ¶ added in v3.2.178

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

RemoteMountBackendResetStatusParams contains the request parameters for POST /remote_mount_backends/{id}/reset_status.

Reset backend status to healthy

type RemoteMountBackendUpdateParams ¶ added in v3.2.178

type RemoteMountBackendUpdateParams struct {
	Id                 int64                                 `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Enabled            *bool                                 `url:"enabled,omitempty" json:"enabled,omitempty" path:"enabled"`
	Fall               int64                                 `url:"fall,omitempty" json:"fall,omitempty" path:"fall"`
	HealthCheckEnabled *bool                                 `url:"health_check_enabled,omitempty" json:"health_check_enabled,omitempty" path:"health_check_enabled"`
	HealthCheckType    RemoteMountBackendHealthCheckTypeEnum `url:"health_check_type,omitempty" json:"health_check_type,omitempty" path:"health_check_type"`
	Interval           int64                                 `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	MinFreeCpu         float64                               `url:"min_free_cpu,omitempty" json:"min_free_cpu,omitempty" path:"min_free_cpu"`
	// MinFreeCpuDecimal sends exact decimal text, such as "1.5", as min_free_cpu. Leave MinFreeCpu zero when you set it.
	MinFreeCpuDecimal *string `json:"-" url:"-" path:"-"`
	MinFreeMem        float64 `url:"min_free_mem,omitempty" json:"min_free_mem,omitempty" path:"min_free_mem"`
	// MinFreeMemDecimal sends exact decimal text, such as "1.5", as min_free_mem. Leave MinFreeMem zero when you set it.
	MinFreeMemDecimal *string `json:"-" url:"-" path:"-"`
	Priority          int64   `url:"priority,omitempty" json:"priority,omitempty" path:"priority"`
	RemotePath        string  `url:"remote_path,omitempty" json:"remote_path,omitempty" path:"remote_path"`
	Rise              int64   `url:"rise,omitempty" json:"rise,omitempty" path:"rise"`
	CanaryFilePath    string  `url:"canary_file_path,omitempty" json:"canary_file_path,omitempty" path:"canary_file_path"`
	RemoteServerId    int64   `url:"remote_server_id,omitempty" json:"remote_server_id,omitempty" path:"remote_server_id"`
}

RemoteMountBackendUpdateParams contains the request parameters for PATCH /remote_mount_backends/{id}.

func (RemoteMountBackendUpdateParams) MarshalJSON ¶ added in v3.3.272

func (p RemoteMountBackendUpdateParams) MarshalJSON() ([]byte, error)

MarshalJSON sends each set MinFreeCpuDecimal or MinFreeMemDecimal as a JSON string.

func (RemoteMountBackendUpdateParams) ToValues ¶ added in v3.3.272

ToValues encodes p as query values, sending each set MinFreeCpuDecimal or MinFreeMemDecimal as its text.

func (*RemoteMountBackendUpdateParams) UnmarshalJSON ¶ added in v3.3.272

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

UnmarshalJSON decodes JSON strings for min_free_cpu and min_free_mem as exact decimal text.

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"`
	UploadStagingPath                       string   `json:"upload_staging_path,omitempty" path:"upload_staging_path,omitempty" url:"upload_staging_path,omitempty"`
	AllowRelativePaths                      *bool    `json:"allow_relative_paths,omitempty" path:"allow_relative_paths,omitempty" url:"allow_relative_paths,omitempty"`
	Name                                    string   `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Description                             string   `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	Port                                    int64    `json:"port,omitempty" path:"port,omitempty" url:"port,omitempty"`
	BufferUploads                           string   `json:"buffer_uploads,omitempty" path:"buffer_uploads,omitempty" url:"buffer_uploads,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"`
	RemoteServerCredentialId                int64    `` /* 133-byte string literal not displayed */
	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"`
	S3KmsKeyId                              string   `json:"s3_kms_key_id,omitempty" path:"s3_kms_key_id,omitempty" url:"s3_kms_key_id,omitempty"`
	AwsAccessKey                            string   `json:"aws_access_key,omitempty" path:"aws_access_key,omitempty" url:"aws_access_key,omitempty"`
	S3AssumeRoleArn                         string   `json:"s3_assume_role_arn,omitempty" path:"s3_assume_role_arn,omitempty" url:"s3_assume_role_arn,omitempty"`
	S3AssumeRoleDurationSeconds             int64    `` /* 145-byte string literal not displayed */
	S3AssumeRoleExternalId                  string   `` /* 130-byte string literal not displayed */
	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"`
	WorkspaceId                             int64    `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,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 */
	GoogleCloudStorageAuthenticationMethod  string   `` /* 178-byte string literal not displayed */
	GoogleCloudStorageOauthScope            string   `` /* 148-byte string literal not displayed */
	GoogleCloudStorageProjectId             string   `` /* 145-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleAccessKey string   `` /* 187-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"`
	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"`
	SharepointTenantId                      string   `json:"sharepoint_tenant_id,omitempty" path:"sharepoint_tenant_id,omitempty" url:"sharepoint_tenant_id,omitempty"`
	SharepointClientId                      string   `json:"sharepoint_client_id,omitempty" path:"sharepoint_client_id,omitempty" url:"sharepoint_client_id,omitempty"`
	SharepointAppAuthentication             *bool    `` /* 139-byte string literal not displayed */
	SharepointAppCredentialType             string   `` /* 142-byte string literal not displayed */
	SharepointSiteUrl                       string   `json:"sharepoint_site_url,omitempty" path:"sharepoint_site_url,omitempty" url:"sharepoint_site_url,omitempty"`
	AzureBlobStorageAccount                 string   `` /* 130-byte string literal not displayed */
	AzureBlobStorageContainer               string   `` /* 136-byte string literal not displayed */
	AzureBlobStorageHierarchicalNamespace   *bool    `` /* 175-byte string literal not displayed */
	AzureBlobStorageDnsSuffix               string   `` /* 139-byte string literal not displayed */
	AzureFilesStorageAccount                string   `` /* 133-byte string literal not displayed */
	AzureFilesStorageShareName              string   `` /* 142-byte string literal not displayed */
	AzureFilesStorageDnsSuffix              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"`
	S3CompatibleVirtualHostedStyle          *bool    `` /* 154-byte string literal not displayed */
	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"`
	CustomDomainId                          int64    `json:"custom_domain_id,omitempty" path:"custom_domain_id,omitempty" url:"custom_domain_id,omitempty"`
	OutboundIpAddresses                     []string `json:"outbound_ip_addresses,omitempty" path:"outbound_ip_addresses,omitempty" url:"outbound_ip_addresses,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"`
	FilesAgentVersion                       string   `json:"files_agent_version,omitempty" path:"files_agent_version,omitempty" url:"files_agent_version,omitempty"`
	FilesAgentUpToDate                      *bool    `json:"files_agent_up_to_date,omitempty" path:"files_agent_up_to_date,omitempty" url:"files_agent_up_to_date,omitempty"`
	FilesAgentLatestVersion                 string   `` /* 130-byte string literal not displayed */
	FilesAgentSupportsPushUpdates           *bool    `` /* 151-byte string literal not displayed */
	DirectTransferAvailable                 *bool    `` /* 127-byte string literal not displayed */
	OutboundAgentId                         int64    `json:"outbound_agent_id,omitempty" path:"outbound_agent_id,omitempty" url:"outbound_agent_id,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"`
	FilesApiKeyPrefix                       string   `json:"files_api_key_prefix,omitempty" path:"files_api_key_prefix,omitempty" url:"files_api_key_prefix,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"`
	SupportsVersioning                      *bool    `json:"supports_versioning,omitempty" path:"supports_versioning,omitempty" url:"supports_versioning,omitempty"`
	UserId                                  int64    `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,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"`
	ResetAuthentication                     *bool    `json:"reset_authentication,omitempty" path:"reset_authentication,omitempty" url:"reset_authentication,omitempty"`
	SharepointClientCertificate             string   `` /* 139-byte string literal not displayed */
	SharepointClientSecret                  string   `json:"sharepoint_client_secret,omitempty" path:"sharepoint_client_secret,omitempty" url:"sharepoint_client_secret,omitempty"`
	SslCertificate                          string   `json:"ssl_certificate,omitempty" path:"ssl_certificate,omitempty" url:"ssl_certificate,omitempty"`
	AwsSecretKey                            string   `json:"aws_secret_key,omitempty" path:"aws_secret_key,omitempty" url:"aws_secret_key,omitempty"`
	AzureBlobStorageAccessKey               string   `` /* 139-byte string literal not displayed */
	AzureBlobStorageSasToken                string   `` /* 136-byte string literal not displayed */
	AzureFilesStorageAccessKey              string   `` /* 142-byte string literal not displayed */
	AzureFilesStorageSasToken               string   `` /* 139-byte string literal not displayed */
	BackblazeB2ApplicationKey               string   `` /* 136-byte string literal not displayed */
	BackblazeB2KeyId                        string   `json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id,omitempty" url:"backblaze_b2_key_id,omitempty"`
	CloudflareSecretKey                     string   `json:"cloudflare_secret_key,omitempty" path:"cloudflare_secret_key,omitempty" url:"cloudflare_secret_key,omitempty"`
	FilebaseSecretKey                       string   `json:"filebase_secret_key,omitempty" path:"filebase_secret_key,omitempty" url:"filebase_secret_key,omitempty"`
	GoogleCloudStorageCredentialsJson       string   `` /* 163-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleSecretKey string   `` /* 187-byte string literal not displayed */
	LinodeSecretKey                         string   `json:"linode_secret_key,omitempty" path:"linode_secret_key,omitempty" url:"linode_secret_key,omitempty"`
	S3CompatibleSecretKey                   string   `json:"s3_compatible_secret_key,omitempty" path:"s3_compatible_secret_key,omitempty" url:"s3_compatible_secret_key,omitempty"`
	WasabiSecretKey                         string   `json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key,omitempty" url:"wasabi_secret_key,omitempty"`
	FilesApiKey                             string   `json:"files_api_key,omitempty" path:"files_api_key,omitempty" url:"files_api_key,omitempty"`
}

RemoteServer is a Files.com API resource.

func (RemoteServer) Identifier ¶

func (r RemoteServer) Identifier() interface{}

Identifier returns the resource ID.

func (*RemoteServer) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type RemoteServerAgentNodesParams ¶ added in v3.3.217

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

RemoteServerAgentNodesParams contains the request parameters for GET /remote_servers/{id}/agent_nodes.

List Files.com Agent nodes

type RemoteServerAgentPushUpdateParams ¶ added in v3.3.19

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

RemoteServerAgentPushUpdateParams contains the request parameters for POST /remote_servers/{id}/agent_push_update.

Push update to Files Agent

type RemoteServerBufferUploadsEnum ¶ added in v3.3.5

type RemoteServerBufferUploadsEnum string

RemoteServerBufferUploadsEnum is a string value for buffer_uploads. Enum lists the values documented by the API.

func (RemoteServerBufferUploadsEnum) Enum ¶ added in v3.3.5

Enum returns the documented values keyed by their API strings.

func (RemoteServerBufferUploadsEnum) String ¶ added in v3.3.5

String returns the API parameter value.

type RemoteServerCollection ¶

type RemoteServerCollection []RemoteServer

RemoteServerCollection is a list of RemoteServer resources.

func (*RemoteServerCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*RemoteServerCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

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"`
	PrivateKey                string `json:"private_key,omitempty" path:"private_key,omitempty" url:"private_key,omitempty"`
	Subdomain                 string `json:"subdomain,omitempty" path:"subdomain,omitempty" url:"subdomain,omitempty"`
	Root                      string `json:"root,omitempty" path:"root,omitempty" url:"root,omitempty"`
	NodeName                  string `json:"node_name,omitempty" path:"node_name,omitempty" url:"node_name,omitempty"`
	FollowLinks               *bool  `json:"follow_links,omitempty" path:"follow_links,omitempty" url:"follow_links,omitempty"`
	PreferProtocol            string `json:"prefer_protocol,omitempty" path:"prefer_protocol,omitempty" url:"prefer_protocol,omitempty"`
	Dns                       string `json:"dns,omitempty" path:"dns,omitempty" url:"dns,omitempty"`
	ProxyAllOutbound          *bool  `json:"proxy_all_outbound,omitempty" path:"proxy_all_outbound,omitempty" url:"proxy_all_outbound,omitempty"`
	EndpointOverride          string `json:"endpoint_override,omitempty" path:"endpoint_override,omitempty" url:"endpoint_override,omitempty"`
	LogFile                   string `json:"log_file,omitempty" path:"log_file,omitempty" url:"log_file,omitempty"`
	LogLevel                  string `json:"log_level,omitempty" path:"log_level,omitempty" url:"log_level,omitempty"`
	LogRotateNum              int64  `json:"log_rotate_num,omitempty" path:"log_rotate_num,omitempty" url:"log_rotate_num,omitempty"`
	LogRotateSize             int64  `json:"log_rotate_size,omitempty" path:"log_rotate_size,omitempty" url:"log_rotate_size,omitempty"`
	OverrideMaxConcurrentJobs int64  `` /* 136-byte string literal not displayed */
	GracefulShutdownTimeout   int64  `` /* 127-byte string literal not displayed */
	TransferRateLimit         string `json:"transfer_rate_limit,omitempty" path:"transfer_rate_limit,omitempty" url:"transfer_rate_limit,omitempty"`
	AutoUpdatePolicy          string `json:"auto_update_policy,omitempty" path:"auto_update_policy,omitempty" url:"auto_update_policy,omitempty"`
}

RemoteServerConfigurationFile is a Files.com API resource.

func (RemoteServerConfigurationFile) Identifier ¶

func (r RemoteServerConfigurationFile) Identifier() interface{}

Identifier returns the resource ID.

func (*RemoteServerConfigurationFile) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type RemoteServerConfigurationFileCollection ¶

type RemoteServerConfigurationFileCollection []RemoteServerConfigurationFile

RemoteServerConfigurationFileCollection is a list of RemoteServerConfigurationFile resources.

func (*RemoteServerConfigurationFileCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*RemoteServerConfigurationFileCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type RemoteServerCreateParams ¶

type RemoteServerCreateParams struct {
	UserId                                  int64                                                  `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Password                                string                                                 `url:"password,omitempty" json:"password,omitempty" path:"password"`
	PrivateKey                              string                                                 `url:"private_key,omitempty" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassphrase                    string                                                 `url:"private_key_passphrase,omitempty" json:"private_key_passphrase,omitempty" path:"private_key_passphrase"`
	ResetAuthentication                     *bool                                                  `url:"reset_authentication,omitempty" json:"reset_authentication,omitempty" path:"reset_authentication"`
	SharepointClientCertificate             string                                                 `` /* 129-byte string literal not displayed */
	SharepointClientSecret                  string                                                 `url:"sharepoint_client_secret,omitempty" json:"sharepoint_client_secret,omitempty" path:"sharepoint_client_secret"`
	SslCertificate                          string                                                 `url:"ssl_certificate,omitempty" json:"ssl_certificate,omitempty" path:"ssl_certificate"`
	AwsSecretKey                            string                                                 `url:"aws_secret_key,omitempty" json:"aws_secret_key,omitempty" path:"aws_secret_key"`
	AzureBlobStorageAccessKey               string                                                 `` /* 129-byte string literal not displayed */
	AzureBlobStorageSasToken                string                                                 `` /* 126-byte string literal not displayed */
	AzureFilesStorageAccessKey              string                                                 `` /* 132-byte string literal not displayed */
	AzureFilesStorageSasToken               string                                                 `` /* 129-byte string literal not displayed */
	BackblazeB2ApplicationKey               string                                                 `` /* 126-byte string literal not displayed */
	BackblazeB2KeyId                        string                                                 `url:"backblaze_b2_key_id,omitempty" json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id"`
	CloudflareSecretKey                     string                                                 `url:"cloudflare_secret_key,omitempty" json:"cloudflare_secret_key,omitempty" path:"cloudflare_secret_key"`
	FilebaseSecretKey                       string                                                 `url:"filebase_secret_key,omitempty" json:"filebase_secret_key,omitempty" path:"filebase_secret_key"`
	GoogleCloudStorageCredentialsJson       string                                                 `` /* 153-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleSecretKey string                                                 `` /* 177-byte string literal not displayed */
	LinodeSecretKey                         string                                                 `url:"linode_secret_key,omitempty" json:"linode_secret_key,omitempty" path:"linode_secret_key"`
	S3CompatibleSecretKey                   string                                                 `url:"s3_compatible_secret_key,omitempty" json:"s3_compatible_secret_key,omitempty" path:"s3_compatible_secret_key"`
	WasabiSecretKey                         string                                                 `url:"wasabi_secret_key,omitempty" json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key"`
	AllowRelativePaths                      *bool                                                  `url:"allow_relative_paths,omitempty" json:"allow_relative_paths,omitempty" path:"allow_relative_paths"`
	AwsAccessKey                            string                                                 `url:"aws_access_key,omitempty" json:"aws_access_key,omitempty" path:"aws_access_key"`
	AzureBlobStorageAccount                 string                                                 `url:"azure_blob_storage_account,omitempty" json:"azure_blob_storage_account,omitempty" path:"azure_blob_storage_account"`
	AzureBlobStorageContainer               string                                                 `` /* 126-byte string literal not displayed */
	AzureBlobStorageDnsSuffix               string                                                 `` /* 129-byte string literal not displayed */
	AzureBlobStorageHierarchicalNamespace   *bool                                                  `` /* 165-byte string literal not displayed */
	AzureFilesStorageAccount                string                                                 `url:"azure_files_storage_account,omitempty" json:"azure_files_storage_account,omitempty" path:"azure_files_storage_account"`
	AzureFilesStorageDnsSuffix              string                                                 `` /* 132-byte string literal not displayed */
	AzureFilesStorageShareName              string                                                 `` /* 132-byte string literal not displayed */
	BackblazeB2Bucket                       string                                                 `url:"backblaze_b2_bucket,omitempty" json:"backblaze_b2_bucket,omitempty" path:"backblaze_b2_bucket"`
	BackblazeB2S3Endpoint                   string                                                 `url:"backblaze_b2_s3_endpoint,omitempty" json:"backblaze_b2_s3_endpoint,omitempty" path:"backblaze_b2_s3_endpoint"`
	BufferUploads                           RemoteServerBufferUploadsEnum                          `url:"buffer_uploads,omitempty" json:"buffer_uploads,omitempty" path:"buffer_uploads"`
	CloudflareAccessKey                     string                                                 `url:"cloudflare_access_key,omitempty" json:"cloudflare_access_key,omitempty" path:"cloudflare_access_key"`
	CloudflareBucket                        string                                                 `url:"cloudflare_bucket,omitempty" json:"cloudflare_bucket,omitempty" path:"cloudflare_bucket"`
	CloudflareEndpoint                      string                                                 `url:"cloudflare_endpoint,omitempty" json:"cloudflare_endpoint,omitempty" path:"cloudflare_endpoint"`
	Description                             string                                                 `url:"description,omitempty" json:"description,omitempty" path:"description"`
	DropboxTeams                            *bool                                                  `url:"dropbox_teams,omitempty" json:"dropbox_teams,omitempty" path:"dropbox_teams"`
	EnableDedicatedIps                      *bool                                                  `url:"enable_dedicated_ips,omitempty" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	FilebaseAccessKey                       string                                                 `url:"filebase_access_key,omitempty" json:"filebase_access_key,omitempty" path:"filebase_access_key"`
	FilebaseBucket                          string                                                 `url:"filebase_bucket,omitempty" json:"filebase_bucket,omitempty" path:"filebase_bucket"`
	FilesApiKey                             string                                                 `url:"files_api_key,omitempty" json:"files_api_key,omitempty" path:"files_api_key"`
	FilesAgentPermissionSet                 RemoteServerFilesAgentPermissionSetEnum                `url:"files_agent_permission_set,omitempty" json:"files_agent_permission_set,omitempty" path:"files_agent_permission_set"`
	FilesAgentRoot                          string                                                 `url:"files_agent_root,omitempty" json:"files_agent_root,omitempty" path:"files_agent_root"`
	FilesAgentVersion                       string                                                 `url:"files_agent_version,omitempty" json:"files_agent_version,omitempty" path:"files_agent_version"`
	OutboundAgentId                         int64                                                  `url:"outbound_agent_id,omitempty" json:"outbound_agent_id,omitempty" path:"outbound_agent_id"`
	CustomDomainId                          int64                                                  `url:"custom_domain_id,omitempty" json:"custom_domain_id,omitempty" path:"custom_domain_id"`
	GoogleCloudStorageAuthenticationMethod  RemoteServerGoogleCloudStorageAuthenticationMethodEnum `` /* 168-byte string literal not displayed */
	GoogleCloudStorageBucket                string                                                 `url:"google_cloud_storage_bucket,omitempty" json:"google_cloud_storage_bucket,omitempty" path:"google_cloud_storage_bucket"`
	GoogleCloudStorageOauthScope            string                                                 `` /* 138-byte string literal not displayed */
	GoogleCloudStorageProjectId             string                                                 `` /* 135-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleAccessKey string                                                 `` /* 177-byte string literal not displayed */
	Hostname                                string                                                 `url:"hostname,omitempty" json:"hostname,omitempty" path:"hostname"`
	LinodeAccessKey                         string                                                 `url:"linode_access_key,omitempty" json:"linode_access_key,omitempty" path:"linode_access_key"`
	LinodeBucket                            string                                                 `url:"linode_bucket,omitempty" json:"linode_bucket,omitempty" path:"linode_bucket"`
	LinodeRegion                            string                                                 `url:"linode_region,omitempty" json:"linode_region,omitempty" path:"linode_region"`
	MaxConnections                          int64                                                  `url:"max_connections,omitempty" json:"max_connections,omitempty" path:"max_connections"`
	Name                                    string                                                 `url:"name,omitempty" json:"name,omitempty" path:"name"`
	OneDriveAccountType                     RemoteServerOneDriveAccountTypeEnum                    `url:"one_drive_account_type,omitempty" json:"one_drive_account_type,omitempty" path:"one_drive_account_type"`
	PinToSiteRegion                         *bool                                                  `url:"pin_to_site_region,omitempty" json:"pin_to_site_region,omitempty" path:"pin_to_site_region"`
	Port                                    int64                                                  `url:"port,omitempty" json:"port,omitempty" path:"port"`
	UploadStagingPath                       string                                                 `url:"upload_staging_path,omitempty" json:"upload_staging_path,omitempty" path:"upload_staging_path"`
	RemoteServerCredentialId                int64                                                  `url:"remote_server_credential_id,omitempty" json:"remote_server_credential_id,omitempty" path:"remote_server_credential_id"`
	S3AssumeRoleArn                         string                                                 `url:"s3_assume_role_arn,omitempty" json:"s3_assume_role_arn,omitempty" path:"s3_assume_role_arn"`
	S3AssumeRoleDurationSeconds             int64                                                  `` /* 135-byte string literal not displayed */
	S3Bucket                                string                                                 `url:"s3_bucket,omitempty" json:"s3_bucket,omitempty" path:"s3_bucket"`
	S3CompatibleAccessKey                   string                                                 `url:"s3_compatible_access_key,omitempty" json:"s3_compatible_access_key,omitempty" path:"s3_compatible_access_key"`
	S3CompatibleBucket                      string                                                 `url:"s3_compatible_bucket,omitempty" json:"s3_compatible_bucket,omitempty" path:"s3_compatible_bucket"`
	S3CompatibleEndpoint                    string                                                 `url:"s3_compatible_endpoint,omitempty" json:"s3_compatible_endpoint,omitempty" path:"s3_compatible_endpoint"`
	S3CompatibleRegion                      string                                                 `url:"s3_compatible_region,omitempty" json:"s3_compatible_region,omitempty" path:"s3_compatible_region"`
	S3CompatibleVirtualHostedStyle          *bool                                                  `` /* 144-byte string literal not displayed */
	S3KmsKeyId                              string                                                 `url:"s3_kms_key_id,omitempty" json:"s3_kms_key_id,omitempty" path:"s3_kms_key_id"`
	S3Region                                string                                                 `url:"s3_region,omitempty" json:"s3_region,omitempty" path:"s3_region"`
	ServerCertificate                       RemoteServerServerCertificateEnum                      `url:"server_certificate,omitempty" json:"server_certificate,omitempty" path:"server_certificate"`
	ServerHostKey                           string                                                 `url:"server_host_key,omitempty" json:"server_host_key,omitempty" path:"server_host_key"`
	ServerType                              RemoteServerServerTypeEnum                             `url:"server_type,omitempty" json:"server_type,omitempty" path:"server_type"`
	SharepointClientId                      string                                                 `url:"sharepoint_client_id,omitempty" json:"sharepoint_client_id,omitempty" path:"sharepoint_client_id"`
	SharepointSiteUrl                       string                                                 `url:"sharepoint_site_url,omitempty" json:"sharepoint_site_url,omitempty" path:"sharepoint_site_url"`
	SharepointTenantId                      string                                                 `url:"sharepoint_tenant_id,omitempty" json:"sharepoint_tenant_id,omitempty" path:"sharepoint_tenant_id"`
	Ssl                                     RemoteServerSslEnum                                    `url:"ssl,omitempty" json:"ssl,omitempty" path:"ssl"`
	Username                                string                                                 `url:"username,omitempty" json:"username,omitempty" path:"username"`
	WasabiAccessKey                         string                                                 `url:"wasabi_access_key,omitempty" json:"wasabi_access_key,omitempty" path:"wasabi_access_key"`
	WasabiBucket                            string                                                 `url:"wasabi_bucket,omitempty" json:"wasabi_bucket,omitempty" path:"wasabi_bucket"`
	WasabiRegion                            string                                                 `url:"wasabi_region,omitempty" json:"wasabi_region,omitempty" path:"wasabi_region"`
	WorkspaceId                             int64                                                  `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

RemoteServerCreateParams contains the request parameters for POST /remote_servers.

type RemoteServerCredential ¶ added in v3.3.17

type RemoteServerCredential struct {
	Id                                      int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId                             int64  `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Name                                    string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Description                             string `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	ServerType                              string `json:"server_type,omitempty" path:"server_type,omitempty" url:"server_type,omitempty"`
	AwsAccessKey                            string `json:"aws_access_key,omitempty" path:"aws_access_key,omitempty" url:"aws_access_key,omitempty"`
	S3AssumeRoleArn                         string `json:"s3_assume_role_arn,omitempty" path:"s3_assume_role_arn,omitempty" url:"s3_assume_role_arn,omitempty"`
	S3AssumeRoleDurationSeconds             int64  `` /* 145-byte string literal not displayed */
	S3AssumeRoleExternalId                  string `` /* 130-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleAccessKey string `` /* 187-byte string literal not displayed */
	WasabiAccessKey                         string `json:"wasabi_access_key,omitempty" path:"wasabi_access_key,omitempty" url:"wasabi_access_key,omitempty"`
	S3CompatibleAccessKey                   string `json:"s3_compatible_access_key,omitempty" path:"s3_compatible_access_key,omitempty" url:"s3_compatible_access_key,omitempty"`
	FilebaseAccessKey                       string `json:"filebase_access_key,omitempty" path:"filebase_access_key,omitempty" url:"filebase_access_key,omitempty"`
	CloudflareAccessKey                     string `json:"cloudflare_access_key,omitempty" path:"cloudflare_access_key,omitempty" url:"cloudflare_access_key,omitempty"`
	LinodeAccessKey                         string `json:"linode_access_key,omitempty" path:"linode_access_key,omitempty" url:"linode_access_key,omitempty"`
	SharepointTenantId                      string `json:"sharepoint_tenant_id,omitempty" path:"sharepoint_tenant_id,omitempty" url:"sharepoint_tenant_id,omitempty"`
	SharepointClientId                      string `json:"sharepoint_client_id,omitempty" path:"sharepoint_client_id,omitempty" url:"sharepoint_client_id,omitempty"`
	SharepointAppCredentialType             string `` /* 142-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"`
	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"`
	AwsSecretKey                            string `json:"aws_secret_key,omitempty" path:"aws_secret_key,omitempty" url:"aws_secret_key,omitempty"`
	AzureBlobStorageAccessKey               string `` /* 139-byte string literal not displayed */
	AzureBlobStorageSasToken                string `` /* 136-byte string literal not displayed */
	AzureFilesStorageAccessKey              string `` /* 142-byte string literal not displayed */
	AzureFilesStorageSasToken               string `` /* 139-byte string literal not displayed */
	BackblazeB2ApplicationKey               string `` /* 136-byte string literal not displayed */
	BackblazeB2KeyId                        string `json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id,omitempty" url:"backblaze_b2_key_id,omitempty"`
	CloudflareSecretKey                     string `json:"cloudflare_secret_key,omitempty" path:"cloudflare_secret_key,omitempty" url:"cloudflare_secret_key,omitempty"`
	FilebaseSecretKey                       string `json:"filebase_secret_key,omitempty" path:"filebase_secret_key,omitempty" url:"filebase_secret_key,omitempty"`
	GoogleCloudStorageCredentialsJson       string `` /* 163-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleSecretKey string `` /* 187-byte string literal not displayed */
	LinodeSecretKey                         string `json:"linode_secret_key,omitempty" path:"linode_secret_key,omitempty" url:"linode_secret_key,omitempty"`
	S3CompatibleSecretKey                   string `json:"s3_compatible_secret_key,omitempty" path:"s3_compatible_secret_key,omitempty" url:"s3_compatible_secret_key,omitempty"`
	SharepointClientCertificate             string `` /* 139-byte string literal not displayed */
	SharepointClientSecret                  string `json:"sharepoint_client_secret,omitempty" path:"sharepoint_client_secret,omitempty" url:"sharepoint_client_secret,omitempty"`
	WasabiSecretKey                         string `json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key,omitempty" url:"wasabi_secret_key,omitempty"`
	CopyValuesFromCredentialId              int64  `` /* 142-byte string literal not displayed */
}

RemoteServerCredential is a Files.com API resource.

func (RemoteServerCredential) Identifier ¶ added in v3.3.17

func (r RemoteServerCredential) Identifier() interface{}

Identifier returns the resource ID.

func (*RemoteServerCredential) UnmarshalJSON ¶ added in v3.3.17

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type RemoteServerCredentialCollection ¶ added in v3.3.17

type RemoteServerCredentialCollection []RemoteServerCredential

RemoteServerCredentialCollection is a list of RemoteServerCredential resources.

func (*RemoteServerCredentialCollection) ToSlice ¶ added in v3.3.17

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

ToSlice returns a new slice containing the resources as interface values.

func (*RemoteServerCredentialCollection) UnmarshalJSON ¶ added in v3.3.17

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type RemoteServerCredentialCreateParams ¶ added in v3.3.17

type RemoteServerCredentialCreateParams struct {
	Name                                    string                               `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description                             string                               `url:"description,omitempty" json:"description,omitempty" path:"description"`
	ServerType                              RemoteServerCredentialServerTypeEnum `url:"server_type,omitempty" json:"server_type,omitempty" path:"server_type"`
	AwsAccessKey                            string                               `url:"aws_access_key,omitempty" json:"aws_access_key,omitempty" path:"aws_access_key"`
	S3AssumeRoleArn                         string                               `url:"s3_assume_role_arn,omitempty" json:"s3_assume_role_arn,omitempty" path:"s3_assume_role_arn"`
	S3AssumeRoleDurationSeconds             int64                                `` /* 135-byte string literal not displayed */
	CloudflareAccessKey                     string                               `url:"cloudflare_access_key,omitempty" json:"cloudflare_access_key,omitempty" path:"cloudflare_access_key"`
	FilebaseAccessKey                       string                               `url:"filebase_access_key,omitempty" json:"filebase_access_key,omitempty" path:"filebase_access_key"`
	GoogleCloudStorageS3CompatibleAccessKey string                               `` /* 177-byte string literal not displayed */
	LinodeAccessKey                         string                               `url:"linode_access_key,omitempty" json:"linode_access_key,omitempty" path:"linode_access_key"`
	S3CompatibleAccessKey                   string                               `url:"s3_compatible_access_key,omitempty" json:"s3_compatible_access_key,omitempty" path:"s3_compatible_access_key"`
	SharepointClientId                      string                               `url:"sharepoint_client_id,omitempty" json:"sharepoint_client_id,omitempty" path:"sharepoint_client_id"`
	SharepointTenantId                      string                               `url:"sharepoint_tenant_id,omitempty" json:"sharepoint_tenant_id,omitempty" path:"sharepoint_tenant_id"`
	Username                                string                               `url:"username,omitempty" json:"username,omitempty" path:"username"`
	WasabiAccessKey                         string                               `url:"wasabi_access_key,omitempty" json:"wasabi_access_key,omitempty" path:"wasabi_access_key"`
	Password                                string                               `url:"password,omitempty" json:"password,omitempty" path:"password"`
	PrivateKey                              string                               `url:"private_key,omitempty" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassphrase                    string                               `url:"private_key_passphrase,omitempty" json:"private_key_passphrase,omitempty" path:"private_key_passphrase"`
	AwsSecretKey                            string                               `url:"aws_secret_key,omitempty" json:"aws_secret_key,omitempty" path:"aws_secret_key"`
	AzureBlobStorageAccessKey               string                               `` /* 129-byte string literal not displayed */
	AzureBlobStorageSasToken                string                               `` /* 126-byte string literal not displayed */
	AzureFilesStorageAccessKey              string                               `` /* 132-byte string literal not displayed */
	AzureFilesStorageSasToken               string                               `` /* 129-byte string literal not displayed */
	BackblazeB2ApplicationKey               string                               `` /* 126-byte string literal not displayed */
	BackblazeB2KeyId                        string                               `url:"backblaze_b2_key_id,omitempty" json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id"`
	CloudflareSecretKey                     string                               `url:"cloudflare_secret_key,omitempty" json:"cloudflare_secret_key,omitempty" path:"cloudflare_secret_key"`
	FilebaseSecretKey                       string                               `url:"filebase_secret_key,omitempty" json:"filebase_secret_key,omitempty" path:"filebase_secret_key"`
	GoogleCloudStorageCredentialsJson       string                               `` /* 153-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleSecretKey string                               `` /* 177-byte string literal not displayed */
	LinodeSecretKey                         string                               `url:"linode_secret_key,omitempty" json:"linode_secret_key,omitempty" path:"linode_secret_key"`
	S3CompatibleSecretKey                   string                               `url:"s3_compatible_secret_key,omitempty" json:"s3_compatible_secret_key,omitempty" path:"s3_compatible_secret_key"`
	SharepointClientCertificate             string                               `` /* 129-byte string literal not displayed */
	SharepointClientSecret                  string                               `url:"sharepoint_client_secret,omitempty" json:"sharepoint_client_secret,omitempty" path:"sharepoint_client_secret"`
	WasabiSecretKey                         string                               `url:"wasabi_secret_key,omitempty" json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key"`
	WorkspaceId                             int64                                `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	CopyValuesFromCredentialId              int64                                `` /* 132-byte string literal not displayed */
}

RemoteServerCredentialCreateParams contains the request parameters for POST /remote_server_credentials.

type RemoteServerCredentialDeleteParams ¶ added in v3.3.17

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

RemoteServerCredentialDeleteParams contains the request parameters for DELETE /remote_server_credentials/{id}.

type RemoteServerCredentialFindParams ¶ added in v3.3.17

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

RemoteServerCredentialFindParams contains the request parameters for GET /remote_server_credentials/{id}.

type RemoteServerCredentialListParams ¶ added in v3.3.17

type RemoteServerCredentialListParams struct {
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

RemoteServerCredentialListParams contains the request parameters for GET /remote_server_credentials.

type RemoteServerCredentialServerTypeEnum ¶ added in v3.3.17

type RemoteServerCredentialServerTypeEnum string

RemoteServerCredentialServerTypeEnum is a string value for server_type. Enum lists the values documented by the API.

func (RemoteServerCredentialServerTypeEnum) Enum ¶ added in v3.3.17

Enum returns the documented values keyed by their API strings.

func (RemoteServerCredentialServerTypeEnum) String ¶ added in v3.3.17

String returns the API parameter value.

type RemoteServerCredentialUpdateParams ¶ added in v3.3.17

type RemoteServerCredentialUpdateParams struct {
	Id                                      int64                                `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name                                    string                               `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description                             string                               `url:"description,omitempty" json:"description,omitempty" path:"description"`
	ServerType                              RemoteServerCredentialServerTypeEnum `url:"server_type,omitempty" json:"server_type,omitempty" path:"server_type"`
	AwsAccessKey                            string                               `url:"aws_access_key,omitempty" json:"aws_access_key,omitempty" path:"aws_access_key"`
	S3AssumeRoleArn                         string                               `url:"s3_assume_role_arn,omitempty" json:"s3_assume_role_arn,omitempty" path:"s3_assume_role_arn"`
	S3AssumeRoleDurationSeconds             int64                                `` /* 135-byte string literal not displayed */
	CloudflareAccessKey                     string                               `url:"cloudflare_access_key,omitempty" json:"cloudflare_access_key,omitempty" path:"cloudflare_access_key"`
	FilebaseAccessKey                       string                               `url:"filebase_access_key,omitempty" json:"filebase_access_key,omitempty" path:"filebase_access_key"`
	GoogleCloudStorageS3CompatibleAccessKey string                               `` /* 177-byte string literal not displayed */
	LinodeAccessKey                         string                               `url:"linode_access_key,omitempty" json:"linode_access_key,omitempty" path:"linode_access_key"`
	S3CompatibleAccessKey                   string                               `url:"s3_compatible_access_key,omitempty" json:"s3_compatible_access_key,omitempty" path:"s3_compatible_access_key"`
	SharepointClientId                      string                               `url:"sharepoint_client_id,omitempty" json:"sharepoint_client_id,omitempty" path:"sharepoint_client_id"`
	SharepointTenantId                      string                               `url:"sharepoint_tenant_id,omitempty" json:"sharepoint_tenant_id,omitempty" path:"sharepoint_tenant_id"`
	Username                                string                               `url:"username,omitempty" json:"username,omitempty" path:"username"`
	WasabiAccessKey                         string                               `url:"wasabi_access_key,omitempty" json:"wasabi_access_key,omitempty" path:"wasabi_access_key"`
	Password                                string                               `url:"password,omitempty" json:"password,omitempty" path:"password"`
	PrivateKey                              string                               `url:"private_key,omitempty" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassphrase                    string                               `url:"private_key_passphrase,omitempty" json:"private_key_passphrase,omitempty" path:"private_key_passphrase"`
	AwsSecretKey                            string                               `url:"aws_secret_key,omitempty" json:"aws_secret_key,omitempty" path:"aws_secret_key"`
	AzureBlobStorageAccessKey               string                               `` /* 129-byte string literal not displayed */
	AzureBlobStorageSasToken                string                               `` /* 126-byte string literal not displayed */
	AzureFilesStorageAccessKey              string                               `` /* 132-byte string literal not displayed */
	AzureFilesStorageSasToken               string                               `` /* 129-byte string literal not displayed */
	BackblazeB2ApplicationKey               string                               `` /* 126-byte string literal not displayed */
	BackblazeB2KeyId                        string                               `url:"backblaze_b2_key_id,omitempty" json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id"`
	CloudflareSecretKey                     string                               `url:"cloudflare_secret_key,omitempty" json:"cloudflare_secret_key,omitempty" path:"cloudflare_secret_key"`
	FilebaseSecretKey                       string                               `url:"filebase_secret_key,omitempty" json:"filebase_secret_key,omitempty" path:"filebase_secret_key"`
	GoogleCloudStorageCredentialsJson       string                               `` /* 153-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleSecretKey string                               `` /* 177-byte string literal not displayed */
	LinodeSecretKey                         string                               `url:"linode_secret_key,omitempty" json:"linode_secret_key,omitempty" path:"linode_secret_key"`
	S3CompatibleSecretKey                   string                               `url:"s3_compatible_secret_key,omitempty" json:"s3_compatible_secret_key,omitempty" path:"s3_compatible_secret_key"`
	SharepointClientCertificate             string                               `` /* 129-byte string literal not displayed */
	SharepointClientSecret                  string                               `url:"sharepoint_client_secret,omitempty" json:"sharepoint_client_secret,omitempty" path:"sharepoint_client_secret"`
	WasabiSecretKey                         string                               `url:"wasabi_secret_key,omitempty" json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key"`
}

RemoteServerCredentialUpdateParams contains the request parameters for PATCH /remote_server_credentials/{id}.

type RemoteServerDeleteParams ¶

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

RemoteServerDeleteParams contains the request parameters for DELETE /remote_servers/{id}.

type RemoteServerFilesAgentPermissionSetEnum ¶

type RemoteServerFilesAgentPermissionSetEnum string

RemoteServerFilesAgentPermissionSetEnum is a string value for files_agent_permission_set. Enum lists the values documented by the API.

func (RemoteServerFilesAgentPermissionSetEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (RemoteServerFilesAgentPermissionSetEnum) String ¶

String returns the API parameter value.

type RemoteServerFindConfigurationFileParams ¶

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

RemoteServerFindConfigurationFileParams contains the request parameters for GET /remote_servers/{id}/configuration_file.

type RemoteServerFindParams ¶

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

RemoteServerFindParams contains the request parameters for GET /remote_servers/{id}.

type RemoteServerGoogleCloudStorageAuthenticationMethodEnum ¶ added in v3.3.146

type RemoteServerGoogleCloudStorageAuthenticationMethodEnum string

RemoteServerGoogleCloudStorageAuthenticationMethodEnum is a string value for google_cloud_storage_authentication_method. Enum lists the values documented by the API.

func (RemoteServerGoogleCloudStorageAuthenticationMethodEnum) Enum ¶ added in v3.3.146

Enum returns the documented values keyed by their API strings.

func (RemoteServerGoogleCloudStorageAuthenticationMethodEnum) String ¶ added in v3.3.146

String returns the API parameter value.

type RemoteServerListParams ¶

type RemoteServerListParams struct {
	UserId       int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

RemoteServerListParams contains the request parameters for GET /remote_servers.

type RemoteServerOneDriveAccountTypeEnum ¶

type RemoteServerOneDriveAccountTypeEnum string

RemoteServerOneDriveAccountTypeEnum is a string value for one_drive_account_type. Enum lists the values documented by the API.

func (RemoteServerOneDriveAccountTypeEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (RemoteServerOneDriveAccountTypeEnum) String ¶

String returns the API parameter value.

type RemoteServerServerCertificateEnum ¶

type RemoteServerServerCertificateEnum string

RemoteServerServerCertificateEnum is a string value for server_certificate. Enum lists the values documented by the API.

func (RemoteServerServerCertificateEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (RemoteServerServerCertificateEnum) String ¶

String returns the API parameter value.

type RemoteServerServerTypeEnum ¶

type RemoteServerServerTypeEnum string

RemoteServerServerTypeEnum is a string value for server_type. Enum lists the values documented by the API.

func (RemoteServerServerTypeEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (RemoteServerServerTypeEnum) String ¶

String returns the API parameter value.

type RemoteServerSslEnum ¶

type RemoteServerSslEnum string

RemoteServerSslEnum is a string value for ssl. Enum lists the values documented by the API.

func (RemoteServerSslEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (RemoteServerSslEnum) String ¶

func (u RemoteServerSslEnum) String() string

String returns the API parameter value.

type RemoteServerUpdateParams ¶

type RemoteServerUpdateParams struct {
	Id                                      int64                                                  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Password                                string                                                 `url:"password,omitempty" json:"password,omitempty" path:"password"`
	PrivateKey                              string                                                 `url:"private_key,omitempty" json:"private_key,omitempty" path:"private_key"`
	PrivateKeyPassphrase                    string                                                 `url:"private_key_passphrase,omitempty" json:"private_key_passphrase,omitempty" path:"private_key_passphrase"`
	ResetAuthentication                     *bool                                                  `url:"reset_authentication,omitempty" json:"reset_authentication,omitempty" path:"reset_authentication"`
	SharepointClientCertificate             string                                                 `` /* 129-byte string literal not displayed */
	SharepointClientSecret                  string                                                 `url:"sharepoint_client_secret,omitempty" json:"sharepoint_client_secret,omitempty" path:"sharepoint_client_secret"`
	SslCertificate                          string                                                 `url:"ssl_certificate,omitempty" json:"ssl_certificate,omitempty" path:"ssl_certificate"`
	AwsSecretKey                            string                                                 `url:"aws_secret_key,omitempty" json:"aws_secret_key,omitempty" path:"aws_secret_key"`
	AzureBlobStorageAccessKey               string                                                 `` /* 129-byte string literal not displayed */
	AzureBlobStorageSasToken                string                                                 `` /* 126-byte string literal not displayed */
	AzureFilesStorageAccessKey              string                                                 `` /* 132-byte string literal not displayed */
	AzureFilesStorageSasToken               string                                                 `` /* 129-byte string literal not displayed */
	BackblazeB2ApplicationKey               string                                                 `` /* 126-byte string literal not displayed */
	BackblazeB2KeyId                        string                                                 `url:"backblaze_b2_key_id,omitempty" json:"backblaze_b2_key_id,omitempty" path:"backblaze_b2_key_id"`
	CloudflareSecretKey                     string                                                 `url:"cloudflare_secret_key,omitempty" json:"cloudflare_secret_key,omitempty" path:"cloudflare_secret_key"`
	FilebaseSecretKey                       string                                                 `url:"filebase_secret_key,omitempty" json:"filebase_secret_key,omitempty" path:"filebase_secret_key"`
	GoogleCloudStorageCredentialsJson       string                                                 `` /* 153-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleSecretKey string                                                 `` /* 177-byte string literal not displayed */
	LinodeSecretKey                         string                                                 `url:"linode_secret_key,omitempty" json:"linode_secret_key,omitempty" path:"linode_secret_key"`
	S3CompatibleSecretKey                   string                                                 `url:"s3_compatible_secret_key,omitempty" json:"s3_compatible_secret_key,omitempty" path:"s3_compatible_secret_key"`
	WasabiSecretKey                         string                                                 `url:"wasabi_secret_key,omitempty" json:"wasabi_secret_key,omitempty" path:"wasabi_secret_key"`
	AllowRelativePaths                      *bool                                                  `url:"allow_relative_paths,omitempty" json:"allow_relative_paths,omitempty" path:"allow_relative_paths"`
	AwsAccessKey                            string                                                 `url:"aws_access_key,omitempty" json:"aws_access_key,omitempty" path:"aws_access_key"`
	AzureBlobStorageAccount                 string                                                 `url:"azure_blob_storage_account,omitempty" json:"azure_blob_storage_account,omitempty" path:"azure_blob_storage_account"`
	AzureBlobStorageContainer               string                                                 `` /* 126-byte string literal not displayed */
	AzureBlobStorageDnsSuffix               string                                                 `` /* 129-byte string literal not displayed */
	AzureBlobStorageHierarchicalNamespace   *bool                                                  `` /* 165-byte string literal not displayed */
	AzureFilesStorageAccount                string                                                 `url:"azure_files_storage_account,omitempty" json:"azure_files_storage_account,omitempty" path:"azure_files_storage_account"`
	AzureFilesStorageDnsSuffix              string                                                 `` /* 132-byte string literal not displayed */
	AzureFilesStorageShareName              string                                                 `` /* 132-byte string literal not displayed */
	BackblazeB2Bucket                       string                                                 `url:"backblaze_b2_bucket,omitempty" json:"backblaze_b2_bucket,omitempty" path:"backblaze_b2_bucket"`
	BackblazeB2S3Endpoint                   string                                                 `url:"backblaze_b2_s3_endpoint,omitempty" json:"backblaze_b2_s3_endpoint,omitempty" path:"backblaze_b2_s3_endpoint"`
	BufferUploads                           RemoteServerBufferUploadsEnum                          `url:"buffer_uploads,omitempty" json:"buffer_uploads,omitempty" path:"buffer_uploads"`
	CloudflareAccessKey                     string                                                 `url:"cloudflare_access_key,omitempty" json:"cloudflare_access_key,omitempty" path:"cloudflare_access_key"`
	CloudflareBucket                        string                                                 `url:"cloudflare_bucket,omitempty" json:"cloudflare_bucket,omitempty" path:"cloudflare_bucket"`
	CloudflareEndpoint                      string                                                 `url:"cloudflare_endpoint,omitempty" json:"cloudflare_endpoint,omitempty" path:"cloudflare_endpoint"`
	Description                             string                                                 `url:"description,omitempty" json:"description,omitempty" path:"description"`
	DropboxTeams                            *bool                                                  `url:"dropbox_teams,omitempty" json:"dropbox_teams,omitempty" path:"dropbox_teams"`
	EnableDedicatedIps                      *bool                                                  `url:"enable_dedicated_ips,omitempty" json:"enable_dedicated_ips,omitempty" path:"enable_dedicated_ips"`
	FilebaseAccessKey                       string                                                 `url:"filebase_access_key,omitempty" json:"filebase_access_key,omitempty" path:"filebase_access_key"`
	FilebaseBucket                          string                                                 `url:"filebase_bucket,omitempty" json:"filebase_bucket,omitempty" path:"filebase_bucket"`
	FilesApiKey                             string                                                 `url:"files_api_key,omitempty" json:"files_api_key,omitempty" path:"files_api_key"`
	FilesAgentPermissionSet                 RemoteServerFilesAgentPermissionSetEnum                `url:"files_agent_permission_set,omitempty" json:"files_agent_permission_set,omitempty" path:"files_agent_permission_set"`
	FilesAgentRoot                          string                                                 `url:"files_agent_root,omitempty" json:"files_agent_root,omitempty" path:"files_agent_root"`
	FilesAgentVersion                       string                                                 `url:"files_agent_version,omitempty" json:"files_agent_version,omitempty" path:"files_agent_version"`
	OutboundAgentId                         int64                                                  `url:"outbound_agent_id,omitempty" json:"outbound_agent_id,omitempty" path:"outbound_agent_id"`
	CustomDomainId                          int64                                                  `url:"custom_domain_id,omitempty" json:"custom_domain_id,omitempty" path:"custom_domain_id"`
	GoogleCloudStorageAuthenticationMethod  RemoteServerGoogleCloudStorageAuthenticationMethodEnum `` /* 168-byte string literal not displayed */
	GoogleCloudStorageBucket                string                                                 `url:"google_cloud_storage_bucket,omitempty" json:"google_cloud_storage_bucket,omitempty" path:"google_cloud_storage_bucket"`
	GoogleCloudStorageOauthScope            string                                                 `` /* 138-byte string literal not displayed */
	GoogleCloudStorageProjectId             string                                                 `` /* 135-byte string literal not displayed */
	GoogleCloudStorageS3CompatibleAccessKey string                                                 `` /* 177-byte string literal not displayed */
	Hostname                                string                                                 `url:"hostname,omitempty" json:"hostname,omitempty" path:"hostname"`
	LinodeAccessKey                         string                                                 `url:"linode_access_key,omitempty" json:"linode_access_key,omitempty" path:"linode_access_key"`
	LinodeBucket                            string                                                 `url:"linode_bucket,omitempty" json:"linode_bucket,omitempty" path:"linode_bucket"`
	LinodeRegion                            string                                                 `url:"linode_region,omitempty" json:"linode_region,omitempty" path:"linode_region"`
	MaxConnections                          int64                                                  `url:"max_connections,omitempty" json:"max_connections,omitempty" path:"max_connections"`
	Name                                    string                                                 `url:"name,omitempty" json:"name,omitempty" path:"name"`
	OneDriveAccountType                     RemoteServerOneDriveAccountTypeEnum                    `url:"one_drive_account_type,omitempty" json:"one_drive_account_type,omitempty" path:"one_drive_account_type"`
	PinToSiteRegion                         *bool                                                  `url:"pin_to_site_region,omitempty" json:"pin_to_site_region,omitempty" path:"pin_to_site_region"`
	Port                                    int64                                                  `url:"port,omitempty" json:"port,omitempty" path:"port"`
	UploadStagingPath                       string                                                 `url:"upload_staging_path,omitempty" json:"upload_staging_path,omitempty" path:"upload_staging_path"`
	RemoteServerCredentialId                int64                                                  `url:"remote_server_credential_id,omitempty" json:"remote_server_credential_id,omitempty" path:"remote_server_credential_id"`
	S3AssumeRoleArn                         string                                                 `url:"s3_assume_role_arn,omitempty" json:"s3_assume_role_arn,omitempty" path:"s3_assume_role_arn"`
	S3AssumeRoleDurationSeconds             int64                                                  `` /* 135-byte string literal not displayed */
	S3Bucket                                string                                                 `url:"s3_bucket,omitempty" json:"s3_bucket,omitempty" path:"s3_bucket"`
	S3CompatibleAccessKey                   string                                                 `url:"s3_compatible_access_key,omitempty" json:"s3_compatible_access_key,omitempty" path:"s3_compatible_access_key"`
	S3CompatibleBucket                      string                                                 `url:"s3_compatible_bucket,omitempty" json:"s3_compatible_bucket,omitempty" path:"s3_compatible_bucket"`
	S3CompatibleEndpoint                    string                                                 `url:"s3_compatible_endpoint,omitempty" json:"s3_compatible_endpoint,omitempty" path:"s3_compatible_endpoint"`
	S3CompatibleRegion                      string                                                 `url:"s3_compatible_region,omitempty" json:"s3_compatible_region,omitempty" path:"s3_compatible_region"`
	S3CompatibleVirtualHostedStyle          *bool                                                  `` /* 144-byte string literal not displayed */
	S3KmsKeyId                              string                                                 `url:"s3_kms_key_id,omitempty" json:"s3_kms_key_id,omitempty" path:"s3_kms_key_id"`
	S3Region                                string                                                 `url:"s3_region,omitempty" json:"s3_region,omitempty" path:"s3_region"`
	ServerCertificate                       RemoteServerServerCertificateEnum                      `url:"server_certificate,omitempty" json:"server_certificate,omitempty" path:"server_certificate"`
	ServerHostKey                           string                                                 `url:"server_host_key,omitempty" json:"server_host_key,omitempty" path:"server_host_key"`
	ServerType                              RemoteServerServerTypeEnum                             `url:"server_type,omitempty" json:"server_type,omitempty" path:"server_type"`
	SharepointClientId                      string                                                 `url:"sharepoint_client_id,omitempty" json:"sharepoint_client_id,omitempty" path:"sharepoint_client_id"`
	SharepointSiteUrl                       string                                                 `url:"sharepoint_site_url,omitempty" json:"sharepoint_site_url,omitempty" path:"sharepoint_site_url"`
	SharepointTenantId                      string                                                 `url:"sharepoint_tenant_id,omitempty" json:"sharepoint_tenant_id,omitempty" path:"sharepoint_tenant_id"`
	Ssl                                     RemoteServerSslEnum                                    `url:"ssl,omitempty" json:"ssl,omitempty" path:"ssl"`
	Username                                string                                                 `url:"username,omitempty" json:"username,omitempty" path:"username"`
	WasabiAccessKey                         string                                                 `url:"wasabi_access_key,omitempty" json:"wasabi_access_key,omitempty" path:"wasabi_access_key"`
	WasabiBucket                            string                                                 `url:"wasabi_bucket,omitempty" json:"wasabi_bucket,omitempty" path:"wasabi_bucket"`
	WasabiRegion                            string                                                 `url:"wasabi_region,omitempty" json:"wasabi_region,omitempty" path:"wasabi_region"`
}

RemoteServerUpdateParams contains the request parameters for PATCH /remote_servers/{id}.

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    int64  `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"`
}

Request is a Files.com API resource.

func (Request) Identifier ¶

func (r Request) Identifier() interface{}

Identifier returns the resource ID.

func (*Request) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type RequestCollection ¶

type RequestCollection []Request

RequestCollection is a list of Request resources.

func (*RequestCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*RequestCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type RequestCreateParams ¶

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

RequestCreateParams contains the request parameters for POST /requests.

type RequestDeleteParams ¶

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

RequestDeleteParams contains the request parameters for DELETE /requests/{id}.

type RequestGetFolderParams ¶

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

RequestGetFolderParams contains the request parameters for GET /requests/folders/{path}.

type RequestListParams ¶

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

RequestListParams contains the request parameters for GET /requests.

type RequestResponseOption ¶

type RequestResponseOption func(*requestResponseOption) error

RequestResponseOption customizes an individual SDK request or response. Use WithContext for cancellation and deadlines. Use Config.APIKey, Config.SessionId, and Config.WorkspaceId for authentication and workspace scoping. Request mutation options support custom HTTP behavior; some higher-level helpers do not pass them through.

func RequestHeadersOption ¶

func RequestHeadersOption(headers *http.Header) RequestResponseOption

RequestHeadersOption sets request headers from headers. Only the first value of each header is used; each supplied header must have at least one value.

func RequestOption ¶

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

RequestOption calls call with the HTTP request before it is sent. An error from call stops the request.

func ResponseBodyOption ¶

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

ResponseBodyOption calls opt with the response body before the SDK processes it. Reading the body consumes those bytes for subsequent response processing.

func ResponseOption ¶

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

ResponseOption calls call with the HTTP response before the SDK processes it. An error from call stops response processing.

func WithContext ¶

func WithContext(ctx context.Context) RequestResponseOption

WithContext sets the context used for request cancellation and deadlines. A non-nil ctx replaces any context set by earlier options.

func WithWorkspaceId deprecated added in v3.3.151

func WithWorkspaceId(workspaceId int64) RequestResponseOption

WithWorkspaceId sets the workspace header for a request.

Deprecated: use Config.WorkspaceId; request/header mutations, including API-key headers, are not guaranteed through every helper.

func WithoutWorkspaceId deprecated added in v3.3.151

func WithoutWorkspaceId() RequestResponseOption

WithoutWorkspaceId removes the workspace header from a request.

Deprecated: use Config without WorkspaceId; request/header mutations, including API-key headers, are not guaranteed through every helper.

type ResourceIterator ¶

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

ResourceIterator creates a listing for a resource identifier.

type ResourceLoader ¶

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

ResourceLoader fetches a resource by its identifier.

type ResponseError ¶

type ResponseError struct {
	Type           string `json:"type,omitempty"`
	Title          string `json:"title,omitempty"`
	ErrorMessage   string `json:"error,omitempty"`
	HttpCode       int    `json:"http-code,omitempty"`
	Data           `json:"-"`
	RawData        map[string]interface{} `json:"data,omitempty"`
	Errors         []ResponseError        `json:"errors,omitempty"`
	Instance       string                 `json:"instance,omitempty"`
	ModelErrors    map[string]interface{} `json:"model_errors,omitempty"`
	ModelErrorKeys map[string]interface{} `json:"model_error_keys,omitempty"`
}

ResponseError describes an error returned by the Files.com API. Use errors.As to inspect its fields, or errors.Is with a ResponseErrorType or ResponseErrorGroup to classify it.

func (ResponseError) Error ¶

func (e ResponseError) Error() string

Error returns the error message, prefixed by the title when present.

func (ResponseError) Is ¶

func (e ResponseError) Is(err error) bool

Is matches API error types, error groups, and ResponseError targets. A ResponseError target with an empty Type matches any ResponseError.

func (ResponseError) IsNil ¶

func (e ResponseError) IsNil() bool

IsNil reports whether ErrorMessage is empty.

func (ResponseError) MarshalJSON ¶ added in v3.2.54

func (e ResponseError) MarshalJSON() ([]byte, error)

MarshalJSON encodes the error, including the structured fields in Data.

func (*ResponseError) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API error and its structured data.

type ResponseErrorGroup ¶ added in v3.3.54

type ResponseErrorGroup string

ResponseErrorGroup identifies the portion of an API error type before its first slash. It can be used with errors.Is to match related error types.

const (
	ErrBadRequest         ResponseErrorGroup = "bad-request"
	ErrNotAuthenticated   ResponseErrorGroup = "not-authenticated"
	ErrNotAuthorized      ResponseErrorGroup = "not-authorized"
	ErrNotFound           ResponseErrorGroup = "not-found"
	ErrProcessingFailure  ResponseErrorGroup = "processing-failure"
	ErrRateLimited        ResponseErrorGroup = "rate-limited"
	ErrServiceUnavailable ResponseErrorGroup = "service-unavailable"
	ErrSiteConfiguration  ResponseErrorGroup = "site-configuration"
)

func (ResponseErrorGroup) Error ¶ added in v3.3.54

func (e ResponseErrorGroup) Error() string

Error returns the API error group.

type ResponseErrorType ¶ added in v3.3.54

type ResponseErrorType string

ResponseErrorType identifies an exact API error type and can be used with errors.Is.

const (
	ErrAgentUpgradeRequired                                                   ResponseErrorType = "bad-request/agent-upgrade-required"
	ErrAttachmentTooLarge                                                     ResponseErrorType = "bad-request/attachment-too-large"
	ErrCannotDownloadDirectory                                                ResponseErrorType = "bad-request/cannot-download-directory"
	ErrCantMoveWithMultipleLocations                                          ResponseErrorType = "bad-request/cant-move-with-multiple-locations"
	ErrDatetimeParse                                                          ResponseErrorType = "bad-request/datetime-parse"
	ErrDestinationSame                                                        ResponseErrorType = "bad-request/destination-same"
	ErrDestinationSiteMismatch                                                ResponseErrorType = "bad-request/destination-site-mismatch"
	ErrDoesNotSupportSorting                                                  ResponseErrorType = "bad-request/does-not-support-sorting"
	ErrFolderMustNotBeAFile                                                   ResponseErrorType = "bad-request/folder-must-not-be-a-file"
	ErrFoldersNotAllowed                                                      ResponseErrorType = "bad-request/folders-not-allowed"
	ErrInternalGeneralError                                                   ResponseErrorType = "bad-request/internal-general-error"
	ErrInvalidBody                                                            ResponseErrorType = "bad-request/invalid-body"
	ErrInvalidCursor                                                          ResponseErrorType = "bad-request/invalid-cursor"
	ErrInvalidCursorTypeForSort                                               ResponseErrorType = "bad-request/invalid-cursor-type-for-sort"
	ErrInvalidEtags                                                           ResponseErrorType = "bad-request/invalid-etags"
	ErrInvalidFilterAliasCombination                                          ResponseErrorType = "bad-request/invalid-filter-alias-combination"
	ErrInvalidFilterField                                                     ResponseErrorType = "bad-request/invalid-filter-field"
	ErrInvalidFilterParam                                                     ResponseErrorType = "bad-request/invalid-filter-param"
	ErrInvalidFilterParamFormat                                               ResponseErrorType = "bad-request/invalid-filter-param-format"
	ErrInvalidFilterParamValue                                                ResponseErrorType = "bad-request/invalid-filter-param-value"
	ErrInvalidInputEncoding                                                   ResponseErrorType = "bad-request/invalid-input-encoding"
	ErrInvalidInterface                                                       ResponseErrorType = "bad-request/invalid-interface"
	ErrInvalidOauthProvider                                                   ResponseErrorType = "bad-request/invalid-oauth-provider"
	ErrInvalidPath                                                            ResponseErrorType = "bad-request/invalid-path"
	ErrInvalidReturnToUrl                                                     ResponseErrorType = "bad-request/invalid-return-to-url"
	ErrInvalidSearchQuery                                                     ResponseErrorType = "bad-request/invalid-search-query"
	ErrInvalidSortField                                                       ResponseErrorType = "bad-request/invalid-sort-field"
	ErrInvalidSortFilterCombination                                           ResponseErrorType = "bad-request/invalid-sort-filter-combination"
	ErrInvalidUploadOffset                                                    ResponseErrorType = "bad-request/invalid-upload-offset"
	ErrInvalidUploadPartGap                                                   ResponseErrorType = "bad-request/invalid-upload-part-gap"
	ErrInvalidUploadPartSize                                                  ResponseErrorType = "bad-request/invalid-upload-part-size"
	ErrInvalidWorkspaceIdHeader                                               ResponseErrorType = "bad-request/invalid-workspace-id-header"
	ErrMethodNotAllowed                                                       ResponseErrorType = "bad-request/method-not-allowed"
	ErrMultipleSortParamsNotAllowed                                           ResponseErrorType = "bad-request/multiple-sort-params-not-allowed"
	ErrNoValidInputParams                                                     ResponseErrorType = "bad-request/no-valid-input-params"
	ErrOffsetUploadNotAllowedWithMalwareScanning                              ResponseErrorType = "bad-request/offset-upload-not-allowed-with-malware-scanning"
	ErrPartNumberTooLarge                                                     ResponseErrorType = "bad-request/part-number-too-large"
	ErrPathCannotHaveTrailingWhitespace                                       ResponseErrorType = "bad-request/path-cannot-have-trailing-whitespace"
	ErrReauthenticationNeededFields                                           ResponseErrorType = "bad-request/reauthentication-needed-fields"
	ErrRequestBodyTooLarge                                                    ResponseErrorType = "bad-request/request-body-too-large"
	ErrRequestParamsContainInvalidCharacter                                   ResponseErrorType = "bad-request/request-params-contain-invalid-character"
	ErrRequestParamsInvalid                                                   ResponseErrorType = "bad-request/request-params-invalid"
	ErrRequestParamsRequired                                                  ResponseErrorType = "bad-request/request-params-required"
	ErrSearchAllOnChildPath                                                   ResponseErrorType = "bad-request/search-all-on-child-path"
	ErrUnrecognizedSortIndex                                                  ResponseErrorType = "bad-request/unrecognized-sort-index"
	ErrUnsupportedCurrency                                                    ResponseErrorType = "bad-request/unsupported-currency"
	ErrUnsupportedHttpResponseFormat                                          ResponseErrorType = "bad-request/unsupported-http-response-format"
	ErrUnsupportedMediaType                                                   ResponseErrorType = "bad-request/unsupported-media-type"
	ErrUserIdInvalid                                                          ResponseErrorType = "bad-request/user-id-invalid"
	ErrUserIdOnUserEndpoint                                                   ResponseErrorType = "bad-request/user-id-on-user-endpoint"
	ErrUserRequired                                                           ResponseErrorType = "bad-request/user-required"
	ErrAdditionalAuthenticationRequired                                       ResponseErrorType = "not-authenticated/additional-authentication-required"
	ErrApiKeySessionsNotSupported                                             ResponseErrorType = "not-authenticated/api-key-sessions-not-supported"
	ErrAuthenticationRequired                                                 ResponseErrorType = "not-authenticated/authentication-required"
	ErrBundleRegistrationCodeFailed                                           ResponseErrorType = "not-authenticated/bundle-registration-code-failed"
	ErrInboxRegistrationCodeFailed                                            ResponseErrorType = "not-authenticated/inbox-registration-code-failed"
	ErrInvalidCredentials                                                     ResponseErrorType = "not-authenticated/invalid-credentials"
	ErrInvalidOauth                                                           ResponseErrorType = "not-authenticated/invalid-oauth"
	ErrInvalidOrExpiredCode                                                   ResponseErrorType = "not-authenticated/invalid-or-expired-code"
	ErrInvalidSession                                                         ResponseErrorType = "not-authenticated/invalid-session"
	ErrInvalidUsernameOrPassword                                              ResponseErrorType = "not-authenticated/invalid-username-or-password"
	ErrLockedOut                                                              ResponseErrorType = "not-authenticated/locked-out"
	ErrLockoutRegionMismatch                                                  ResponseErrorType = "not-authenticated/lockout-region-mismatch"
	ErrOneTimePasswordIncorrect                                               ResponseErrorType = "not-authenticated/one-time-password-incorrect"
	ErrTwoFactorAuthenticationError                                           ResponseErrorType = "not-authenticated/two-factor-authentication-error"
	ErrTwoFactorAuthenticationSetupExpired                                    ResponseErrorType = "not-authenticated/two-factor-authentication-setup-expired"
	ErrApiKeyIsDisabled                                                       ResponseErrorType = "not-authorized/api-key-is-disabled"
	ErrApiKeyIsPathRestricted                                                 ResponseErrorType = "not-authorized/api-key-is-path-restricted"
	ErrApiKeyOnlyForDesktopApp                                                ResponseErrorType = "not-authorized/api-key-only-for-desktop-app"
	ErrApiKeyOnlyForFileOperations                                            ResponseErrorType = "not-authorized/api-key-only-for-file-operations"
	ErrApiKeyOnlyForMobileApp                                                 ResponseErrorType = "not-authorized/api-key-only-for-mobile-app"
	ErrApiKeyOnlyForOfficeIntegration                                         ResponseErrorType = "not-authorized/api-key-only-for-office-integration"
	ErrBillingInformationHidden                                               ResponseErrorType = "not-authorized/billing-information-hidden"
	ErrBillingPermissionRequired                                              ResponseErrorType = "not-authorized/billing-permission-required"
	ErrBundleMaximumUsesReached                                               ResponseErrorType = "not-authorized/bundle-maximum-uses-reached"
	ErrBundlePermissionRequired                                               ResponseErrorType = "not-authorized/bundle-permission-required"
	ErrCannotAdministerHigherLevelUser                                        ResponseErrorType = "not-authorized/cannot-administer-higher-level-user"
	ErrCannotLoginWhileUsingKey                                               ResponseErrorType = "not-authorized/cannot-login-while-using-key"
	ErrCantActForOtherUser                                                    ResponseErrorType = "not-authorized/cant-act-for-other-user"
	ErrContactAdminForPasswordChangeHelp                                      ResponseErrorType = "not-authorized/contact-admin-for-password-change-help"
	ErrFilesAgentFailedAuthorization                                          ResponseErrorType = "not-authorized/files-agent-failed-authorization"
	ErrFolderAdminOrBillingPermissionRequired                                 ResponseErrorType = "not-authorized/folder-admin-or-billing-permission-required"
	ErrFolderAdminPermissionRequired                                          ResponseErrorType = "not-authorized/folder-admin-permission-required"
	ErrFullPermissionRequired                                                 ResponseErrorType = "not-authorized/full-permission-required"
	ErrHistoryPermissionRequired                                              ResponseErrorType = "not-authorized/history-permission-required"
	ErrInAppAiAssistantUnavailable                                            ResponseErrorType = "not-authorized/in-app-ai-assistant-unavailable"
	ErrInsufficientPermissionForParams                                        ResponseErrorType = "not-authorized/insufficient-permission-for-params"
	ErrInsufficientPermissionForSite                                          ResponseErrorType = "not-authorized/insufficient-permission-for-site"
	ErrMoverAccessDenied                                                      ResponseErrorType = "not-authorized/mover-access-denied"
	ErrMoverPackageRequired                                                   ResponseErrorType = "not-authorized/mover-package-required"
	ErrMustAuthenticateWithApiKey                                             ResponseErrorType = "not-authorized/must-authenticate-with-api-key"
	ErrNeedAdminPermissionForInbox                                            ResponseErrorType = "not-authorized/need-admin-permission-for-inbox"
	ErrNonAdminsMustQueryByFolderOrPath                                       ResponseErrorType = "not-authorized/non-admins-must-query-by-folder-or-path"
	ErrNotAllowedToCreateBundle                                               ResponseErrorType = "not-authorized/not-allowed-to-create-bundle"
	ErrNotEnqueuableSync                                                      ResponseErrorType = "not-authorized/not-enqueuable-sync"
	ErrPasswordChangeNotRequired                                              ResponseErrorType = "not-authorized/password-change-not-required"
	ErrPasswordChangeRequired                                                 ResponseErrorType = "not-authorized/password-change-required"
	ErrPaymentMethodError                                                     ResponseErrorType = "not-authorized/payment-method-error"
	ErrPreviewOnlyPermissionCannotDownload                                    ResponseErrorType = "not-authorized/preview-only-permission-cannot-download"
	ErrReadOnlySession                                                        ResponseErrorType = "not-authorized/read-only-session"
	ErrReadPermissionRequired                                                 ResponseErrorType = "not-authorized/read-permission-required"
	ErrReauthenticationFailed                                                 ResponseErrorType = "not-authorized/reauthentication-failed"
	ErrReauthenticationFailedFinal                                            ResponseErrorType = "not-authorized/reauthentication-failed-final"
	ErrReauthenticationNeededAction                                           ResponseErrorType = "not-authorized/reauthentication-needed-action"
	ErrRecaptchaFailed                                                        ResponseErrorType = "not-authorized/recaptcha-failed"
	ErrRemoteDesktopDebugLoggingDisabled                                      ResponseErrorType = "not-authorized/remote-desktop-debug-logging-disabled"
	ErrRootFolderBehaviorSiteAdminRequired                                    ResponseErrorType = "not-authorized/root-folder-behavior-site-admin-required"
	ErrRootFolderBehaviorSkipSiteAdminRequired                                ResponseErrorType = "not-authorized/root-folder-behavior-skip-site-admin-required"
	ErrSelfManagedRequired                                                    ResponseErrorType = "not-authorized/self-managed-required"
	ErrSiteAdminOrPartnerAdminPermissionRequired                              ResponseErrorType = "not-authorized/site-admin-or-partner-admin-permission-required"
	ErrSiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequired               ResponseErrorType = "not-authorized/site-admin-or-workspace-admin-or-folder-admin-permission-required"
	ErrSiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequired ResponseErrorType = "not-authorized/site-admin-or-workspace-admin-or-partner-admin-or-folder-admin-permission-required"
	ErrSiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequired              ResponseErrorType = "not-authorized/site-admin-or-workspace-admin-or-partner-admin-permission-required"
	ErrSiteAdminOrWorkspaceAdminPermissionRequired                            ResponseErrorType = "not-authorized/site-admin-or-workspace-admin-permission-required"
	ErrSiteAdminRequired                                                      ResponseErrorType = "not-authorized/site-admin-required"
	ErrSiteFilesAreImmutable                                                  ResponseErrorType = "not-authorized/site-files-are-immutable"
	ErrTwoFactorAuthenticationRequired                                        ResponseErrorType = "not-authorized/two-factor-authentication-required"
	ErrUserIdWithoutSiteAdmin                                                 ResponseErrorType = "not-authorized/user-id-without-site-admin"
	ErrWriteAndBundlePermissionRequired                                       ResponseErrorType = "not-authorized/write-and-bundle-permission-required"
	ErrWritePermissionRequired                                                ResponseErrorType = "not-authorized/write-permission-required"
	ErrApiKeyNotFound                                                         ResponseErrorType = "not-found/api-key-not-found"
	ErrBundlePathNotFound                                                     ResponseErrorType = "not-found/bundle-path-not-found"
	ErrBundleRegistrationNotFound                                             ResponseErrorType = "not-found/bundle-registration-not-found"
	ErrCodeNotFound                                                           ResponseErrorType = "not-found/code-not-found"
	ErrFileNotFound                                                           ResponseErrorType = "not-found/file-not-found"
	ErrFileUploadNotFound                                                     ResponseErrorType = "not-found/file-upload-not-found"
	ErrGroupNotFound                                                          ResponseErrorType = "not-found/group-not-found"
	ErrInboxNotFound                                                          ResponseErrorType = "not-found/inbox-not-found"
	ErrNestedNotFound                                                         ResponseErrorType = "not-found/nested-not-found"
	ErrPlanNotFound                                                           ResponseErrorType = "not-found/plan-not-found"
	ErrSiteNotFound                                                           ResponseErrorType = "not-found/site-not-found"
	ErrUserNotFound                                                           ResponseErrorType = "not-found/user-not-found"
	ErrAgentPushUpdateBlocked                                                 ResponseErrorType = "processing-failure/agent-push-update-blocked"
	ErrAgentUnavailable                                                       ResponseErrorType = "processing-failure/agent-unavailable"
	ErrAiTaskCannotBeRunManually                                              ResponseErrorType = "processing-failure/ai-task-cannot-be-run-manually"
	ErrAlreadyCompleted                                                       ResponseErrorType = "processing-failure/already-completed"
	ErrAutomationCannotBeRunManually                                          ResponseErrorType = "processing-failure/automation-cannot-be-run-manually"
	ErrBehaviorNotAllowedOnRemoteServer                                       ResponseErrorType = "processing-failure/behavior-not-allowed-on-remote-server"
	ErrBufferedUploadDisabledForThisDestination                               ResponseErrorType = "processing-failure/buffered-upload-disabled-for-this-destination"
	ErrBundleOnlyAllowsPreviews                                               ResponseErrorType = "processing-failure/bundle-only-allows-previews"
	ErrBundleOperationRequiresSubfolder                                       ResponseErrorType = "processing-failure/bundle-operation-requires-subfolder"
	ErrConfigurationLockedPath                                                ResponseErrorType = "processing-failure/configuration-locked-path"
	ErrCouldNotCreateParent                                                   ResponseErrorType = "processing-failure/could-not-create-parent"
	ErrDestinationExists                                                      ResponseErrorType = "processing-failure/destination-exists"
	ErrDestinationFolderLimited                                               ResponseErrorType = "processing-failure/destination-folder-limited"
	ErrDestinationParentConflict                                              ResponseErrorType = "processing-failure/destination-parent-conflict"
	ErrDestinationParentDoesNotExist                                          ResponseErrorType = "processing-failure/destination-parent-does-not-exist"
	ErrExceededRuntimeLimit                                                   ResponseErrorType = "processing-failure/exceeded-runtime-limit"
	ErrExpectationAlreadyHasOpenWindow                                        ResponseErrorType = "processing-failure/expectation-already-has-open-window"
	ErrExpectationNotManualTrigger                                            ResponseErrorType = "processing-failure/expectation-not-manual-trigger"
	ErrExpiredPrivateKey                                                      ResponseErrorType = "processing-failure/expired-private-key"
	ErrExpiredPublicKey                                                       ResponseErrorType = "processing-failure/expired-public-key"
	ErrExportFailure                                                          ResponseErrorType = "processing-failure/export-failure"
	ErrExportNotReady                                                         ResponseErrorType = "processing-failure/export-not-ready"
	ErrFailedToChangePassword                                                 ResponseErrorType = "processing-failure/failed-to-change-password"
	ErrFileLocked                                                             ResponseErrorType = "processing-failure/file-locked"
	ErrFileNotUploaded                                                        ResponseErrorType = "processing-failure/file-not-uploaded"
	ErrFilePendingProcessing                                                  ResponseErrorType = "processing-failure/file-pending-processing"
	ErrFileProcessingError                                                    ResponseErrorType = "processing-failure/file-processing-error"
	ErrFileTooBigToDecrypt                                                    ResponseErrorType = "processing-failure/file-too-big-to-decrypt"
	ErrFileTooBigToEncrypt                                                    ResponseErrorType = "processing-failure/file-too-big-to-encrypt"
	ErrFileUploadedToWrongRegion                                              ResponseErrorType = "processing-failure/file-uploaded-to-wrong-region"
	ErrFilenameTooLong                                                        ResponseErrorType = "processing-failure/filename-too-long"
	ErrFolderLocked                                                           ResponseErrorType = "processing-failure/folder-locked"
	ErrFolderNotEmpty                                                         ResponseErrorType = "processing-failure/folder-not-empty"
	ErrHistoryUnavailable                                                     ResponseErrorType = "processing-failure/history-unavailable"
	ErrInvalidBundleCode                                                      ResponseErrorType = "processing-failure/invalid-bundle-code"
	ErrInvalidFileType                                                        ResponseErrorType = "processing-failure/invalid-file-type"
	ErrInvalidFilename                                                        ResponseErrorType = "processing-failure/invalid-filename"
	ErrInvalidPriorityColor                                                   ResponseErrorType = "processing-failure/invalid-priority-color"
	ErrInvalidRange                                                           ResponseErrorType = "processing-failure/invalid-range"
	ErrInvalidSite                                                            ResponseErrorType = "processing-failure/invalid-site"
	ErrInvalidZipFile                                                         ResponseErrorType = "processing-failure/invalid-zip-file"
	ErrMetadataNotSupportedOnRemotes                                          ResponseErrorType = "processing-failure/metadata-not-supported-on-remotes"
	ErrModelSaveError                                                         ResponseErrorType = "processing-failure/model-save-error"
	ErrMultipleProcessingErrors                                               ResponseErrorType = "processing-failure/multiple-processing-errors"
	ErrPathTooLong                                                            ResponseErrorType = "processing-failure/path-too-long"
	ErrRecipientAlreadyShared                                                 ResponseErrorType = "processing-failure/recipient-already-shared"
	ErrRemoteEntryReadOnly                                                    ResponseErrorType = "processing-failure/remote-entry-read-only"
	ErrRemoteServerError                                                      ResponseErrorType = "processing-failure/remote-server-error"
	ErrResourceBelongsToParentSite                                            ResponseErrorType = "processing-failure/resource-belongs-to-parent-site"
	ErrResourceLocked                                                         ResponseErrorType = "processing-failure/resource-locked"
	ErrSubfolderLocked                                                        ResponseErrorType = "processing-failure/subfolder-locked"
	ErrSyncInProgress                                                         ResponseErrorType = "processing-failure/sync-in-progress"
	ErrTwoFactorAuthenticationCodeAlreadySent                                 ResponseErrorType = "processing-failure/two-factor-authentication-code-already-sent"
	ErrTwoFactorAuthenticationCountryBlacklisted                              ResponseErrorType = "processing-failure/two-factor-authentication-country-blacklisted"
	ErrTwoFactorAuthenticationGeneralError                                    ResponseErrorType = "processing-failure/two-factor-authentication-general-error"
	ErrTwoFactorAuthenticationMethodUnsupportedError                          ResponseErrorType = "processing-failure/two-factor-authentication-method-unsupported-error"
	ErrTwoFactorAuthenticationUnsubscribedRecipient                           ResponseErrorType = "processing-failure/two-factor-authentication-unsubscribed-recipient"
	ErrUpdatesNotAllowedForRemotes                                            ResponseErrorType = "processing-failure/updates-not-allowed-for-remotes"
	ErrDuplicateShareRecipient                                                ResponseErrorType = "rate-limited/duplicate-share-recipient"
	ErrReauthenticationRateLimited                                            ResponseErrorType = "rate-limited/reauthentication-rate-limited"
	ErrTooManyConcurrentLogins                                                ResponseErrorType = "rate-limited/too-many-concurrent-logins"
	ErrTooManyConcurrentRequests                                              ResponseErrorType = "rate-limited/too-many-concurrent-requests"
	ErrTooManyLoginAttempts                                                   ResponseErrorType = "rate-limited/too-many-login-attempts"
	ErrTooManyRequests                                                        ResponseErrorType = "rate-limited/too-many-requests"
	ErrTooManyShares                                                          ResponseErrorType = "rate-limited/too-many-shares"
	ErrAutomationsUnavailable                                                 ResponseErrorType = "service-unavailable/automations-unavailable"
	ErrLockOperationBusy                                                      ResponseErrorType = "service-unavailable/lock-operation-busy"
	ErrMigrationInProgress                                                    ResponseErrorType = "service-unavailable/migration-in-progress"
	ErrSearchUnavailable                                                      ResponseErrorType = "service-unavailable/search-unavailable"
	ErrSiteDisabled                                                           ResponseErrorType = "service-unavailable/site-disabled"
	ErrUploadsUnavailable                                                     ResponseErrorType = "service-unavailable/uploads-unavailable"
	ErrAccountAlreadyExists                                                   ResponseErrorType = "site-configuration/account-already-exists"
	ErrAccountOverdue                                                         ResponseErrorType = "site-configuration/account-overdue"
	ErrNoAccountForSite                                                       ResponseErrorType = "site-configuration/no-account-for-site"
	ErrSiteWasRemoved                                                         ResponseErrorType = "site-configuration/site-was-removed"
	ErrTrialExpired                                                           ResponseErrorType = "site-configuration/trial-expired"
	ErrTrialLocked                                                            ResponseErrorType = "site-configuration/trial-locked"
	ErrUserRequestsEnabledRequired                                            ResponseErrorType = "site-configuration/user-requests-enabled-required"
	ErrDownloadRequestExpired                                                 ResponseErrorType = "download_request_expired"
	ErrUploadRequestExpired                                                   ResponseErrorType = "upload_request_expired"
	// ErrDownloadSourceChanged is returned by download URLs whose source file
	// changed size after the URL was issued. Partial output from that URL must
	// be discarded and the download restarted from a new download request.
	ErrDownloadSourceChanged ResponseErrorType = "download_source_changed"
)

func ResponseErrorTypeOf ¶ added in v3.3.54

func ResponseErrorTypeOf(err error) (ResponseErrorType, bool)

ResponseErrorTypeOf returns the type of a ResponseError in err, including wrapped value and pointer errors. The boolean is false when no nonempty type is found.

func (ResponseErrorType) Error ¶ added in v3.3.54

func (e ResponseErrorType) Error() string

Error returns the API error type.

type Restore ¶ added in v3.2.142

type Restore struct {
	EarliestDate                           *time.Time `json:"earliest_date,omitempty" path:"earliest_date,omitempty" url:"earliest_date,omitempty"`
	Id                                     int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	DirsRestored                           int64      `json:"dirs_restored,omitempty" path:"dirs_restored,omitempty" url:"dirs_restored,omitempty"`
	DirsErrored                            int64      `json:"dirs_errored,omitempty" path:"dirs_errored,omitempty" url:"dirs_errored,omitempty"`
	DirsTotal                              int64      `json:"dirs_total,omitempty" path:"dirs_total,omitempty" url:"dirs_total,omitempty"`
	FilesRestored                          int64      `json:"files_restored,omitempty" path:"files_restored,omitempty" url:"files_restored,omitempty"`
	FilesErrored                           int64      `json:"files_errored,omitempty" path:"files_errored,omitempty" url:"files_errored,omitempty"`
	FilesTotal                             int64      `json:"files_total,omitempty" path:"files_total,omitempty" url:"files_total,omitempty"`
	Prefix                                 string     `json:"prefix,omitempty" path:"prefix,omitempty" url:"prefix,omitempty"`
	RestorationType                        string     `json:"restoration_type,omitempty" path:"restoration_type,omitempty" url:"restoration_type,omitempty"`
	RestoreInPlace                         *bool      `json:"restore_in_place,omitempty" path:"restore_in_place,omitempty" url:"restore_in_place,omitempty"`
	RestoreDeletedPermissions              *bool      `` /* 133-byte string literal not displayed */
	UsersRestored                          int64      `json:"users_restored,omitempty" path:"users_restored,omitempty" url:"users_restored,omitempty"`
	UsersErrored                           int64      `json:"users_errored,omitempty" path:"users_errored,omitempty" url:"users_errored,omitempty"`
	UsersTotal                             int64      `json:"users_total,omitempty" path:"users_total,omitempty" url:"users_total,omitempty"`
	ApiKeysRestored                        int64      `json:"api_keys_restored,omitempty" path:"api_keys_restored,omitempty" url:"api_keys_restored,omitempty"`
	PublicKeysRestored                     int64      `json:"public_keys_restored,omitempty" path:"public_keys_restored,omitempty" url:"public_keys_restored,omitempty"`
	TwoFactorAuthenticationMethodsRestored int64      `` /* 178-byte string literal not displayed */
	Status                                 string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	UpdateTimestamps                       *bool      `json:"update_timestamps,omitempty" path:"update_timestamps,omitempty" url:"update_timestamps,omitempty"`
	WorkspaceId                            int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	ErrorMessages                          []string   `json:"error_messages,omitempty" path:"error_messages,omitempty" url:"error_messages,omitempty"`
}

Restore is a Files.com API resource.

func (Restore) Identifier ¶ added in v3.2.142

func (r Restore) Identifier() interface{}

Identifier returns the resource ID.

func (*Restore) UnmarshalJSON ¶ added in v3.2.142

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type RestoreCollection ¶ added in v3.2.142

type RestoreCollection []Restore

RestoreCollection is a list of Restore resources.

func (*RestoreCollection) ToSlice ¶ added in v3.2.142

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

ToSlice returns a new slice containing the resources as interface values.

func (*RestoreCollection) UnmarshalJSON ¶ added in v3.2.142

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type RestoreCreateParams ¶ added in v3.2.142

type RestoreCreateParams struct {
	EarliestDate              *time.Time                 `url:"earliest_date" json:"earliest_date" path:"earliest_date"`
	Prefix                    string                     `url:"prefix,omitempty" json:"prefix,omitempty" path:"prefix"`
	RestorationType           RestoreRestorationTypeEnum `url:"restoration_type,omitempty" json:"restoration_type,omitempty" path:"restoration_type"`
	RestoreDeletedPermissions *bool                      `url:"restore_deleted_permissions,omitempty" json:"restore_deleted_permissions,omitempty" path:"restore_deleted_permissions"`
	RestoreInPlace            *bool                      `url:"restore_in_place,omitempty" json:"restore_in_place,omitempty" path:"restore_in_place"`
	UpdateTimestamps          *bool                      `url:"update_timestamps,omitempty" json:"update_timestamps,omitempty" path:"update_timestamps"`
	WorkspaceId               int64                      `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

RestoreCreateParams contains the request parameters for POST /restores.

type RestoreListParams ¶ added in v3.2.142

type RestoreListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

RestoreListParams contains the request parameters for GET /restores.

type RestoreRestorationTypeEnum ¶ added in v3.3.21

type RestoreRestorationTypeEnum string

RestoreRestorationTypeEnum is a string value for restoration_type. Enum lists the values documented by the API.

func (RestoreRestorationTypeEnum) Enum ¶ added in v3.3.21

Enum returns the documented values keyed by their API strings.

func (RestoreRestorationTypeEnum) String ¶ added in v3.3.21

String returns the API parameter value.

type Schedule ¶ added in v3.3.223

type Schedule struct {
	Id                    int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                  string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	ScheduleDaysOfWeek    []int64    `json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week,omitempty" url:"schedule_days_of_week,omitempty"`
	ScheduleTimesOfDay    []string   `json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day,omitempty" url:"schedule_times_of_day,omitempty"`
	ScheduleTimeZone      string     `json:"schedule_time_zone,omitempty" path:"schedule_time_zone,omitempty" url:"schedule_time_zone,omitempty"`
	HolidayRegion         string     `json:"holiday_region,omitempty" path:"holiday_region,omitempty" url:"holiday_region,omitempty"`
	HumanReadableSchedule string     `json:"human_readable_schedule,omitempty" path:"human_readable_schedule,omitempty" url:"human_readable_schedule,omitempty"`
	CreatedAt             *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt             *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

Schedule is a Files.com API resource.

func (Schedule) Identifier ¶ added in v3.3.223

func (s Schedule) Identifier() interface{}

Identifier returns the resource ID.

func (*Schedule) UnmarshalJSON ¶ added in v3.3.223

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ScheduleCollection ¶ added in v3.3.223

type ScheduleCollection []Schedule

ScheduleCollection is a list of Schedule resources.

func (*ScheduleCollection) ToSlice ¶ added in v3.3.223

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

ToSlice returns a new slice containing the resources as interface values.

func (*ScheduleCollection) UnmarshalJSON ¶ added in v3.3.223

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ScheduleCreateParams ¶ added in v3.3.223

type ScheduleCreateParams struct {
	Name               string   `url:"name" json:"name" path:"name"`
	ScheduleDaysOfWeek []int64  `url:"schedule_days_of_week" json:"schedule_days_of_week" path:"schedule_days_of_week"`
	ScheduleTimesOfDay []string `url:"schedule_times_of_day" json:"schedule_times_of_day" path:"schedule_times_of_day"`
	ScheduleTimeZone   string   `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	HolidayRegion      string   `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
}

ScheduleCreateParams contains the request parameters for POST /schedules.

type ScheduleDeleteParams ¶ added in v3.3.223

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

ScheduleDeleteParams contains the request parameters for DELETE /schedules/{id}.

type ScheduleFindParams ¶ added in v3.3.223

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

ScheduleFindParams contains the request parameters for GET /schedules/{id}.

type ScheduleListParams ¶ added in v3.3.223

type ScheduleListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

ScheduleListParams contains the request parameters for GET /schedules.

type ScheduleUpdateParams ¶ added in v3.3.223

type ScheduleUpdateParams struct {
	Id                 int64    `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name               string   `url:"name,omitempty" json:"name,omitempty" path:"name"`
	ScheduleDaysOfWeek []int64  `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimesOfDay []string `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	ScheduleTimeZone   string   `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	HolidayRegion      string   `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
}

ScheduleUpdateParams contains the request parameters for PATCH /schedules/{id}.

type ScheduledExport ¶ added in v3.3.134

type ScheduledExport struct {
	Id                    int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                  string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	ExportType            string      `json:"export_type,omitempty" path:"export_type,omitempty" url:"export_type,omitempty"`
	ReportName            string      `json:"report_name,omitempty" path:"report_name,omitempty" url:"report_name,omitempty"`
	ExportOptions         interface{} `json:"export_options,omitempty" path:"export_options,omitempty" url:"export_options,omitempty"`
	UserId                int64       `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,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"`
	RecurringDay          int64       `json:"recurring_day,omitempty" path:"recurring_day,omitempty" url:"recurring_day,omitempty"`
	RecurringDays         []int64     `json:"recurring_days,omitempty" path:"recurring_days,omitempty" url:"recurring_days,omitempty"`
	ScheduleId            int64       `json:"schedule_id,omitempty" path:"schedule_id,omitempty" url:"schedule_id,omitempty"`
	ScheduleDaysOfWeek    []int64     `json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week,omitempty" url:"schedule_days_of_week,omitempty"`
	ScheduleTimesOfDay    []string    `json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day,omitempty" url:"schedule_times_of_day,omitempty"`
	ScheduleTimeZone      string      `json:"schedule_time_zone,omitempty" path:"schedule_time_zone,omitempty" url:"schedule_time_zone,omitempty"`
	HolidayRegion         string      `json:"holiday_region,omitempty" path:"holiday_region,omitempty" url:"holiday_region,omitempty"`
	HumanReadableSchedule string      `json:"human_readable_schedule,omitempty" path:"human_readable_schedule,omitempty" url:"human_readable_schedule,omitempty"`
	LastRunAt             *time.Time  `json:"last_run_at,omitempty" path:"last_run_at,omitempty" url:"last_run_at,omitempty"`
	LastExportId          int64       `json:"last_export_id,omitempty" path:"last_export_id,omitempty" url:"last_export_id,omitempty"`
	LastError             string      `json:"last_error,omitempty" path:"last_error,omitempty" url:"last_error,omitempty"`
	CreatedAt             *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt             *time.Time  `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

ScheduledExport is a Files.com API resource.

func (ScheduledExport) Identifier ¶ added in v3.3.134

func (s ScheduledExport) Identifier() interface{}

Identifier returns the resource ID.

func (*ScheduledExport) UnmarshalJSON ¶ added in v3.3.134

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ScheduledExportCollection ¶ added in v3.3.134

type ScheduledExportCollection []ScheduledExport

ScheduledExportCollection is a list of ScheduledExport resources.

func (*ScheduledExportCollection) ToSlice ¶ added in v3.3.134

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

ToSlice returns a new slice containing the resources as interface values.

func (*ScheduledExportCollection) UnmarshalJSON ¶ added in v3.3.134

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ScheduledExportCreateParams ¶ added in v3.3.134

type ScheduledExportCreateParams struct {
	Name               string                     `url:"name" json:"name" path:"name"`
	ExportType         string                     `url:"export_type" json:"export_type" path:"export_type"`
	ExportOptions      interface{}                `url:"export_options,omitempty" json:"export_options,omitempty" path:"export_options"`
	UserId             int64                      `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Disabled           *bool                      `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	Trigger            ScheduledExportTriggerEnum `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	Interval           string                     `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	RecurringDay       int64                      `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays      []int64                    `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	ScheduleId         int64                      `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek []int64                    `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimesOfDay []string                   `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	ScheduleTimeZone   string                     `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	HolidayRegion      string                     `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
}

ScheduledExportCreateParams contains the request parameters for POST /scheduled_exports.

type ScheduledExportDeleteParams ¶ added in v3.3.134

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

ScheduledExportDeleteParams contains the request parameters for DELETE /scheduled_exports/{id}.

type ScheduledExportFindParams ¶ added in v3.3.134

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

ScheduledExportFindParams contains the request parameters for GET /scheduled_exports/{id}.

type ScheduledExportListParams ¶ added in v3.3.134

type ScheduledExportListParams struct {
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

ScheduledExportListParams contains the request parameters for GET /scheduled_exports.

type ScheduledExportTriggerEnum ¶ added in v3.3.134

type ScheduledExportTriggerEnum string

ScheduledExportTriggerEnum is a string value for trigger. Enum lists the values documented by the API.

func (ScheduledExportTriggerEnum) Enum ¶ added in v3.3.134

Enum returns the documented values keyed by their API strings.

func (ScheduledExportTriggerEnum) String ¶ added in v3.3.134

String returns the API parameter value.

type ScheduledExportUpdateParams ¶ added in v3.3.134

type ScheduledExportUpdateParams struct {
	Id                 int64                      `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name               string                     `url:"name,omitempty" json:"name,omitempty" path:"name"`
	ExportType         string                     `url:"export_type,omitempty" json:"export_type,omitempty" path:"export_type"`
	ExportOptions      interface{}                `url:"export_options,omitempty" json:"export_options,omitempty" path:"export_options"`
	UserId             int64                      `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Disabled           *bool                      `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	Trigger            ScheduledExportTriggerEnum `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	Interval           string                     `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	RecurringDay       int64                      `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays      []int64                    `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	ScheduleId         int64                      `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek []int64                    `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimesOfDay []string                   `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	ScheduleTimeZone   string                     `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	HolidayRegion      string                     `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
}

ScheduledExportUpdateParams contains the request parameters for PATCH /scheduled_exports/{id}.

type ScimLog ¶ added in v3.2.246

type ScimLog struct {
	Id               int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	CreatedAt        string `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	RequestPath      string `json:"request_path,omitempty" path:"request_path,omitempty" url:"request_path,omitempty"`
	RequestMethod    string `json:"request_method,omitempty" path:"request_method,omitempty" url:"request_method,omitempty"`
	HttpResponseCode string `json:"http_response_code,omitempty" path:"http_response_code,omitempty" url:"http_response_code,omitempty"`
	UserAgent        string `json:"user_agent,omitempty" path:"user_agent,omitempty" url:"user_agent,omitempty"`
	RequestJson      string `json:"request_json,omitempty" path:"request_json,omitempty" url:"request_json,omitempty"`
	ResponseJson     string `json:"response_json,omitempty" path:"response_json,omitempty" url:"response_json,omitempty"`
}

ScimLog is a Files.com API resource.

func (ScimLog) Identifier ¶ added in v3.2.246

func (s ScimLog) Identifier() interface{}

Identifier returns the resource ID.

func (*ScimLog) UnmarshalJSON ¶ added in v3.2.246

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ScimLogCollection ¶ added in v3.2.246

type ScimLogCollection []ScimLog

ScimLogCollection is a list of ScimLog resources.

func (*ScimLogCollection) ToSlice ¶ added in v3.2.246

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

ToSlice returns a new slice containing the resources as interface values.

func (*ScimLogCollection) UnmarshalJSON ¶ added in v3.2.246

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ScimLogFindParams ¶ added in v3.2.254

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

ScimLogFindParams contains the request parameters for GET /scim_logs/{id}.

type ScimLogListParams ¶ added in v3.2.246

type ScimLogListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

ScimLogListParams contains the request parameters for GET /scim_logs.

type Secret ¶ added in v3.3.181

type Secret struct {
	Id              int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	WorkspaceId     int64       `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Name            string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Description     string      `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	SecretType      string      `json:"secret_type,omitempty" path:"secret_type,omitempty" url:"secret_type,omitempty"`
	Metadata        interface{} `json:"metadata,omitempty" path:"metadata,omitempty" url:"metadata,omitempty"`
	ValueFieldNames []string    `json:"value_field_names,omitempty" path:"value_field_names,omitempty" url:"value_field_names,omitempty"`
	CreatedAt       *time.Time  `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt       *time.Time  `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

Secret is a Files.com API resource.

func (Secret) Identifier ¶ added in v3.3.181

func (s Secret) Identifier() interface{}

Identifier returns the resource ID.

func (*Secret) UnmarshalJSON ¶ added in v3.3.181

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SecretCollection ¶ added in v3.3.181

type SecretCollection []Secret

SecretCollection is a list of Secret resources.

func (*SecretCollection) ToSlice ¶ added in v3.3.181

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

ToSlice returns a new slice containing the resources as interface values.

func (*SecretCollection) UnmarshalJSON ¶ added in v3.3.181

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SecretCreateParams ¶ added in v3.3.181

type SecretCreateParams struct {
	Name        string               `url:"name" json:"name" path:"name"`
	Description string               `url:"description,omitempty" json:"description,omitempty" path:"description"`
	SecretType  SecretSecretTypeEnum `url:"secret_type" json:"secret_type" path:"secret_type"`
	Metadata    interface{}          `url:"metadata,omitempty" json:"metadata,omitempty" path:"metadata"`
	WorkspaceId int64                `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

SecretCreateParams contains the request parameters for POST /secrets.

type SecretDeleteParams ¶ added in v3.3.181

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

SecretDeleteParams contains the request parameters for DELETE /secrets/{id}.

type SecretFindParams ¶ added in v3.3.181

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

SecretFindParams contains the request parameters for GET /secrets/{id}.

type SecretListParams ¶ added in v3.3.181

type SecretListParams struct {
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

SecretListParams contains the request parameters for GET /secrets.

type SecretSecretTypeEnum ¶ added in v3.3.181

type SecretSecretTypeEnum string

SecretSecretTypeEnum is a string value for secret_type. Enum lists the values documented by the API.

func (SecretSecretTypeEnum) Enum ¶ added in v3.3.181

Enum returns the documented values keyed by their API strings.

func (SecretSecretTypeEnum) String ¶ added in v3.3.181

func (u SecretSecretTypeEnum) String() string

String returns the API parameter value.

type SecretUpdateParams ¶ added in v3.3.181

type SecretUpdateParams struct {
	Id          int64                `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name        string               `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Description string               `url:"description,omitempty" json:"description,omitempty" path:"description"`
	SecretType  SecretSecretTypeEnum `url:"secret_type,omitempty" json:"secret_type,omitempty" path:"secret_type"`
	Metadata    interface{}          `url:"metadata,omitempty" json:"metadata,omitempty" path:"metadata"`
}

SecretUpdateParams contains the request parameters for PATCH /secrets/{id}.

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"`
	ReadOnly            *bool  `json:"read_only,omitempty" path:"read_only,omitempty" url:"read_only,omitempty"`
	SftpInsecureCiphers *bool  `json:"sftp_insecure_ciphers,omitempty" path:"sftp_insecure_ciphers,omitempty" url:"sftp_insecure_ciphers,omitempty"`
	Username            string `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	Password            string `json:"password,omitempty" path:"password,omitempty" url:"password,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"`
}

Session is a Files.com API resource.

func (Session) Identifier ¶

func (s Session) Identifier() interface{}

Identifier returns the resource ID.

func (*Session) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SessionCollection ¶

type SessionCollection []Session

SessionCollection is a list of Session resources.

func (*SessionCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*SessionCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SessionCreateParams ¶

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

SessionCreateParams contains the request parameters for POST /sessions.

type Settings ¶ added in v3.3.65

type Settings struct {
	DesktopDriveMappings map[string]string `json:"desktop_drive_mappings,omitempty" path:"desktop_drive_mappings,omitempty" url:"desktop_drive_mappings,omitempty"`
	DisableDriveMounting bool              `json:"disable_drive_mounting,omitempty" path:"disable_drive_mounting,omitempty" url:"disable_drive_mounting,omitempty"`
}

Settings contains the API settings used by desktop clients.

func (Settings) Identifier ¶ added in v3.3.65

func (s Settings) Identifier() interface{}

Identifier returns nil because settings are not identified by an ID or path.

func (*Settings) UnmarshalJSON ¶ added in v3.3.65

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

UnmarshalJSON decodes the settings response.

type SettingsChange ¶

type SettingsChange struct {
	ApiKeyId             int64      `json:"api_key_id,omitempty" path:"api_key_id,omitempty" url:"api_key_id,omitempty"`
	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"`
	UserIsFilesSupport   *bool      `json:"user_is_files_support,omitempty" path:"user_is_files_support,omitempty" url:"user_is_files_support,omitempty"`
	UserIsFromParentSite *bool      `json:"user_is_from_parent_site,omitempty" path:"user_is_from_parent_site,omitempty" url:"user_is_from_parent_site,omitempty"`
	Username             string     `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
}

SettingsChange is a Files.com API resource.

func (*SettingsChange) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SettingsChangeCollection ¶

type SettingsChangeCollection []SettingsChange

SettingsChangeCollection is a list of SettingsChange resources.

func (*SettingsChangeCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*SettingsChangeCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SettingsChangeListParams ¶

type SettingsChangeListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

SettingsChangeListParams contains the request parameters for GET /settings_changes.

type SftpActionLog ¶ added in v3.1.48

type SftpActionLog struct {
	Timestamp               *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	RemoteIp                string     `json:"remote_ip,omitempty" path:"remote_ip,omitempty" url:"remote_ip,omitempty"`
	ServerIp                string     `json:"server_ip,omitempty" path:"server_ip,omitempty" url:"server_ip,omitempty"`
	Username                string     `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	SshClientIdentification string     `` /* 127-byte string literal not displayed */
	SessionUuid             string     `json:"session_uuid,omitempty" path:"session_uuid,omitempty" url:"session_uuid,omitempty"`
	SeqId                   int64      `json:"seq_id,omitempty" path:"seq_id,omitempty" url:"seq_id,omitempty"`
	AuthMethod              string     `json:"auth_method,omitempty" path:"auth_method,omitempty" url:"auth_method,omitempty"`
	AuthCiphers             string     `json:"auth_ciphers,omitempty" path:"auth_ciphers,omitempty" url:"auth_ciphers,omitempty"`
	ActionType              string     `json:"action_type,omitempty" path:"action_type,omitempty" url:"action_type,omitempty"`
	Path                    string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	TruePath                string     `json:"true_path,omitempty" path:"true_path,omitempty" url:"true_path,omitempty"`
	Name                    string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	SftpResponseCode        string     `json:"sftp_response_code,omitempty" path:"sftp_response_code,omitempty" url:"sftp_response_code,omitempty"`
	SftpResponseMessage     string     `json:"sftp_response_message,omitempty" path:"sftp_response_message,omitempty" url:"sftp_response_message,omitempty"`
	Md5                     string     `json:"md5,omitempty" path:"md5,omitempty" url:"md5,omitempty"`
	Size                    int64      `json:"size,omitempty" path:"size,omitempty" url:"size,omitempty"`
	DataLength              int64      `json:"data_length,omitempty" path:"data_length,omitempty" url:"data_length,omitempty"`
	BytesTransferred        int64      `json:"bytes_transferred,omitempty" path:"bytes_transferred,omitempty" url:"bytes_transferred,omitempty"`
	EntriesReturned         int64      `json:"entries_returned,omitempty" path:"entries_returned,omitempty" url:"entries_returned,omitempty"`
	Success                 *bool      `json:"success,omitempty" path:"success,omitempty" url:"success,omitempty"`
	Status                  string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	DurationMs              int64      `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	CreatedAt               *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

SftpActionLog is a Files.com API resource.

func (SftpActionLog) Identifier ¶ added in v3.1.48

func (s SftpActionLog) Identifier() interface{}

Identifier returns the resource path.

func (*SftpActionLog) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SftpActionLogCollection ¶ added in v3.1.48

type SftpActionLogCollection []SftpActionLog

SftpActionLogCollection is a list of SftpActionLog resources.

func (*SftpActionLogCollection) ToSlice ¶ added in v3.1.48

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

ToSlice returns a new slice containing the resources as interface values.

func (*SftpActionLogCollection) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SftpActionLogListParams ¶ added in v3.1.48

type SftpActionLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

SftpActionLogListParams contains the request parameters for GET /sftp_action_logs.

type SftpHostKey ¶

type SftpHostKey struct {
	Active            *bool  `json:"active,omitempty" path:"active,omitempty" url:"active,omitempty"`
	CustomDomainId    int64  `json:"custom_domain_id,omitempty" path:"custom_domain_id,omitempty" url:"custom_domain_id,omitempty"`
	Id                int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name              string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	KeyType           string `json:"key_type,omitempty" path:"key_type,omitempty" url:"key_type,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"`
}

SftpHostKey is a Files.com API resource.

func (SftpHostKey) Identifier ¶

func (s SftpHostKey) Identifier() interface{}

Identifier returns the resource ID.

func (*SftpHostKey) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SftpHostKeyCollection ¶

type SftpHostKeyCollection []SftpHostKey

SftpHostKeyCollection is a list of SftpHostKey resources.

func (*SftpHostKeyCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*SftpHostKeyCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SftpHostKeyCreateParams ¶

type SftpHostKeyCreateParams struct {
	Active         *bool  `url:"active,omitempty" json:"active,omitempty" path:"active"`
	CustomDomainId int64  `url:"custom_domain_id,omitempty" json:"custom_domain_id,omitempty" path:"custom_domain_id"`
	Name           string `url:"name,omitempty" json:"name,omitempty" path:"name"`
	PrivateKey     string `url:"private_key,omitempty" json:"private_key,omitempty" path:"private_key"`
}

SftpHostKeyCreateParams contains the request parameters for POST /sftp_host_keys.

type SftpHostKeyDeleteParams ¶

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

SftpHostKeyDeleteParams contains the request parameters for DELETE /sftp_host_keys/{id}.

type SftpHostKeyFindParams ¶

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

SftpHostKeyFindParams contains the request parameters for GET /sftp_host_keys/{id}.

type SftpHostKeyListParams ¶

type SftpHostKeyListParams struct {
	ListParams
}

SftpHostKeyListParams contains the request parameters for GET /sftp_host_keys.

type SftpHostKeyUpdateParams ¶

type SftpHostKeyUpdateParams struct {
	Id             int64  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Active         *bool  `url:"active,omitempty" json:"active,omitempty" path:"active"`
	CustomDomainId int64  `url:"custom_domain_id,omitempty" json:"custom_domain_id,omitempty" path:"custom_domain_id"`
	Name           string `url:"name,omitempty" json:"name,omitempty" path:"name"`
	PrivateKey     string `url:"private_key,omitempty" json:"private_key,omitempty" path:"private_key"`
}

SftpHostKeyUpdateParams contains the request parameters for PATCH /sftp_host_keys/{id}.

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"`
	Members []ShareGroupMember `json:"members,omitempty" path:"members,omitempty" url:"members,omitempty"`
}

ShareGroup is a Files.com API resource.

func (ShareGroup) Identifier ¶

func (s ShareGroup) Identifier() interface{}

Identifier returns the resource ID.

func (*ShareGroup) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ShareGroupCollection ¶

type ShareGroupCollection []ShareGroup

ShareGroupCollection is a list of ShareGroup resources.

func (*ShareGroupCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ShareGroupCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ShareGroupCreateParams ¶

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

ShareGroupCreateParams contains the request parameters for POST /share_groups.

type ShareGroupDeleteParams ¶

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

ShareGroupDeleteParams contains the request parameters for DELETE /share_groups/{id}.

type ShareGroupFindParams ¶

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

ShareGroupFindParams contains the request parameters for GET /share_groups/{id}.

type ShareGroupListParams ¶

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

ShareGroupListParams contains the request parameters for GET /share_groups.

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"`
}

ShareGroupMember is a Files.com API resource.

func (*ShareGroupMember) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ShareGroupMemberCollection ¶

type ShareGroupMemberCollection []ShareGroupMember

ShareGroupMemberCollection is a list of ShareGroupMember resources.

func (*ShareGroupMemberCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*ShareGroupMemberCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type ShareGroupUpdateParams ¶

type ShareGroupUpdateParams struct {
	Id      int64                    `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Notes   string                   `url:"notes,omitempty" json:"notes,omitempty" path:"notes"`
	Name    string                   `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Members []map[string]interface{} `url:"members,omitempty" json:"members,omitempty" path:"members"`
}

ShareGroupUpdateParams contains the request parameters for PATCH /share_groups/{id}.

type SiemHttpDestination ¶ added in v3.2.49

type SiemHttpDestination struct {
	Id                                            int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                                          string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	DestinationType                               string      `json:"destination_type,omitempty" path:"destination_type,omitempty" url:"destination_type,omitempty"`
	DestinationUrl                                string      `json:"destination_url,omitempty" path:"destination_url,omitempty" url:"destination_url,omitempty"`
	FileDestinationPath                           string      `json:"file_destination_path,omitempty" path:"file_destination_path,omitempty" url:"file_destination_path,omitempty"`
	FileFormat                                    string      `json:"file_format,omitempty" path:"file_format,omitempty" url:"file_format,omitempty"`
	FileIntervalMinutes                           int64       `json:"file_interval_minutes,omitempty" path:"file_interval_minutes,omitempty" url:"file_interval_minutes,omitempty"`
	AdditionalHeaders                             interface{} `json:"additional_headers,omitempty" path:"additional_headers,omitempty" url:"additional_headers,omitempty"`
	SendingActive                                 *bool       `json:"sending_active,omitempty" path:"sending_active,omitempty" url:"sending_active,omitempty"`
	GenericPayloadType                            string      `json:"generic_payload_type,omitempty" path:"generic_payload_type,omitempty" url:"generic_payload_type,omitempty"`
	SplunkTokenMasked                             string      `json:"splunk_token_masked,omitempty" path:"splunk_token_masked,omitempty" url:"splunk_token_masked,omitempty"`
	CrowdstrikeTokenMasked                        string      `json:"crowdstrike_token_masked,omitempty" path:"crowdstrike_token_masked,omitempty" url:"crowdstrike_token_masked,omitempty"`
	AzureDcrImmutableId                           string      `json:"azure_dcr_immutable_id,omitempty" path:"azure_dcr_immutable_id,omitempty" url:"azure_dcr_immutable_id,omitempty"`
	AzureStreamName                               string      `json:"azure_stream_name,omitempty" path:"azure_stream_name,omitempty" url:"azure_stream_name,omitempty"`
	AzureOauthClientCredentialsTenantId           string      `` /* 172-byte string literal not displayed */
	AzureOauthClientCredentialsClientId           string      `` /* 172-byte string literal not displayed */
	AzureOauthClientCredentialsClientSecretMasked string      `` /* 205-byte string literal not displayed */
	QradarUsername                                string      `json:"qradar_username,omitempty" path:"qradar_username,omitempty" url:"qradar_username,omitempty"`
	QradarPasswordMasked                          string      `json:"qradar_password_masked,omitempty" path:"qradar_password_masked,omitempty" url:"qradar_password_masked,omitempty"`
	SolarWindsTokenMasked                         string      `json:"solar_winds_token_masked,omitempty" path:"solar_winds_token_masked,omitempty" url:"solar_winds_token_masked,omitempty"`
	NewRelicApiKeyMasked                          string      `json:"new_relic_api_key_masked,omitempty" path:"new_relic_api_key_masked,omitempty" url:"new_relic_api_key_masked,omitempty"`
	DatadogApiKeyMasked                           string      `json:"datadog_api_key_masked,omitempty" path:"datadog_api_key_masked,omitempty" url:"datadog_api_key_masked,omitempty"`
	ActionSendEnabled                             *bool       `json:"action_send_enabled,omitempty" path:"action_send_enabled,omitempty" url:"action_send_enabled,omitempty"`
	ActionEntriesSent                             int64       `json:"action_entries_sent,omitempty" path:"action_entries_sent,omitempty" url:"action_entries_sent,omitempty"`
	SftpActionSendEnabled                         *bool       `json:"sftp_action_send_enabled,omitempty" path:"sftp_action_send_enabled,omitempty" url:"sftp_action_send_enabled,omitempty"`
	SftpActionEntriesSent                         int64       `json:"sftp_action_entries_sent,omitempty" path:"sftp_action_entries_sent,omitempty" url:"sftp_action_entries_sent,omitempty"`
	FtpActionSendEnabled                          *bool       `json:"ftp_action_send_enabled,omitempty" path:"ftp_action_send_enabled,omitempty" url:"ftp_action_send_enabled,omitempty"`
	FtpActionEntriesSent                          int64       `json:"ftp_action_entries_sent,omitempty" path:"ftp_action_entries_sent,omitempty" url:"ftp_action_entries_sent,omitempty"`
	WebDavActionSendEnabled                       *bool       `` /* 133-byte string literal not displayed */
	WebDavActionEntriesSent                       int64       `` /* 133-byte string literal not displayed */
	SyncSendEnabled                               *bool       `json:"sync_send_enabled,omitempty" path:"sync_send_enabled,omitempty" url:"sync_send_enabled,omitempty"`
	SyncEntriesSent                               int64       `json:"sync_entries_sent,omitempty" path:"sync_entries_sent,omitempty" url:"sync_entries_sent,omitempty"`
	OutboundConnectionSendEnabled                 *bool       `` /* 148-byte string literal not displayed */
	OutboundConnectionEntriesSent                 int64       `` /* 148-byte string literal not displayed */
	AutomationSendEnabled                         *bool       `json:"automation_send_enabled,omitempty" path:"automation_send_enabled,omitempty" url:"automation_send_enabled,omitempty"`
	AutomationEntriesSent                         int64       `json:"automation_entries_sent,omitempty" path:"automation_entries_sent,omitempty" url:"automation_entries_sent,omitempty"`
	ApiRequestSendEnabled                         *bool       `json:"api_request_send_enabled,omitempty" path:"api_request_send_enabled,omitempty" url:"api_request_send_enabled,omitempty"`
	ApiRequestEntriesSent                         int64       `json:"api_request_entries_sent,omitempty" path:"api_request_entries_sent,omitempty" url:"api_request_entries_sent,omitempty"`
	PublicHostingRequestSendEnabled               *bool       `` /* 157-byte string literal not displayed */
	PublicHostingRequestEntriesSent               int64       `` /* 157-byte string literal not displayed */
	EmailSendEnabled                              *bool       `json:"email_send_enabled,omitempty" path:"email_send_enabled,omitempty" url:"email_send_enabled,omitempty"`
	EmailEntriesSent                              int64       `json:"email_entries_sent,omitempty" path:"email_entries_sent,omitempty" url:"email_entries_sent,omitempty"`
	ExavaultApiRequestSendEnabled                 *bool       `` /* 151-byte string literal not displayed */
	ExavaultApiRequestEntriesSent                 int64       `` /* 151-byte string literal not displayed */
	SettingsChangeSendEnabled                     *bool       `` /* 136-byte string literal not displayed */
	SettingsChangeEntriesSent                     int64       `` /* 136-byte string literal not displayed */
	LastHttpCallTargetType                        string      `` /* 130-byte string literal not displayed */
	LastHttpCallSuccess                           *bool       `json:"last_http_call_success,omitempty" path:"last_http_call_success,omitempty" url:"last_http_call_success,omitempty"`
	LastHttpCallResponseCode                      int64       `` /* 136-byte string literal not displayed */
	LastHttpCallResponseBody                      string      `` /* 136-byte string literal not displayed */
	LastHttpCallErrorMessage                      string      `` /* 136-byte string literal not displayed */
	LastHttpCallTime                              string      `json:"last_http_call_time,omitempty" path:"last_http_call_time,omitempty" url:"last_http_call_time,omitempty"`
	LastHttpCallDurationMs                        int64       `` /* 130-byte string literal not displayed */
	MostRecentHttpCallSuccessTime                 string      `` /* 154-byte string literal not displayed */
	ConnectionTestEntry                           string      `json:"connection_test_entry,omitempty" path:"connection_test_entry,omitempty" url:"connection_test_entry,omitempty"`
	SplunkToken                                   string      `json:"splunk_token,omitempty" path:"splunk_token,omitempty" url:"splunk_token,omitempty"`
	CrowdstrikeToken                              string      `json:"crowdstrike_token,omitempty" path:"crowdstrike_token,omitempty" url:"crowdstrike_token,omitempty"`
	AzureOauthClientCredentialsClientSecret       string      `` /* 184-byte string literal not displayed */
	QradarPassword                                string      `json:"qradar_password,omitempty" path:"qradar_password,omitempty" url:"qradar_password,omitempty"`
	SolarWindsToken                               string      `json:"solar_winds_token,omitempty" path:"solar_winds_token,omitempty" url:"solar_winds_token,omitempty"`
	NewRelicApiKey                                string      `json:"new_relic_api_key,omitempty" path:"new_relic_api_key,omitempty" url:"new_relic_api_key,omitempty"`
	DatadogApiKey                                 string      `json:"datadog_api_key,omitempty" path:"datadog_api_key,omitempty" url:"datadog_api_key,omitempty"`
}

SiemHttpDestination is a Files.com API resource.

func (SiemHttpDestination) Identifier ¶ added in v3.2.49

func (s SiemHttpDestination) Identifier() interface{}

Identifier returns the resource ID.

func (*SiemHttpDestination) UnmarshalJSON ¶ added in v3.2.49

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SiemHttpDestinationCollection ¶ added in v3.2.49

type SiemHttpDestinationCollection []SiemHttpDestination

SiemHttpDestinationCollection is a list of SiemHttpDestination resources.

func (*SiemHttpDestinationCollection) ToSlice ¶ added in v3.2.49

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

ToSlice returns a new slice containing the resources as interface values.

func (*SiemHttpDestinationCollection) UnmarshalJSON ¶ added in v3.2.49

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SiemHttpDestinationCreateParams ¶ added in v3.2.49

type SiemHttpDestinationCreateParams struct {
	Name                                    string                                    `url:"name,omitempty" json:"name,omitempty" path:"name"`
	AdditionalHeaders                       interface{}                               `url:"additional_headers,omitempty" json:"additional_headers,omitempty" path:"additional_headers"`
	SendingActive                           *bool                                     `url:"sending_active,omitempty" json:"sending_active,omitempty" path:"sending_active"`
	GenericPayloadType                      SiemHttpDestinationGenericPayloadTypeEnum `url:"generic_payload_type,omitempty" json:"generic_payload_type,omitempty" path:"generic_payload_type"`
	FileDestinationPath                     string                                    `url:"file_destination_path,omitempty" json:"file_destination_path,omitempty" path:"file_destination_path"`
	FileFormat                              SiemHttpDestinationFileFormatEnum         `url:"file_format,omitempty" json:"file_format,omitempty" path:"file_format"`
	FileIntervalMinutes                     int64                                     `url:"file_interval_minutes,omitempty" json:"file_interval_minutes,omitempty" path:"file_interval_minutes"`
	SplunkToken                             string                                    `url:"splunk_token,omitempty" json:"splunk_token,omitempty" path:"splunk_token"`
	CrowdstrikeToken                        string                                    `url:"crowdstrike_token,omitempty" json:"crowdstrike_token,omitempty" path:"crowdstrike_token"`
	AzureDcrImmutableId                     string                                    `url:"azure_dcr_immutable_id,omitempty" json:"azure_dcr_immutable_id,omitempty" path:"azure_dcr_immutable_id"`
	AzureStreamName                         string                                    `url:"azure_stream_name,omitempty" json:"azure_stream_name,omitempty" path:"azure_stream_name"`
	AzureOauthClientCredentialsTenantId     string                                    `` /* 162-byte string literal not displayed */
	AzureOauthClientCredentialsClientId     string                                    `` /* 162-byte string literal not displayed */
	AzureOauthClientCredentialsClientSecret string                                    `` /* 174-byte string literal not displayed */
	QradarUsername                          string                                    `url:"qradar_username,omitempty" json:"qradar_username,omitempty" path:"qradar_username"`
	QradarPassword                          string                                    `url:"qradar_password,omitempty" json:"qradar_password,omitempty" path:"qradar_password"`
	SolarWindsToken                         string                                    `url:"solar_winds_token,omitempty" json:"solar_winds_token,omitempty" path:"solar_winds_token"`
	NewRelicApiKey                          string                                    `url:"new_relic_api_key,omitempty" json:"new_relic_api_key,omitempty" path:"new_relic_api_key"`
	DatadogApiKey                           string                                    `url:"datadog_api_key,omitempty" json:"datadog_api_key,omitempty" path:"datadog_api_key"`
	ActionSendEnabled                       *bool                                     `url:"action_send_enabled,omitempty" json:"action_send_enabled,omitempty" path:"action_send_enabled"`
	SftpActionSendEnabled                   *bool                                     `url:"sftp_action_send_enabled,omitempty" json:"sftp_action_send_enabled,omitempty" path:"sftp_action_send_enabled"`
	FtpActionSendEnabled                    *bool                                     `url:"ftp_action_send_enabled,omitempty" json:"ftp_action_send_enabled,omitempty" path:"ftp_action_send_enabled"`
	WebDavActionSendEnabled                 *bool                                     `url:"web_dav_action_send_enabled,omitempty" json:"web_dav_action_send_enabled,omitempty" path:"web_dav_action_send_enabled"`
	SyncSendEnabled                         *bool                                     `url:"sync_send_enabled,omitempty" json:"sync_send_enabled,omitempty" path:"sync_send_enabled"`
	OutboundConnectionSendEnabled           *bool                                     `` /* 138-byte string literal not displayed */
	AutomationSendEnabled                   *bool                                     `url:"automation_send_enabled,omitempty" json:"automation_send_enabled,omitempty" path:"automation_send_enabled"`
	ApiRequestSendEnabled                   *bool                                     `url:"api_request_send_enabled,omitempty" json:"api_request_send_enabled,omitempty" path:"api_request_send_enabled"`
	PublicHostingRequestSendEnabled         *bool                                     `` /* 147-byte string literal not displayed */
	EmailSendEnabled                        *bool                                     `url:"email_send_enabled,omitempty" json:"email_send_enabled,omitempty" path:"email_send_enabled"`
	ExavaultApiRequestSendEnabled           *bool                                     `` /* 141-byte string literal not displayed */
	SettingsChangeSendEnabled               *bool                                     `` /* 126-byte string literal not displayed */
	DestinationType                         SiemHttpDestinationDestinationTypeEnum    `url:"destination_type" json:"destination_type" path:"destination_type"`
	DestinationUrl                          string                                    `url:"destination_url,omitempty" json:"destination_url,omitempty" path:"destination_url"`
}

SiemHttpDestinationCreateParams contains the request parameters for POST /siem_http_destinations.

type SiemHttpDestinationDeleteParams ¶ added in v3.2.49

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

SiemHttpDestinationDeleteParams contains the request parameters for DELETE /siem_http_destinations/{id}.

type SiemHttpDestinationDestinationTypeEnum ¶ added in v3.2.49

type SiemHttpDestinationDestinationTypeEnum string

SiemHttpDestinationDestinationTypeEnum is a string value for destination_type. Enum lists the values documented by the API.

func (SiemHttpDestinationDestinationTypeEnum) Enum ¶ added in v3.2.49

Enum returns the documented values keyed by their API strings.

func (SiemHttpDestinationDestinationTypeEnum) String ¶ added in v3.2.49

String returns the API parameter value.

type SiemHttpDestinationEvent ¶ added in v3.3.111

type SiemHttpDestinationEvent 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"`
	EventErrors           []string   `json:"event_errors,omitempty" path:"event_errors,omitempty" url:"event_errors,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"`
	SiemHttpDestinationId int64      `json:"siem_http_destination_id,omitempty" path:"siem_http_destination_id,omitempty" url:"siem_http_destination_id,omitempty"`
}

SiemHttpDestinationEvent is a Files.com API resource.

func (SiemHttpDestinationEvent) Identifier ¶ added in v3.3.111

func (s SiemHttpDestinationEvent) Identifier() interface{}

Identifier returns the resource ID.

func (*SiemHttpDestinationEvent) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SiemHttpDestinationEventCollection ¶ added in v3.3.111

type SiemHttpDestinationEventCollection []SiemHttpDestinationEvent

SiemHttpDestinationEventCollection is a list of SiemHttpDestinationEvent resources.

func (*SiemHttpDestinationEventCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*SiemHttpDestinationEventCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SiemHttpDestinationEventFindParams ¶ added in v3.3.111

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

SiemHttpDestinationEventFindParams contains the request parameters for GET /siem_http_destination_events/{id}.

type SiemHttpDestinationEventListParams ¶ added in v3.3.111

type SiemHttpDestinationEventListParams struct {
	SortBy     interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

SiemHttpDestinationEventListParams contains the request parameters for GET /siem_http_destination_events.

type SiemHttpDestinationFileFormatEnum ¶ added in v3.3.2

type SiemHttpDestinationFileFormatEnum string

SiemHttpDestinationFileFormatEnum is a string value for file_format. Enum lists the values documented by the API.

func (SiemHttpDestinationFileFormatEnum) Enum ¶ added in v3.3.2

Enum returns the documented values keyed by their API strings.

func (SiemHttpDestinationFileFormatEnum) String ¶ added in v3.3.2

String returns the API parameter value.

type SiemHttpDestinationFindParams ¶ added in v3.2.49

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

SiemHttpDestinationFindParams contains the request parameters for GET /siem_http_destinations/{id}.

type SiemHttpDestinationGenericPayloadTypeEnum ¶ added in v3.2.49

type SiemHttpDestinationGenericPayloadTypeEnum string

SiemHttpDestinationGenericPayloadTypeEnum is a string value for generic_payload_type. Enum lists the values documented by the API.

func (SiemHttpDestinationGenericPayloadTypeEnum) Enum ¶ added in v3.2.49

Enum returns the documented values keyed by their API strings.

func (SiemHttpDestinationGenericPayloadTypeEnum) String ¶ added in v3.2.49

String returns the API parameter value.

type SiemHttpDestinationListParams ¶ added in v3.2.49

type SiemHttpDestinationListParams struct {
	ListParams
}

SiemHttpDestinationListParams contains the request parameters for GET /siem_http_destinations.

type SiemHttpDestinationSendTestEntryParams ¶ added in v3.2.49

type SiemHttpDestinationSendTestEntryParams struct {
	SiemHttpDestinationId                   int64                                     `url:"siem_http_destination_id,omitempty" json:"siem_http_destination_id,omitempty" path:"siem_http_destination_id"`
	DestinationType                         SiemHttpDestinationDestinationTypeEnum    `url:"destination_type,omitempty" json:"destination_type,omitempty" path:"destination_type"`
	DestinationUrl                          string                                    `url:"destination_url,omitempty" json:"destination_url,omitempty" path:"destination_url"`
	Name                                    string                                    `url:"name,omitempty" json:"name,omitempty" path:"name"`
	AdditionalHeaders                       interface{}                               `url:"additional_headers,omitempty" json:"additional_headers,omitempty" path:"additional_headers"`
	SendingActive                           *bool                                     `url:"sending_active,omitempty" json:"sending_active,omitempty" path:"sending_active"`
	GenericPayloadType                      SiemHttpDestinationGenericPayloadTypeEnum `url:"generic_payload_type,omitempty" json:"generic_payload_type,omitempty" path:"generic_payload_type"`
	FileDestinationPath                     string                                    `url:"file_destination_path,omitempty" json:"file_destination_path,omitempty" path:"file_destination_path"`
	FileFormat                              SiemHttpDestinationFileFormatEnum         `url:"file_format,omitempty" json:"file_format,omitempty" path:"file_format"`
	FileIntervalMinutes                     int64                                     `url:"file_interval_minutes,omitempty" json:"file_interval_minutes,omitempty" path:"file_interval_minutes"`
	SplunkToken                             string                                    `url:"splunk_token,omitempty" json:"splunk_token,omitempty" path:"splunk_token"`
	CrowdstrikeToken                        string                                    `url:"crowdstrike_token,omitempty" json:"crowdstrike_token,omitempty" path:"crowdstrike_token"`
	AzureDcrImmutableId                     string                                    `url:"azure_dcr_immutable_id,omitempty" json:"azure_dcr_immutable_id,omitempty" path:"azure_dcr_immutable_id"`
	AzureStreamName                         string                                    `url:"azure_stream_name,omitempty" json:"azure_stream_name,omitempty" path:"azure_stream_name"`
	AzureOauthClientCredentialsTenantId     string                                    `` /* 162-byte string literal not displayed */
	AzureOauthClientCredentialsClientId     string                                    `` /* 162-byte string literal not displayed */
	AzureOauthClientCredentialsClientSecret string                                    `` /* 174-byte string literal not displayed */
	QradarUsername                          string                                    `url:"qradar_username,omitempty" json:"qradar_username,omitempty" path:"qradar_username"`
	QradarPassword                          string                                    `url:"qradar_password,omitempty" json:"qradar_password,omitempty" path:"qradar_password"`
	SolarWindsToken                         string                                    `url:"solar_winds_token,omitempty" json:"solar_winds_token,omitempty" path:"solar_winds_token"`
	NewRelicApiKey                          string                                    `url:"new_relic_api_key,omitempty" json:"new_relic_api_key,omitempty" path:"new_relic_api_key"`
	DatadogApiKey                           string                                    `url:"datadog_api_key,omitempty" json:"datadog_api_key,omitempty" path:"datadog_api_key"`
	ActionSendEnabled                       *bool                                     `url:"action_send_enabled,omitempty" json:"action_send_enabled,omitempty" path:"action_send_enabled"`
	SftpActionSendEnabled                   *bool                                     `url:"sftp_action_send_enabled,omitempty" json:"sftp_action_send_enabled,omitempty" path:"sftp_action_send_enabled"`
	FtpActionSendEnabled                    *bool                                     `url:"ftp_action_send_enabled,omitempty" json:"ftp_action_send_enabled,omitempty" path:"ftp_action_send_enabled"`
	WebDavActionSendEnabled                 *bool                                     `url:"web_dav_action_send_enabled,omitempty" json:"web_dav_action_send_enabled,omitempty" path:"web_dav_action_send_enabled"`
	SyncSendEnabled                         *bool                                     `url:"sync_send_enabled,omitempty" json:"sync_send_enabled,omitempty" path:"sync_send_enabled"`
	OutboundConnectionSendEnabled           *bool                                     `` /* 138-byte string literal not displayed */
	AutomationSendEnabled                   *bool                                     `url:"automation_send_enabled,omitempty" json:"automation_send_enabled,omitempty" path:"automation_send_enabled"`
	ApiRequestSendEnabled                   *bool                                     `url:"api_request_send_enabled,omitempty" json:"api_request_send_enabled,omitempty" path:"api_request_send_enabled"`
	PublicHostingRequestSendEnabled         *bool                                     `` /* 147-byte string literal not displayed */
	EmailSendEnabled                        *bool                                     `url:"email_send_enabled,omitempty" json:"email_send_enabled,omitempty" path:"email_send_enabled"`
	ExavaultApiRequestSendEnabled           *bool                                     `` /* 141-byte string literal not displayed */
	SettingsChangeSendEnabled               *bool                                     `` /* 126-byte string literal not displayed */
}

SiemHttpDestinationSendTestEntryParams contains the request parameters for POST /siem_http_destinations/send_test_entry.

type SiemHttpDestinationUpdateParams ¶ added in v3.2.49

type SiemHttpDestinationUpdateParams struct {
	Id                                      int64                                     `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name                                    string                                    `url:"name,omitempty" json:"name,omitempty" path:"name"`
	AdditionalHeaders                       interface{}                               `url:"additional_headers,omitempty" json:"additional_headers,omitempty" path:"additional_headers"`
	SendingActive                           *bool                                     `url:"sending_active,omitempty" json:"sending_active,omitempty" path:"sending_active"`
	GenericPayloadType                      SiemHttpDestinationGenericPayloadTypeEnum `url:"generic_payload_type,omitempty" json:"generic_payload_type,omitempty" path:"generic_payload_type"`
	FileDestinationPath                     string                                    `url:"file_destination_path,omitempty" json:"file_destination_path,omitempty" path:"file_destination_path"`
	FileFormat                              SiemHttpDestinationFileFormatEnum         `url:"file_format,omitempty" json:"file_format,omitempty" path:"file_format"`
	FileIntervalMinutes                     int64                                     `url:"file_interval_minutes,omitempty" json:"file_interval_minutes,omitempty" path:"file_interval_minutes"`
	SplunkToken                             string                                    `url:"splunk_token,omitempty" json:"splunk_token,omitempty" path:"splunk_token"`
	CrowdstrikeToken                        string                                    `url:"crowdstrike_token,omitempty" json:"crowdstrike_token,omitempty" path:"crowdstrike_token"`
	AzureDcrImmutableId                     string                                    `url:"azure_dcr_immutable_id,omitempty" json:"azure_dcr_immutable_id,omitempty" path:"azure_dcr_immutable_id"`
	AzureStreamName                         string                                    `url:"azure_stream_name,omitempty" json:"azure_stream_name,omitempty" path:"azure_stream_name"`
	AzureOauthClientCredentialsTenantId     string                                    `` /* 162-byte string literal not displayed */
	AzureOauthClientCredentialsClientId     string                                    `` /* 162-byte string literal not displayed */
	AzureOauthClientCredentialsClientSecret string                                    `` /* 174-byte string literal not displayed */
	QradarUsername                          string                                    `url:"qradar_username,omitempty" json:"qradar_username,omitempty" path:"qradar_username"`
	QradarPassword                          string                                    `url:"qradar_password,omitempty" json:"qradar_password,omitempty" path:"qradar_password"`
	SolarWindsToken                         string                                    `url:"solar_winds_token,omitempty" json:"solar_winds_token,omitempty" path:"solar_winds_token"`
	NewRelicApiKey                          string                                    `url:"new_relic_api_key,omitempty" json:"new_relic_api_key,omitempty" path:"new_relic_api_key"`
	DatadogApiKey                           string                                    `url:"datadog_api_key,omitempty" json:"datadog_api_key,omitempty" path:"datadog_api_key"`
	ActionSendEnabled                       *bool                                     `url:"action_send_enabled,omitempty" json:"action_send_enabled,omitempty" path:"action_send_enabled"`
	SftpActionSendEnabled                   *bool                                     `url:"sftp_action_send_enabled,omitempty" json:"sftp_action_send_enabled,omitempty" path:"sftp_action_send_enabled"`
	FtpActionSendEnabled                    *bool                                     `url:"ftp_action_send_enabled,omitempty" json:"ftp_action_send_enabled,omitempty" path:"ftp_action_send_enabled"`
	WebDavActionSendEnabled                 *bool                                     `url:"web_dav_action_send_enabled,omitempty" json:"web_dav_action_send_enabled,omitempty" path:"web_dav_action_send_enabled"`
	SyncSendEnabled                         *bool                                     `url:"sync_send_enabled,omitempty" json:"sync_send_enabled,omitempty" path:"sync_send_enabled"`
	OutboundConnectionSendEnabled           *bool                                     `` /* 138-byte string literal not displayed */
	AutomationSendEnabled                   *bool                                     `url:"automation_send_enabled,omitempty" json:"automation_send_enabled,omitempty" path:"automation_send_enabled"`
	ApiRequestSendEnabled                   *bool                                     `url:"api_request_send_enabled,omitempty" json:"api_request_send_enabled,omitempty" path:"api_request_send_enabled"`
	PublicHostingRequestSendEnabled         *bool                                     `` /* 147-byte string literal not displayed */
	EmailSendEnabled                        *bool                                     `url:"email_send_enabled,omitempty" json:"email_send_enabled,omitempty" path:"email_send_enabled"`
	ExavaultApiRequestSendEnabled           *bool                                     `` /* 141-byte string literal not displayed */
	SettingsChangeSendEnabled               *bool                                     `` /* 126-byte string literal not displayed */
	DestinationType                         SiemHttpDestinationDestinationTypeEnum    `url:"destination_type,omitempty" json:"destination_type,omitempty" path:"destination_type"`
	DestinationUrl                          string                                    `url:"destination_url,omitempty" json:"destination_url,omitempty" path:"destination_url"`
}

SiemHttpDestinationUpdateParams contains the request parameters for PATCH /siem_http_destinations/{id}.

type SignRequest ¶

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

SignRequest contains a U2F signing request returned during authentication.

type Site ¶

type Site struct {
	Id                                                   int64       `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                                                 string      `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	AdditionalTextFileTypes                              []string    `` /* 130-byte string literal not displayed */
	AiFeatureAvailability                                interface{} `json:"ai_feature_availability,omitempty" path:"ai_feature_availability,omitempty" url:"ai_feature_availability,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"`
	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"`
	Allowed2faMethodEmail                                *bool       `json:"allowed_2fa_method_email,omitempty" path:"allowed_2fa_method_email,omitempty" url:"allowed_2fa_method_email,omitempty"`
	Allowed2faMethodStatic                               *bool       `` /* 127-byte string literal not displayed */
	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"`
	AdminsBypassLockedSubfolders                         *bool       `` /* 145-byte string literal not displayed */
	AllowBundleNames                                     *bool       `json:"allow_bundle_names,omitempty" path:"allow_bundle_names,omitempty" url:"allow_bundle_names,omitempty"`
	AllowUserLevel2faOverride                            *bool       `` /* 139-byte string literal not displayed */
	AllowUserLevelAllowedIpOverride                      *bool       `` /* 160-byte string literal not displayed */
	AllowUserLevelSslOverride                            *bool       `` /* 139-byte string literal not displayed */
	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"`
	AlwaysMkdirParents                                   *bool       `json:"always_mkdir_parents,omitempty" path:"always_mkdir_parents,omitempty" url:"always_mkdir_parents,omitempty"`
	As2MessageRetentionDays                              int64       `` /* 130-byte string literal not displayed */
	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"`
	BundleNotFoundMessage                                string      `json:"bundle_not_found_message,omitempty" path:"bundle_not_found_message,omitempty" url:"bundle_not_found_message,omitempty"`
	BundlePasswordRequired                               *bool       `json:"bundle_password_required,omitempty" path:"bundle_password_required,omitempty" url:"bundle_password_required,omitempty"`
	BundlesDefaultOwnedByPrimaryGroup                    *bool       `` /* 166-byte string literal not displayed */
	BundleRecipientBlacklistDomains                      []string    `` /* 154-byte string literal not displayed */
	BundleRecipientBlacklistFreeEmailDomains             *bool       `` /* 187-byte string literal not displayed */
	BundleRegistrationNotifications                      string      `` /* 151-byte string literal not displayed */
	BundleRequireRegistration                            *bool       `` /* 133-byte string literal not displayed */
	BundleRequireShareRecipient                          *bool       `` /* 142-byte string literal not displayed */
	BundleSendOneTimePasswordToRecipientAtRegistration   *bool       `` /* 226-byte string literal not displayed */
	BundleRequireNote                                    *bool       `json:"bundle_require_note,omitempty" path:"bundle_require_note,omitempty" url:"bundle_require_note,omitempty"`
	BundleSendSharedReceipts                             *bool       `` /* 133-byte string literal not displayed */
	BundleUploadReceiptNotifications                     string      `` /* 157-byte string literal not displayed */
	BundleWatermarkAttachment                            Image       `` /* 133-byte string literal not displayed */
	BundleWatermarkValue                                 interface{} `json:"bundle_watermark_value,omitempty" path:"bundle_watermark_value,omitempty" url:"bundle_watermark_value,omitempty"`
	CalculateFileChecksumsCrc32                          *bool       `` /* 142-byte string literal not displayed */
	CalculateFileChecksumsMd5                            *bool       `` /* 136-byte string literal not displayed */
	CalculateFileChecksumsSha1                           *bool       `` /* 139-byte string literal not displayed */
	CalculateFileChecksumsSha256                         *bool       `` /* 145-byte string literal not displayed */
	ChildSiteFolderAdminsCanSeeParentSiteDirectory       *bool       `` /* 214-byte string literal not displayed */
	WorkspaceFolderAdminsCanSeeDefaultWorkspaceDirectory *bool       `` /* 229-byte string literal not displayed */
	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"`
	DavEnabled                                           *bool       `json:"dav_enabled,omitempty" path:"dav_enabled,omitempty" url:"dav_enabled,omitempty"`
	DavUserRootEnabled                                   *bool       `json:"dav_user_root_enabled,omitempty" path:"dav_user_root_enabled,omitempty" url:"dav_user_root_enabled,omitempty"`
	DaysToRetainBackups                                  int64       `json:"days_to_retain_backups,omitempty" path:"days_to_retain_backups,omitempty" url:"days_to_retain_backups,omitempty"`
	DocumentEditsInBundleAllowed                         *bool       `` /* 148-byte string literal not displayed */
	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 */
	LegacyChecksumsMode                                  *bool       `json:"legacy_checksums_mode,omitempty" path:"legacy_checksums_mode,omitempty" url:"legacy_checksums_mode,omitempty"`
	MigrateRemoteServerSyncToSync                        *bool       `` /* 154-byte string literal not displayed */
	McpDcrEnabled                                        *bool       `json:"mcp_dcr_enabled,omitempty" path:"mcp_dcr_enabled,omitempty" url:"mcp_dcr_enabled,omitempty"`
	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"`
	DisableAllAiFeatures                                 *bool       `json:"disable_all_ai_features,omitempty" path:"disable_all_ai_features,omitempty" url:"disable_all_ai_features,omitempty"`
	DisableFilesCertificateGeneration                    *bool       `` /* 160-byte string literal not displayed */
	DisableNotifications                                 *bool       `json:"disable_notifications,omitempty" path:"disable_notifications,omitempty" url:"disable_notifications,omitempty"`
	FileActivityEventsEnabled                            *bool       `` /* 136-byte string literal not displayed */
	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"`
	Fedramp                                              *bool       `json:"fedramp,omitempty" path:"fedramp,omitempty" url:"fedramp,omitempty"`
	FilesComRemoteServerEnabled                          *bool       `` /* 145-byte string literal not displayed */
	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 */
	GroupAdminsCanAddUsers                               *bool       `` /* 130-byte string literal not displayed */
	GroupAdminsCanManageGroupMemberships                 *bool       `` /* 175-byte string literal not displayed */
	GroupAdminsCanDeleteUsers                            *bool       `` /* 139-byte string literal not displayed */
	GroupAdminsCanEnableDisableUsers                     *bool       `` /* 163-byte string literal not displayed */
	GroupAdminsCanModifyUsers                            *bool       `` /* 139-byte string literal not displayed */
	GroupAdminsCanBypassUserLifecycleRules               *bool       `` /* 184-byte string literal not displayed */
	GroupAdminsCanResetPasswords                         *bool       `` /* 148-byte string literal not displayed */
	GroupAdminsCanSetUserPassword                        *bool       `` /* 154-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"`
	LdapServerCertificate                                string      `json:"ldap_server_certificate,omitempty" path:"ldap_server_certificate,omitempty" url:"ldap_server_certificate,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"`
	LoginPageBackgroundImage                             Image       `` /* 133-byte string literal not displayed */
	MaxPriorPasswords                                    int64       `json:"max_prior_passwords,omitempty" path:"max_prior_passwords,omitempty" url:"max_prior_passwords,omitempty"`
	ManagedSiteSettings                                  interface{} `json:"managed_site_settings,omitempty" path:"managed_site_settings,omitempty" url:"managed_site_settings,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 */
	ProtocolAccessGroupsOnly                             *bool       `` /* 133-byte string literal not displayed */
	Require2fa                                           *bool       `json:"require_2fa,omitempty" path:"require_2fa,omitempty" url:"require_2fa,omitempty"`
	RestrictRootFolderBehaviorsToSiteAdmins              *bool       `` /* 187-byte string literal not displayed */
	RootFolderBehaviorsApplyToWorkspaces                 *bool       `` /* 175-byte string literal not displayed */
	Require2faExemptAllSsoUsers                          *bool       `` /* 148-byte string literal not displayed */
	Require2faStopTime                                   *time.Time  `json:"require_2fa_stop_time,omitempty" path:"require_2fa_stop_time,omitempty" url:"require_2fa_stop_time,omitempty"`
	RevokeBundleAccessOnDisableOrDelete                  *bool       `` /* 175-byte string literal not displayed */
	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"`
	S3CompatibleEndpointEnabled                          *bool       `` /* 142-byte string literal not displayed */
	SftpEnabled                                          *bool       `json:"sftp_enabled,omitempty" path:"sftp_enabled,omitempty" url:"sftp_enabled,omitempty"`
	SftpFinalizePartialUploads                           *bool       `` /* 139-byte string literal not displayed */
	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"`
	ActiveSftpHostKeyIds                                 []int64     `json:"active_sftp_host_key_ids,omitempty" path:"active_sftp_host_key_ids,omitempty" url:"active_sftp_host_key_ids,omitempty"`
	SftpInsecureCiphers                                  *bool       `json:"sftp_insecure_ciphers,omitempty" path:"sftp_insecure_ciphers,omitempty" url:"sftp_insecure_ciphers,omitempty"`
	SftpInsecureDiffieHellman                            *bool       `` /* 136-byte string literal not displayed */
	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"`
	ShowUserNotificationsLogInLink                       *bool       `` /* 157-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"`
	SitePublicFooter                                     string      `json:"site_public_footer,omitempty" path:"site_public_footer,omitempty" url:"site_public_footer,omitempty"`
	SitePublicHeader                                     string      `json:"site_public_header,omitempty" path:"site_public_header,omitempty" url:"site_public_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"`
	SmtpSsl                                              string      `json:"smtp_ssl,omitempty" path:"smtp_ssl,omitempty" url:"smtp_ssl,omitempty"`
	SmtpUsername                                         string      `json:"smtp_username,omitempty" path:"smtp_username,omitempty" url:"smtp_username,omitempty"`
	SessionExpiryMinutes                                 int64       `json:"session_expiry_minutes,omitempty" path:"session_expiry_minutes,omitempty" url:"session_expiry_minutes,omitempty"`
	SnapshotSharingEnabled                               *bool       `json:"snapshot_sharing_enabled,omitempty" path:"snapshot_sharing_enabled,omitempty" url:"snapshot_sharing_enabled,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"`
	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"`
	UseDedicatedIpsForSmtp                               *bool       `` /* 130-byte string literal not displayed */
	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 */
	UsersCanCreateApiKeys                                *bool       `` /* 127-byte string literal not displayed */
	UsersCanCreateSshKeys                                *bool       `` /* 127-byte string literal not displayed */
	UsernameDisplay                                      string      `json:"username_display,omitempty" path:"username_display,omitempty" url:"username_display,omitempty"`
	WelcomeCustomText                                    string      `json:"welcome_custom_text,omitempty" path:"welcome_custom_text,omitempty" url:"welcome_custom_text,omitempty"`
	EmailFooterCustomText                                string      `json:"email_footer_custom_text,omitempty" path:"email_footer_custom_text,omitempty" url:"email_footer_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"`
}

Site is a Files.com API resource.

func (Site) Identifier ¶ added in v3.2.47

func (s Site) Identifier() interface{}

Identifier returns the resource ID.

func (*Site) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SiteCollection ¶

type SiteCollection []Site

SiteCollection is a list of Site resources.

func (*SiteCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*SiteCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SiteSubdomainRedirect ¶ added in v3.3.102

type SiteSubdomainRedirect struct {
	Id        int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Subdomain string     `json:"subdomain,omitempty" path:"subdomain,omitempty" url:"subdomain,omitempty"`
	CreatedAt *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
}

SiteSubdomainRedirect is a Files.com API resource.

func (SiteSubdomainRedirect) Identifier ¶ added in v3.3.102

func (s SiteSubdomainRedirect) Identifier() interface{}

Identifier returns the resource ID.

func (*SiteSubdomainRedirect) UnmarshalJSON ¶ added in v3.3.102

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SiteSubdomainRedirectCollection ¶ added in v3.3.102

type SiteSubdomainRedirectCollection []SiteSubdomainRedirect

SiteSubdomainRedirectCollection is a list of SiteSubdomainRedirect resources.

func (*SiteSubdomainRedirectCollection) ToSlice ¶ added in v3.3.102

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

ToSlice returns a new slice containing the resources as interface values.

func (*SiteSubdomainRedirectCollection) UnmarshalJSON ¶ added in v3.3.102

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SiteSubdomainRedirectDeleteParams ¶ added in v3.3.102

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

SiteSubdomainRedirectDeleteParams contains the request parameters for DELETE /site_subdomain_redirects/{id}.

type SiteSubdomainRedirectFindParams ¶ added in v3.3.102

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

SiteSubdomainRedirectFindParams contains the request parameters for GET /site_subdomain_redirects/{id}.

type SiteSubdomainRedirectListParams ¶ added in v3.3.102

type SiteSubdomainRedirectListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

SiteSubdomainRedirectListParams contains the request parameters for GET /site_subdomain_redirects.

type SiteUpdateParams ¶

type SiteUpdateParams struct {
	Name                                                 string      `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Subdomain                                            string      `url:"subdomain,omitempty" json:"subdomain,omitempty" path:"subdomain"`
	Domain                                               string      `url:"domain,omitempty" json:"domain,omitempty" path:"domain"`
	DomainHstsHeader                                     *bool       `url:"domain_hsts_header,omitempty" json:"domain_hsts_header,omitempty" path:"domain_hsts_header"`
	DomainLetsencryptChain                               string      `url:"domain_letsencrypt_chain,omitempty" json:"domain_letsencrypt_chain,omitempty" path:"domain_letsencrypt_chain"`
	Email                                                string      `url:"email,omitempty" json:"email,omitempty" path:"email"`
	ReplyToEmail                                         string      `url:"reply_to_email,omitempty" json:"reply_to_email,omitempty" path:"reply_to_email"`
	AllowBundleNames                                     *bool       `url:"allow_bundle_names,omitempty" json:"allow_bundle_names,omitempty" path:"allow_bundle_names"`
	BundleExpiration                                     int64       `url:"bundle_expiration,omitempty" json:"bundle_expiration,omitempty" path:"bundle_expiration"`
	WelcomeEmailEnabled                                  *bool       `url:"welcome_email_enabled,omitempty" json:"welcome_email_enabled,omitempty" path:"welcome_email_enabled"`
	AskAboutOverwrites                                   *bool       `url:"ask_about_overwrites,omitempty" json:"ask_about_overwrites,omitempty" path:"ask_about_overwrites"`
	ShowRequestAccessLink                                *bool       `url:"show_request_access_link,omitempty" json:"show_request_access_link,omitempty" path:"show_request_access_link"`
	AlwaysMkdirParents                                   *bool       `url:"always_mkdir_parents,omitempty" json:"always_mkdir_parents,omitempty" path:"always_mkdir_parents"`
	WelcomeEmailCc                                       string      `url:"welcome_email_cc,omitempty" json:"welcome_email_cc,omitempty" path:"welcome_email_cc"`
	WelcomeEmailSubject                                  string      `url:"welcome_email_subject,omitempty" json:"welcome_email_subject,omitempty" path:"welcome_email_subject"`
	WelcomeCustomText                                    string      `url:"welcome_custom_text,omitempty" json:"welcome_custom_text,omitempty" path:"welcome_custom_text"`
	Language                                             string      `url:"language,omitempty" json:"language,omitempty" path:"language"`
	WindowsModeFtp                                       *bool       `url:"windows_mode_ftp,omitempty" json:"windows_mode_ftp,omitempty" path:"windows_mode_ftp"`
	DefaultTimeZone                                      string      `url:"default_time_zone,omitempty" json:"default_time_zone,omitempty" path:"default_time_zone"`
	DesktopApp                                           *bool       `url:"desktop_app,omitempty" json:"desktop_app,omitempty" path:"desktop_app"`
	DesktopAppSessionIpPinning                           *bool       `` /* 132-byte string literal not displayed */
	DesktopAppSessionLifetime                            int64       `` /* 126-byte string literal not displayed */
	MobileApp                                            *bool       `url:"mobile_app,omitempty" json:"mobile_app,omitempty" path:"mobile_app"`
	MobileAppSessionIpPinning                            *bool       `` /* 129-byte string literal not displayed */
	MobileAppSessionLifetime                             int64       `url:"mobile_app_session_lifetime,omitempty" json:"mobile_app_session_lifetime,omitempty" path:"mobile_app_session_lifetime"`
	FolderPermissionsGroupsOnly                          *bool       `` /* 132-byte string literal not displayed */
	WelcomeScreen                                        string      `url:"welcome_screen,omitempty" json:"welcome_screen,omitempty" path:"welcome_screen"`
	OfficeIntegrationAvailable                           *bool       `` /* 126-byte string literal not displayed */
	OfficeIntegrationType                                string      `url:"office_integration_type,omitempty" json:"office_integration_type,omitempty" path:"office_integration_type"`
	PinAllRemoteServersToSiteRegion                      *bool       `` /* 153-byte string literal not displayed */
	MotdText                                             string      `url:"motd_text,omitempty" json:"motd_text,omitempty" path:"motd_text"`
	MotdUseForFtp                                        *bool       `url:"motd_use_for_ftp,omitempty" json:"motd_use_for_ftp,omitempty" path:"motd_use_for_ftp"`
	MotdUseForSftp                                       *bool       `url:"motd_use_for_sftp,omitempty" json:"motd_use_for_sftp,omitempty" path:"motd_use_for_sftp"`
	LeftNavigationVisibility                             interface{} `url:"left_navigation_visibility,omitempty" json:"left_navigation_visibility,omitempty" path:"left_navigation_visibility"`
	DisableAllAiFeatures                                 *bool       `url:"disable_all_ai_features,omitempty" json:"disable_all_ai_features,omitempty" path:"disable_all_ai_features"`
	AiFeatureAvailability                                interface{} `url:"ai_feature_availability,omitempty" json:"ai_feature_availability,omitempty" path:"ai_feature_availability"`
	McpDcrEnabled                                        *bool       `url:"mcp_dcr_enabled,omitempty" json:"mcp_dcr_enabled,omitempty" path:"mcp_dcr_enabled"`
	AdditionalTextFileTypes                              []string    `url:"additional_text_file_types,omitempty" json:"additional_text_file_types,omitempty" path:"additional_text_file_types"`
	BundleRequireNote                                    *bool       `url:"bundle_require_note,omitempty" json:"bundle_require_note,omitempty" path:"bundle_require_note"`
	BundleSendSharedReceipts                             *bool       `url:"bundle_send_shared_receipts,omitempty" json:"bundle_send_shared_receipts,omitempty" path:"bundle_send_shared_receipts"`
	BundlesDefaultOwnedByPrimaryGroup                    *bool       `` /* 156-byte string literal not displayed */
	CalculateFileChecksumsCrc32                          *bool       `` /* 132-byte string literal not displayed */
	CalculateFileChecksumsMd5                            *bool       `` /* 126-byte string literal not displayed */
	CalculateFileChecksumsSha1                           *bool       `` /* 129-byte string literal not displayed */
	CalculateFileChecksumsSha256                         *bool       `` /* 135-byte string literal not displayed */
	LegacyChecksumsMode                                  *bool       `url:"legacy_checksums_mode,omitempty" json:"legacy_checksums_mode,omitempty" path:"legacy_checksums_mode"`
	MigrateRemoteServerSyncToSync                        *bool       `` /* 144-byte string literal not displayed */
	As2MessageRetentionDays                              int64       `url:"as2_message_retention_days,omitempty" json:"as2_message_retention_days,omitempty" path:"as2_message_retention_days"`
	FileActivityEventsEnabled                            *bool       `` /* 126-byte string literal not displayed */
	UsernameDisplay                                      string      `url:"username_display,omitempty" json:"username_display,omitempty" path:"username_display"`
	SessionExpiryMinutes                                 int64       `url:"session_expiry_minutes,omitempty" json:"session_expiry_minutes,omitempty" path:"session_expiry_minutes"`
	SslRequired                                          *bool       `url:"ssl_required,omitempty" json:"ssl_required,omitempty" path:"ssl_required"`
	SftpInsecureCiphers                                  *bool       `url:"sftp_insecure_ciphers,omitempty" json:"sftp_insecure_ciphers,omitempty" path:"sftp_insecure_ciphers"`
	SftpInsecureDiffieHellman                            *bool       `` /* 126-byte string literal not displayed */
	DisableFilesCertificateGeneration                    *bool       `` /* 150-byte string literal not displayed */
	Fedramp                                              *bool       `url:"fedramp,omitempty" json:"fedramp,omitempty" path:"fedramp"`
	UserLockout                                          *bool       `url:"user_lockout,omitempty" json:"user_lockout,omitempty" path:"user_lockout"`
	UserLockoutTries                                     int64       `url:"user_lockout_tries,omitempty" json:"user_lockout_tries,omitempty" path:"user_lockout_tries"`
	UserLockoutWithin                                    int64       `url:"user_lockout_within,omitempty" json:"user_lockout_within,omitempty" path:"user_lockout_within"`
	UserLockoutLockPeriod                                int64       `url:"user_lockout_lock_period,omitempty" json:"user_lockout_lock_period,omitempty" path:"user_lockout_lock_period"`
	IncludePasswordInWelcomeEmail                        *bool       `` /* 141-byte string literal not displayed */
	AllowedCountries                                     string      `url:"allowed_countries,omitempty" json:"allowed_countries,omitempty" path:"allowed_countries"`
	AllowedIps                                           string      `url:"allowed_ips,omitempty" json:"allowed_ips,omitempty" path:"allowed_ips"`
	AllowUserLevel2faOverride                            *bool       `` /* 129-byte string literal not displayed */
	AllowUserLevelAllowedIpOverride                      *bool       `` /* 150-byte string literal not displayed */
	AllowUserLevelSslOverride                            *bool       `` /* 129-byte string literal not displayed */
	DisallowedCountries                                  string      `url:"disallowed_countries,omitempty" json:"disallowed_countries,omitempty" path:"disallowed_countries"`
	DaysToRetainBackups                                  int64       `url:"days_to_retain_backups,omitempty" json:"days_to_retain_backups,omitempty" path:"days_to_retain_backups"`
	MaxPriorPasswords                                    int64       `url:"max_prior_passwords,omitempty" json:"max_prior_passwords,omitempty" path:"max_prior_passwords"`
	PasswordValidityDays                                 int64       `url:"password_validity_days,omitempty" json:"password_validity_days,omitempty" path:"password_validity_days"`
	PasswordMinLength                                    int64       `url:"password_min_length,omitempty" json:"password_min_length,omitempty" path:"password_min_length"`
	PasswordRequireLetter                                *bool       `url:"password_require_letter,omitempty" json:"password_require_letter,omitempty" path:"password_require_letter"`
	PasswordRequireMixed                                 *bool       `url:"password_require_mixed,omitempty" json:"password_require_mixed,omitempty" path:"password_require_mixed"`
	PasswordRequireSpecial                               *bool       `url:"password_require_special,omitempty" json:"password_require_special,omitempty" path:"password_require_special"`
	PasswordRequireNumber                                *bool       `url:"password_require_number,omitempty" json:"password_require_number,omitempty" path:"password_require_number"`
	PasswordRequireUnbreached                            *bool       `url:"password_require_unbreached,omitempty" json:"password_require_unbreached,omitempty" path:"password_require_unbreached"`
	RequireLogoutFromBundlesAndInboxes                   *bool       `` /* 159-byte string literal not displayed */
	DavUserRootEnabled                                   *bool       `url:"dav_user_root_enabled,omitempty" json:"dav_user_root_enabled,omitempty" path:"dav_user_root_enabled"`
	SftpUserRootEnabled                                  *bool       `url:"sftp_user_root_enabled,omitempty" json:"sftp_user_root_enabled,omitempty" path:"sftp_user_root_enabled"`
	DisablePasswordReset                                 *bool       `url:"disable_password_reset,omitempty" json:"disable_password_reset,omitempty" path:"disable_password_reset"`
	ImmutableFiles                                       *bool       `url:"immutable_files,omitempty" json:"immutable_files,omitempty" path:"immutable_files"`
	BundleNotFoundMessage                                string      `url:"bundle_not_found_message,omitempty" json:"bundle_not_found_message,omitempty" path:"bundle_not_found_message"`
	BundlePasswordRequired                               *bool       `url:"bundle_password_required,omitempty" json:"bundle_password_required,omitempty" path:"bundle_password_required"`
	BundleRequireRegistration                            *bool       `url:"bundle_require_registration,omitempty" json:"bundle_require_registration,omitempty" path:"bundle_require_registration"`
	BundleRequireShareRecipient                          *bool       `` /* 132-byte string literal not displayed */
	BundleSendOneTimePasswordToRecipientAtRegistration   *bool       `` /* 216-byte string literal not displayed */
	BundleRegistrationNotifications                      string      `` /* 141-byte string literal not displayed */
	BundleActivityNotifications                          string      `` /* 129-byte string literal not displayed */
	BundleUploadReceiptNotifications                     string      `` /* 147-byte string literal not displayed */
	DocumentEditsInBundleAllowed                         *bool       `` /* 138-byte string literal not displayed */
	PasswordRequirementsApplyToBundles                   *bool       `` /* 156-byte string literal not displayed */
	PreventRootPermissionsForNonSiteAdmins               *bool       `` /* 174-byte string literal not displayed */
	RestrictRootFolderBehaviorsToSiteAdmins              *bool       `` /* 177-byte string literal not displayed */
	RootFolderBehaviorsApplyToWorkspaces                 *bool       `` /* 165-byte string literal not displayed */
	OptOutGlobal                                         *bool       `url:"opt_out_global,omitempty" json:"opt_out_global,omitempty" path:"opt_out_global"`
	UseProvidedModifiedAt                                *bool       `url:"use_provided_modified_at,omitempty" json:"use_provided_modified_at,omitempty" path:"use_provided_modified_at"`
	CustomNamespace                                      *bool       `url:"custom_namespace,omitempty" json:"custom_namespace,omitempty" path:"custom_namespace"`
	NonSsoGroupsAllowed                                  *bool       `url:"non_sso_groups_allowed,omitempty" json:"non_sso_groups_allowed,omitempty" path:"non_sso_groups_allowed"`
	NonSsoUsersAllowed                                   *bool       `url:"non_sso_users_allowed,omitempty" json:"non_sso_users_allowed,omitempty" path:"non_sso_users_allowed"`
	SharingEnabled                                       *bool       `url:"sharing_enabled,omitempty" json:"sharing_enabled,omitempty" path:"sharing_enabled"`
	SnapshotSharingEnabled                               *bool       `url:"snapshot_sharing_enabled,omitempty" json:"snapshot_sharing_enabled,omitempty" path:"snapshot_sharing_enabled"`
	UserRequestsEnabled                                  *bool       `url:"user_requests_enabled,omitempty" json:"user_requests_enabled,omitempty" path:"user_requests_enabled"`
	UserRequestsNotifyAdmins                             *bool       `url:"user_requests_notify_admins,omitempty" json:"user_requests_notify_admins,omitempty" path:"user_requests_notify_admins"`
	DavEnabled                                           *bool       `url:"dav_enabled,omitempty" json:"dav_enabled,omitempty" path:"dav_enabled"`
	FilesComRemoteServerEnabled                          *bool       `` /* 135-byte string literal not displayed */
	FtpEnabled                                           *bool       `url:"ftp_enabled,omitempty" json:"ftp_enabled,omitempty" path:"ftp_enabled"`
	S3CompatibleEndpointEnabled                          *bool       `` /* 132-byte string literal not displayed */
	SftpEnabled                                          *bool       `url:"sftp_enabled,omitempty" json:"sftp_enabled,omitempty" path:"sftp_enabled"`
	SftpFinalizePartialUploads                           *bool       `` /* 129-byte string literal not displayed */
	UsersCanCreateApiKeys                                *bool       `url:"users_can_create_api_keys,omitempty" json:"users_can_create_api_keys,omitempty" path:"users_can_create_api_keys"`
	UsersCanCreateSshKeys                                *bool       `url:"users_can_create_ssh_keys,omitempty" json:"users_can_create_ssh_keys,omitempty" path:"users_can_create_ssh_keys"`
	ShowUserNotificationsLogInLink                       *bool       `` /* 147-byte string literal not displayed */
	SftpHostKeyType                                      string      `url:"sftp_host_key_type,omitempty" json:"sftp_host_key_type,omitempty" path:"sftp_host_key_type"`
	ActiveSftpHostKeyId                                  int64       `url:"active_sftp_host_key_id,omitempty" json:"active_sftp_host_key_id,omitempty" path:"active_sftp_host_key_id"`
	ActiveSftpHostKeyIds                                 []int64     `url:"active_sftp_host_key_ids,omitempty" json:"active_sftp_host_key_ids,omitempty" path:"active_sftp_host_key_ids"`
	ProtocolAccessGroupsOnly                             *bool       `url:"protocol_access_groups_only,omitempty" json:"protocol_access_groups_only,omitempty" path:"protocol_access_groups_only"`
	RevokeBundleAccessOnDisableOrDelete                  *bool       `` /* 165-byte string literal not displayed */
	GroupAdminsCanAddUsers                               *bool       `url:"group_admins_can_add_users,omitempty" json:"group_admins_can_add_users,omitempty" path:"group_admins_can_add_users"`
	GroupAdminsCanManageGroupMemberships                 *bool       `` /* 165-byte string literal not displayed */
	GroupAdminsCanDeleteUsers                            *bool       `` /* 129-byte string literal not displayed */
	GroupAdminsCanEnableDisableUsers                     *bool       `` /* 153-byte string literal not displayed */
	GroupAdminsCanModifyUsers                            *bool       `` /* 129-byte string literal not displayed */
	GroupAdminsCanBypassUserLifecycleRules               *bool       `` /* 174-byte string literal not displayed */
	GroupAdminsCanResetPasswords                         *bool       `` /* 138-byte string literal not displayed */
	GroupAdminsCanSetUserPassword                        *bool       `` /* 144-byte string literal not displayed */
	ChildSiteFolderAdminsCanSeeParentSiteDirectory       *bool       `` /* 204-byte string literal not displayed */
	WorkspaceFolderAdminsCanSeeDefaultWorkspaceDirectory *bool       `` /* 219-byte string literal not displayed */
	BundleRecipientBlacklistFreeEmailDomains             *bool       `` /* 177-byte string literal not displayed */
	BundleRecipientBlacklistDomains                      []string    `` /* 144-byte string literal not displayed */
	AdminsBypassLockedSubfolders                         *bool       `` /* 135-byte string literal not displayed */
	Allowed2faMethodSms                                  *bool       `url:"allowed_2fa_method_sms,omitempty" json:"allowed_2fa_method_sms,omitempty" path:"allowed_2fa_method_sms"`
	Allowed2faMethodTotp                                 *bool       `url:"allowed_2fa_method_totp,omitempty" json:"allowed_2fa_method_totp,omitempty" path:"allowed_2fa_method_totp"`
	Allowed2faMethodWebauthn                             *bool       `url:"allowed_2fa_method_webauthn,omitempty" json:"allowed_2fa_method_webauthn,omitempty" path:"allowed_2fa_method_webauthn"`
	Allowed2faMethodYubi                                 *bool       `url:"allowed_2fa_method_yubi,omitempty" json:"allowed_2fa_method_yubi,omitempty" path:"allowed_2fa_method_yubi"`
	Allowed2faMethodEmail                                *bool       `url:"allowed_2fa_method_email,omitempty" json:"allowed_2fa_method_email,omitempty" path:"allowed_2fa_method_email"`
	Allowed2faMethodStatic                               *bool       `url:"allowed_2fa_method_static,omitempty" json:"allowed_2fa_method_static,omitempty" path:"allowed_2fa_method_static"`
	Allowed2faMethodBypassForFtpSftpDav                  *bool       `` /* 168-byte string literal not displayed */
	Require2fa                                           *bool       `url:"require_2fa,omitempty" json:"require_2fa,omitempty" path:"require_2fa"`
	Require2faExemptAllSsoUsers                          *bool       `` /* 138-byte string literal not displayed */
	Require2faUserType                                   string      `url:"require_2fa_user_type,omitempty" json:"require_2fa_user_type,omitempty" path:"require_2fa_user_type"`
	Color2Top                                            string      `url:"color2_top,omitempty" json:"color2_top,omitempty" path:"color2_top"`
	Color2Left                                           string      `url:"color2_left,omitempty" json:"color2_left,omitempty" path:"color2_left"`
	Color2Link                                           string      `url:"color2_link,omitempty" json:"color2_link,omitempty" path:"color2_link"`
	Color2Text                                           string      `url:"color2_text,omitempty" json:"color2_text,omitempty" path:"color2_text"`
	Color2TopText                                        string      `url:"color2_top_text,omitempty" json:"color2_top_text,omitempty" path:"color2_top_text"`
	SiteHeader                                           string      `url:"site_header,omitempty" json:"site_header,omitempty" path:"site_header"`
	SiteFooter                                           string      `url:"site_footer,omitempty" json:"site_footer,omitempty" path:"site_footer"`
	SitePublicHeader                                     string      `url:"site_public_header,omitempty" json:"site_public_header,omitempty" path:"site_public_header"`
	SitePublicFooter                                     string      `url:"site_public_footer,omitempty" json:"site_public_footer,omitempty" path:"site_public_footer"`
	LoginHelpText                                        string      `url:"login_help_text,omitempty" json:"login_help_text,omitempty" path:"login_help_text"`
	UseDedicatedIpsForSmtp                               *bool       `url:"use_dedicated_ips_for_smtp,omitempty" json:"use_dedicated_ips_for_smtp,omitempty" path:"use_dedicated_ips_for_smtp"`
	EmailFooterCustomText                                string      `url:"email_footer_custom_text,omitempty" json:"email_footer_custom_text,omitempty" path:"email_footer_custom_text"`
	SmtpAddress                                          string      `url:"smtp_address,omitempty" json:"smtp_address,omitempty" path:"smtp_address"`
	SmtpAuthentication                                   string      `url:"smtp_authentication,omitempty" json:"smtp_authentication,omitempty" path:"smtp_authentication"`
	SmtpFrom                                             string      `url:"smtp_from,omitempty" json:"smtp_from,omitempty" path:"smtp_from"`
	SmtpUsername                                         string      `url:"smtp_username,omitempty" json:"smtp_username,omitempty" path:"smtp_username"`
	SmtpPort                                             int64       `url:"smtp_port,omitempty" json:"smtp_port,omitempty" path:"smtp_port"`
	SmtpSsl                                              string      `url:"smtp_ssl,omitempty" json:"smtp_ssl,omitempty" path:"smtp_ssl"`
	LdapEnabled                                          *bool       `url:"ldap_enabled,omitempty" json:"ldap_enabled,omitempty" path:"ldap_enabled"`
	LdapType                                             string      `url:"ldap_type,omitempty" json:"ldap_type,omitempty" path:"ldap_type"`
	LdapHost                                             string      `url:"ldap_host,omitempty" json:"ldap_host,omitempty" path:"ldap_host"`
	LdapHost2                                            string      `url:"ldap_host_2,omitempty" json:"ldap_host_2,omitempty" path:"ldap_host_2"`
	LdapHost3                                            string      `url:"ldap_host_3,omitempty" json:"ldap_host_3,omitempty" path:"ldap_host_3"`
	LdapPort                                             int64       `url:"ldap_port,omitempty" json:"ldap_port,omitempty" path:"ldap_port"`
	LdapSecure                                           *bool       `url:"ldap_secure,omitempty" json:"ldap_secure,omitempty" path:"ldap_secure"`
	LdapServerCertificate                                string      `url:"ldap_server_certificate,omitempty" json:"ldap_server_certificate,omitempty" path:"ldap_server_certificate"`
	LdapUsername                                         string      `url:"ldap_username,omitempty" json:"ldap_username,omitempty" path:"ldap_username"`
	LdapUsernameField                                    string      `url:"ldap_username_field,omitempty" json:"ldap_username_field,omitempty" path:"ldap_username_field"`
	LdapDomain                                           string      `url:"ldap_domain,omitempty" json:"ldap_domain,omitempty" path:"ldap_domain"`
	LdapUserAction                                       string      `url:"ldap_user_action,omitempty" json:"ldap_user_action,omitempty" path:"ldap_user_action"`
	LdapGroupAction                                      string      `url:"ldap_group_action,omitempty" json:"ldap_group_action,omitempty" path:"ldap_group_action"`
	LdapUserIncludeGroups                                string      `url:"ldap_user_include_groups,omitempty" json:"ldap_user_include_groups,omitempty" path:"ldap_user_include_groups"`
	LdapGroupExclusion                                   string      `url:"ldap_group_exclusion,omitempty" json:"ldap_group_exclusion,omitempty" path:"ldap_group_exclusion"`
	LdapGroupInclusion                                   string      `url:"ldap_group_inclusion,omitempty" json:"ldap_group_inclusion,omitempty" path:"ldap_group_inclusion"`
	LdapBaseDn                                           string      `url:"ldap_base_dn,omitempty" json:"ldap_base_dn,omitempty" path:"ldap_base_dn"`
	UploadsViaEmailAuthentication                        *bool       `` /* 138-byte string literal not displayed */
	BundleWatermarkValue                                 interface{} `url:"bundle_watermark_value,omitempty" json:"bundle_watermark_value,omitempty" path:"bundle_watermark_value"`
	Icon16File                                           io.Writer   `url:"icon16_file,omitempty" json:"icon16_file,omitempty" path:"icon16_file"`
	// Icon16FileAttachment sends file content as icon16_file; see lib.JSONAttachment. Leave Icon16File nil when you set it.
	Icon16FileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"icon16_file"`
	Icon16Delete         *bool               `url:"icon16_delete,omitempty" json:"icon16_delete,omitempty" path:"icon16_delete"`
	Icon32File           io.Writer           `url:"icon32_file,omitempty" json:"icon32_file,omitempty" path:"icon32_file"`
	// Icon32FileAttachment sends file content as icon32_file; see lib.JSONAttachment. Leave Icon32File nil when you set it.
	Icon32FileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"icon32_file"`
	Icon32Delete         *bool               `url:"icon32_delete,omitempty" json:"icon32_delete,omitempty" path:"icon32_delete"`
	Icon48File           io.Writer           `url:"icon48_file,omitempty" json:"icon48_file,omitempty" path:"icon48_file"`
	// Icon48FileAttachment sends file content as icon48_file; see lib.JSONAttachment. Leave Icon48File nil when you set it.
	Icon48FileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"icon48_file"`
	Icon48Delete         *bool               `url:"icon48_delete,omitempty" json:"icon48_delete,omitempty" path:"icon48_delete"`
	Icon128File          io.Writer           `url:"icon128_file,omitempty" json:"icon128_file,omitempty" path:"icon128_file"`
	// Icon128FileAttachment sends file content as icon128_file; see lib.JSONAttachment. Leave Icon128File nil when you set it.
	Icon128FileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"icon128_file"`
	Icon128Delete         *bool               `url:"icon128_delete,omitempty" json:"icon128_delete,omitempty" path:"icon128_delete"`
	LogoFile              io.Writer           `url:"logo_file,omitempty" json:"logo_file,omitempty" path:"logo_file"`
	// LogoFileAttachment sends file content as logo_file; see lib.JSONAttachment. Leave LogoFile nil when you set it.
	LogoFileAttachment            *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"logo_file"`
	LogoDelete                    *bool               `url:"logo_delete,omitempty" json:"logo_delete,omitempty" path:"logo_delete"`
	BundleWatermarkAttachmentFile io.Writer           `` /* 138-byte string literal not displayed */
	// BundleWatermarkAttachmentFileAttachment sends file content as bundle_watermark_attachment_file; see lib.JSONAttachment. Leave BundleWatermarkAttachmentFile nil when you set it.
	BundleWatermarkAttachmentFileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"bundle_watermark_attachment_file"`
	BundleWatermarkAttachmentDelete         *bool               `` /* 144-byte string literal not displayed */
	LoginPageBackgroundImageFile            io.Writer           `` /* 138-byte string literal not displayed */
	// LoginPageBackgroundImageFileAttachment sends file content as login_page_background_image_file; see lib.JSONAttachment. Leave LoginPageBackgroundImageFile nil when you set it.
	LoginPageBackgroundImageFileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"login_page_background_image_file"`
	LoginPageBackgroundImageDelete         *bool               `` /* 144-byte string literal not displayed */
	Disable2faWithDelay                    *bool               `url:"disable_2fa_with_delay,omitempty" json:"disable_2fa_with_delay,omitempty" path:"disable_2fa_with_delay"`
	LdapPasswordChange                     string              `url:"ldap_password_change,omitempty" json:"ldap_password_change,omitempty" path:"ldap_password_change"`
	LdapPasswordChangeConfirmation         string              `` /* 141-byte string literal not displayed */
	RedirectOldSubdomain                   *bool               `url:"redirect_old_subdomain,omitempty" json:"redirect_old_subdomain,omitempty" path:"redirect_old_subdomain"`
	SmtpPassword                           string              `url:"smtp_password,omitempty" json:"smtp_password,omitempty" path:"smtp_password"`
}

SiteUpdateParams contains the request parameters for PATCH /site.

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"`
	WorkspaceId int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Paths       []string   `json:"paths,omitempty" path:"paths,omitempty" url:"paths,omitempty"`
}

Snapshot is a Files.com API resource.

func (Snapshot) Identifier ¶

func (s Snapshot) Identifier() interface{}

Identifier returns the resource ID.

func (*Snapshot) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SnapshotCollection ¶

type SnapshotCollection []Snapshot

SnapshotCollection is a list of Snapshot resources.

func (*SnapshotCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*SnapshotCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SnapshotCreateParams ¶

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

SnapshotCreateParams contains the request parameters for POST /snapshots.

type SnapshotDeleteParams ¶

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

SnapshotDeleteParams contains the request parameters for DELETE /snapshots/{id}.

type SnapshotFinalizeParams ¶ added in v3.1.52

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

SnapshotFinalizeParams contains the request parameters for POST /snapshots/{id}/finalize.

Finalize Snapshot

type SnapshotFindParams ¶

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

SnapshotFindParams contains the request parameters for GET /snapshots/{id}.

type SnapshotListParams ¶

type SnapshotListParams struct {
	ListParams
}

SnapshotListParams contains the request parameters for GET /snapshots.

type SnapshotUpdateParams ¶

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

SnapshotUpdateParams contains the request parameters for PATCH /snapshots/{id}.

type SsoEvent ¶ added in v3.3.111

type SsoEvent 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"`
	EventErrors   []string   `json:"event_errors,omitempty" path:"event_errors,omitempty" url:"event_errors,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"`
	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"`
	IdpUid        string     `json:"idp_uid,omitempty" path:"idp_uid,omitempty" url:"idp_uid,omitempty"`
	Provider      string     `json:"provider,omitempty" path:"provider,omitempty" url:"provider,omitempty"`
	ProviderLabel string     `json:"provider_label,omitempty" path:"provider_label,omitempty" url:"provider_label,omitempty"`
	Ip            string     `json:"ip,omitempty" path:"ip,omitempty" url:"ip,omitempty"`
	Region        string     `json:"region,omitempty" path:"region,omitempty" url:"region,omitempty"`
}

SsoEvent is a Files.com API resource.

func (SsoEvent) Identifier ¶ added in v3.3.111

func (s SsoEvent) Identifier() interface{}

Identifier returns the resource ID.

func (*SsoEvent) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SsoEventCollection ¶ added in v3.3.111

type SsoEventCollection []SsoEvent

SsoEventCollection is a list of SsoEvent resources.

func (*SsoEventCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*SsoEventCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SsoEventFindParams ¶ added in v3.3.111

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

SsoEventFindParams contains the request parameters for GET /sso_events/{id}.

type SsoEventListParams ¶ added in v3.3.111

type SsoEventListParams struct {
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

SsoEventListParams contains the request parameters for GET /sso_events.

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"`
	Enabled                          *bool  `json:"enabled,omitempty" path:"enabled,omitempty" url:"enabled,omitempty"`
	UserCount                        int64  `json:"user_count,omitempty" path:"user_count,omitempty" url:"user_count,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 */
	ProvisionReadonlySiteAdminGroups string `` /* 160-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"`
	ProvisionRequire2fa              string `json:"provision_require_2fa,omitempty" path:"provision_require_2fa,omitempty" url:"provision_require_2fa,omitempty"`
	ProvisionFilesystemLayout        string `` /* 133-byte string literal not displayed */
	ProviderIdentifier               string `json:"provider_identifier,omitempty" path:"provider_identifier,omitempty" url:"provider_identifier,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"`
	DisplayOnLoginPage               *bool  `json:"display_on_login_page,omitempty" path:"display_on_login_page,omitempty" url:"display_on_login_page,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"`
	LdapProvisioningEnabled          *bool  `` /* 127-byte string literal not displayed */
	LdapSecure                       *bool  `json:"ldap_secure,omitempty" path:"ldap_secure,omitempty" url:"ldap_secure,omitempty"`
	LdapServerCertificate            string `json:"ldap_server_certificate,omitempty" path:"ldap_server_certificate,omitempty" url:"ldap_server_certificate,omitempty"`
	LdapType                         string `json:"ldap_type,omitempty" path:"ldap_type,omitempty" url:"ldap_type,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"`
}

SsoStrategy is a Files.com API resource.

func (SsoStrategy) Identifier ¶

func (s SsoStrategy) Identifier() interface{}

Identifier returns the resource ID.

func (*SsoStrategy) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SsoStrategyCollection ¶

type SsoStrategyCollection []SsoStrategy

SsoStrategyCollection is a list of SsoStrategy resources.

func (*SsoStrategyCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*SsoStrategyCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SsoStrategyFindParams ¶

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

SsoStrategyFindParams contains the request parameters for GET /sso_strategies/{id}.

type SsoStrategyListParams ¶

type SsoStrategyListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

SsoStrategyListParams contains the request parameters for GET /sso_strategies.

type SsoStrategySyncParams ¶

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

SsoStrategySyncParams contains the request parameters for POST /sso_strategies/{id}/sync.

Synchronize provisioning data with the SSO remote server

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        []Errors `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"`
}

Status is a Files.com API resource.

func (*Status) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type StatusCollection ¶

type StatusCollection []Status

StatusCollection is a list of Status resources.

func (*StatusCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*StatusCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

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

Style is a Files.com API resource.

func (Style) Identifier ¶

func (s Style) Identifier() interface{}

Identifier returns the resource ID.

func (*Style) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type StyleCollection ¶

type StyleCollection []Style

StyleCollection is a list of Style resources.

func (*StyleCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*StyleCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type StyleDeleteParams ¶

type StyleDeleteParams struct {
	Path string `url:"-,omitempty" json:"-,omitempty" path:"path"`
}

StyleDeleteParams contains the request parameters for DELETE /styles/{path}.

type StyleFindParams ¶

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

StyleFindParams contains the request parameters for GET /styles/{path}.

type StyleUpdateParams ¶

type StyleUpdateParams struct {
	Path string    `url:"-,omitempty" json:"-,omitempty" path:"path"`
	File io.Writer `url:"file,omitempty" json:"file,omitempty" path:"file"`
	// FileAttachment sends file content as file; see lib.JSONAttachment. Leave File nil when you set it.
	FileAttachment *lib.JSONAttachment `json:"-" url:"-" path:"-" attachment:"file"`
	LogoClickHref  string              `url:"logo_click_href,omitempty" json:"logo_click_href,omitempty" path:"logo_click_href"`
}

StyleUpdateParams contains the request parameters for PATCH /styles/{path}.

type Sync ¶ added in v3.2.177

type Sync struct {
	Id                     int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name                   string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	Description            string     `json:"description,omitempty" path:"description,omitempty" url:"description,omitempty"`
	SiteId                 int64      `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	WorkspaceId            int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	UserId                 int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	SrcPath                string     `json:"src_path,omitempty" path:"src_path,omitempty" url:"src_path,omitempty"`
	DestPath               string     `json:"dest_path,omitempty" path:"dest_path,omitempty" url:"dest_path,omitempty"`
	SrcRemoteServerId      int64      `json:"src_remote_server_id,omitempty" path:"src_remote_server_id,omitempty" url:"src_remote_server_id,omitempty"`
	DestRemoteServerId     int64      `json:"dest_remote_server_id,omitempty" path:"dest_remote_server_id,omitempty" url:"dest_remote_server_id,omitempty"`
	SrcSiteId              int64      `json:"src_site_id,omitempty" path:"src_site_id,omitempty" url:"src_site_id,omitempty"`
	DestSiteId             int64      `json:"dest_site_id,omitempty" path:"dest_site_id,omitempty" url:"dest_site_id,omitempty"`
	TwoWay                 *bool      `json:"two_way,omitempty" path:"two_way,omitempty" url:"two_way,omitempty"`
	KeepAfterCopy          *bool      `json:"keep_after_copy,omitempty" path:"keep_after_copy,omitempty" url:"keep_after_copy,omitempty"`
	DeleteEmptyFolders     *bool      `json:"delete_empty_folders,omitempty" path:"delete_empty_folders,omitempty" url:"delete_empty_folders,omitempty"`
	Disabled               *bool      `json:"disabled,omitempty" path:"disabled,omitempty" url:"disabled,omitempty"`
	Trigger                string     `json:"trigger,omitempty" path:"trigger,omitempty" url:"trigger,omitempty"`
	TriggerFile            string     `json:"trigger_file,omitempty" path:"trigger_file,omitempty" url:"trigger_file,omitempty"`
	AlwaysWriteTriggerFile *bool      `` /* 127-byte string literal not displayed */
	IncludePatterns        []string   `json:"include_patterns,omitempty" path:"include_patterns,omitempty" url:"include_patterns,omitempty"`
	ExcludePatterns        []string   `json:"exclude_patterns,omitempty" path:"exclude_patterns,omitempty" url:"exclude_patterns,omitempty"`
	CreatedAt              *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
	UpdatedAt              *time.Time `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
	SyncIntervalMinutes    int64      `json:"sync_interval_minutes,omitempty" path:"sync_interval_minutes,omitempty" url:"sync_interval_minutes,omitempty"`
	Interval               string     `json:"interval,omitempty" path:"interval,omitempty" url:"interval,omitempty"`
	RecurringDay           int64      `json:"recurring_day,omitempty" path:"recurring_day,omitempty" url:"recurring_day,omitempty"`
	RecurringDays          []int64    `json:"recurring_days,omitempty" path:"recurring_days,omitempty" url:"recurring_days,omitempty"`
	ScheduleId             int64      `json:"schedule_id,omitempty" path:"schedule_id,omitempty" url:"schedule_id,omitempty"`
	ScheduleDaysOfWeek     []int64    `json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week,omitempty" url:"schedule_days_of_week,omitempty"`
	ScheduleTimesOfDay     []string   `json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day,omitempty" url:"schedule_times_of_day,omitempty"`
	ScheduleTimeZone       string     `json:"schedule_time_zone,omitempty" path:"schedule_time_zone,omitempty" url:"schedule_time_zone,omitempty"`
	HolidayRegion          string     `json:"holiday_region,omitempty" path:"holiday_region,omitempty" url:"holiday_region,omitempty"`
	LatestSyncRun          SyncRun    `json:"latest_sync_run,omitempty" path:"latest_sync_run,omitempty" url:"latest_sync_run,omitempty"`
}

Sync is a Files.com API resource.

func (Sync) Identifier ¶ added in v3.2.177

func (s Sync) Identifier() interface{}

Identifier returns the resource ID.

func (*Sync) UnmarshalJSON ¶ added in v3.2.177

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SyncCollection ¶ added in v3.2.177

type SyncCollection []Sync

SyncCollection is a list of Sync resources.

func (*SyncCollection) ToSlice ¶ added in v3.2.177

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

ToSlice returns a new slice containing the resources as interface values.

func (*SyncCollection) UnmarshalJSON ¶ added in v3.2.177

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SyncCreateParams ¶ added in v3.2.177

type SyncCreateParams struct {
	DeleteEmptyFolders     *bool           `url:"delete_empty_folders,omitempty" json:"delete_empty_folders,omitempty" path:"delete_empty_folders"`
	Description            string          `url:"description,omitempty" json:"description,omitempty" path:"description"`
	DestPath               string          `url:"dest_path,omitempty" json:"dest_path,omitempty" path:"dest_path"`
	DestRemoteServerId     int64           `url:"dest_remote_server_id,omitempty" json:"dest_remote_server_id,omitempty" path:"dest_remote_server_id"`
	Disabled               *bool           `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	ExcludePatterns        []string        `url:"exclude_patterns,omitempty" json:"exclude_patterns,omitempty" path:"exclude_patterns"`
	HolidayRegion          string          `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
	IncludePatterns        []string        `url:"include_patterns,omitempty" json:"include_patterns,omitempty" path:"include_patterns"`
	Interval               string          `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	KeepAfterCopy          *bool           `url:"keep_after_copy,omitempty" json:"keep_after_copy,omitempty" path:"keep_after_copy"`
	Name                   string          `url:"name,omitempty" json:"name,omitempty" path:"name"`
	RecurringDay           int64           `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays          []int64         `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	ScheduleId             int64           `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek     []int64         `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimeZone       string          `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	ScheduleTimesOfDay     []string        `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	SrcPath                string          `url:"src_path,omitempty" json:"src_path,omitempty" path:"src_path"`
	SrcRemoteServerId      int64           `url:"src_remote_server_id,omitempty" json:"src_remote_server_id,omitempty" path:"src_remote_server_id"`
	SyncIntervalMinutes    int64           `url:"sync_interval_minutes,omitempty" json:"sync_interval_minutes,omitempty" path:"sync_interval_minutes"`
	Trigger                SyncTriggerEnum `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	TriggerFile            string          `url:"trigger_file,omitempty" json:"trigger_file,omitempty" path:"trigger_file"`
	AlwaysWriteTriggerFile *bool           `url:"always_write_trigger_file,omitempty" json:"always_write_trigger_file,omitempty" path:"always_write_trigger_file"`
	WorkspaceId            int64           `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

SyncCreateParams contains the request parameters for POST /syncs.

type SyncDeleteParams ¶ added in v3.2.177

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

SyncDeleteParams contains the request parameters for DELETE /syncs/{id}.

type SyncDryRunParams ¶ added in v3.2.212

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

SyncDryRunParams contains the request parameters for POST /syncs/{id}/dry_run.

Dry Run Sync

type SyncFindParams ¶ added in v3.2.177

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

SyncFindParams contains the request parameters for GET /syncs/{id}.

type SyncListParams ¶ added in v3.2.177

type SyncListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

SyncListParams contains the request parameters for GET /syncs.

type SyncLog ¶ added in v3.1.48

type SyncLog struct {
	Timestamp       *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	SyncId          int64      `json:"sync_id,omitempty" path:"sync_id,omitempty" url:"sync_id,omitempty"`
	ExternalEventId int64      `json:"external_event_id,omitempty" path:"external_event_id,omitempty" url:"external_event_id,omitempty"`
	SyncRunId       int64      `json:"sync_run_id,omitempty" path:"sync_run_id,omitempty" url:"sync_run_id,omitempty"`
	ErrorType       string     `json:"error_type,omitempty" path:"error_type,omitempty" url:"error_type,omitempty"`
	Message         string     `json:"message,omitempty" path:"message,omitempty" url:"message,omitempty"`
	Operation       string     `json:"operation,omitempty" path:"operation,omitempty" url:"operation,omitempty"`
	Path            string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	Size            int64      `json:"size,omitempty" path:"size,omitempty" url:"size,omitempty"`
	FileType        string     `json:"file_type,omitempty" path:"file_type,omitempty" url:"file_type,omitempty"`
	Status          string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	CreatedAt       *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

SyncLog is a Files.com API resource.

func (SyncLog) Identifier ¶ added in v3.1.48

func (s SyncLog) Identifier() interface{}

Identifier returns the resource path.

func (*SyncLog) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SyncLogCollection ¶ added in v3.1.48

type SyncLogCollection []SyncLog

SyncLogCollection is a list of SyncLog resources.

func (*SyncLogCollection) ToSlice ¶ added in v3.1.48

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

ToSlice returns a new slice containing the resources as interface values.

func (*SyncLogCollection) UnmarshalJSON ¶ added in v3.1.48

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SyncLogListParams ¶ added in v3.1.48

type SyncLogListParams struct {
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

SyncLogListParams contains the request parameters for GET /sync_logs.

type SyncManualRunParams ¶ added in v3.2.179

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

SyncManualRunParams contains the request parameters for POST /syncs/{id}/manual_run.

Manually Run Sync

type SyncRun ¶ added in v3.2.177

type SyncRun struct {
	Id                   int64                 `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Body                 string                `json:"body,omitempty" path:"body,omitempty" url:"body,omitempty"`
	BytesSynced          int64                 `json:"bytes_synced,omitempty" path:"bytes_synced,omitempty" url:"bytes_synced,omitempty"`
	ComparedFiles        int64                 `json:"compared_files,omitempty" path:"compared_files,omitempty" url:"compared_files,omitempty"`
	ComparedFolders      int64                 `json:"compared_folders,omitempty" path:"compared_folders,omitempty" url:"compared_folders,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"`
	DestRemoteServerType string                `json:"dest_remote_server_type,omitempty" path:"dest_remote_server_type,omitempty" url:"dest_remote_server_type,omitempty"`
	DryRun               *bool                 `json:"dry_run,omitempty" path:"dry_run,omitempty" url:"dry_run,omitempty"`
	ErroredFiles         int64                 `json:"errored_files,omitempty" path:"errored_files,omitempty" url:"errored_files,omitempty"`
	EstimatedBytesCount  int64                 `json:"estimated_bytes_count,omitempty" path:"estimated_bytes_count,omitempty" url:"estimated_bytes_count,omitempty"`
	EventErrors          []string              `json:"event_errors,omitempty" path:"event_errors,omitempty" url:"event_errors,omitempty"`
	LogUrl               string                `json:"log_url,omitempty" path:"log_url,omitempty" url:"log_url,omitempty"`
	Runtime              float64               `json:"runtime,omitempty" path:"runtime,omitempty" url:"runtime,omitempty"`
	SiteId               int64                 `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	WorkspaceId          int64                 `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	SrcRemoteServerType  string                `json:"src_remote_server_type,omitempty" path:"src_remote_server_type,omitempty" url:"src_remote_server_type,omitempty"`
	Status               string                `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	SuccessfulFiles      int64                 `json:"successful_files,omitempty" path:"successful_files,omitempty" url:"successful_files,omitempty"`
	SyncId               int64                 `json:"sync_id,omitempty" path:"sync_id,omitempty" url:"sync_id,omitempty"`
	SyncName             string                `json:"sync_name,omitempty" path:"sync_name,omitempty" url:"sync_name,omitempty"`
	UpdatedAt            *time.Time            `json:"updated_at,omitempty" path:"updated_at,omitempty" url:"updated_at,omitempty"`
	LiveTransfers        []SyncRunLiveTransfer `json:"live_transfers,omitempty" path:"live_transfers,omitempty" url:"live_transfers,omitempty"`
}

SyncRun is a Files.com API resource.

func (SyncRun) Identifier ¶ added in v3.2.177

func (s SyncRun) Identifier() interface{}

Identifier returns the resource ID.

func (*SyncRun) UnmarshalJSON ¶ added in v3.2.177

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SyncRunCollection ¶ added in v3.2.177

type SyncRunCollection []SyncRun

SyncRunCollection is a list of SyncRun resources.

func (*SyncRunCollection) ToSlice ¶ added in v3.2.177

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

ToSlice returns a new slice containing the resources as interface values.

func (*SyncRunCollection) UnmarshalJSON ¶ added in v3.2.177

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SyncRunFindParams ¶ added in v3.2.177

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

SyncRunFindParams contains the request parameters for GET /sync_runs/{id}.

type SyncRunListParams ¶ added in v3.2.177

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

SyncRunListParams contains the request parameters for GET /sync_runs.

type SyncRunLiveTransfer ¶ added in v3.3.83

type SyncRunLiveTransfer struct {
	Path        string  `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	Status      string  `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	BytesCopied int64   `json:"bytes_copied,omitempty" path:"bytes_copied,omitempty" url:"bytes_copied,omitempty"`
	BytesTotal  int64   `json:"bytes_total,omitempty" path:"bytes_total,omitempty" url:"bytes_total,omitempty"`
	Percentage  float64 `json:"percentage,omitempty" path:"percentage,omitempty" url:"percentage,omitempty"`
	Eta         string  `json:"eta,omitempty" path:"eta,omitempty" url:"eta,omitempty"`
	StartedAt   string  `json:"started_at,omitempty" path:"started_at,omitempty" url:"started_at,omitempty"`
}

SyncRunLiveTransfer is a Files.com API resource.

func (SyncRunLiveTransfer) Identifier ¶ added in v3.3.83

func (s SyncRunLiveTransfer) Identifier() interface{}

Identifier returns the resource path.

func (*SyncRunLiveTransfer) UnmarshalJSON ¶ added in v3.3.83

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type SyncRunLiveTransferCollection ¶ added in v3.3.83

type SyncRunLiveTransferCollection []SyncRunLiveTransfer

SyncRunLiveTransferCollection is a list of SyncRunLiveTransfer resources.

func (*SyncRunLiveTransferCollection) ToSlice ¶ added in v3.3.83

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

ToSlice returns a new slice containing the resources as interface values.

func (*SyncRunLiveTransferCollection) UnmarshalJSON ¶ added in v3.3.83

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type SyncTriggerEnum ¶ added in v3.3.74

type SyncTriggerEnum string

SyncTriggerEnum is a string value for trigger. Enum lists the values documented by the API.

func (SyncTriggerEnum) Enum ¶ added in v3.3.74

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

Enum returns the documented values keyed by their API strings.

func (SyncTriggerEnum) String ¶ added in v3.3.74

func (u SyncTriggerEnum) String() string

String returns the API parameter value.

type SyncUpdateParams ¶ added in v3.2.177

type SyncUpdateParams struct {
	Id                     int64           `url:"-,omitempty" json:"-,omitempty" path:"id"`
	DeleteEmptyFolders     *bool           `url:"delete_empty_folders,omitempty" json:"delete_empty_folders,omitempty" path:"delete_empty_folders"`
	Description            string          `url:"description,omitempty" json:"description,omitempty" path:"description"`
	DestPath               string          `url:"dest_path,omitempty" json:"dest_path,omitempty" path:"dest_path"`
	DestRemoteServerId     int64           `url:"dest_remote_server_id,omitempty" json:"dest_remote_server_id,omitempty" path:"dest_remote_server_id"`
	Disabled               *bool           `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	ExcludePatterns        []string        `url:"exclude_patterns,omitempty" json:"exclude_patterns,omitempty" path:"exclude_patterns"`
	HolidayRegion          string          `url:"holiday_region,omitempty" json:"holiday_region,omitempty" path:"holiday_region"`
	IncludePatterns        []string        `url:"include_patterns,omitempty" json:"include_patterns,omitempty" path:"include_patterns"`
	Interval               string          `url:"interval,omitempty" json:"interval,omitempty" path:"interval"`
	KeepAfterCopy          *bool           `url:"keep_after_copy,omitempty" json:"keep_after_copy,omitempty" path:"keep_after_copy"`
	Name                   string          `url:"name,omitempty" json:"name,omitempty" path:"name"`
	RecurringDay           int64           `url:"recurring_day,omitempty" json:"recurring_day,omitempty" path:"recurring_day"`
	RecurringDays          []int64         `url:"recurring_days,omitempty" json:"recurring_days,omitempty" path:"recurring_days"`
	ScheduleId             int64           `url:"schedule_id,omitempty" json:"schedule_id,omitempty" path:"schedule_id"`
	ScheduleDaysOfWeek     []int64         `url:"schedule_days_of_week,omitempty" json:"schedule_days_of_week,omitempty" path:"schedule_days_of_week"`
	ScheduleTimeZone       string          `url:"schedule_time_zone,omitempty" json:"schedule_time_zone,omitempty" path:"schedule_time_zone"`
	ScheduleTimesOfDay     []string        `url:"schedule_times_of_day,omitempty" json:"schedule_times_of_day,omitempty" path:"schedule_times_of_day"`
	SrcPath                string          `url:"src_path,omitempty" json:"src_path,omitempty" path:"src_path"`
	SrcRemoteServerId      int64           `url:"src_remote_server_id,omitempty" json:"src_remote_server_id,omitempty" path:"src_remote_server_id"`
	SyncIntervalMinutes    int64           `url:"sync_interval_minutes,omitempty" json:"sync_interval_minutes,omitempty" path:"sync_interval_minutes"`
	Trigger                SyncTriggerEnum `url:"trigger,omitempty" json:"trigger,omitempty" path:"trigger"`
	TriggerFile            string          `url:"trigger_file,omitempty" json:"trigger_file,omitempty" path:"trigger_file"`
	AlwaysWriteTriggerFile *bool           `url:"always_write_trigger_file,omitempty" json:"always_write_trigger_file,omitempty" path:"always_write_trigger_file"`
}

SyncUpdateParams contains the request parameters for PATCH /syncs/{id}.

type TypedIterI ¶

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

TypedIterI adds typed resource access to an iterator.

type U2fSignRequests ¶

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

U2fSignRequests contains a U2F challenge and signing request.

type UsageByTopLevelDir ¶ added in v3.2.138

type UsageByTopLevelDir struct {
	Dir   string `json:"dir,omitempty" path:"dir,omitempty" url:"dir,omitempty"`
	Size  int64  `json:"size,omitempty" path:"size,omitempty" url:"size,omitempty"`
	Count int64  `json:"count,omitempty" path:"count,omitempty" url:"count,omitempty"`
}

UsageByTopLevelDir is a Files.com API resource.

func (*UsageByTopLevelDir) UnmarshalJSON ¶ added in v3.2.138

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UsageByTopLevelDirCollection ¶ added in v3.2.138

type UsageByTopLevelDirCollection []UsageByTopLevelDir

UsageByTopLevelDirCollection is a list of UsageByTopLevelDir resources.

func (*UsageByTopLevelDirCollection) ToSlice ¶ added in v3.2.138

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

ToSlice returns a new slice containing the resources as interface values.

func (*UsageByTopLevelDirCollection) UnmarshalJSON ¶ added in v3.2.138

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UsageDailySnapshot ¶

type UsageDailySnapshot struct {
	Id                           int64                `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Date                         *calendar.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"`
	TransformationCreditsUsage   int64                `` /* 136-byte string literal not displayed */
	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           []UsageByTopLevelDir `json:"usage_by_top_level_dir,omitempty" path:"usage_by_top_level_dir,omitempty" url:"usage_by_top_level_dir,omitempty"`
}

UsageDailySnapshot is a Files.com API resource.

func (UsageDailySnapshot) Identifier ¶

func (u UsageDailySnapshot) Identifier() interface{}

Identifier returns the resource ID.

func (*UsageDailySnapshot) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UsageDailySnapshotCollection ¶

type UsageDailySnapshotCollection []UsageDailySnapshot

UsageDailySnapshotCollection is a list of UsageDailySnapshot resources.

func (*UsageDailySnapshotCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*UsageDailySnapshotCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UsageDailySnapshotListParams ¶

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

UsageDailySnapshotListParams contains the request parameters for GET /usage_daily_snapshots.

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           int64                `json:"high_water_user_count,omitempty" path:"high_water_user_count,omitempty" url:"high_water_user_count,omitempty"`
	TransformationCreditsUsage   int64                `` /* 136-byte string literal not displayed */
	CurrentStorage               int64                `json:"current_storage,omitempty" path:"current_storage,omitempty" url:"current_storage,omitempty"`
	HighWaterStorage             int64                `json:"high_water_storage,omitempty" path:"high_water_storage,omitempty" url:"high_water_storage,omitempty"`
	RootStorage                  int64                `json:"root_storage,omitempty" path:"root_storage,omitempty" url:"root_storage,omitempty"`
	DeletedFilesCountedInMinimum int64                `` /* 148-byte string literal not displayed */
	DeletedFilesStorage          int64                `json:"deleted_files_storage,omitempty" path:"deleted_files_storage,omitempty" url:"deleted_files_storage,omitempty"`
	TotalBillableUsage           int64                `json:"total_billable_usage,omitempty" path:"total_billable_usage,omitempty" url:"total_billable_usage,omitempty"`
	TotalBillableTransferUsage   int64                `` /* 139-byte string literal not displayed */
	BytesSent                    int64                `json:"bytes_sent,omitempty" path:"bytes_sent,omitempty" url:"bytes_sent,omitempty"`
	SyncBytesReceived            int64                `json:"sync_bytes_received,omitempty" path:"sync_bytes_received,omitempty" url:"sync_bytes_received,omitempty"`
	SyncBytesSent                int64                `json:"sync_bytes_sent,omitempty" path:"sync_bytes_sent,omitempty" url:"sync_bytes_sent,omitempty"`
	UsageByTopLevelDir           []UsageByTopLevelDir `json:"usage_by_top_level_dir,omitempty" path:"usage_by_top_level_dir,omitempty" url:"usage_by_top_level_dir,omitempty"`
}

UsageSnapshot is a Files.com API resource.

func (UsageSnapshot) Identifier ¶

func (u UsageSnapshot) Identifier() interface{}

Identifier returns the resource ID.

func (*UsageSnapshot) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UsageSnapshotCollection ¶

type UsageSnapshotCollection []UsageSnapshot

UsageSnapshotCollection is a list of UsageSnapshot resources.

func (*UsageSnapshotCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*UsageSnapshotCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UsageSnapshotListParams ¶

type UsageSnapshotListParams struct {
	ListParams
}

UsageSnapshotListParams contains the request parameters for GET /usage_snapshots.

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"`
	Billable                               *bool      `json:"billable,omitempty" path:"billable,omitempty" url:"billable,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"`
	BypassUserLifecycleRules               *bool      `` /* 133-byte string literal not displayed */
	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"`
	DisabledExpiredOrInactive              *bool      `` /* 136-byte string literal not displayed */
	AiAssistantPersonalityId               int64      `` /* 133-byte string literal not displayed */
	DesktopConfigurationProfileId          int64      `` /* 148-byte string literal not displayed */
	IntegrationCentricProfileId            int64      `` /* 142-byte string literal not displayed */
	Email                                  string     `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	FilesystemLayout                       string     `json:"filesystem_layout,omitempty" path:"filesystem_layout,omitempty" url:"filesystem_layout,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 */
	PartnerAdmin                           *bool      `json:"partner_admin,omitempty" path:"partner_admin,omitempty" url:"partner_admin,omitempty"`
	PartnerId                              int64      `json:"partner_id,omitempty" path:"partner_id,omitempty" url:"partner_id,omitempty"`
	PartnerName                            string     `json:"partner_name,omitempty" path:"partner_name,omitempty" url:"partner_name,omitempty"`
	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"`
	PrimaryGroupId                         int64      `json:"primary_group_id,omitempty" path:"primary_group_id,omitempty" url:"primary_group_id,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"`
	NotifyOnAllSiteWarnings                *bool      `` /* 133-byte string literal not displayed */
	NotifyOnAllSsoFailures                 *bool      `` /* 130-byte string literal not displayed */
	NotifyOnAllUserSecurityEvents          *bool      `` /* 154-byte string literal not displayed */
	NotifyOnAllPendingWorkFailures         *bool      `` /* 157-byte string literal not displayed */
	NotifyOnAllSiemHttpDestinationFailures *bool      `` /* 184-byte string literal not displayed */
	NotifyOnAllSyncFailures                *bool      `` /* 133-byte string literal not displayed */
	NotifyOnAllAutomationFailures          *bool      `` /* 151-byte string literal not displayed */
	NotifyOnAllExpectationFailures         *bool      `` /* 154-byte string literal not displayed */
	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"`
	ResponsibleGroupId                     int64      `json:"responsible_group_id,omitempty" path:"responsible_group_id,omitempty" url:"responsible_group_id,omitempty"`
	ResponsibleUserId                      int64      `json:"responsible_user_id,omitempty" path:"responsible_user_id,omitempty" url:"responsible_user_id,omitempty"`
	ReadonlySiteAdmin                      *bool      `json:"readonly_site_admin,omitempty" path:"readonly_site_admin,omitempty" url:"readonly_site_admin,omitempty"`
	RestapiPermission                      *bool      `json:"restapi_permission,omitempty" path:"restapi_permission,omitempty" url:"restapi_permission,omitempty"`
	S3CompatibleEndpointPermission         *bool      `` /* 151-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"`
	WorkspaceAdmin                         *bool      `json:"workspace_admin,omitempty" path:"workspace_admin,omitempty" url:"workspace_admin,omitempty"`
	SiteId                                 int64      `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	WorkspaceId                            int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	DefaultWorkspaceId                     int64      `json:"default_workspace_id,omitempty" path:"default_workspace_id,omitempty" url:"default_workspace_id,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"`
	Tags                                   string     `json:"tags,omitempty" path:"tags,omitempty" url:"tags,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"`
	TypeOf2faForDisplay                    string     `json:"type_of_2fa_for_display,omitempty" path:"type_of_2fa_for_display,omitempty" url:"type_of_2fa_for_display,omitempty"`
	UserRoot                               string     `json:"user_root,omitempty" path:"user_root,omitempty" url:"user_root,omitempty"`
	UserHome                               string     `json:"user_home,omitempty" path:"user_home,omitempty" url:"user_home,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"`
	Clear2fa                               *bool      `json:"clear_2fa,omitempty" path:"clear_2fa,omitempty" url:"clear_2fa,omitempty"`
	ConvertToPartnerUser                   *bool      `json:"convert_to_partner_user,omitempty" path:"convert_to_partner_user,omitempty" url:"convert_to_partner_user,omitempty"`
}

User is a Files.com API resource.

func (User) Identifier ¶

func (u User) Identifier() interface{}

Identifier returns the resource ID.

func (*User) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UserAdditionalEmailRecipient ¶ added in v3.3.198

type UserAdditionalEmailRecipient struct {
	Id          int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	UserId      int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
	WorkspaceId int64      `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	Email       string     `json:"email,omitempty" path:"email,omitempty" url:"email,omitempty"`
	CreatedAt   *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

UserAdditionalEmailRecipient is a Files.com API resource.

func (UserAdditionalEmailRecipient) Identifier ¶ added in v3.3.198

func (u UserAdditionalEmailRecipient) Identifier() interface{}

Identifier returns the resource ID.

func (*UserAdditionalEmailRecipient) UnmarshalJSON ¶ added in v3.3.198

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UserAdditionalEmailRecipientCollection ¶ added in v3.3.198

type UserAdditionalEmailRecipientCollection []UserAdditionalEmailRecipient

UserAdditionalEmailRecipientCollection is a list of UserAdditionalEmailRecipient resources.

func (*UserAdditionalEmailRecipientCollection) ToSlice ¶ added in v3.3.198

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

ToSlice returns a new slice containing the resources as interface values.

func (*UserAdditionalEmailRecipientCollection) UnmarshalJSON ¶ added in v3.3.198

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UserAdditionalEmailRecipientCreateParams ¶ added in v3.3.198

type UserAdditionalEmailRecipientCreateParams struct {
	UserId int64  `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	Email  string `url:"email" json:"email" path:"email"`
}

UserAdditionalEmailRecipientCreateParams contains the request parameters for POST /user_additional_email_recipients.

type UserAdditionalEmailRecipientDeleteParams ¶ added in v3.3.198

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

UserAdditionalEmailRecipientDeleteParams contains the request parameters for DELETE /user_additional_email_recipients/{id}.

type UserAdditionalEmailRecipientFindParams ¶ added in v3.3.198

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

UserAdditionalEmailRecipientFindParams contains the request parameters for GET /user_additional_email_recipients/{id}.

type UserAdditionalEmailRecipientListParams ¶ added in v3.3.198

type UserAdditionalEmailRecipientListParams struct {
	UserId       int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

UserAdditionalEmailRecipientListParams contains the request parameters for GET /user_additional_email_recipients.

type UserAdditionalEmailRecipientUpdateParams ¶ added in v3.3.198

type UserAdditionalEmailRecipientUpdateParams struct {
	Id    int64  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Email string `url:"email,omitempty" json:"email,omitempty" path:"email"`
}

UserAdditionalEmailRecipientUpdateParams contains the request parameters for PATCH /user_additional_email_recipients/{id}.

type UserAuthenticationMethodEnum ¶

type UserAuthenticationMethodEnum string

UserAuthenticationMethodEnum is a string value for authentication_method. Enum lists the values documented by the API.

func (UserAuthenticationMethodEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (UserAuthenticationMethodEnum) String ¶

String returns the API parameter value.

type UserCipherUse ¶

type UserCipherUse struct {
	Id             int64      `json:"id,omitempty" path:"id,omitempty" url:"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"`
	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"`
	Insecure       *bool      `json:"insecure,omitempty" path:"insecure,omitempty" url:"insecure,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"`
}

UserCipherUse is a Files.com API resource.

func (UserCipherUse) Identifier ¶

func (u UserCipherUse) Identifier() interface{}

Identifier returns the resource ID.

func (*UserCipherUse) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UserCipherUseCollection ¶

type UserCipherUseCollection []UserCipherUse

UserCipherUseCollection is a list of UserCipherUse resources.

func (*UserCipherUseCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*UserCipherUseCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UserCipherUseListParams ¶

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

UserCipherUseListParams contains the request parameters for GET /user_cipher_uses.

type UserCollection ¶

type UserCollection []User

UserCollection is a list of User resources.

func (*UserCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*UserCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UserCreateParams ¶

type UserCreateParams struct {
	AvatarFile io.Writer `url:"avatar_file,omitempty" json:"avatar_file,omitempty" path:"avatar_file"`
	// AvatarFileAttachment sends file content as avatar_file; see lib.JSONAttachment. Leave AvatarFile nil when you set it.
	AvatarFileAttachment                   *lib.JSONAttachment          `json:"-" url:"-" path:"-" attachment:"avatar_file"`
	AvatarDelete                           *bool                        `url:"avatar_delete,omitempty" json:"avatar_delete,omitempty" path:"avatar_delete"`
	ChangePassword                         string                       `url:"change_password,omitempty" json:"change_password,omitempty" path:"change_password"`
	ChangePasswordConfirmation             string                       `` /* 126-byte string literal not displayed */
	Email                                  string                       `url:"email,omitempty" json:"email,omitempty" path:"email"`
	GrantPermission                        string                       `url:"grant_permission,omitempty" json:"grant_permission,omitempty" path:"grant_permission"`
	GroupId                                int64                        `url:"group_id,omitempty" json:"group_id,omitempty" path:"group_id"`
	GroupIds                               string                       `url:"group_ids,omitempty" json:"group_ids,omitempty" path:"group_ids"`
	ImportedPasswordHash                   string                       `url:"imported_password_hash,omitempty" json:"imported_password_hash,omitempty" path:"imported_password_hash"`
	Password                               string                       `url:"password,omitempty" json:"password,omitempty" path:"password"`
	PasswordConfirmation                   string                       `url:"password_confirmation,omitempty" json:"password_confirmation,omitempty" path:"password_confirmation"`
	AnnouncementsRead                      *bool                        `url:"announcements_read,omitempty" json:"announcements_read,omitempty" path:"announcements_read"`
	AiAssistantPersonalityId               int64                        `url:"ai_assistant_personality_id,omitempty" json:"ai_assistant_personality_id,omitempty" path:"ai_assistant_personality_id"`
	AllowedIps                             string                       `url:"allowed_ips,omitempty" json:"allowed_ips,omitempty" path:"allowed_ips"`
	AttachmentsPermission                  *bool                        `url:"attachments_permission,omitempty" json:"attachments_permission,omitempty" path:"attachments_permission"`
	AuthenticateUntil                      *time.Time                   `url:"authenticate_until,omitempty" json:"authenticate_until,omitempty" path:"authenticate_until"`
	AuthenticationMethod                   UserAuthenticationMethodEnum `url:"authentication_method,omitempty" json:"authentication_method,omitempty" path:"authentication_method"`
	BillingPermission                      *bool                        `url:"billing_permission,omitempty" json:"billing_permission,omitempty" path:"billing_permission"`
	BypassUserLifecycleRules               *bool                        `url:"bypass_user_lifecycle_rules,omitempty" json:"bypass_user_lifecycle_rules,omitempty" path:"bypass_user_lifecycle_rules"`
	BypassSiteAllowedIps                   *bool                        `url:"bypass_site_allowed_ips,omitempty" json:"bypass_site_allowed_ips,omitempty" path:"bypass_site_allowed_ips"`
	DavPermission                          *bool                        `url:"dav_permission,omitempty" json:"dav_permission,omitempty" path:"dav_permission"`
	DesktopConfigurationProfileId          int64                        `` /* 138-byte string literal not displayed */
	DefaultWorkspaceId                     int64                        `url:"default_workspace_id,omitempty" json:"default_workspace_id,omitempty" path:"default_workspace_id"`
	Disabled                               *bool                        `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	FilesystemLayout                       UserFilesystemLayoutEnum     `url:"filesystem_layout,omitempty" json:"filesystem_layout,omitempty" path:"filesystem_layout"`
	FtpPermission                          *bool                        `url:"ftp_permission,omitempty" json:"ftp_permission,omitempty" path:"ftp_permission"`
	HeaderText                             string                       `url:"header_text,omitempty" json:"header_text,omitempty" path:"header_text"`
	IntegrationCentricProfileId            int64                        `` /* 132-byte string literal not displayed */
	Language                               string                       `url:"language,omitempty" json:"language,omitempty" path:"language"`
	NotificationDailySendTime              int64                        `` /* 126-byte string literal not displayed */
	Name                                   string                       `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Company                                string                       `url:"company,omitempty" json:"company,omitempty" path:"company"`
	Notes                                  string                       `url:"notes,omitempty" json:"notes,omitempty" path:"notes"`
	OfficeIntegrationEnabled               *bool                        `url:"office_integration_enabled,omitempty" json:"office_integration_enabled,omitempty" path:"office_integration_enabled"`
	PartnerAdmin                           *bool                        `url:"partner_admin,omitempty" json:"partner_admin,omitempty" path:"partner_admin"`
	PartnerId                              int64                        `url:"partner_id,omitempty" json:"partner_id,omitempty" path:"partner_id"`
	PasswordValidityDays                   int64                        `url:"password_validity_days,omitempty" json:"password_validity_days,omitempty" path:"password_validity_days"`
	PrimaryGroupId                         int64                        `url:"primary_group_id,omitempty" json:"primary_group_id,omitempty" path:"primary_group_id"`
	ReadonlySiteAdmin                      *bool                        `url:"readonly_site_admin,omitempty" json:"readonly_site_admin,omitempty" path:"readonly_site_admin"`
	ReceiveAdminAlerts                     *bool                        `url:"receive_admin_alerts,omitempty" json:"receive_admin_alerts,omitempty" path:"receive_admin_alerts"`
	NotifyOnAllSiteWarnings                *bool                        `url:"notify_on_all_site_warnings,omitempty" json:"notify_on_all_site_warnings,omitempty" path:"notify_on_all_site_warnings"`
	NotifyOnAllSsoFailures                 *bool                        `url:"notify_on_all_sso_failures,omitempty" json:"notify_on_all_sso_failures,omitempty" path:"notify_on_all_sso_failures"`
	NotifyOnAllUserSecurityEvents          *bool                        `` /* 144-byte string literal not displayed */
	NotifyOnAllPendingWorkFailures         *bool                        `` /* 147-byte string literal not displayed */
	NotifyOnAllSiemHttpDestinationFailures *bool                        `` /* 174-byte string literal not displayed */
	NotifyOnAllSyncFailures                *bool                        `url:"notify_on_all_sync_failures,omitempty" json:"notify_on_all_sync_failures,omitempty" path:"notify_on_all_sync_failures"`
	NotifyOnAllAutomationFailures          *bool                        `` /* 141-byte string literal not displayed */
	NotifyOnAllExpectationFailures         *bool                        `` /* 144-byte string literal not displayed */
	RequireLoginBy                         *time.Time                   `url:"require_login_by,omitempty" json:"require_login_by,omitempty" path:"require_login_by"`
	RequirePasswordChange                  *bool                        `url:"require_password_change,omitempty" json:"require_password_change,omitempty" path:"require_password_change"`
	ResponsibleGroupId                     int64                        `url:"responsible_group_id,omitempty" json:"responsible_group_id,omitempty" path:"responsible_group_id"`
	ResponsibleUserId                      int64                        `url:"responsible_user_id,omitempty" json:"responsible_user_id,omitempty" path:"responsible_user_id"`
	RestapiPermission                      *bool                        `url:"restapi_permission,omitempty" json:"restapi_permission,omitempty" path:"restapi_permission"`
	S3CompatibleEndpointPermission         *bool                        `` /* 141-byte string literal not displayed */
	SelfManaged                            *bool                        `url:"self_managed,omitempty" json:"self_managed,omitempty" path:"self_managed"`
	SftpPermission                         *bool                        `url:"sftp_permission,omitempty" json:"sftp_permission,omitempty" path:"sftp_permission"`
	SiteAdmin                              *bool                        `url:"site_admin,omitempty" json:"site_admin,omitempty" path:"site_admin"`
	SkipWelcomeScreen                      *bool                        `url:"skip_welcome_screen,omitempty" json:"skip_welcome_screen,omitempty" path:"skip_welcome_screen"`
	SslRequired                            UserSslRequiredEnum          `url:"ssl_required,omitempty" json:"ssl_required,omitempty" path:"ssl_required"`
	SsoStrategyId                          int64                        `url:"sso_strategy_id,omitempty" json:"sso_strategy_id,omitempty" path:"sso_strategy_id"`
	SubscribeToNewsletter                  *bool                        `url:"subscribe_to_newsletter,omitempty" json:"subscribe_to_newsletter,omitempty" path:"subscribe_to_newsletter"`
	Require2fa                             UserRequire2faEnum           `url:"require_2fa,omitempty" json:"require_2fa,omitempty" path:"require_2fa"`
	Tags                                   string                       `url:"tags,omitempty" json:"tags,omitempty" path:"tags"`
	TimeZone                               string                       `url:"time_zone,omitempty" json:"time_zone,omitempty" path:"time_zone"`
	UserRoot                               string                       `url:"user_root,omitempty" json:"user_root,omitempty" path:"user_root"`
	UserHome                               string                       `url:"user_home,omitempty" json:"user_home,omitempty" path:"user_home"`
	WorkspaceAdmin                         *bool                        `url:"workspace_admin,omitempty" json:"workspace_admin,omitempty" path:"workspace_admin"`
	Username                               string                       `url:"username" json:"username" path:"username"`
	WorkspaceId                            int64                        `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

UserCreateParams contains the request parameters for POST /users.

type UserDeleteParams ¶

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

UserDeleteParams contains the request parameters for DELETE /users/{id}.

type UserFilesystemLayoutEnum ¶ added in v3.2.249

type UserFilesystemLayoutEnum string

UserFilesystemLayoutEnum is a string value for filesystem_layout. Enum lists the values documented by the API.

func (UserFilesystemLayoutEnum) Enum ¶ added in v3.2.249

Enum returns the documented values keyed by their API strings.

func (UserFilesystemLayoutEnum) String ¶ added in v3.2.249

func (u UserFilesystemLayoutEnum) String() string

String returns the API parameter value.

type UserFindParams ¶

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

UserFindParams contains the request parameters for GET /users/{id}.

type UserLifecycleRule ¶ added in v3.2.157

type UserLifecycleRule struct {
	Id                   int64   `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	AuthenticationMethod string  `json:"authentication_method,omitempty" path:"authentication_method,omitempty" url:"authentication_method,omitempty"`
	GroupIds             []int64 `json:"group_ids,omitempty" path:"group_ids,omitempty" url:"group_ids,omitempty"`
	Action               string  `json:"action,omitempty" path:"action,omitempty" url:"action,omitempty"`
	InactivityDays       int64   `json:"inactivity_days,omitempty" path:"inactivity_days,omitempty" url:"inactivity_days,omitempty"`
	IncludeFolderAdmins  *bool   `json:"include_folder_admins,omitempty" path:"include_folder_admins,omitempty" url:"include_folder_admins,omitempty"`
	IncludeSiteAdmins    *bool   `json:"include_site_admins,omitempty" path:"include_site_admins,omitempty" url:"include_site_admins,omitempty"`
	ApplyToAllWorkspaces *bool   `json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces,omitempty" url:"apply_to_all_workspaces,omitempty"`
	Name                 string  `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	NotifyUsers          *bool   `json:"notify_users,omitempty" path:"notify_users,omitempty" url:"notify_users,omitempty"`
	PartnerTag           string  `json:"partner_tag,omitempty" path:"partner_tag,omitempty" url:"partner_tag,omitempty"`
	SiteId               int64   `json:"site_id,omitempty" path:"site_id,omitempty" url:"site_id,omitempty"`
	WorkspaceId          int64   `json:"workspace_id,omitempty" path:"workspace_id,omitempty" url:"workspace_id,omitempty"`
	UserState            string  `json:"user_state,omitempty" path:"user_state,omitempty" url:"user_state,omitempty"`
	UserTag              string  `json:"user_tag,omitempty" path:"user_tag,omitempty" url:"user_tag,omitempty"`
}

UserLifecycleRule is a Files.com API resource.

func (UserLifecycleRule) Identifier ¶ added in v3.2.157

func (u UserLifecycleRule) Identifier() interface{}

Identifier returns the resource ID.

func (*UserLifecycleRule) UnmarshalJSON ¶ added in v3.2.157

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UserLifecycleRuleActionEnum ¶ added in v3.2.157

type UserLifecycleRuleActionEnum string

UserLifecycleRuleActionEnum is a string value for action. Enum lists the values documented by the API.

func (UserLifecycleRuleActionEnum) Enum ¶ added in v3.2.157

Enum returns the documented values keyed by their API strings.

func (UserLifecycleRuleActionEnum) String ¶ added in v3.2.157

String returns the API parameter value.

type UserLifecycleRuleAuthenticationMethodEnum ¶ added in v3.2.157

type UserLifecycleRuleAuthenticationMethodEnum string

UserLifecycleRuleAuthenticationMethodEnum is a string value for authentication_method. Enum lists the values documented by the API.

func (UserLifecycleRuleAuthenticationMethodEnum) Enum ¶ added in v3.2.157

Enum returns the documented values keyed by their API strings.

func (UserLifecycleRuleAuthenticationMethodEnum) String ¶ added in v3.2.157

String returns the API parameter value.

type UserLifecycleRuleCollection ¶ added in v3.2.157

type UserLifecycleRuleCollection []UserLifecycleRule

UserLifecycleRuleCollection is a list of UserLifecycleRule resources.

func (*UserLifecycleRuleCollection) ToSlice ¶ added in v3.2.157

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

ToSlice returns a new slice containing the resources as interface values.

func (*UserLifecycleRuleCollection) UnmarshalJSON ¶ added in v3.2.157

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UserLifecycleRuleCreateParams ¶ added in v3.2.157

type UserLifecycleRuleCreateParams struct {
	Action               UserLifecycleRuleActionEnum               `url:"action,omitempty" json:"action,omitempty" path:"action"`
	ApplyToAllWorkspaces *bool                                     `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	AuthenticationMethod UserLifecycleRuleAuthenticationMethodEnum `url:"authentication_method,omitempty" json:"authentication_method,omitempty" path:"authentication_method"`
	GroupIds             []int64                                   `url:"group_ids,omitempty" json:"group_ids,omitempty" path:"group_ids"`
	InactivityDays       int64                                     `url:"inactivity_days,omitempty" json:"inactivity_days,omitempty" path:"inactivity_days"`
	IncludeSiteAdmins    *bool                                     `url:"include_site_admins,omitempty" json:"include_site_admins,omitempty" path:"include_site_admins"`
	IncludeFolderAdmins  *bool                                     `url:"include_folder_admins,omitempty" json:"include_folder_admins,omitempty" path:"include_folder_admins"`
	Name                 string                                    `url:"name,omitempty" json:"name,omitempty" path:"name"`
	NotifyUsers          *bool                                     `url:"notify_users,omitempty" json:"notify_users,omitempty" path:"notify_users"`
	PartnerTag           string                                    `url:"partner_tag,omitempty" json:"partner_tag,omitempty" path:"partner_tag"`
	UserState            UserLifecycleRuleUserStateEnum            `url:"user_state,omitempty" json:"user_state,omitempty" path:"user_state"`
	UserTag              string                                    `url:"user_tag,omitempty" json:"user_tag,omitempty" path:"user_tag"`
	WorkspaceId          int64                                     `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

UserLifecycleRuleCreateParams contains the request parameters for POST /user_lifecycle_rules.

type UserLifecycleRuleDeleteParams ¶ added in v3.2.157

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

UserLifecycleRuleDeleteParams contains the request parameters for DELETE /user_lifecycle_rules/{id}.

type UserLifecycleRuleFindParams ¶ added in v3.2.157

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

UserLifecycleRuleFindParams contains the request parameters for GET /user_lifecycle_rules/{id}.

type UserLifecycleRuleListParams ¶ added in v3.2.157

type UserLifecycleRuleListParams struct {
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	ListParams
}

UserLifecycleRuleListParams contains the request parameters for GET /user_lifecycle_rules.

type UserLifecycleRuleUpdateParams ¶ added in v3.2.158

type UserLifecycleRuleUpdateParams struct {
	Id                   int64                                     `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Action               UserLifecycleRuleActionEnum               `url:"action,omitempty" json:"action,omitempty" path:"action"`
	ApplyToAllWorkspaces *bool                                     `url:"apply_to_all_workspaces,omitempty" json:"apply_to_all_workspaces,omitempty" path:"apply_to_all_workspaces"`
	AuthenticationMethod UserLifecycleRuleAuthenticationMethodEnum `url:"authentication_method,omitempty" json:"authentication_method,omitempty" path:"authentication_method"`
	GroupIds             []int64                                   `url:"group_ids,omitempty" json:"group_ids,omitempty" path:"group_ids"`
	InactivityDays       int64                                     `url:"inactivity_days,omitempty" json:"inactivity_days,omitempty" path:"inactivity_days"`
	IncludeSiteAdmins    *bool                                     `url:"include_site_admins,omitempty" json:"include_site_admins,omitempty" path:"include_site_admins"`
	IncludeFolderAdmins  *bool                                     `url:"include_folder_admins,omitempty" json:"include_folder_admins,omitempty" path:"include_folder_admins"`
	Name                 string                                    `url:"name,omitempty" json:"name,omitempty" path:"name"`
	NotifyUsers          *bool                                     `url:"notify_users,omitempty" json:"notify_users,omitempty" path:"notify_users"`
	PartnerTag           string                                    `url:"partner_tag,omitempty" json:"partner_tag,omitempty" path:"partner_tag"`
	UserState            UserLifecycleRuleUserStateEnum            `url:"user_state,omitempty" json:"user_state,omitempty" path:"user_state"`
	UserTag              string                                    `url:"user_tag,omitempty" json:"user_tag,omitempty" path:"user_tag"`
	WorkspaceId          int64                                     `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
}

UserLifecycleRuleUpdateParams contains the request parameters for PATCH /user_lifecycle_rules/{id}.

type UserLifecycleRuleUserStateEnum ¶ added in v3.2.186

type UserLifecycleRuleUserStateEnum string

UserLifecycleRuleUserStateEnum is a string value for user_state. Enum lists the values documented by the API.

func (UserLifecycleRuleUserStateEnum) Enum ¶ added in v3.2.186

Enum returns the documented values keyed by their API strings.

func (UserLifecycleRuleUserStateEnum) String ¶ added in v3.2.186

String returns the API parameter value.

type UserListParams ¶

type UserListParams struct {
	SortBy                       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter                       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt                     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq                   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix                 interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt                     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq                   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	Ids                          string      `url:"ids,omitempty" json:"ids,omitempty" path:"ids"`
	IncludeParentSiteUsers       *bool       `url:"include_parent_site_users,omitempty" json:"include_parent_site_users,omitempty" path:"include_parent_site_users"`
	IncludeDefaultWorkspaceUsers *bool       `` /* 135-byte string literal not displayed */
	Search                       string      `url:"search,omitempty" json:"search,omitempty" path:"search"`
	ListParams
}

UserListParams contains the request parameters for GET /users.

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"`
	Company string `json:"company,omitempty" path:"company,omitempty" url:"company,omitempty"`
}

UserRequest is a Files.com API resource.

func (UserRequest) Identifier ¶

func (u UserRequest) Identifier() interface{}

Identifier returns the resource ID.

func (*UserRequest) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UserRequestCollection ¶

type UserRequestCollection []UserRequest

UserRequestCollection is a list of UserRequest resources.

func (*UserRequestCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*UserRequestCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UserRequestCreateParams ¶

type UserRequestCreateParams struct {
	Name    string `url:"name" json:"name" path:"name"`
	Email   string `url:"email" json:"email" path:"email"`
	Details string `url:"details" json:"details" path:"details"`
	Company string `url:"company,omitempty" json:"company,omitempty" path:"company"`
}

UserRequestCreateParams contains the request parameters for POST /user_requests.

type UserRequestDeleteParams ¶

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

UserRequestDeleteParams contains the request parameters for DELETE /user_requests/{id}.

type UserRequestFindParams ¶

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

UserRequestFindParams contains the request parameters for GET /user_requests/{id}.

type UserRequestListParams ¶

type UserRequestListParams struct {
	ListParams
}

UserRequestListParams contains the request parameters for GET /user_requests.

type UserRequire2faEnum ¶

type UserRequire2faEnum string

UserRequire2faEnum is a string value for require_2fa. Enum lists the values documented by the API.

func (UserRequire2faEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (UserRequire2faEnum) String ¶

func (u UserRequire2faEnum) String() string

String returns the API parameter value.

type UserResendWelcomeEmailParams ¶

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

UserResendWelcomeEmailParams contains the request parameters for POST /users/{id}/resend_welcome_email.

Resend user welcome email

type UserSecurityEvent ¶ added in v3.3.111

type UserSecurityEvent 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"`
	Body        string     `json:"body,omitempty" path:"body,omitempty" url:"body,omitempty"`
	EventErrors []string   `json:"event_errors,omitempty" path:"event_errors,omitempty" url:"event_errors,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"`
	UserId      int64      `json:"user_id,omitempty" path:"user_id,omitempty" url:"user_id,omitempty"`
}

UserSecurityEvent is a Files.com API resource.

func (UserSecurityEvent) Identifier ¶ added in v3.3.111

func (u UserSecurityEvent) Identifier() interface{}

Identifier returns the resource ID.

func (*UserSecurityEvent) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UserSecurityEventCollection ¶ added in v3.3.111

type UserSecurityEventCollection []UserSecurityEvent

UserSecurityEventCollection is a list of UserSecurityEvent resources.

func (*UserSecurityEventCollection) ToSlice ¶ added in v3.3.111

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

ToSlice returns a new slice containing the resources as interface values.

func (*UserSecurityEventCollection) UnmarshalJSON ¶ added in v3.3.111

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UserSecurityEventFindParams ¶ added in v3.3.111

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

UserSecurityEventFindParams contains the request parameters for GET /user_security_events/{id}.

type UserSecurityEventListParams ¶ added in v3.3.111

type UserSecurityEventListParams struct {
	SortBy     interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter     interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt   interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterLt   interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

UserSecurityEventListParams contains the request parameters for GET /user_security_events.

type UserSftpClientUse ¶ added in v3.2.64

type UserSftpClientUse struct {
	Id         int64      `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	SftpClient string     `json:"sftp_client,omitempty" path:"sftp_client,omitempty" url:"sftp_client,omitempty"`
	CreatedAt  *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,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"`
}

UserSftpClientUse is a Files.com API resource.

func (UserSftpClientUse) Identifier ¶ added in v3.2.64

func (u UserSftpClientUse) Identifier() interface{}

Identifier returns the resource ID.

func (*UserSftpClientUse) UnmarshalJSON ¶ added in v3.2.64

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type UserSftpClientUseCollection ¶ added in v3.2.64

type UserSftpClientUseCollection []UserSftpClientUse

UserSftpClientUseCollection is a list of UserSftpClientUse resources.

func (*UserSftpClientUseCollection) ToSlice ¶ added in v3.2.64

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

ToSlice returns a new slice containing the resources as interface values.

func (*UserSftpClientUseCollection) UnmarshalJSON ¶ added in v3.2.64

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type UserSftpClientUseListParams ¶ added in v3.2.64

type UserSftpClientUseListParams struct {
	UserId int64       `url:"user_id,omitempty" json:"user_id,omitempty" path:"user_id"`
	SortBy interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	ListParams
}

UserSftpClientUseListParams contains the request parameters for GET /user_sftp_client_uses.

type UserSslRequiredEnum ¶

type UserSslRequiredEnum string

UserSslRequiredEnum is a string value for ssl_required. Enum lists the values documented by the API.

func (UserSslRequiredEnum) Enum ¶

Enum returns the documented values keyed by their API strings.

func (UserSslRequiredEnum) String ¶

func (u UserSslRequiredEnum) String() string

String returns the API parameter value.

type UserUnlockParams ¶

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

UserUnlockParams contains the request parameters for POST /users/{id}/unlock.

Unlock user who has been locked out due to failed logins

type UserUpdateParams ¶

type UserUpdateParams struct {
	Id         int64     `url:"-,omitempty" json:"-,omitempty" path:"id"`
	AvatarFile io.Writer `url:"avatar_file,omitempty" json:"avatar_file,omitempty" path:"avatar_file"`
	// AvatarFileAttachment sends file content as avatar_file; see lib.JSONAttachment. Leave AvatarFile nil when you set it.
	AvatarFileAttachment                   *lib.JSONAttachment          `json:"-" url:"-" path:"-" attachment:"avatar_file"`
	AvatarDelete                           *bool                        `url:"avatar_delete,omitempty" json:"avatar_delete,omitempty" path:"avatar_delete"`
	ChangePassword                         string                       `url:"change_password,omitempty" json:"change_password,omitempty" path:"change_password"`
	ChangePasswordConfirmation             string                       `` /* 126-byte string literal not displayed */
	Email                                  string                       `url:"email,omitempty" json:"email,omitempty" path:"email"`
	GrantPermission                        string                       `url:"grant_permission,omitempty" json:"grant_permission,omitempty" path:"grant_permission"`
	GroupId                                int64                        `url:"group_id,omitempty" json:"group_id,omitempty" path:"group_id"`
	GroupIds                               string                       `url:"group_ids,omitempty" json:"group_ids,omitempty" path:"group_ids"`
	ImportedPasswordHash                   string                       `url:"imported_password_hash,omitempty" json:"imported_password_hash,omitempty" path:"imported_password_hash"`
	Password                               string                       `url:"password,omitempty" json:"password,omitempty" path:"password"`
	PasswordConfirmation                   string                       `url:"password_confirmation,omitempty" json:"password_confirmation,omitempty" path:"password_confirmation"`
	AnnouncementsRead                      *bool                        `url:"announcements_read,omitempty" json:"announcements_read,omitempty" path:"announcements_read"`
	AiAssistantPersonalityId               int64                        `url:"ai_assistant_personality_id,omitempty" json:"ai_assistant_personality_id,omitempty" path:"ai_assistant_personality_id"`
	AllowedIps                             string                       `url:"allowed_ips,omitempty" json:"allowed_ips,omitempty" path:"allowed_ips"`
	AttachmentsPermission                  *bool                        `url:"attachments_permission,omitempty" json:"attachments_permission,omitempty" path:"attachments_permission"`
	AuthenticateUntil                      *time.Time                   `url:"authenticate_until,omitempty" json:"authenticate_until,omitempty" path:"authenticate_until"`
	AuthenticationMethod                   UserAuthenticationMethodEnum `url:"authentication_method,omitempty" json:"authentication_method,omitempty" path:"authentication_method"`
	BillingPermission                      *bool                        `url:"billing_permission,omitempty" json:"billing_permission,omitempty" path:"billing_permission"`
	BypassUserLifecycleRules               *bool                        `url:"bypass_user_lifecycle_rules,omitempty" json:"bypass_user_lifecycle_rules,omitempty" path:"bypass_user_lifecycle_rules"`
	BypassSiteAllowedIps                   *bool                        `url:"bypass_site_allowed_ips,omitempty" json:"bypass_site_allowed_ips,omitempty" path:"bypass_site_allowed_ips"`
	DavPermission                          *bool                        `url:"dav_permission,omitempty" json:"dav_permission,omitempty" path:"dav_permission"`
	DesktopConfigurationProfileId          int64                        `` /* 138-byte string literal not displayed */
	DefaultWorkspaceId                     int64                        `url:"default_workspace_id,omitempty" json:"default_workspace_id,omitempty" path:"default_workspace_id"`
	Disabled                               *bool                        `url:"disabled,omitempty" json:"disabled,omitempty" path:"disabled"`
	FilesystemLayout                       UserFilesystemLayoutEnum     `url:"filesystem_layout,omitempty" json:"filesystem_layout,omitempty" path:"filesystem_layout"`
	FtpPermission                          *bool                        `url:"ftp_permission,omitempty" json:"ftp_permission,omitempty" path:"ftp_permission"`
	HeaderText                             string                       `url:"header_text,omitempty" json:"header_text,omitempty" path:"header_text"`
	IntegrationCentricProfileId            int64                        `` /* 132-byte string literal not displayed */
	Language                               string                       `url:"language,omitempty" json:"language,omitempty" path:"language"`
	NotificationDailySendTime              int64                        `` /* 126-byte string literal not displayed */
	Name                                   string                       `url:"name,omitempty" json:"name,omitempty" path:"name"`
	Company                                string                       `url:"company,omitempty" json:"company,omitempty" path:"company"`
	Notes                                  string                       `url:"notes,omitempty" json:"notes,omitempty" path:"notes"`
	OfficeIntegrationEnabled               *bool                        `url:"office_integration_enabled,omitempty" json:"office_integration_enabled,omitempty" path:"office_integration_enabled"`
	PartnerAdmin                           *bool                        `url:"partner_admin,omitempty" json:"partner_admin,omitempty" path:"partner_admin"`
	PartnerId                              int64                        `url:"partner_id,omitempty" json:"partner_id,omitempty" path:"partner_id"`
	PasswordValidityDays                   int64                        `url:"password_validity_days,omitempty" json:"password_validity_days,omitempty" path:"password_validity_days"`
	PrimaryGroupId                         int64                        `url:"primary_group_id,omitempty" json:"primary_group_id,omitempty" path:"primary_group_id"`
	ReadonlySiteAdmin                      *bool                        `url:"readonly_site_admin,omitempty" json:"readonly_site_admin,omitempty" path:"readonly_site_admin"`
	ReceiveAdminAlerts                     *bool                        `url:"receive_admin_alerts,omitempty" json:"receive_admin_alerts,omitempty" path:"receive_admin_alerts"`
	NotifyOnAllSiteWarnings                *bool                        `url:"notify_on_all_site_warnings,omitempty" json:"notify_on_all_site_warnings,omitempty" path:"notify_on_all_site_warnings"`
	NotifyOnAllSsoFailures                 *bool                        `url:"notify_on_all_sso_failures,omitempty" json:"notify_on_all_sso_failures,omitempty" path:"notify_on_all_sso_failures"`
	NotifyOnAllUserSecurityEvents          *bool                        `` /* 144-byte string literal not displayed */
	NotifyOnAllPendingWorkFailures         *bool                        `` /* 147-byte string literal not displayed */
	NotifyOnAllSiemHttpDestinationFailures *bool                        `` /* 174-byte string literal not displayed */
	NotifyOnAllSyncFailures                *bool                        `url:"notify_on_all_sync_failures,omitempty" json:"notify_on_all_sync_failures,omitempty" path:"notify_on_all_sync_failures"`
	NotifyOnAllAutomationFailures          *bool                        `` /* 141-byte string literal not displayed */
	NotifyOnAllExpectationFailures         *bool                        `` /* 144-byte string literal not displayed */
	RequireLoginBy                         *time.Time                   `url:"require_login_by,omitempty" json:"require_login_by,omitempty" path:"require_login_by"`
	RequirePasswordChange                  *bool                        `url:"require_password_change,omitempty" json:"require_password_change,omitempty" path:"require_password_change"`
	ResponsibleGroupId                     int64                        `url:"responsible_group_id,omitempty" json:"responsible_group_id,omitempty" path:"responsible_group_id"`
	ResponsibleUserId                      int64                        `url:"responsible_user_id,omitempty" json:"responsible_user_id,omitempty" path:"responsible_user_id"`
	RestapiPermission                      *bool                        `url:"restapi_permission,omitempty" json:"restapi_permission,omitempty" path:"restapi_permission"`
	S3CompatibleEndpointPermission         *bool                        `` /* 141-byte string literal not displayed */
	SelfManaged                            *bool                        `url:"self_managed,omitempty" json:"self_managed,omitempty" path:"self_managed"`
	SftpPermission                         *bool                        `url:"sftp_permission,omitempty" json:"sftp_permission,omitempty" path:"sftp_permission"`
	SiteAdmin                              *bool                        `url:"site_admin,omitempty" json:"site_admin,omitempty" path:"site_admin"`
	SkipWelcomeScreen                      *bool                        `url:"skip_welcome_screen,omitempty" json:"skip_welcome_screen,omitempty" path:"skip_welcome_screen"`
	SslRequired                            UserSslRequiredEnum          `url:"ssl_required,omitempty" json:"ssl_required,omitempty" path:"ssl_required"`
	SsoStrategyId                          int64                        `url:"sso_strategy_id,omitempty" json:"sso_strategy_id,omitempty" path:"sso_strategy_id"`
	SubscribeToNewsletter                  *bool                        `url:"subscribe_to_newsletter,omitempty" json:"subscribe_to_newsletter,omitempty" path:"subscribe_to_newsletter"`
	Require2fa                             UserRequire2faEnum           `url:"require_2fa,omitempty" json:"require_2fa,omitempty" path:"require_2fa"`
	Tags                                   string                       `url:"tags,omitempty" json:"tags,omitempty" path:"tags"`
	TimeZone                               string                       `url:"time_zone,omitempty" json:"time_zone,omitempty" path:"time_zone"`
	UserRoot                               string                       `url:"user_root,omitempty" json:"user_root,omitempty" path:"user_root"`
	UserHome                               string                       `url:"user_home,omitempty" json:"user_home,omitempty" path:"user_home"`
	WorkspaceAdmin                         *bool                        `url:"workspace_admin,omitempty" json:"workspace_admin,omitempty" path:"workspace_admin"`
	Username                               string                       `url:"username,omitempty" json:"username,omitempty" path:"username"`
	WorkspaceId                            int64                        `url:"workspace_id,omitempty" json:"workspace_id,omitempty" path:"workspace_id"`
	Clear2fa                               *bool                        `url:"clear_2fa,omitempty" json:"clear_2fa,omitempty" path:"clear_2fa"`
	ConvertToPartnerUser                   *bool                        `url:"convert_to_partner_user,omitempty" json:"convert_to_partner_user,omitempty" path:"convert_to_partner_user"`
}

UserUpdateParams contains the request parameters for PATCH /users/{id}.

type UserUser2faResetParams ¶

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

UserUser2faResetParams contains the request parameters for POST /users/{id}/2fa/reset.

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

type WebDavActionLog ¶ added in v3.2.10

type WebDavActionLog struct {
	Timestamp        *time.Time `json:"timestamp,omitempty" path:"timestamp,omitempty" url:"timestamp,omitempty"`
	RemoteIp         string     `json:"remote_ip,omitempty" path:"remote_ip,omitempty" url:"remote_ip,omitempty"`
	ServerIp         string     `json:"server_ip,omitempty" path:"server_ip,omitempty" url:"server_ip,omitempty"`
	Username         string     `json:"username,omitempty" path:"username,omitempty" url:"username,omitempty"`
	AuthCiphers      string     `json:"auth_ciphers,omitempty" path:"auth_ciphers,omitempty" url:"auth_ciphers,omitempty"`
	ActionType       string     `json:"action_type,omitempty" path:"action_type,omitempty" url:"action_type,omitempty"`
	Path             string     `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	TruePath         string     `json:"true_path,omitempty" path:"true_path,omitempty" url:"true_path,omitempty"`
	Name             string     `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
	HttpMethod       string     `json:"http_method,omitempty" path:"http_method,omitempty" url:"http_method,omitempty"`
	HttpPath         string     `json:"http_path,omitempty" path:"http_path,omitempty" url:"http_path,omitempty"`
	HttpResponseCode int64      `json:"http_response_code,omitempty" path:"http_response_code,omitempty" url:"http_response_code,omitempty"`
	Size             int64      `json:"size,omitempty" path:"size,omitempty" url:"size,omitempty"`
	EntriesReturned  int64      `json:"entries_returned,omitempty" path:"entries_returned,omitempty" url:"entries_returned,omitempty"`
	Success          *bool      `json:"success,omitempty" path:"success,omitempty" url:"success,omitempty"`
	Status           string     `json:"status,omitempty" path:"status,omitempty" url:"status,omitempty"`
	DurationMs       int64      `json:"duration_ms,omitempty" path:"duration_ms,omitempty" url:"duration_ms,omitempty"`
	CreatedAt        *time.Time `json:"created_at,omitempty" path:"created_at,omitempty" url:"created_at,omitempty"`
}

WebDavActionLog is a Files.com API resource.

func (WebDavActionLog) Identifier ¶ added in v3.2.10

func (w WebDavActionLog) Identifier() interface{}

Identifier returns the resource path.

func (*WebDavActionLog) UnmarshalJSON ¶ added in v3.2.10

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type WebDavActionLogCollection ¶ added in v3.2.10

type WebDavActionLogCollection []WebDavActionLog

WebDavActionLogCollection is a list of WebDavActionLog resources.

func (*WebDavActionLogCollection) ToSlice ¶ added in v3.2.10

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

ToSlice returns a new slice containing the resources as interface values.

func (*WebDavActionLogCollection) UnmarshalJSON ¶ added in v3.2.10

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type WebDavActionLogListParams ¶ added in v3.2.10

type WebDavActionLogListParams struct {
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterGt     interface{} `url:"filter_gt,omitempty" json:"filter_gt,omitempty" path:"filter_gt"`
	FilterGteq   interface{} `url:"filter_gteq,omitempty" json:"filter_gteq,omitempty" path:"filter_gteq"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	FilterLt     interface{} `url:"filter_lt,omitempty" json:"filter_lt,omitempty" path:"filter_lt"`
	FilterLteq   interface{} `url:"filter_lteq,omitempty" json:"filter_lteq,omitempty" path:"filter_lteq"`
	ListParams
}

WebDavActionLogListParams contains the request parameters for GET /web_dav_action_logs.

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         interface{} `json:"headers,omitempty" path:"headers,omitempty" url:"headers,omitempty"`
	Body            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"`
}

WebhookTest is a Files.com API resource.

func (*WebhookTest) UnmarshalJSON ¶

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type WebhookTestCollection ¶

type WebhookTestCollection []WebhookTest

WebhookTestCollection is a list of WebhookTest resources.

func (*WebhookTestCollection) ToSlice ¶

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

ToSlice returns a new slice containing the resources as interface values.

func (*WebhookTestCollection) UnmarshalJSON ¶

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type WebhookTestCreateParams ¶

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

WebhookTestCreateParams contains the request parameters for POST /webhook_tests.

type Workspace ¶ added in v3.3.23

type Workspace struct {
	Id   int64  `json:"id,omitempty" path:"id,omitempty" url:"id,omitempty"`
	Name string `json:"name,omitempty" path:"name,omitempty" url:"name,omitempty"`
}

Workspace is a Files.com API resource.

func (Workspace) Identifier ¶ added in v3.3.23

func (w Workspace) Identifier() interface{}

Identifier returns the resource ID.

func (*Workspace) UnmarshalJSON ¶ added in v3.3.23

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

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type WorkspaceCollection ¶ added in v3.3.23

type WorkspaceCollection []Workspace

WorkspaceCollection is a list of Workspace resources.

func (*WorkspaceCollection) ToSlice ¶ added in v3.3.23

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

ToSlice returns a new slice containing the resources as interface values.

func (*WorkspaceCollection) UnmarshalJSON ¶ added in v3.3.23

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

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

type WorkspaceCreateParams ¶ added in v3.3.23

type WorkspaceCreateParams struct {
	Name string `url:"name,omitempty" json:"name,omitempty" path:"name"`
}

WorkspaceCreateParams contains the request parameters for POST /workspaces.

type WorkspaceDeleteParams ¶ added in v3.3.23

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

WorkspaceDeleteParams contains the request parameters for DELETE /workspaces/{id}.

type WorkspaceFindParams ¶ added in v3.3.23

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

WorkspaceFindParams contains the request parameters for GET /workspaces/{id}.

type WorkspaceListParams ¶ added in v3.3.23

type WorkspaceListParams struct {
	SortBy       interface{} `url:"sort_by,omitempty" json:"sort_by,omitempty" path:"sort_by"`
	Filter       interface{} `url:"filter,omitempty" json:"filter,omitempty" path:"filter"`
	FilterPrefix interface{} `url:"filter_prefix,omitempty" json:"filter_prefix,omitempty" path:"filter_prefix"`
	ListParams
}

WorkspaceListParams contains the request parameters for GET /workspaces.

type WorkspaceUpdateParams ¶ added in v3.3.23

type WorkspaceUpdateParams struct {
	Id   int64  `url:"-,omitempty" json:"-,omitempty" path:"id"`
	Name string `url:"name,omitempty" json:"name,omitempty" path:"name"`
}

WorkspaceUpdateParams contains the request parameters for PATCH /workspaces/{id}.

type ZipListEntry ¶ added in v3.3.33

type ZipListEntry struct {
	Path string `json:"path,omitempty" path:"path,omitempty" url:"path,omitempty"`
	Size int64  `json:"size,omitempty" path:"size,omitempty" url:"size,omitempty"`
}

ZipListEntry is a Files.com API resource.

func (ZipListEntry) Identifier ¶ added in v3.3.33

func (z ZipListEntry) Identifier() interface{}

Identifier returns the resource path.

func (*ZipListEntry) UnmarshalJSON ¶ added in v3.3.33

func (z *ZipListEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes an API resource. A decoding error leaves the receiver unchanged.

type ZipListEntryCollection ¶ added in v3.3.33

type ZipListEntryCollection []ZipListEntry

ZipListEntryCollection is a list of ZipListEntry resources.

func (*ZipListEntryCollection) ToSlice ¶ added in v3.3.33

func (z *ZipListEntryCollection) ToSlice() *[]interface{}

ToSlice returns a new slice containing the resources as interface values.

func (*ZipListEntryCollection) UnmarshalJSON ¶ added in v3.3.33

func (z *ZipListEntryCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes a list of API resources. A decoding error leaves the receiver unchanged.

Source Files ¶

Directories ¶

Path Synopsis
Package account_line_item is the Files.com API client package for the files_sdk.AccountLineItem model.
Package account_line_item is the Files.com API client package for the files_sdk.AccountLineItem model.
Package action is the Files.com API client package for the files_sdk.Action model.
Package action is the Files.com API client package for the files_sdk.Action model.
Package action_log is the Files.com API client package for the files_sdk.ActionLog model.
Package action_log is the Files.com API client package for the files_sdk.ActionLog model.
Package action_notification_export is the Files.com API client package for the files_sdk.ActionNotificationExport model.
Package action_notification_export is the Files.com API client package for the files_sdk.ActionNotificationExport model.
Package action_notification_export_result is the Files.com API client package for the files_sdk.ActionNotificationExportResult model.
Package action_notification_export_result is the Files.com API client package for the files_sdk.ActionNotificationExportResult model.
Package agent_node is the Files.com API client package for the files_sdk.AgentNode model.
Package agent_node is the Files.com API client package for the files_sdk.AgentNode model.
Package agent_node_connection is the Files.com API client package for the files_sdk.AgentNodeConnection model.
Package agent_node_connection is the Files.com API client package for the files_sdk.AgentNodeConnection model.
Package agent_node_instance is the Files.com API client package for the files_sdk.AgentNodeInstance model.
Package agent_node_instance is the Files.com API client package for the files_sdk.AgentNodeInstance model.
Package agent_push_update is the Files.com API client package for the files_sdk.AgentPushUpdate model.
Package agent_push_update is the Files.com API client package for the files_sdk.AgentPushUpdate model.
Package ai_assistant_personality is the Files.com API client package for the files_sdk.AiAssistantPersonality model.
Package ai_assistant_personality is the Files.com API client package for the files_sdk.AiAssistantPersonality model.
Package ai_task is the Files.com API client package for the files_sdk.AiTask model.
Package ai_task is the Files.com API client package for the files_sdk.AiTask model.
Package api_key is the Files.com API client package for the files_sdk.ApiKey model.
Package api_key is the Files.com API client package for the files_sdk.ApiKey model.
Package api_request_log is the Files.com API client package for the files_sdk.ApiRequestLog model.
Package api_request_log is the Files.com API client package for the files_sdk.ApiRequestLog model.
Package app is the Files.com API client package for the files_sdk.App model.
Package app is the Files.com API client package for the files_sdk.App model.
Package as2_incoming_message is the Files.com API client package for the files_sdk.As2IncomingMessage model.
Package as2_incoming_message is the Files.com API client package for the files_sdk.As2IncomingMessage model.
Package as2_outgoing_message is the Files.com API client package for the files_sdk.As2OutgoingMessage model.
Package as2_outgoing_message is the Files.com API client package for the files_sdk.As2OutgoingMessage model.
Package as2_partner is the Files.com API client package for the files_sdk.As2Partner model.
Package as2_partner is the Files.com API client package for the files_sdk.As2Partner model.
Package as2_station is the Files.com API client package for the files_sdk.As2Station model.
Package as2_station is the Files.com API client package for the files_sdk.As2Station model.
Package auto is the Files.com API client package for the files_sdk.Auto model.
Package auto is the Files.com API client package for the files_sdk.Auto model.
Package automation is the Files.com API client package for the files_sdk.Automation model.
Package automation is the Files.com API client package for the files_sdk.Automation model.
Package automation_authoring_schema is the Files.com API client package for the files_sdk.AutomationAuthoringSchema model.
Package automation_authoring_schema is the Files.com API client package for the files_sdk.AutomationAuthoringSchema model.
Package automation_execution_node is the Files.com API client package for the files_sdk.AutomationExecutionNode model.
Package automation_execution_node is the Files.com API client package for the files_sdk.AutomationExecutionNode model.
Package automation_log is the Files.com API client package for the files_sdk.AutomationLog model.
Package automation_log is the Files.com API client package for the files_sdk.AutomationLog model.
Package automation_run is the Files.com API client package for the files_sdk.AutomationRun model.
Package automation_run is the Files.com API client package for the files_sdk.AutomationRun model.
Package bandwidth_snapshot is the Files.com API client package for the files_sdk.BandwidthSnapshot model.
Package bandwidth_snapshot is the Files.com API client package for the files_sdk.BandwidthSnapshot model.
Package behavior is the Files.com API client package for the files_sdk.Behavior model.
Package behavior is the Files.com API client package for the files_sdk.Behavior model.
Package bundle is the Files.com API client package for the files_sdk.Bundle model.
Package bundle is the Files.com API client package for the files_sdk.Bundle model.
Package bundle_action is the Files.com API client package for the files_sdk.BundleAction model.
Package bundle_action is the Files.com API client package for the files_sdk.BundleAction model.
Package bundle_download is the Files.com API client package for the files_sdk.BundleDownload model.
Package bundle_download is the Files.com API client package for the files_sdk.BundleDownload model.
Package bundle_notification is the Files.com API client package for the files_sdk.BundleNotification model.
Package bundle_notification is the Files.com API client package for the files_sdk.BundleNotification model.
Package bundle_path is the Files.com API client package for the files_sdk.BundlePath model.
Package bundle_path is the Files.com API client package for the files_sdk.BundlePath model.
Package bundle_recipient is the Files.com API client package for the files_sdk.BundleRecipient model.
Package bundle_recipient is the Files.com API client package for the files_sdk.BundleRecipient model.
Package bundle_registration is the Files.com API client package for the files_sdk.BundleRegistration model.
Package bundle_registration is the Files.com API client package for the files_sdk.BundleRegistration model.
Package chat_message is the Files.com API client package for the files_sdk.ChatMessage model.
Package chat_message is the Files.com API client package for the files_sdk.ChatMessage model.
Package chat_session is the Files.com API client package for the files_sdk.ChatSession model.
Package chat_session is the Files.com API client package for the files_sdk.ChatSession model.
Package child_site_management_policy is the Files.com API client package for the files_sdk.ChildSiteManagementPolicy model.
Package child_site_management_policy is the Files.com API client package for the files_sdk.ChildSiteManagementPolicy model.
Package clickwrap is the Files.com API client package for the files_sdk.Clickwrap model.
Package clickwrap is the Files.com API client package for the files_sdk.Clickwrap model.
Package custom_domain is the Files.com API client package for the files_sdk.CustomDomain model.
Package custom_domain is the Files.com API client package for the files_sdk.CustomDomain model.
Package desktop_configuration_profile is the Files.com API client package for the files_sdk.DesktopConfigurationProfile model.
Package desktop_configuration_profile is the Files.com API client package for the files_sdk.DesktopConfigurationProfile model.
Package direct_connection_info is the Files.com API client package for the files_sdk.DirectConnectionInfo model.
Package direct_connection_info is the Files.com API client package for the files_sdk.DirectConnectionInfo model.
Package dns_record is the Files.com API client package for the files_sdk.DnsRecord model.
Package dns_record is the Files.com API client package for the files_sdk.DnsRecord model.
Package email_incoming_message is the Files.com API client package for the files_sdk.EmailIncomingMessage model.
Package email_incoming_message is the Files.com API client package for the files_sdk.EmailIncomingMessage model.
Package email_log is the Files.com API client package for the files_sdk.EmailLog model.
Package email_log is the Files.com API client package for the files_sdk.EmailLog model.
Package errors is the Files.com API client package for the files_sdk.Errors model.
Package errors is the Files.com API client package for the files_sdk.Errors model.
Package event_channel is the Files.com API client package for the files_sdk.EventChannel model.
Package event_channel is the Files.com API client package for the files_sdk.EventChannel model.
Package event_delivery_attempt is the Files.com API client package for the files_sdk.EventDeliveryAttempt model.
Package event_delivery_attempt is the Files.com API client package for the files_sdk.EventDeliveryAttempt model.
Package event_record is the Files.com API client package for the files_sdk.EventRecord model.
Package event_record is the Files.com API client package for the files_sdk.EventRecord model.
Package event_subscription is the Files.com API client package for the files_sdk.EventSubscription model.
Package event_subscription is the Files.com API client package for the files_sdk.EventSubscription model.
Package event_target is the Files.com API client package for the files_sdk.EventTarget model.
Package event_target is the Files.com API client package for the files_sdk.EventTarget model.
Package exavault_api_request_log is the Files.com API client package for the files_sdk.ExavaultApiRequestLog model.
Package exavault_api_request_log is the Files.com API client package for the files_sdk.ExavaultApiRequestLog model.
Package expectation is the Files.com API client package for the files_sdk.Expectation model.
Package expectation is the Files.com API client package for the files_sdk.Expectation model.
Package expectation_evaluation is the Files.com API client package for the files_sdk.ExpectationEvaluation model.
Package expectation_evaluation is the Files.com API client package for the files_sdk.ExpectationEvaluation model.
Package expectation_incident is the Files.com API client package for the files_sdk.ExpectationIncident model.
Package expectation_incident is the Files.com API client package for the files_sdk.ExpectationIncident model.
Package external_event is the Files.com API client package for the files_sdk.ExternalEvent model.
Package external_event is the Files.com API client package for the files_sdk.ExternalEvent model.
Package file is the Files.com API client package for the files_sdk.File model.
Package file is the Files.com API client package for the files_sdk.File model.
Package file_action is the Files.com API client package for the files_sdk.FileAction model.
Package file_action is the Files.com API client package for the files_sdk.FileAction model.
Package file_comment is the Files.com API client package for the files_sdk.FileComment model.
Package file_comment is the Files.com API client package for the files_sdk.FileComment model.
Package file_comment_reaction is the Files.com API client package for the files_sdk.FileCommentReaction model.
Package file_comment_reaction is the Files.com API client package for the files_sdk.FileCommentReaction model.
Package file_migration is the Files.com API client package for the files_sdk.FileMigration model.
Package file_migration is the Files.com API client package for the files_sdk.FileMigration model.
Package file_migration_log is the Files.com API client package for the files_sdk.FileMigrationLog model.
Package file_migration_log is the Files.com API client package for the files_sdk.FileMigrationLog model.
Package file_upload_part is the Files.com API client package for the files_sdk.FileUploadPart model.
Package file_upload_part is the Files.com API client package for the files_sdk.FileUploadPart model.
Package folder is the Files.com API client package for the files_sdk.Folder model.
Package folder is the Files.com API client package for the files_sdk.Folder model.
Package form_field is the Files.com API client package for the files_sdk.FormField model.
Package form_field is the Files.com API client package for the files_sdk.FormField model.
Package form_field_set is the Files.com API client package for the files_sdk.FormFieldSet model.
Package form_field_set is the Files.com API client package for the files_sdk.FormFieldSet model.
Package fsmount provides functionality to mount a Files.com file system using FUSE.
Package fsmount provides functionality to mount a Files.com file system using FUSE.
events
Package events provides event types and publishing interfaces for filesystem mount operations.
Package events provides event types and publishing interfaces for filesystem mount operations.
internal/cache/disk
Package disk implements a disk-based cache for file data.
Package disk implements a disk-based cache for file data.
internal/flags
Package flags provides utilities for working with FUSE file open flags.
Package flags provides utilities for working with FUSE file open flags.
internal/log
Package log provides logging interfaces and implementations for Files.com FUSE mount.
Package log provides logging interfaces and implementations for Files.com FUSE mount.
Package ftp_action_log is the Files.com API client package for the files_sdk.FtpActionLog model.
Package ftp_action_log is the Files.com API client package for the files_sdk.FtpActionLog model.
Package gpg_key is the Files.com API client package for the files_sdk.GpgKey model.
Package gpg_key is the Files.com API client package for the files_sdk.GpgKey model.
Package group is the Files.com API client package for the files_sdk.Group model.
Package group is the Files.com API client package for the files_sdk.Group model.
Package group_user is the Files.com API client package for the files_sdk.GroupUser model.
Package group_user is the Files.com API client package for the files_sdk.GroupUser model.
Package history is the Files.com API client package for the files_sdk.History model.
Package history is the Files.com API client package for the files_sdk.History model.
Package history_export is the Files.com API client package for the files_sdk.HistoryExport model.
Package history_export is the Files.com API client package for the files_sdk.HistoryExport model.
Package history_export_result is the Files.com API client package for the files_sdk.HistoryExportResult model.
Package history_export_result is the Files.com API client package for the files_sdk.HistoryExportResult model.
Package holiday_calendar is the Files.com API client package for the files_sdk.HolidayCalendar model.
Package holiday_calendar is the Files.com API client package for the files_sdk.HolidayCalendar model.
Package holiday_region is the Files.com API client package for the files_sdk.HolidayRegion model.
Package holiday_region is the Files.com API client package for the files_sdk.HolidayRegion model.
Package image is the Files.com API client package for the files_sdk.Image model.
Package image is the Files.com API client package for the files_sdk.Image model.
Package inbound_s3_log is the Files.com API client package for the files_sdk.InboundS3Log model.
Package inbound_s3_log is the Files.com API client package for the files_sdk.InboundS3Log model.
Package inbox_recipient is the Files.com API client package for the files_sdk.InboxRecipient model.
Package inbox_recipient is the Files.com API client package for the files_sdk.InboxRecipient model.
Package inbox_registration is the Files.com API client package for the files_sdk.InboxRegistration model.
Package inbox_registration is the Files.com API client package for the files_sdk.InboxRegistration model.
Package inbox_upload is the Files.com API client package for the files_sdk.InboxUpload model.
Package inbox_upload is the Files.com API client package for the files_sdk.InboxUpload model.
Package integration_centric_profile is the Files.com API client package for the files_sdk.IntegrationCentricProfile model.
Package integration_centric_profile is the Files.com API client package for the files_sdk.IntegrationCentricProfile model.
Package invoice is the Files.com API client package for the files_sdk.Invoice model.
Package invoice is the Files.com API client package for the files_sdk.Invoice model.
Package invoice_line_item is the Files.com API client package for the files_sdk.InvoiceLineItem model.
Package invoice_line_item is the Files.com API client package for the files_sdk.InvoiceLineItem model.
Package ip_address is the Files.com API client package for the files_sdk.IpAddress model.
Package ip_address is the Files.com API client package for the files_sdk.IpAddress model.
Package key_lifecycle_rule is the Files.com API client package for the files_sdk.KeyLifecycleRule model.
Package key_lifecycle_rule is the Files.com API client package for the files_sdk.KeyLifecycleRule model.
lib
privatefile
Package privatefile creates and maintains local files and directories that only the current user can read.
Package privatefile creates and maintains local files and directories that only the current user can read.
Package lock is the Files.com API client package for the files_sdk.Lock model.
Package lock is the Files.com API client package for the files_sdk.Lock model.
Package metadata_category is the Files.com API client package for the files_sdk.MetadataCategory model.
Package metadata_category is the Files.com API client package for the files_sdk.MetadataCategory model.
Package notification is the Files.com API client package for the files_sdk.Notification model.
Package notification is the Files.com API client package for the files_sdk.Notification model.
Package outbound_connection_log is the Files.com API client package for the files_sdk.OutboundConnectionLog model.
Package outbound_connection_log is the Files.com API client package for the files_sdk.OutboundConnectionLog model.
Package partner is the Files.com API client package for the files_sdk.Partner model.
Package partner is the Files.com API client package for the files_sdk.Partner model.
Package partner_channel is the Files.com API client package for the files_sdk.PartnerChannel model.
Package partner_channel is the Files.com API client package for the files_sdk.PartnerChannel model.
Package partner_channel_template is the Files.com API client package for the files_sdk.PartnerChannelTemplate model.
Package partner_channel_template is the Files.com API client package for the files_sdk.PartnerChannelTemplate model.
Package partner_connection is the Files.com API client package for the files_sdk.PartnerConnection model.
Package partner_connection is the Files.com API client package for the files_sdk.PartnerConnection model.
Package partner_site is the Files.com API client package for the files_sdk.PartnerSite model.
Package partner_site is the Files.com API client package for the files_sdk.PartnerSite model.
Package partner_site_request is the Files.com API client package for the files_sdk.PartnerSiteRequest model.
Package partner_site_request is the Files.com API client package for the files_sdk.PartnerSiteRequest model.
Package payment is the Files.com API client package for the files_sdk.Payment model.
Package payment is the Files.com API client package for the files_sdk.Payment model.
Package payment_line_item is the Files.com API client package for the files_sdk.PaymentLineItem model.
Package payment_line_item is the Files.com API client package for the files_sdk.PaymentLineItem model.
Package pending_work_event is the Files.com API client package for the files_sdk.PendingWorkEvent model.
Package pending_work_event is the Files.com API client package for the files_sdk.PendingWorkEvent model.
Package permission is the Files.com API client package for the files_sdk.Permission model.
Package permission is the Files.com API client package for the files_sdk.Permission model.
Package preview is the Files.com API client package for the files_sdk.Preview model.
Package preview is the Files.com API client package for the files_sdk.Preview model.
Package public_hosting_request_log is the Files.com API client package for the files_sdk.PublicHostingRequestLog model.
Package public_hosting_request_log is the Files.com API client package for the files_sdk.PublicHostingRequestLog model.
Package public_ip_address is the Files.com API client package for the files_sdk.PublicIpAddress model.
Package public_ip_address is the Files.com API client package for the files_sdk.PublicIpAddress model.
Package public_key is the Files.com API client package for the files_sdk.PublicKey model.
Package public_key is the Files.com API client package for the files_sdk.PublicKey model.
Package remote_bandwidth_snapshot is the Files.com API client package for the files_sdk.RemoteBandwidthSnapshot model.
Package remote_bandwidth_snapshot is the Files.com API client package for the files_sdk.RemoteBandwidthSnapshot model.
Package remote_mount_backend is the Files.com API client package for the files_sdk.RemoteMountBackend model.
Package remote_mount_backend is the Files.com API client package for the files_sdk.RemoteMountBackend model.
Package remote_server is the Files.com API client package for the files_sdk.RemoteServer model.
Package remote_server is the Files.com API client package for the files_sdk.RemoteServer model.
Package remote_server_configuration_file is the Files.com API client package for the files_sdk.RemoteServerConfigurationFile model.
Package remote_server_configuration_file is the Files.com API client package for the files_sdk.RemoteServerConfigurationFile model.
Package remote_server_credential is the Files.com API client package for the files_sdk.RemoteServerCredential model.
Package remote_server_credential is the Files.com API client package for the files_sdk.RemoteServerCredential model.
Package request is the Files.com API client package for the files_sdk.Request model.
Package request is the Files.com API client package for the files_sdk.Request model.
Package restore is the Files.com API client package for the files_sdk.Restore model.
Package restore is the Files.com API client package for the files_sdk.Restore model.
Package schedule is the Files.com API client package for the files_sdk.Schedule model.
Package schedule is the Files.com API client package for the files_sdk.Schedule model.
Package scheduled_export is the Files.com API client package for the files_sdk.ScheduledExport model.
Package scheduled_export is the Files.com API client package for the files_sdk.ScheduledExport model.
Package scim_log is the Files.com API client package for the files_sdk.ScimLog model.
Package scim_log is the Files.com API client package for the files_sdk.ScimLog model.
Package secret is the Files.com API client package for the files_sdk.Secret model.
Package secret is the Files.com API client package for the files_sdk.Secret model.
Package session is the Files.com API client package for the files_sdk.Session model.
Package session is the Files.com API client package for the files_sdk.Session model.
Package settings retrieves Files.com settings for desktop clients.
Package settings retrieves Files.com settings for desktop clients.
Package settings_change is the Files.com API client package for the files_sdk.SettingsChange model.
Package settings_change is the Files.com API client package for the files_sdk.SettingsChange model.
Package sftp_action_log is the Files.com API client package for the files_sdk.SftpActionLog model.
Package sftp_action_log is the Files.com API client package for the files_sdk.SftpActionLog model.
Package sftp_host_key is the Files.com API client package for the files_sdk.SftpHostKey model.
Package sftp_host_key is the Files.com API client package for the files_sdk.SftpHostKey model.
Package share_group is the Files.com API client package for the files_sdk.ShareGroup model.
Package share_group is the Files.com API client package for the files_sdk.ShareGroup model.
Package share_group_member is the Files.com API client package for the files_sdk.ShareGroupMember model.
Package share_group_member is the Files.com API client package for the files_sdk.ShareGroupMember model.
Package siem_http_destination is the Files.com API client package for the files_sdk.SiemHttpDestination model.
Package siem_http_destination is the Files.com API client package for the files_sdk.SiemHttpDestination model.
Package siem_http_destination_event is the Files.com API client package for the files_sdk.SiemHttpDestinationEvent model.
Package siem_http_destination_event is the Files.com API client package for the files_sdk.SiemHttpDestinationEvent model.
Package site is the Files.com API client package for the files_sdk.Site model.
Package site is the Files.com API client package for the files_sdk.Site model.
Package site_subdomain_redirect is the Files.com API client package for the files_sdk.SiteSubdomainRedirect model.
Package site_subdomain_redirect is the Files.com API client package for the files_sdk.SiteSubdomainRedirect model.
Package snapshot is the Files.com API client package for the files_sdk.Snapshot model.
Package snapshot is the Files.com API client package for the files_sdk.Snapshot model.
Package sso_event is the Files.com API client package for the files_sdk.SsoEvent model.
Package sso_event is the Files.com API client package for the files_sdk.SsoEvent model.
Package sso_strategy is the Files.com API client package for the files_sdk.SsoStrategy model.
Package sso_strategy is the Files.com API client package for the files_sdk.SsoStrategy model.
Package status is the Files.com API client package for the files_sdk.Status model.
Package status is the Files.com API client package for the files_sdk.Status model.
Package style is the Files.com API client package for the files_sdk.Style model.
Package style is the Files.com API client package for the files_sdk.Style model.
Package sync is the Files.com API client package for the files_sdk.Sync model.
Package sync is the Files.com API client package for the files_sdk.Sync model.
Package sync_log is the Files.com API client package for the files_sdk.SyncLog model.
Package sync_log is the Files.com API client package for the files_sdk.SyncLog model.
Package sync_run is the Files.com API client package for the files_sdk.SyncRun model.
Package sync_run is the Files.com API client package for the files_sdk.SyncRun model.
Package sync_run_live_transfer is the Files.com API client package for the files_sdk.SyncRunLiveTransfer model.
Package sync_run_live_transfer is the Files.com API client package for the files_sdk.SyncRunLiveTransfer model.
Package usage_by_top_level_dir is the Files.com API client package for the files_sdk.UsageByTopLevelDir model.
Package usage_by_top_level_dir is the Files.com API client package for the files_sdk.UsageByTopLevelDir model.
Package usage_daily_snapshot is the Files.com API client package for the files_sdk.UsageDailySnapshot model.
Package usage_daily_snapshot is the Files.com API client package for the files_sdk.UsageDailySnapshot model.
Package usage_snapshot is the Files.com API client package for the files_sdk.UsageSnapshot model.
Package usage_snapshot is the Files.com API client package for the files_sdk.UsageSnapshot model.
Package user is the Files.com API client package for the files_sdk.User model.
Package user is the Files.com API client package for the files_sdk.User model.
Package user_additional_email_recipient is the Files.com API client package for the files_sdk.UserAdditionalEmailRecipient model.
Package user_additional_email_recipient is the Files.com API client package for the files_sdk.UserAdditionalEmailRecipient model.
Package user_cipher_use is the Files.com API client package for the files_sdk.UserCipherUse model.
Package user_cipher_use is the Files.com API client package for the files_sdk.UserCipherUse model.
Package user_lifecycle_rule is the Files.com API client package for the files_sdk.UserLifecycleRule model.
Package user_lifecycle_rule is the Files.com API client package for the files_sdk.UserLifecycleRule model.
Package user_request is the Files.com API client package for the files_sdk.UserRequest model.
Package user_request is the Files.com API client package for the files_sdk.UserRequest model.
Package user_security_event is the Files.com API client package for the files_sdk.UserSecurityEvent model.
Package user_security_event is the Files.com API client package for the files_sdk.UserSecurityEvent model.
Package user_sftp_client_use is the Files.com API client package for the files_sdk.UserSftpClientUse model.
Package user_sftp_client_use is the Files.com API client package for the files_sdk.UserSftpClientUse model.
Package web_dav_action_log is the Files.com API client package for the files_sdk.WebDavActionLog model.
Package web_dav_action_log is the Files.com API client package for the files_sdk.WebDavActionLog model.
Package webhooktest is the Files.com API client package for the files_sdk.WebhookTest model.
Package webhooktest is the Files.com API client package for the files_sdk.WebhookTest model.
Package workspace is the Files.com API client package for the files_sdk.Workspace model.
Package workspace is the Files.com API client package for the files_sdk.Workspace model.
Package zip_list_entry is the Files.com API client package for the files_sdk.ZipListEntry model.
Package zip_list_entry is the Files.com API client package for the files_sdk.ZipListEntry model.

Jump to

Keyboard shortcuts

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