site

package
v3.3.380 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 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.

Documentation

Overview

Package site is the Files.com API client package for the files_sdk.Site model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtendAutomationMigrationWindow added in v3.3.343

func ExtendAutomationMigrationWindow(params files_sdk.SiteExtendAutomationMigrationWindowParams, opts ...files_sdk.RequestResponseOption) (err error)

ExtendAutomationMigrationWindow calls Client.ExtendAutomationMigrationWindow using the default configuration.

func Get

func Get(opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)

Get calls Client.Get using the default configuration.

func GetUsage

func GetUsage(opts ...files_sdk.RequestResponseOption) (usageSnapshot files_sdk.UsageSnapshot, err error)

GetUsage calls Client.GetUsage using the default configuration.

func Update

func Update(params files_sdk.SiteUpdateParams, opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)

Update calls Client.Update using the default configuration.

func UpdateWithMap

func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)

UpdateWithMap calls Client.UpdateWithMap using the default configuration.

Types

type Client

type Client struct {
	files_sdk.Config
}

Client calls the Site API using its embedded Config.

func (*Client) ExtendAutomationMigrationWindow added in v3.3.343

func (c *Client) ExtendAutomationMigrationWindow(params files_sdk.SiteExtendAutomationMigrationWindowParams, opts ...files_sdk.RequestResponseOption) (err error)

ExtendAutomationMigrationWindow calls POST /site/extend_automation_migration_window.

API operation: Extend the Automations conversion window by up to six weeks beyond its originally announced end date.

func (*Client) Get

func (c *Client) Get(opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)

Get calls GET /site.

func (*Client) GetUsage

func (c *Client) GetUsage(opts ...files_sdk.RequestResponseOption) (usageSnapshot files_sdk.UsageSnapshot, err error)

GetUsage calls GET /site/usage.

API operation: Get the most recent usage snapshot (usage data for billing purposes) for a Site.

func (*Client) Update

func (c *Client) Update(params files_sdk.SiteUpdateParams, opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)

Update calls PATCH /site.

func (*Client) UpdateWithMap

func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)

UpdateWithMap calls PATCH /site using API parameter names as map keys. Include any path parameters in the map. Unlike optional struct fields, explicit zero values in the map are included in the request.

Jump to

Keyboard shortcuts

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