Documentation
¶
Overview ¶
Package site is the Files.com API client package for the files_sdk.Site model.
Index ¶
- func Get(opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)
- func GetUsage(opts ...files_sdk.RequestResponseOption) (usageSnapshot files_sdk.UsageSnapshot, err error)
- func Update(params files_sdk.SiteUpdateParams, opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)
- func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)
- type Client
- func (c *Client) Get(opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)
- func (c *Client) GetUsage(opts ...files_sdk.RequestResponseOption) (usageSnapshot files_sdk.UsageSnapshot, err error)
- func (c *Client) Update(params files_sdk.SiteUpdateParams, opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)
- func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (site files_sdk.Site, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Client calls the Site API using its embedded Config.
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.