Documentation
¶
Overview ¶
Package expectation_incident is the Files.com API client package for the files_sdk.ExpectationIncident model.
Index ¶
- func Acknowledge(params files_sdk.ExpectationIncidentAcknowledgeParams, ...) (expectationIncident files_sdk.ExpectationIncident, err error)
- func Find(params files_sdk.ExpectationIncidentFindParams, ...) (expectationIncident files_sdk.ExpectationIncident, err error)
- func Resolve(params files_sdk.ExpectationIncidentResolveParams, ...) (expectationIncident files_sdk.ExpectationIncident, err error)
- func Snooze(params files_sdk.ExpectationIncidentSnoozeParams, ...) (expectationIncident files_sdk.ExpectationIncident, err error)
- type Client
- func (c *Client) Acknowledge(params files_sdk.ExpectationIncidentAcknowledgeParams, ...) (expectationIncident files_sdk.ExpectationIncident, err error)
- func (c *Client) Find(params files_sdk.ExpectationIncidentFindParams, ...) (expectationIncident files_sdk.ExpectationIncident, err error)
- func (c *Client) List(params files_sdk.ExpectationIncidentListParams, ...) (*Iter, error)
- func (c *Client) Resolve(params files_sdk.ExpectationIncidentResolveParams, ...) (expectationIncident files_sdk.ExpectationIncident, err error)
- func (c *Client) Snooze(params files_sdk.ExpectationIncidentSnoozeParams, ...) (expectationIncident files_sdk.ExpectationIncident, err error)
- type Iter
- func (i *Iter) All() iter.Seq2[files_sdk.ExpectationIncident, error]
- func (i *Iter) ExpectationIncident() files_sdk.ExpectationIncident
- func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
- func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Acknowledge ¶
func Acknowledge(params files_sdk.ExpectationIncidentAcknowledgeParams, opts ...files_sdk.RequestResponseOption) (expectationIncident files_sdk.ExpectationIncident, err error)
Acknowledge calls Client.Acknowledge using the default configuration.
func Find ¶
func Find(params files_sdk.ExpectationIncidentFindParams, opts ...files_sdk.RequestResponseOption) (expectationIncident files_sdk.ExpectationIncident, err error)
Find calls Client.Find using the default configuration.
func Resolve ¶
func Resolve(params files_sdk.ExpectationIncidentResolveParams, opts ...files_sdk.RequestResponseOption) (expectationIncident files_sdk.ExpectationIncident, err error)
Resolve calls Client.Resolve using the default configuration.
func Snooze ¶
func Snooze(params files_sdk.ExpectationIncidentSnoozeParams, opts ...files_sdk.RequestResponseOption) (expectationIncident files_sdk.ExpectationIncident, err error)
Snooze calls Client.Snooze using the default configuration.
Types ¶
type Client ¶
Client calls the ExpectationIncident API using its embedded Config.
func (*Client) Acknowledge ¶
func (c *Client) Acknowledge(params files_sdk.ExpectationIncidentAcknowledgeParams, opts ...files_sdk.RequestResponseOption) (expectationIncident files_sdk.ExpectationIncident, err error)
Acknowledge calls POST /expectation_incidents/{id}/acknowledge.
API operation: Acknowledge an expectation incident.
func (*Client) Find ¶
func (c *Client) Find(params files_sdk.ExpectationIncidentFindParams, opts ...files_sdk.RequestResponseOption) (expectationIncident files_sdk.ExpectationIncident, err error)
Find calls GET /expectation_incidents/{id}.
func (*Client) List ¶
func (c *Client) List(params files_sdk.ExpectationIncidentListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /expectation_incidents. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
func (*Client) Resolve ¶
func (c *Client) Resolve(params files_sdk.ExpectationIncidentResolveParams, opts ...files_sdk.RequestResponseOption) (expectationIncident files_sdk.ExpectationIncident, err error)
Resolve calls POST /expectation_incidents/{id}/resolve.
API operation: Resolve an expectation incident.
func (*Client) Snooze ¶
func (c *Client) Snooze(params files_sdk.ExpectationIncidentSnoozeParams, opts ...files_sdk.RequestResponseOption) (expectationIncident files_sdk.ExpectationIncident, err error)
Snooze calls POST /expectation_incidents/{id}/snooze.
API operation: Snooze an expectation incident until a specified time.
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.ExpectationIncidentListParams, 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) ExpectationIncident ¶
func (i *Iter) ExpectationIncident() files_sdk.ExpectationIncident
ExpectationIncident returns the current resource. Call it only after Next returns true.
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.