Documentation
¶
Overview ¶
Package api_key provides the Files.com ApiKey API client.
Index ¶
- func Create(params files_sdk.ApiKeyCreateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func Delete(params files_sdk.ApiKeyDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
- func DeleteCurrent(opts ...files_sdk.RequestResponseOption) (err error)
- func Find(params files_sdk.ApiKeyFindParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func FindCurrent(opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func Update(params files_sdk.ApiKeyUpdateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func UpdateCurrent(params files_sdk.ApiKeyUpdateCurrentParams, ...) (apiKey files_sdk.ApiKey, err error)
- func UpdateCurrentWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- type Client
- func (c *Client) Create(params files_sdk.ApiKeyCreateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func (c *Client) Delete(params files_sdk.ApiKeyDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
- func (c *Client) DeleteCurrent(opts ...files_sdk.RequestResponseOption) (err error)
- func (c *Client) Find(params files_sdk.ApiKeyFindParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func (c *Client) FindCurrent(opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func (c *Client) List(params files_sdk.ApiKeyListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
- func (c *Client) Update(params files_sdk.ApiKeyUpdateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func (c *Client) UpdateCurrent(params files_sdk.ApiKeyUpdateCurrentParams, ...) (apiKey files_sdk.ApiKey, err error)
- func (c *Client) UpdateCurrentWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(params files_sdk.ApiKeyCreateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
Create calls Client.Create using the default configuration.
func Delete ¶
func Delete(params files_sdk.ApiKeyDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
Delete calls Client.Delete using the default configuration.
func DeleteCurrent ¶
func DeleteCurrent(opts ...files_sdk.RequestResponseOption) (err error)
DeleteCurrent calls Client.DeleteCurrent using the default configuration.
func Find ¶
func Find(params files_sdk.ApiKeyFindParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
Find calls Client.Find using the default configuration.
func FindCurrent ¶
func FindCurrent(opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
FindCurrent calls Client.FindCurrent using the default configuration.
func Update ¶
func Update(params files_sdk.ApiKeyUpdateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
Update calls Client.Update using the default configuration.
func UpdateCurrent ¶
func UpdateCurrent(params files_sdk.ApiKeyUpdateCurrentParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
UpdateCurrent calls Client.UpdateCurrent using the default configuration.
func UpdateCurrentWithMap ¶
func UpdateCurrentWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
UpdateCurrentWithMap calls Client.UpdateCurrentWithMap using the default configuration.
func UpdateWithMap ¶
func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
UpdateWithMap calls Client.UpdateWithMap using the default configuration.
Types ¶
type Client ¶
Client calls the ApiKey API using its embedded Config.
func (*Client) Create ¶
func (c *Client) Create(params files_sdk.ApiKeyCreateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
Create calls POST /api_keys.
func (*Client) Delete ¶
func (c *Client) Delete(params files_sdk.ApiKeyDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)
Delete calls DELETE /api_keys/{id}.
func (*Client) DeleteCurrent ¶
func (c *Client) DeleteCurrent(opts ...files_sdk.RequestResponseOption) (err error)
DeleteCurrent calls DELETE /api_key.
API operation: Delete current API key. (Requires current API connection to be using an API key.).
func (*Client) Find ¶
func (c *Client) Find(params files_sdk.ApiKeyFindParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
Find calls GET /api_keys/{id}.
func (*Client) FindCurrent ¶
func (c *Client) FindCurrent(opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
FindCurrent calls GET /api_key.
API operation: Show information about current API key. (Requires current API connection to be using an API key.).
func (*Client) List ¶
func (c *Client) List(params files_sdk.ApiKeyListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /api_keys. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
func (*Client) Update ¶
func (c *Client) Update(params files_sdk.ApiKeyUpdateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
Update calls PATCH /api_keys/{id}.
func (*Client) UpdateCurrent ¶
func (c *Client) UpdateCurrent(params files_sdk.ApiKeyUpdateCurrentParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
UpdateCurrent calls PATCH /api_key.
API operation: Update current API key. (Requires current API connection to be using an API key.).
func (*Client) UpdateCurrentWithMap ¶
func (c *Client) UpdateCurrentWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
UpdateCurrentWithMap calls PATCH /api_key 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.
func (*Client) UpdateWithMap ¶
func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)
UpdateWithMap calls PATCH /api_keys/{id} 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.
type Iter ¶
Iter traverses a paginated API response. Range over All to get each resource with a nil error, followed by the error that stopped the listing, if any. Alternatively, call Next before reading the current resource, then check Err after Next returns false.
func List ¶
func List(params files_sdk.ApiKeyListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns a listing iterator using the default configuration. See Client.List for the operation and paging behavior.
func (*Iter) All ¶ added in v3.3.301
All returns an iterator over the listing's remaining resources, each with a nil error, followed by the error that stops the listing, if any. Pages are requested as the loop reaches them. See files_sdk.IterAll.
func (*Iter) LoadResource ¶
func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
LoadResource fetches a resource by its ID. identifier must have type int64.