Documentation
¶
Overview ¶
Package holiday_region is the Files.com API client package for the files_sdk.HolidayRegion model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client calls the HolidayRegion API using its embedded Config.
func (*Client) GetSupported ¶
func (c *Client) GetSupported(params files_sdk.HolidayRegionGetSupportedParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
GetSupported returns an iterator for GET /holiday_regions/supported. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
API operation: List all possible holiday regions.
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 GetSupported ¶
func GetSupported(params files_sdk.HolidayRegionGetSupportedParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
GetSupported returns a listing iterator using the default configuration. See Client.GetSupported 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) HolidayRegion ¶
func (i *Iter) HolidayRegion() files_sdk.HolidayRegion
HolidayRegion returns the current resource. Call it only after Next returns true.