Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateActivity(params *CreateActivityParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateActivityCreated, error)
- func (a *Client) GetActivityByID(params *GetActivityByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetActivityByIDOK, error)
- func (a *Client) GetCommentsByActivityID(params *GetCommentsByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetCommentsByActivityIDOK, error)
- func (a *Client) GetKudoersByActivityID(params *GetKudoersByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetKudoersByActivityIDOK, error)
- func (a *Client) GetLapsByActivityID(params *GetLapsByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetLapsByActivityIDOK, error)
- func (a *Client) GetLoggedInAthleteActivities(params *GetLoggedInAthleteActivitiesParams, ...) (*GetLoggedInAthleteActivitiesOK, error)
- func (a *Client) GetZonesByActivityID(params *GetZonesByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetZonesByActivityIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateActivityByID(params *UpdateActivityByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateActivityByIDOK, error)
- type ClientOption
- type ClientService
- type CreateActivityCreated
- func (o *CreateActivityCreated) Code() int
- func (o *CreateActivityCreated) Error() string
- func (o *CreateActivityCreated) GetPayload() *models.DetailedActivity
- func (o *CreateActivityCreated) IsClientError() bool
- func (o *CreateActivityCreated) IsCode(code int) bool
- func (o *CreateActivityCreated) IsRedirect() bool
- func (o *CreateActivityCreated) IsServerError() bool
- func (o *CreateActivityCreated) IsSuccess() bool
- func (o *CreateActivityCreated) String() string
- type CreateActivityDefault
- func (o *CreateActivityDefault) Code() int
- func (o *CreateActivityDefault) Error() string
- func (o *CreateActivityDefault) GetPayload() *models.Fault
- func (o *CreateActivityDefault) IsClientError() bool
- func (o *CreateActivityDefault) IsCode(code int) bool
- func (o *CreateActivityDefault) IsRedirect() bool
- func (o *CreateActivityDefault) IsServerError() bool
- func (o *CreateActivityDefault) IsSuccess() bool
- func (o *CreateActivityDefault) String() string
- type CreateActivityParams
- func NewCreateActivityParams() *CreateActivityParams
- func NewCreateActivityParamsWithContext(ctx context.Context) *CreateActivityParams
- func NewCreateActivityParamsWithHTTPClient(client *http.Client) *CreateActivityParams
- func NewCreateActivityParamsWithTimeout(timeout time.Duration) *CreateActivityParams
- func (o *CreateActivityParams) SetCommute(commute *int64)
- func (o *CreateActivityParams) SetContext(ctx context.Context)
- func (o *CreateActivityParams) SetDefaults()
- func (o *CreateActivityParams) SetDescription(description *string)
- func (o *CreateActivityParams) SetDistance(distance *float32)
- func (o *CreateActivityParams) SetElapsedTime(elapsedTime int64)
- func (o *CreateActivityParams) SetHTTPClient(client *http.Client)
- func (o *CreateActivityParams) SetName(name string)
- func (o *CreateActivityParams) SetSportType(sportType string)
- func (o *CreateActivityParams) SetStartDateLocal(startDateLocal strfmt.DateTime)
- func (o *CreateActivityParams) SetTimeout(timeout time.Duration)
- func (o *CreateActivityParams) SetTrainer(trainer *int64)
- func (o *CreateActivityParams) SetType(typeVar *string)
- func (o *CreateActivityParams) WithCommute(commute *int64) *CreateActivityParams
- func (o *CreateActivityParams) WithContext(ctx context.Context) *CreateActivityParams
- func (o *CreateActivityParams) WithDefaults() *CreateActivityParams
- func (o *CreateActivityParams) WithDescription(description *string) *CreateActivityParams
- func (o *CreateActivityParams) WithDistance(distance *float32) *CreateActivityParams
- func (o *CreateActivityParams) WithElapsedTime(elapsedTime int64) *CreateActivityParams
- func (o *CreateActivityParams) WithHTTPClient(client *http.Client) *CreateActivityParams
- func (o *CreateActivityParams) WithName(name string) *CreateActivityParams
- func (o *CreateActivityParams) WithSportType(sportType string) *CreateActivityParams
- func (o *CreateActivityParams) WithStartDateLocal(startDateLocal strfmt.DateTime) *CreateActivityParams
- func (o *CreateActivityParams) WithTimeout(timeout time.Duration) *CreateActivityParams
- func (o *CreateActivityParams) WithTrainer(trainer *int64) *CreateActivityParams
- func (o *CreateActivityParams) WithType(typeVar *string) *CreateActivityParams
- func (o *CreateActivityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateActivityReader
- type GetActivityByIDDefault
- func (o *GetActivityByIDDefault) Code() int
- func (o *GetActivityByIDDefault) Error() string
- func (o *GetActivityByIDDefault) GetPayload() *models.Fault
- func (o *GetActivityByIDDefault) IsClientError() bool
- func (o *GetActivityByIDDefault) IsCode(code int) bool
- func (o *GetActivityByIDDefault) IsRedirect() bool
- func (o *GetActivityByIDDefault) IsServerError() bool
- func (o *GetActivityByIDDefault) IsSuccess() bool
- func (o *GetActivityByIDDefault) String() string
- type GetActivityByIDOK
- func (o *GetActivityByIDOK) Code() int
- func (o *GetActivityByIDOK) Error() string
- func (o *GetActivityByIDOK) GetPayload() *models.DetailedActivity
- func (o *GetActivityByIDOK) IsClientError() bool
- func (o *GetActivityByIDOK) IsCode(code int) bool
- func (o *GetActivityByIDOK) IsRedirect() bool
- func (o *GetActivityByIDOK) IsServerError() bool
- func (o *GetActivityByIDOK) IsSuccess() bool
- func (o *GetActivityByIDOK) String() string
- type GetActivityByIDParams
- func NewGetActivityByIDParams() *GetActivityByIDParams
- func NewGetActivityByIDParamsWithContext(ctx context.Context) *GetActivityByIDParams
- func NewGetActivityByIDParamsWithHTTPClient(client *http.Client) *GetActivityByIDParams
- func NewGetActivityByIDParamsWithTimeout(timeout time.Duration) *GetActivityByIDParams
- func (o *GetActivityByIDParams) SetContext(ctx context.Context)
- func (o *GetActivityByIDParams) SetDefaults()
- func (o *GetActivityByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetActivityByIDParams) SetID(id int64)
- func (o *GetActivityByIDParams) SetIncludeAllEfforts(includeAllEfforts *bool)
- func (o *GetActivityByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetActivityByIDParams) WithContext(ctx context.Context) *GetActivityByIDParams
- func (o *GetActivityByIDParams) WithDefaults() *GetActivityByIDParams
- func (o *GetActivityByIDParams) WithHTTPClient(client *http.Client) *GetActivityByIDParams
- func (o *GetActivityByIDParams) WithID(id int64) *GetActivityByIDParams
- func (o *GetActivityByIDParams) WithIncludeAllEfforts(includeAllEfforts *bool) *GetActivityByIDParams
- func (o *GetActivityByIDParams) WithTimeout(timeout time.Duration) *GetActivityByIDParams
- func (o *GetActivityByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetActivityByIDReader
- type GetCommentsByActivityIDDefault
- func (o *GetCommentsByActivityIDDefault) Code() int
- func (o *GetCommentsByActivityIDDefault) Error() string
- func (o *GetCommentsByActivityIDDefault) GetPayload() *models.Fault
- func (o *GetCommentsByActivityIDDefault) IsClientError() bool
- func (o *GetCommentsByActivityIDDefault) IsCode(code int) bool
- func (o *GetCommentsByActivityIDDefault) IsRedirect() bool
- func (o *GetCommentsByActivityIDDefault) IsServerError() bool
- func (o *GetCommentsByActivityIDDefault) IsSuccess() bool
- func (o *GetCommentsByActivityIDDefault) String() string
- type GetCommentsByActivityIDOK
- func (o *GetCommentsByActivityIDOK) Code() int
- func (o *GetCommentsByActivityIDOK) Error() string
- func (o *GetCommentsByActivityIDOK) GetPayload() []*models.Comment
- func (o *GetCommentsByActivityIDOK) IsClientError() bool
- func (o *GetCommentsByActivityIDOK) IsCode(code int) bool
- func (o *GetCommentsByActivityIDOK) IsRedirect() bool
- func (o *GetCommentsByActivityIDOK) IsServerError() bool
- func (o *GetCommentsByActivityIDOK) IsSuccess() bool
- func (o *GetCommentsByActivityIDOK) String() string
- type GetCommentsByActivityIDParams
- func NewGetCommentsByActivityIDParams() *GetCommentsByActivityIDParams
- func NewGetCommentsByActivityIDParamsWithContext(ctx context.Context) *GetCommentsByActivityIDParams
- func NewGetCommentsByActivityIDParamsWithHTTPClient(client *http.Client) *GetCommentsByActivityIDParams
- func NewGetCommentsByActivityIDParamsWithTimeout(timeout time.Duration) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) SetAfterCursor(afterCursor *string)
- func (o *GetCommentsByActivityIDParams) SetContext(ctx context.Context)
- func (o *GetCommentsByActivityIDParams) SetDefaults()
- func (o *GetCommentsByActivityIDParams) SetHTTPClient(client *http.Client)
- func (o *GetCommentsByActivityIDParams) SetID(id int64)
- func (o *GetCommentsByActivityIDParams) SetPage(page *int64)
- func (o *GetCommentsByActivityIDParams) SetPageSize(pageSize *int64)
- func (o *GetCommentsByActivityIDParams) SetPerPage(perPage *int64)
- func (o *GetCommentsByActivityIDParams) SetTimeout(timeout time.Duration)
- func (o *GetCommentsByActivityIDParams) WithAfterCursor(afterCursor *string) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WithContext(ctx context.Context) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WithDefaults() *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WithHTTPClient(client *http.Client) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WithID(id int64) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WithPage(page *int64) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WithPageSize(pageSize *int64) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WithPerPage(perPage *int64) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WithTimeout(timeout time.Duration) *GetCommentsByActivityIDParams
- func (o *GetCommentsByActivityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCommentsByActivityIDReader
- type GetKudoersByActivityIDDefault
- func (o *GetKudoersByActivityIDDefault) Code() int
- func (o *GetKudoersByActivityIDDefault) Error() string
- func (o *GetKudoersByActivityIDDefault) GetPayload() *models.Fault
- func (o *GetKudoersByActivityIDDefault) IsClientError() bool
- func (o *GetKudoersByActivityIDDefault) IsCode(code int) bool
- func (o *GetKudoersByActivityIDDefault) IsRedirect() bool
- func (o *GetKudoersByActivityIDDefault) IsServerError() bool
- func (o *GetKudoersByActivityIDDefault) IsSuccess() bool
- func (o *GetKudoersByActivityIDDefault) String() string
- type GetKudoersByActivityIDOK
- func (o *GetKudoersByActivityIDOK) Code() int
- func (o *GetKudoersByActivityIDOK) Error() string
- func (o *GetKudoersByActivityIDOK) GetPayload() []*models.SummaryAthlete
- func (o *GetKudoersByActivityIDOK) IsClientError() bool
- func (o *GetKudoersByActivityIDOK) IsCode(code int) bool
- func (o *GetKudoersByActivityIDOK) IsRedirect() bool
- func (o *GetKudoersByActivityIDOK) IsServerError() bool
- func (o *GetKudoersByActivityIDOK) IsSuccess() bool
- func (o *GetKudoersByActivityIDOK) String() string
- type GetKudoersByActivityIDParams
- func NewGetKudoersByActivityIDParams() *GetKudoersByActivityIDParams
- func NewGetKudoersByActivityIDParamsWithContext(ctx context.Context) *GetKudoersByActivityIDParams
- func NewGetKudoersByActivityIDParamsWithHTTPClient(client *http.Client) *GetKudoersByActivityIDParams
- func NewGetKudoersByActivityIDParamsWithTimeout(timeout time.Duration) *GetKudoersByActivityIDParams
- func (o *GetKudoersByActivityIDParams) SetContext(ctx context.Context)
- func (o *GetKudoersByActivityIDParams) SetDefaults()
- func (o *GetKudoersByActivityIDParams) SetHTTPClient(client *http.Client)
- func (o *GetKudoersByActivityIDParams) SetID(id int64)
- func (o *GetKudoersByActivityIDParams) SetPage(page *int64)
- func (o *GetKudoersByActivityIDParams) SetPerPage(perPage *int64)
- func (o *GetKudoersByActivityIDParams) SetTimeout(timeout time.Duration)
- func (o *GetKudoersByActivityIDParams) WithContext(ctx context.Context) *GetKudoersByActivityIDParams
- func (o *GetKudoersByActivityIDParams) WithDefaults() *GetKudoersByActivityIDParams
- func (o *GetKudoersByActivityIDParams) WithHTTPClient(client *http.Client) *GetKudoersByActivityIDParams
- func (o *GetKudoersByActivityIDParams) WithID(id int64) *GetKudoersByActivityIDParams
- func (o *GetKudoersByActivityIDParams) WithPage(page *int64) *GetKudoersByActivityIDParams
- func (o *GetKudoersByActivityIDParams) WithPerPage(perPage *int64) *GetKudoersByActivityIDParams
- func (o *GetKudoersByActivityIDParams) WithTimeout(timeout time.Duration) *GetKudoersByActivityIDParams
- func (o *GetKudoersByActivityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetKudoersByActivityIDReader
- type GetLapsByActivityIDDefault
- func (o *GetLapsByActivityIDDefault) Code() int
- func (o *GetLapsByActivityIDDefault) Error() string
- func (o *GetLapsByActivityIDDefault) GetPayload() *models.Fault
- func (o *GetLapsByActivityIDDefault) IsClientError() bool
- func (o *GetLapsByActivityIDDefault) IsCode(code int) bool
- func (o *GetLapsByActivityIDDefault) IsRedirect() bool
- func (o *GetLapsByActivityIDDefault) IsServerError() bool
- func (o *GetLapsByActivityIDDefault) IsSuccess() bool
- func (o *GetLapsByActivityIDDefault) String() string
- type GetLapsByActivityIDOK
- func (o *GetLapsByActivityIDOK) Code() int
- func (o *GetLapsByActivityIDOK) Error() string
- func (o *GetLapsByActivityIDOK) GetPayload() []*models.Lap
- func (o *GetLapsByActivityIDOK) IsClientError() bool
- func (o *GetLapsByActivityIDOK) IsCode(code int) bool
- func (o *GetLapsByActivityIDOK) IsRedirect() bool
- func (o *GetLapsByActivityIDOK) IsServerError() bool
- func (o *GetLapsByActivityIDOK) IsSuccess() bool
- func (o *GetLapsByActivityIDOK) String() string
- type GetLapsByActivityIDParams
- func NewGetLapsByActivityIDParams() *GetLapsByActivityIDParams
- func NewGetLapsByActivityIDParamsWithContext(ctx context.Context) *GetLapsByActivityIDParams
- func NewGetLapsByActivityIDParamsWithHTTPClient(client *http.Client) *GetLapsByActivityIDParams
- func NewGetLapsByActivityIDParamsWithTimeout(timeout time.Duration) *GetLapsByActivityIDParams
- func (o *GetLapsByActivityIDParams) SetContext(ctx context.Context)
- func (o *GetLapsByActivityIDParams) SetDefaults()
- func (o *GetLapsByActivityIDParams) SetHTTPClient(client *http.Client)
- func (o *GetLapsByActivityIDParams) SetID(id int64)
- func (o *GetLapsByActivityIDParams) SetTimeout(timeout time.Duration)
- func (o *GetLapsByActivityIDParams) WithContext(ctx context.Context) *GetLapsByActivityIDParams
- func (o *GetLapsByActivityIDParams) WithDefaults() *GetLapsByActivityIDParams
- func (o *GetLapsByActivityIDParams) WithHTTPClient(client *http.Client) *GetLapsByActivityIDParams
- func (o *GetLapsByActivityIDParams) WithID(id int64) *GetLapsByActivityIDParams
- func (o *GetLapsByActivityIDParams) WithTimeout(timeout time.Duration) *GetLapsByActivityIDParams
- func (o *GetLapsByActivityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLapsByActivityIDReader
- type GetLoggedInAthleteActivitiesDefault
- func (o *GetLoggedInAthleteActivitiesDefault) Code() int
- func (o *GetLoggedInAthleteActivitiesDefault) Error() string
- func (o *GetLoggedInAthleteActivitiesDefault) GetPayload() *models.Fault
- func (o *GetLoggedInAthleteActivitiesDefault) IsClientError() bool
- func (o *GetLoggedInAthleteActivitiesDefault) IsCode(code int) bool
- func (o *GetLoggedInAthleteActivitiesDefault) IsRedirect() bool
- func (o *GetLoggedInAthleteActivitiesDefault) IsServerError() bool
- func (o *GetLoggedInAthleteActivitiesDefault) IsSuccess() bool
- func (o *GetLoggedInAthleteActivitiesDefault) String() string
- type GetLoggedInAthleteActivitiesOK
- func (o *GetLoggedInAthleteActivitiesOK) Code() int
- func (o *GetLoggedInAthleteActivitiesOK) Error() string
- func (o *GetLoggedInAthleteActivitiesOK) GetPayload() []*models.SummaryActivity
- func (o *GetLoggedInAthleteActivitiesOK) IsClientError() bool
- func (o *GetLoggedInAthleteActivitiesOK) IsCode(code int) bool
- func (o *GetLoggedInAthleteActivitiesOK) IsRedirect() bool
- func (o *GetLoggedInAthleteActivitiesOK) IsServerError() bool
- func (o *GetLoggedInAthleteActivitiesOK) IsSuccess() bool
- func (o *GetLoggedInAthleteActivitiesOK) String() string
- type GetLoggedInAthleteActivitiesParams
- func NewGetLoggedInAthleteActivitiesParams() *GetLoggedInAthleteActivitiesParams
- func NewGetLoggedInAthleteActivitiesParamsWithContext(ctx context.Context) *GetLoggedInAthleteActivitiesParams
- func NewGetLoggedInAthleteActivitiesParamsWithHTTPClient(client *http.Client) *GetLoggedInAthleteActivitiesParams
- func NewGetLoggedInAthleteActivitiesParamsWithTimeout(timeout time.Duration) *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) SetAfter(after *int64)
- func (o *GetLoggedInAthleteActivitiesParams) SetBefore(before *int64)
- func (o *GetLoggedInAthleteActivitiesParams) SetContext(ctx context.Context)
- func (o *GetLoggedInAthleteActivitiesParams) SetDefaults()
- func (o *GetLoggedInAthleteActivitiesParams) SetHTTPClient(client *http.Client)
- func (o *GetLoggedInAthleteActivitiesParams) SetPage(page *int64)
- func (o *GetLoggedInAthleteActivitiesParams) SetPerPage(perPage *int64)
- func (o *GetLoggedInAthleteActivitiesParams) SetTimeout(timeout time.Duration)
- func (o *GetLoggedInAthleteActivitiesParams) WithAfter(after *int64) *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) WithBefore(before *int64) *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) WithContext(ctx context.Context) *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) WithDefaults() *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) WithHTTPClient(client *http.Client) *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) WithPage(page *int64) *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) WithPerPage(perPage *int64) *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) WithTimeout(timeout time.Duration) *GetLoggedInAthleteActivitiesParams
- func (o *GetLoggedInAthleteActivitiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLoggedInAthleteActivitiesReader
- type GetZonesByActivityIDDefault
- func (o *GetZonesByActivityIDDefault) Code() int
- func (o *GetZonesByActivityIDDefault) Error() string
- func (o *GetZonesByActivityIDDefault) GetPayload() *models.Fault
- func (o *GetZonesByActivityIDDefault) IsClientError() bool
- func (o *GetZonesByActivityIDDefault) IsCode(code int) bool
- func (o *GetZonesByActivityIDDefault) IsRedirect() bool
- func (o *GetZonesByActivityIDDefault) IsServerError() bool
- func (o *GetZonesByActivityIDDefault) IsSuccess() bool
- func (o *GetZonesByActivityIDDefault) String() string
- type GetZonesByActivityIDOK
- func (o *GetZonesByActivityIDOK) Code() int
- func (o *GetZonesByActivityIDOK) Error() string
- func (o *GetZonesByActivityIDOK) GetPayload() []*models.ActivityZone
- func (o *GetZonesByActivityIDOK) IsClientError() bool
- func (o *GetZonesByActivityIDOK) IsCode(code int) bool
- func (o *GetZonesByActivityIDOK) IsRedirect() bool
- func (o *GetZonesByActivityIDOK) IsServerError() bool
- func (o *GetZonesByActivityIDOK) IsSuccess() bool
- func (o *GetZonesByActivityIDOK) String() string
- type GetZonesByActivityIDParams
- func NewGetZonesByActivityIDParams() *GetZonesByActivityIDParams
- func NewGetZonesByActivityIDParamsWithContext(ctx context.Context) *GetZonesByActivityIDParams
- func NewGetZonesByActivityIDParamsWithHTTPClient(client *http.Client) *GetZonesByActivityIDParams
- func NewGetZonesByActivityIDParamsWithTimeout(timeout time.Duration) *GetZonesByActivityIDParams
- func (o *GetZonesByActivityIDParams) SetContext(ctx context.Context)
- func (o *GetZonesByActivityIDParams) SetDefaults()
- func (o *GetZonesByActivityIDParams) SetHTTPClient(client *http.Client)
- func (o *GetZonesByActivityIDParams) SetID(id int64)
- func (o *GetZonesByActivityIDParams) SetTimeout(timeout time.Duration)
- func (o *GetZonesByActivityIDParams) WithContext(ctx context.Context) *GetZonesByActivityIDParams
- func (o *GetZonesByActivityIDParams) WithDefaults() *GetZonesByActivityIDParams
- func (o *GetZonesByActivityIDParams) WithHTTPClient(client *http.Client) *GetZonesByActivityIDParams
- func (o *GetZonesByActivityIDParams) WithID(id int64) *GetZonesByActivityIDParams
- func (o *GetZonesByActivityIDParams) WithTimeout(timeout time.Duration) *GetZonesByActivityIDParams
- func (o *GetZonesByActivityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetZonesByActivityIDReader
- type UpdateActivityByIDDefault
- func (o *UpdateActivityByIDDefault) Code() int
- func (o *UpdateActivityByIDDefault) Error() string
- func (o *UpdateActivityByIDDefault) GetPayload() *models.Fault
- func (o *UpdateActivityByIDDefault) IsClientError() bool
- func (o *UpdateActivityByIDDefault) IsCode(code int) bool
- func (o *UpdateActivityByIDDefault) IsRedirect() bool
- func (o *UpdateActivityByIDDefault) IsServerError() bool
- func (o *UpdateActivityByIDDefault) IsSuccess() bool
- func (o *UpdateActivityByIDDefault) String() string
- type UpdateActivityByIDOK
- func (o *UpdateActivityByIDOK) Code() int
- func (o *UpdateActivityByIDOK) Error() string
- func (o *UpdateActivityByIDOK) GetPayload() *models.DetailedActivity
- func (o *UpdateActivityByIDOK) IsClientError() bool
- func (o *UpdateActivityByIDOK) IsCode(code int) bool
- func (o *UpdateActivityByIDOK) IsRedirect() bool
- func (o *UpdateActivityByIDOK) IsServerError() bool
- func (o *UpdateActivityByIDOK) IsSuccess() bool
- func (o *UpdateActivityByIDOK) String() string
- type UpdateActivityByIDParams
- func NewUpdateActivityByIDParams() *UpdateActivityByIDParams
- func NewUpdateActivityByIDParamsWithContext(ctx context.Context) *UpdateActivityByIDParams
- func NewUpdateActivityByIDParamsWithHTTPClient(client *http.Client) *UpdateActivityByIDParams
- func NewUpdateActivityByIDParamsWithTimeout(timeout time.Duration) *UpdateActivityByIDParams
- func (o *UpdateActivityByIDParams) SetBody(body *models.UpdatableActivity)
- func (o *UpdateActivityByIDParams) SetContext(ctx context.Context)
- func (o *UpdateActivityByIDParams) SetDefaults()
- func (o *UpdateActivityByIDParams) SetHTTPClient(client *http.Client)
- func (o *UpdateActivityByIDParams) SetID(id int64)
- func (o *UpdateActivityByIDParams) SetTimeout(timeout time.Duration)
- func (o *UpdateActivityByIDParams) WithBody(body *models.UpdatableActivity) *UpdateActivityByIDParams
- func (o *UpdateActivityByIDParams) WithContext(ctx context.Context) *UpdateActivityByIDParams
- func (o *UpdateActivityByIDParams) WithDefaults() *UpdateActivityByIDParams
- func (o *UpdateActivityByIDParams) WithHTTPClient(client *http.Client) *UpdateActivityByIDParams
- func (o *UpdateActivityByIDParams) WithID(id int64) *UpdateActivityByIDParams
- func (o *UpdateActivityByIDParams) WithTimeout(timeout time.Duration) *UpdateActivityByIDParams
- func (o *UpdateActivityByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateActivityByIDReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for activities API
func (*Client) CreateActivity ¶
func (a *Client) CreateActivity(params *CreateActivityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateActivityCreated, error)
CreateActivity creates an activity
Creates a manual activity for an athlete, requires activity:write scope.
func (*Client) GetActivityByID ¶
func (a *Client) GetActivityByID(params *GetActivityByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetActivityByIDOK, error)
GetActivityByID gets activity
Returns the given activity that is owned by the authenticated athlete. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
func (*Client) GetCommentsByActivityID ¶
func (a *Client) GetCommentsByActivityID(params *GetCommentsByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommentsByActivityIDOK, error)
GetCommentsByActivityID lists activity comments
Returns the comments on the given activity. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
func (*Client) GetKudoersByActivityID ¶
func (a *Client) GetKudoersByActivityID(params *GetKudoersByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetKudoersByActivityIDOK, error)
GetKudoersByActivityID lists activity kudoers
Returns the athletes who kudoed an activity identified by an identifier. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
func (*Client) GetLapsByActivityID ¶
func (a *Client) GetLapsByActivityID(params *GetLapsByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLapsByActivityIDOK, error)
GetLapsByActivityID lists activity laps
Returns the laps of an activity identified by an identifier. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
func (*Client) GetLoggedInAthleteActivities ¶
func (a *Client) GetLoggedInAthleteActivities(params *GetLoggedInAthleteActivitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoggedInAthleteActivitiesOK, error)
GetLoggedInAthleteActivities lists athlete activities
Returns the activities of an athlete for a specific identifier. Requires activity:read. Only Me activities will be filtered out unless requested by a token with activity:read_all.
func (*Client) GetZonesByActivityID ¶
func (a *Client) GetZonesByActivityID(params *GetZonesByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetZonesByActivityIDOK, error)
GetZonesByActivityID gets activity zones
Summit Feature. Returns the zones of a given activity. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateActivityByID ¶
func (a *Client) UpdateActivityByID(params *UpdateActivityByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateActivityByIDOK, error)
UpdateActivityByID updates activity
Updates the given activity that is owned by the authenticated athlete. Requires activity:write. Also requires activity:read_all in order to update Only Me activities
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { CreateActivity(params *CreateActivityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateActivityCreated, error) GetActivityByID(params *GetActivityByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetActivityByIDOK, error) GetCommentsByActivityID(params *GetCommentsByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommentsByActivityIDOK, error) GetKudoersByActivityID(params *GetKudoersByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetKudoersByActivityIDOK, error) GetLapsByActivityID(params *GetLapsByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLapsByActivityIDOK, error) GetLoggedInAthleteActivities(params *GetLoggedInAthleteActivitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoggedInAthleteActivitiesOK, error) GetZonesByActivityID(params *GetZonesByActivityIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetZonesByActivityIDOK, error) UpdateActivityByID(params *UpdateActivityByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateActivityByIDOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new activities API client.
func NewClientWithBasicAuth ¶ added in v0.1.0
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new activities API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.1.0
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new activities API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type CreateActivityCreated ¶
type CreateActivityCreated struct {
Payload *models.DetailedActivity
}
CreateActivityCreated describes a response with status code 201, with default header values.
The activity's detailed representation.
func NewCreateActivityCreated ¶
func NewCreateActivityCreated() *CreateActivityCreated
NewCreateActivityCreated creates a CreateActivityCreated with default headers values
func (*CreateActivityCreated) Code ¶ added in v0.0.7
func (o *CreateActivityCreated) Code() int
Code gets the status code for the create activity created response
func (*CreateActivityCreated) Error ¶
func (o *CreateActivityCreated) Error() string
func (*CreateActivityCreated) GetPayload ¶
func (o *CreateActivityCreated) GetPayload() *models.DetailedActivity
func (*CreateActivityCreated) IsClientError ¶ added in v0.0.5
func (o *CreateActivityCreated) IsClientError() bool
IsClientError returns true when this create activity created response has a 4xx status code
func (*CreateActivityCreated) IsCode ¶ added in v0.0.5
func (o *CreateActivityCreated) IsCode(code int) bool
IsCode returns true when this create activity created response a status code equal to that given
func (*CreateActivityCreated) IsRedirect ¶ added in v0.0.5
func (o *CreateActivityCreated) IsRedirect() bool
IsRedirect returns true when this create activity created response has a 3xx status code
func (*CreateActivityCreated) IsServerError ¶ added in v0.0.5
func (o *CreateActivityCreated) IsServerError() bool
IsServerError returns true when this create activity created response has a 5xx status code
func (*CreateActivityCreated) IsSuccess ¶ added in v0.0.5
func (o *CreateActivityCreated) IsSuccess() bool
IsSuccess returns true when this create activity created response has a 2xx status code
func (*CreateActivityCreated) String ¶ added in v0.0.5
func (o *CreateActivityCreated) String() string
type CreateActivityDefault ¶
type CreateActivityDefault struct { Payload *models.Fault // contains filtered or unexported fields }
CreateActivityDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewCreateActivityDefault ¶
func NewCreateActivityDefault(code int) *CreateActivityDefault
NewCreateActivityDefault creates a CreateActivityDefault with default headers values
func (*CreateActivityDefault) Code ¶
func (o *CreateActivityDefault) Code() int
Code gets the status code for the create activity default response
func (*CreateActivityDefault) Error ¶
func (o *CreateActivityDefault) Error() string
func (*CreateActivityDefault) GetPayload ¶
func (o *CreateActivityDefault) GetPayload() *models.Fault
func (*CreateActivityDefault) IsClientError ¶ added in v0.0.5
func (o *CreateActivityDefault) IsClientError() bool
IsClientError returns true when this create activity default response has a 4xx status code
func (*CreateActivityDefault) IsCode ¶ added in v0.0.5
func (o *CreateActivityDefault) IsCode(code int) bool
IsCode returns true when this create activity default response a status code equal to that given
func (*CreateActivityDefault) IsRedirect ¶ added in v0.0.5
func (o *CreateActivityDefault) IsRedirect() bool
IsRedirect returns true when this create activity default response has a 3xx status code
func (*CreateActivityDefault) IsServerError ¶ added in v0.0.5
func (o *CreateActivityDefault) IsServerError() bool
IsServerError returns true when this create activity default response has a 5xx status code
func (*CreateActivityDefault) IsSuccess ¶ added in v0.0.5
func (o *CreateActivityDefault) IsSuccess() bool
IsSuccess returns true when this create activity default response has a 2xx status code
func (*CreateActivityDefault) String ¶ added in v0.0.5
func (o *CreateActivityDefault) String() string
type CreateActivityParams ¶
type CreateActivityParams struct { /* Commute. Set to 1 to mark as commute. */ Commute *int64 /* Description. Description of the activity. */ Description *string /* Distance. In meters. Format: float */ Distance *float32 /* ElapsedTime. In seconds. */ ElapsedTime int64 /* Name. The name of the activity. */ Name string /* SportType. Sport type of activity. For example - Run, MountainBikeRide, Ride, etc. */ SportType string /* StartDateLocal. ISO 8601 formatted date time. Format: date-time */ StartDateLocal strfmt.DateTime /* Trainer. Set to 1 to mark as a trainer activity. */ Trainer *int64 /* Type. Type of activity. For example - Run, Ride etc. */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateActivityParams contains all the parameters to send to the API endpoint
for the create activity operation. Typically these are written to a http.Request.
func NewCreateActivityParams ¶
func NewCreateActivityParams() *CreateActivityParams
NewCreateActivityParams creates a new CreateActivityParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateActivityParamsWithContext ¶
func NewCreateActivityParamsWithContext(ctx context.Context) *CreateActivityParams
NewCreateActivityParamsWithContext creates a new CreateActivityParams object with the ability to set a context for a request.
func NewCreateActivityParamsWithHTTPClient ¶
func NewCreateActivityParamsWithHTTPClient(client *http.Client) *CreateActivityParams
NewCreateActivityParamsWithHTTPClient creates a new CreateActivityParams object with the ability to set a custom HTTPClient for a request.
func NewCreateActivityParamsWithTimeout ¶
func NewCreateActivityParamsWithTimeout(timeout time.Duration) *CreateActivityParams
NewCreateActivityParamsWithTimeout creates a new CreateActivityParams object with the ability to set a timeout on a request.
func (*CreateActivityParams) SetCommute ¶
func (o *CreateActivityParams) SetCommute(commute *int64)
SetCommute adds the commute to the create activity params
func (*CreateActivityParams) SetContext ¶
func (o *CreateActivityParams) SetContext(ctx context.Context)
SetContext adds the context to the create activity params
func (*CreateActivityParams) SetDefaults ¶
func (o *CreateActivityParams) SetDefaults()
SetDefaults hydrates default values in the create activity params (not the query body).
All values with no default are reset to their zero value.
func (*CreateActivityParams) SetDescription ¶
func (o *CreateActivityParams) SetDescription(description *string)
SetDescription adds the description to the create activity params
func (*CreateActivityParams) SetDistance ¶
func (o *CreateActivityParams) SetDistance(distance *float32)
SetDistance adds the distance to the create activity params
func (*CreateActivityParams) SetElapsedTime ¶
func (o *CreateActivityParams) SetElapsedTime(elapsedTime int64)
SetElapsedTime adds the elapsedTime to the create activity params
func (*CreateActivityParams) SetHTTPClient ¶
func (o *CreateActivityParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create activity params
func (*CreateActivityParams) SetName ¶
func (o *CreateActivityParams) SetName(name string)
SetName adds the name to the create activity params
func (*CreateActivityParams) SetSportType ¶ added in v0.0.5
func (o *CreateActivityParams) SetSportType(sportType string)
SetSportType adds the sportType to the create activity params
func (*CreateActivityParams) SetStartDateLocal ¶
func (o *CreateActivityParams) SetStartDateLocal(startDateLocal strfmt.DateTime)
SetStartDateLocal adds the startDateLocal to the create activity params
func (*CreateActivityParams) SetTimeout ¶
func (o *CreateActivityParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create activity params
func (*CreateActivityParams) SetTrainer ¶
func (o *CreateActivityParams) SetTrainer(trainer *int64)
SetTrainer adds the trainer to the create activity params
func (*CreateActivityParams) SetType ¶
func (o *CreateActivityParams) SetType(typeVar *string)
SetType adds the type to the create activity params
func (*CreateActivityParams) WithCommute ¶
func (o *CreateActivityParams) WithCommute(commute *int64) *CreateActivityParams
WithCommute adds the commute to the create activity params
func (*CreateActivityParams) WithContext ¶
func (o *CreateActivityParams) WithContext(ctx context.Context) *CreateActivityParams
WithContext adds the context to the create activity params
func (*CreateActivityParams) WithDefaults ¶
func (o *CreateActivityParams) WithDefaults() *CreateActivityParams
WithDefaults hydrates default values in the create activity params (not the query body).
All values with no default are reset to their zero value.
func (*CreateActivityParams) WithDescription ¶
func (o *CreateActivityParams) WithDescription(description *string) *CreateActivityParams
WithDescription adds the description to the create activity params
func (*CreateActivityParams) WithDistance ¶
func (o *CreateActivityParams) WithDistance(distance *float32) *CreateActivityParams
WithDistance adds the distance to the create activity params
func (*CreateActivityParams) WithElapsedTime ¶
func (o *CreateActivityParams) WithElapsedTime(elapsedTime int64) *CreateActivityParams
WithElapsedTime adds the elapsedTime to the create activity params
func (*CreateActivityParams) WithHTTPClient ¶
func (o *CreateActivityParams) WithHTTPClient(client *http.Client) *CreateActivityParams
WithHTTPClient adds the HTTPClient to the create activity params
func (*CreateActivityParams) WithName ¶
func (o *CreateActivityParams) WithName(name string) *CreateActivityParams
WithName adds the name to the create activity params
func (*CreateActivityParams) WithSportType ¶ added in v0.0.5
func (o *CreateActivityParams) WithSportType(sportType string) *CreateActivityParams
WithSportType adds the sportType to the create activity params
func (*CreateActivityParams) WithStartDateLocal ¶
func (o *CreateActivityParams) WithStartDateLocal(startDateLocal strfmt.DateTime) *CreateActivityParams
WithStartDateLocal adds the startDateLocal to the create activity params
func (*CreateActivityParams) WithTimeout ¶
func (o *CreateActivityParams) WithTimeout(timeout time.Duration) *CreateActivityParams
WithTimeout adds the timeout to the create activity params
func (*CreateActivityParams) WithTrainer ¶
func (o *CreateActivityParams) WithTrainer(trainer *int64) *CreateActivityParams
WithTrainer adds the trainer to the create activity params
func (*CreateActivityParams) WithType ¶
func (o *CreateActivityParams) WithType(typeVar *string) *CreateActivityParams
WithType adds the typeVar to the create activity params
func (*CreateActivityParams) WriteToRequest ¶
func (o *CreateActivityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateActivityReader ¶
type CreateActivityReader struct {
// contains filtered or unexported fields
}
CreateActivityReader is a Reader for the CreateActivity structure.
func (*CreateActivityReader) ReadResponse ¶
func (o *CreateActivityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetActivityByIDDefault ¶
type GetActivityByIDDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetActivityByIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetActivityByIDDefault ¶
func NewGetActivityByIDDefault(code int) *GetActivityByIDDefault
NewGetActivityByIDDefault creates a GetActivityByIDDefault with default headers values
func (*GetActivityByIDDefault) Code ¶
func (o *GetActivityByIDDefault) Code() int
Code gets the status code for the get activity by Id default response
func (*GetActivityByIDDefault) Error ¶
func (o *GetActivityByIDDefault) Error() string
func (*GetActivityByIDDefault) GetPayload ¶
func (o *GetActivityByIDDefault) GetPayload() *models.Fault
func (*GetActivityByIDDefault) IsClientError ¶ added in v0.0.5
func (o *GetActivityByIDDefault) IsClientError() bool
IsClientError returns true when this get activity by Id default response has a 4xx status code
func (*GetActivityByIDDefault) IsCode ¶ added in v0.0.5
func (o *GetActivityByIDDefault) IsCode(code int) bool
IsCode returns true when this get activity by Id default response a status code equal to that given
func (*GetActivityByIDDefault) IsRedirect ¶ added in v0.0.5
func (o *GetActivityByIDDefault) IsRedirect() bool
IsRedirect returns true when this get activity by Id default response has a 3xx status code
func (*GetActivityByIDDefault) IsServerError ¶ added in v0.0.5
func (o *GetActivityByIDDefault) IsServerError() bool
IsServerError returns true when this get activity by Id default response has a 5xx status code
func (*GetActivityByIDDefault) IsSuccess ¶ added in v0.0.5
func (o *GetActivityByIDDefault) IsSuccess() bool
IsSuccess returns true when this get activity by Id default response has a 2xx status code
func (*GetActivityByIDDefault) String ¶ added in v0.0.5
func (o *GetActivityByIDDefault) String() string
type GetActivityByIDOK ¶
type GetActivityByIDOK struct {
Payload *models.DetailedActivity
}
GetActivityByIDOK describes a response with status code 200, with default header values.
The activity's detailed representation.
func NewGetActivityByIDOK ¶
func NewGetActivityByIDOK() *GetActivityByIDOK
NewGetActivityByIDOK creates a GetActivityByIDOK with default headers values
func (*GetActivityByIDOK) Code ¶ added in v0.0.7
func (o *GetActivityByIDOK) Code() int
Code gets the status code for the get activity by Id o k response
func (*GetActivityByIDOK) Error ¶
func (o *GetActivityByIDOK) Error() string
func (*GetActivityByIDOK) GetPayload ¶
func (o *GetActivityByIDOK) GetPayload() *models.DetailedActivity
func (*GetActivityByIDOK) IsClientError ¶ added in v0.0.5
func (o *GetActivityByIDOK) IsClientError() bool
IsClientError returns true when this get activity by Id o k response has a 4xx status code
func (*GetActivityByIDOK) IsCode ¶ added in v0.0.5
func (o *GetActivityByIDOK) IsCode(code int) bool
IsCode returns true when this get activity by Id o k response a status code equal to that given
func (*GetActivityByIDOK) IsRedirect ¶ added in v0.0.5
func (o *GetActivityByIDOK) IsRedirect() bool
IsRedirect returns true when this get activity by Id o k response has a 3xx status code
func (*GetActivityByIDOK) IsServerError ¶ added in v0.0.5
func (o *GetActivityByIDOK) IsServerError() bool
IsServerError returns true when this get activity by Id o k response has a 5xx status code
func (*GetActivityByIDOK) IsSuccess ¶ added in v0.0.5
func (o *GetActivityByIDOK) IsSuccess() bool
IsSuccess returns true when this get activity by Id o k response has a 2xx status code
func (*GetActivityByIDOK) String ¶ added in v0.0.5
func (o *GetActivityByIDOK) String() string
type GetActivityByIDParams ¶
type GetActivityByIDParams struct { /* ID. The identifier of the activity. Format: int64 */ ID int64 /* IncludeAllEfforts. To include all segments efforts. */ IncludeAllEfforts *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetActivityByIDParams contains all the parameters to send to the API endpoint
for the get activity by Id operation. Typically these are written to a http.Request.
func NewGetActivityByIDParams ¶
func NewGetActivityByIDParams() *GetActivityByIDParams
NewGetActivityByIDParams creates a new GetActivityByIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetActivityByIDParamsWithContext ¶
func NewGetActivityByIDParamsWithContext(ctx context.Context) *GetActivityByIDParams
NewGetActivityByIDParamsWithContext creates a new GetActivityByIDParams object with the ability to set a context for a request.
func NewGetActivityByIDParamsWithHTTPClient ¶
func NewGetActivityByIDParamsWithHTTPClient(client *http.Client) *GetActivityByIDParams
NewGetActivityByIDParamsWithHTTPClient creates a new GetActivityByIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetActivityByIDParamsWithTimeout ¶
func NewGetActivityByIDParamsWithTimeout(timeout time.Duration) *GetActivityByIDParams
NewGetActivityByIDParamsWithTimeout creates a new GetActivityByIDParams object with the ability to set a timeout on a request.
func (*GetActivityByIDParams) SetContext ¶
func (o *GetActivityByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get activity by Id params
func (*GetActivityByIDParams) SetDefaults ¶
func (o *GetActivityByIDParams) SetDefaults()
SetDefaults hydrates default values in the get activity by Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetActivityByIDParams) SetHTTPClient ¶
func (o *GetActivityByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get activity by Id params
func (*GetActivityByIDParams) SetID ¶
func (o *GetActivityByIDParams) SetID(id int64)
SetID adds the id to the get activity by Id params
func (*GetActivityByIDParams) SetIncludeAllEfforts ¶
func (o *GetActivityByIDParams) SetIncludeAllEfforts(includeAllEfforts *bool)
SetIncludeAllEfforts adds the includeAllEfforts to the get activity by Id params
func (*GetActivityByIDParams) SetTimeout ¶
func (o *GetActivityByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get activity by Id params
func (*GetActivityByIDParams) WithContext ¶
func (o *GetActivityByIDParams) WithContext(ctx context.Context) *GetActivityByIDParams
WithContext adds the context to the get activity by Id params
func (*GetActivityByIDParams) WithDefaults ¶
func (o *GetActivityByIDParams) WithDefaults() *GetActivityByIDParams
WithDefaults hydrates default values in the get activity by Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetActivityByIDParams) WithHTTPClient ¶
func (o *GetActivityByIDParams) WithHTTPClient(client *http.Client) *GetActivityByIDParams
WithHTTPClient adds the HTTPClient to the get activity by Id params
func (*GetActivityByIDParams) WithID ¶
func (o *GetActivityByIDParams) WithID(id int64) *GetActivityByIDParams
WithID adds the id to the get activity by Id params
func (*GetActivityByIDParams) WithIncludeAllEfforts ¶
func (o *GetActivityByIDParams) WithIncludeAllEfforts(includeAllEfforts *bool) *GetActivityByIDParams
WithIncludeAllEfforts adds the includeAllEfforts to the get activity by Id params
func (*GetActivityByIDParams) WithTimeout ¶
func (o *GetActivityByIDParams) WithTimeout(timeout time.Duration) *GetActivityByIDParams
WithTimeout adds the timeout to the get activity by Id params
func (*GetActivityByIDParams) WriteToRequest ¶
func (o *GetActivityByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetActivityByIDReader ¶
type GetActivityByIDReader struct {
// contains filtered or unexported fields
}
GetActivityByIDReader is a Reader for the GetActivityByID structure.
func (*GetActivityByIDReader) ReadResponse ¶
func (o *GetActivityByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCommentsByActivityIDDefault ¶
type GetCommentsByActivityIDDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetCommentsByActivityIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetCommentsByActivityIDDefault ¶
func NewGetCommentsByActivityIDDefault(code int) *GetCommentsByActivityIDDefault
NewGetCommentsByActivityIDDefault creates a GetCommentsByActivityIDDefault with default headers values
func (*GetCommentsByActivityIDDefault) Code ¶
func (o *GetCommentsByActivityIDDefault) Code() int
Code gets the status code for the get comments by activity Id default response
func (*GetCommentsByActivityIDDefault) Error ¶
func (o *GetCommentsByActivityIDDefault) Error() string
func (*GetCommentsByActivityIDDefault) GetPayload ¶
func (o *GetCommentsByActivityIDDefault) GetPayload() *models.Fault
func (*GetCommentsByActivityIDDefault) IsClientError ¶ added in v0.0.5
func (o *GetCommentsByActivityIDDefault) IsClientError() bool
IsClientError returns true when this get comments by activity Id default response has a 4xx status code
func (*GetCommentsByActivityIDDefault) IsCode ¶ added in v0.0.5
func (o *GetCommentsByActivityIDDefault) IsCode(code int) bool
IsCode returns true when this get comments by activity Id default response a status code equal to that given
func (*GetCommentsByActivityIDDefault) IsRedirect ¶ added in v0.0.5
func (o *GetCommentsByActivityIDDefault) IsRedirect() bool
IsRedirect returns true when this get comments by activity Id default response has a 3xx status code
func (*GetCommentsByActivityIDDefault) IsServerError ¶ added in v0.0.5
func (o *GetCommentsByActivityIDDefault) IsServerError() bool
IsServerError returns true when this get comments by activity Id default response has a 5xx status code
func (*GetCommentsByActivityIDDefault) IsSuccess ¶ added in v0.0.5
func (o *GetCommentsByActivityIDDefault) IsSuccess() bool
IsSuccess returns true when this get comments by activity Id default response has a 2xx status code
func (*GetCommentsByActivityIDDefault) String ¶ added in v0.0.5
func (o *GetCommentsByActivityIDDefault) String() string
type GetCommentsByActivityIDOK ¶
GetCommentsByActivityIDOK describes a response with status code 200, with default header values.
Comments.
func NewGetCommentsByActivityIDOK ¶
func NewGetCommentsByActivityIDOK() *GetCommentsByActivityIDOK
NewGetCommentsByActivityIDOK creates a GetCommentsByActivityIDOK with default headers values
func (*GetCommentsByActivityIDOK) Code ¶ added in v0.0.7
func (o *GetCommentsByActivityIDOK) Code() int
Code gets the status code for the get comments by activity Id o k response
func (*GetCommentsByActivityIDOK) Error ¶
func (o *GetCommentsByActivityIDOK) Error() string
func (*GetCommentsByActivityIDOK) GetPayload ¶
func (o *GetCommentsByActivityIDOK) GetPayload() []*models.Comment
func (*GetCommentsByActivityIDOK) IsClientError ¶ added in v0.0.5
func (o *GetCommentsByActivityIDOK) IsClientError() bool
IsClientError returns true when this get comments by activity Id o k response has a 4xx status code
func (*GetCommentsByActivityIDOK) IsCode ¶ added in v0.0.5
func (o *GetCommentsByActivityIDOK) IsCode(code int) bool
IsCode returns true when this get comments by activity Id o k response a status code equal to that given
func (*GetCommentsByActivityIDOK) IsRedirect ¶ added in v0.0.5
func (o *GetCommentsByActivityIDOK) IsRedirect() bool
IsRedirect returns true when this get comments by activity Id o k response has a 3xx status code
func (*GetCommentsByActivityIDOK) IsServerError ¶ added in v0.0.5
func (o *GetCommentsByActivityIDOK) IsServerError() bool
IsServerError returns true when this get comments by activity Id o k response has a 5xx status code
func (*GetCommentsByActivityIDOK) IsSuccess ¶ added in v0.0.5
func (o *GetCommentsByActivityIDOK) IsSuccess() bool
IsSuccess returns true when this get comments by activity Id o k response has a 2xx status code
func (*GetCommentsByActivityIDOK) String ¶ added in v0.0.5
func (o *GetCommentsByActivityIDOK) String() string
type GetCommentsByActivityIDParams ¶
type GetCommentsByActivityIDParams struct { /* AfterCursor. Cursor of the last item in the previous page of results, used to request the subsequent page of results. When omitted, the first page of results is fetched. */ AfterCursor *string /* ID. The identifier of the activity. Format: int64 */ ID int64 /* Page. Deprecated. Prefer to use after_cursor. */ Page *int64 /* PageSize. Number of items per page. Defaults to 30. Default: 30 */ PageSize *int64 /* PerPage. Deprecated. Prefer to use page_size. Default: 30 */ PerPage *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCommentsByActivityIDParams contains all the parameters to send to the API endpoint
for the get comments by activity Id operation. Typically these are written to a http.Request.
func NewGetCommentsByActivityIDParams ¶
func NewGetCommentsByActivityIDParams() *GetCommentsByActivityIDParams
NewGetCommentsByActivityIDParams creates a new GetCommentsByActivityIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetCommentsByActivityIDParamsWithContext ¶
func NewGetCommentsByActivityIDParamsWithContext(ctx context.Context) *GetCommentsByActivityIDParams
NewGetCommentsByActivityIDParamsWithContext creates a new GetCommentsByActivityIDParams object with the ability to set a context for a request.
func NewGetCommentsByActivityIDParamsWithHTTPClient ¶
func NewGetCommentsByActivityIDParamsWithHTTPClient(client *http.Client) *GetCommentsByActivityIDParams
NewGetCommentsByActivityIDParamsWithHTTPClient creates a new GetCommentsByActivityIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetCommentsByActivityIDParamsWithTimeout ¶
func NewGetCommentsByActivityIDParamsWithTimeout(timeout time.Duration) *GetCommentsByActivityIDParams
NewGetCommentsByActivityIDParamsWithTimeout creates a new GetCommentsByActivityIDParams object with the ability to set a timeout on a request.
func (*GetCommentsByActivityIDParams) SetAfterCursor ¶ added in v0.0.6
func (o *GetCommentsByActivityIDParams) SetAfterCursor(afterCursor *string)
SetAfterCursor adds the afterCursor to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) SetContext ¶
func (o *GetCommentsByActivityIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) SetDefaults ¶
func (o *GetCommentsByActivityIDParams) SetDefaults()
SetDefaults hydrates default values in the get comments by activity Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetCommentsByActivityIDParams) SetHTTPClient ¶
func (o *GetCommentsByActivityIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) SetID ¶
func (o *GetCommentsByActivityIDParams) SetID(id int64)
SetID adds the id to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) SetPage ¶
func (o *GetCommentsByActivityIDParams) SetPage(page *int64)
SetPage adds the page to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) SetPageSize ¶ added in v0.0.6
func (o *GetCommentsByActivityIDParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) SetPerPage ¶
func (o *GetCommentsByActivityIDParams) SetPerPage(perPage *int64)
SetPerPage adds the perPage to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) SetTimeout ¶
func (o *GetCommentsByActivityIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WithAfterCursor ¶ added in v0.0.6
func (o *GetCommentsByActivityIDParams) WithAfterCursor(afterCursor *string) *GetCommentsByActivityIDParams
WithAfterCursor adds the afterCursor to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WithContext ¶
func (o *GetCommentsByActivityIDParams) WithContext(ctx context.Context) *GetCommentsByActivityIDParams
WithContext adds the context to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WithDefaults ¶
func (o *GetCommentsByActivityIDParams) WithDefaults() *GetCommentsByActivityIDParams
WithDefaults hydrates default values in the get comments by activity Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetCommentsByActivityIDParams) WithHTTPClient ¶
func (o *GetCommentsByActivityIDParams) WithHTTPClient(client *http.Client) *GetCommentsByActivityIDParams
WithHTTPClient adds the HTTPClient to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WithID ¶
func (o *GetCommentsByActivityIDParams) WithID(id int64) *GetCommentsByActivityIDParams
WithID adds the id to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WithPage ¶
func (o *GetCommentsByActivityIDParams) WithPage(page *int64) *GetCommentsByActivityIDParams
WithPage adds the page to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WithPageSize ¶ added in v0.0.6
func (o *GetCommentsByActivityIDParams) WithPageSize(pageSize *int64) *GetCommentsByActivityIDParams
WithPageSize adds the pageSize to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WithPerPage ¶
func (o *GetCommentsByActivityIDParams) WithPerPage(perPage *int64) *GetCommentsByActivityIDParams
WithPerPage adds the perPage to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WithTimeout ¶
func (o *GetCommentsByActivityIDParams) WithTimeout(timeout time.Duration) *GetCommentsByActivityIDParams
WithTimeout adds the timeout to the get comments by activity Id params
func (*GetCommentsByActivityIDParams) WriteToRequest ¶
func (o *GetCommentsByActivityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCommentsByActivityIDReader ¶
type GetCommentsByActivityIDReader struct {
// contains filtered or unexported fields
}
GetCommentsByActivityIDReader is a Reader for the GetCommentsByActivityID structure.
func (*GetCommentsByActivityIDReader) ReadResponse ¶
func (o *GetCommentsByActivityIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetKudoersByActivityIDDefault ¶
type GetKudoersByActivityIDDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetKudoersByActivityIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetKudoersByActivityIDDefault ¶
func NewGetKudoersByActivityIDDefault(code int) *GetKudoersByActivityIDDefault
NewGetKudoersByActivityIDDefault creates a GetKudoersByActivityIDDefault with default headers values
func (*GetKudoersByActivityIDDefault) Code ¶
func (o *GetKudoersByActivityIDDefault) Code() int
Code gets the status code for the get kudoers by activity Id default response
func (*GetKudoersByActivityIDDefault) Error ¶
func (o *GetKudoersByActivityIDDefault) Error() string
func (*GetKudoersByActivityIDDefault) GetPayload ¶
func (o *GetKudoersByActivityIDDefault) GetPayload() *models.Fault
func (*GetKudoersByActivityIDDefault) IsClientError ¶ added in v0.0.5
func (o *GetKudoersByActivityIDDefault) IsClientError() bool
IsClientError returns true when this get kudoers by activity Id default response has a 4xx status code
func (*GetKudoersByActivityIDDefault) IsCode ¶ added in v0.0.5
func (o *GetKudoersByActivityIDDefault) IsCode(code int) bool
IsCode returns true when this get kudoers by activity Id default response a status code equal to that given
func (*GetKudoersByActivityIDDefault) IsRedirect ¶ added in v0.0.5
func (o *GetKudoersByActivityIDDefault) IsRedirect() bool
IsRedirect returns true when this get kudoers by activity Id default response has a 3xx status code
func (*GetKudoersByActivityIDDefault) IsServerError ¶ added in v0.0.5
func (o *GetKudoersByActivityIDDefault) IsServerError() bool
IsServerError returns true when this get kudoers by activity Id default response has a 5xx status code
func (*GetKudoersByActivityIDDefault) IsSuccess ¶ added in v0.0.5
func (o *GetKudoersByActivityIDDefault) IsSuccess() bool
IsSuccess returns true when this get kudoers by activity Id default response has a 2xx status code
func (*GetKudoersByActivityIDDefault) String ¶ added in v0.0.5
func (o *GetKudoersByActivityIDDefault) String() string
type GetKudoersByActivityIDOK ¶
type GetKudoersByActivityIDOK struct {
Payload []*models.SummaryAthlete
}
GetKudoersByActivityIDOK describes a response with status code 200, with default header values.
Comments.
func NewGetKudoersByActivityIDOK ¶
func NewGetKudoersByActivityIDOK() *GetKudoersByActivityIDOK
NewGetKudoersByActivityIDOK creates a GetKudoersByActivityIDOK with default headers values
func (*GetKudoersByActivityIDOK) Code ¶ added in v0.0.7
func (o *GetKudoersByActivityIDOK) Code() int
Code gets the status code for the get kudoers by activity Id o k response
func (*GetKudoersByActivityIDOK) Error ¶
func (o *GetKudoersByActivityIDOK) Error() string
func (*GetKudoersByActivityIDOK) GetPayload ¶
func (o *GetKudoersByActivityIDOK) GetPayload() []*models.SummaryAthlete
func (*GetKudoersByActivityIDOK) IsClientError ¶ added in v0.0.5
func (o *GetKudoersByActivityIDOK) IsClientError() bool
IsClientError returns true when this get kudoers by activity Id o k response has a 4xx status code
func (*GetKudoersByActivityIDOK) IsCode ¶ added in v0.0.5
func (o *GetKudoersByActivityIDOK) IsCode(code int) bool
IsCode returns true when this get kudoers by activity Id o k response a status code equal to that given
func (*GetKudoersByActivityIDOK) IsRedirect ¶ added in v0.0.5
func (o *GetKudoersByActivityIDOK) IsRedirect() bool
IsRedirect returns true when this get kudoers by activity Id o k response has a 3xx status code
func (*GetKudoersByActivityIDOK) IsServerError ¶ added in v0.0.5
func (o *GetKudoersByActivityIDOK) IsServerError() bool
IsServerError returns true when this get kudoers by activity Id o k response has a 5xx status code
func (*GetKudoersByActivityIDOK) IsSuccess ¶ added in v0.0.5
func (o *GetKudoersByActivityIDOK) IsSuccess() bool
IsSuccess returns true when this get kudoers by activity Id o k response has a 2xx status code
func (*GetKudoersByActivityIDOK) String ¶ added in v0.0.5
func (o *GetKudoersByActivityIDOK) String() string
type GetKudoersByActivityIDParams ¶
type GetKudoersByActivityIDParams struct { /* ID. The identifier of the activity. Format: int64 */ ID int64 /* Page. Page number. Defaults to 1. */ Page *int64 /* PerPage. Number of items per page. Defaults to 30. Default: 30 */ PerPage *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetKudoersByActivityIDParams contains all the parameters to send to the API endpoint
for the get kudoers by activity Id operation. Typically these are written to a http.Request.
func NewGetKudoersByActivityIDParams ¶
func NewGetKudoersByActivityIDParams() *GetKudoersByActivityIDParams
NewGetKudoersByActivityIDParams creates a new GetKudoersByActivityIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetKudoersByActivityIDParamsWithContext ¶
func NewGetKudoersByActivityIDParamsWithContext(ctx context.Context) *GetKudoersByActivityIDParams
NewGetKudoersByActivityIDParamsWithContext creates a new GetKudoersByActivityIDParams object with the ability to set a context for a request.
func NewGetKudoersByActivityIDParamsWithHTTPClient ¶
func NewGetKudoersByActivityIDParamsWithHTTPClient(client *http.Client) *GetKudoersByActivityIDParams
NewGetKudoersByActivityIDParamsWithHTTPClient creates a new GetKudoersByActivityIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetKudoersByActivityIDParamsWithTimeout ¶
func NewGetKudoersByActivityIDParamsWithTimeout(timeout time.Duration) *GetKudoersByActivityIDParams
NewGetKudoersByActivityIDParamsWithTimeout creates a new GetKudoersByActivityIDParams object with the ability to set a timeout on a request.
func (*GetKudoersByActivityIDParams) SetContext ¶
func (o *GetKudoersByActivityIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) SetDefaults ¶
func (o *GetKudoersByActivityIDParams) SetDefaults()
SetDefaults hydrates default values in the get kudoers by activity Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetKudoersByActivityIDParams) SetHTTPClient ¶
func (o *GetKudoersByActivityIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) SetID ¶
func (o *GetKudoersByActivityIDParams) SetID(id int64)
SetID adds the id to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) SetPage ¶
func (o *GetKudoersByActivityIDParams) SetPage(page *int64)
SetPage adds the page to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) SetPerPage ¶
func (o *GetKudoersByActivityIDParams) SetPerPage(perPage *int64)
SetPerPage adds the perPage to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) SetTimeout ¶
func (o *GetKudoersByActivityIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) WithContext ¶
func (o *GetKudoersByActivityIDParams) WithContext(ctx context.Context) *GetKudoersByActivityIDParams
WithContext adds the context to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) WithDefaults ¶
func (o *GetKudoersByActivityIDParams) WithDefaults() *GetKudoersByActivityIDParams
WithDefaults hydrates default values in the get kudoers by activity Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetKudoersByActivityIDParams) WithHTTPClient ¶
func (o *GetKudoersByActivityIDParams) WithHTTPClient(client *http.Client) *GetKudoersByActivityIDParams
WithHTTPClient adds the HTTPClient to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) WithID ¶
func (o *GetKudoersByActivityIDParams) WithID(id int64) *GetKudoersByActivityIDParams
WithID adds the id to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) WithPage ¶
func (o *GetKudoersByActivityIDParams) WithPage(page *int64) *GetKudoersByActivityIDParams
WithPage adds the page to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) WithPerPage ¶
func (o *GetKudoersByActivityIDParams) WithPerPage(perPage *int64) *GetKudoersByActivityIDParams
WithPerPage adds the perPage to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) WithTimeout ¶
func (o *GetKudoersByActivityIDParams) WithTimeout(timeout time.Duration) *GetKudoersByActivityIDParams
WithTimeout adds the timeout to the get kudoers by activity Id params
func (*GetKudoersByActivityIDParams) WriteToRequest ¶
func (o *GetKudoersByActivityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetKudoersByActivityIDReader ¶
type GetKudoersByActivityIDReader struct {
// contains filtered or unexported fields
}
GetKudoersByActivityIDReader is a Reader for the GetKudoersByActivityID structure.
func (*GetKudoersByActivityIDReader) ReadResponse ¶
func (o *GetKudoersByActivityIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetLapsByActivityIDDefault ¶
type GetLapsByActivityIDDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetLapsByActivityIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetLapsByActivityIDDefault ¶
func NewGetLapsByActivityIDDefault(code int) *GetLapsByActivityIDDefault
NewGetLapsByActivityIDDefault creates a GetLapsByActivityIDDefault with default headers values
func (*GetLapsByActivityIDDefault) Code ¶
func (o *GetLapsByActivityIDDefault) Code() int
Code gets the status code for the get laps by activity Id default response
func (*GetLapsByActivityIDDefault) Error ¶
func (o *GetLapsByActivityIDDefault) Error() string
func (*GetLapsByActivityIDDefault) GetPayload ¶
func (o *GetLapsByActivityIDDefault) GetPayload() *models.Fault
func (*GetLapsByActivityIDDefault) IsClientError ¶ added in v0.0.5
func (o *GetLapsByActivityIDDefault) IsClientError() bool
IsClientError returns true when this get laps by activity Id default response has a 4xx status code
func (*GetLapsByActivityIDDefault) IsCode ¶ added in v0.0.5
func (o *GetLapsByActivityIDDefault) IsCode(code int) bool
IsCode returns true when this get laps by activity Id default response a status code equal to that given
func (*GetLapsByActivityIDDefault) IsRedirect ¶ added in v0.0.5
func (o *GetLapsByActivityIDDefault) IsRedirect() bool
IsRedirect returns true when this get laps by activity Id default response has a 3xx status code
func (*GetLapsByActivityIDDefault) IsServerError ¶ added in v0.0.5
func (o *GetLapsByActivityIDDefault) IsServerError() bool
IsServerError returns true when this get laps by activity Id default response has a 5xx status code
func (*GetLapsByActivityIDDefault) IsSuccess ¶ added in v0.0.5
func (o *GetLapsByActivityIDDefault) IsSuccess() bool
IsSuccess returns true when this get laps by activity Id default response has a 2xx status code
func (*GetLapsByActivityIDDefault) String ¶ added in v0.0.5
func (o *GetLapsByActivityIDDefault) String() string
type GetLapsByActivityIDOK ¶
GetLapsByActivityIDOK describes a response with status code 200, with default header values.
Activity Laps.
func NewGetLapsByActivityIDOK ¶
func NewGetLapsByActivityIDOK() *GetLapsByActivityIDOK
NewGetLapsByActivityIDOK creates a GetLapsByActivityIDOK with default headers values
func (*GetLapsByActivityIDOK) Code ¶ added in v0.0.7
func (o *GetLapsByActivityIDOK) Code() int
Code gets the status code for the get laps by activity Id o k response
func (*GetLapsByActivityIDOK) Error ¶
func (o *GetLapsByActivityIDOK) Error() string
func (*GetLapsByActivityIDOK) GetPayload ¶
func (o *GetLapsByActivityIDOK) GetPayload() []*models.Lap
func (*GetLapsByActivityIDOK) IsClientError ¶ added in v0.0.5
func (o *GetLapsByActivityIDOK) IsClientError() bool
IsClientError returns true when this get laps by activity Id o k response has a 4xx status code
func (*GetLapsByActivityIDOK) IsCode ¶ added in v0.0.5
func (o *GetLapsByActivityIDOK) IsCode(code int) bool
IsCode returns true when this get laps by activity Id o k response a status code equal to that given
func (*GetLapsByActivityIDOK) IsRedirect ¶ added in v0.0.5
func (o *GetLapsByActivityIDOK) IsRedirect() bool
IsRedirect returns true when this get laps by activity Id o k response has a 3xx status code
func (*GetLapsByActivityIDOK) IsServerError ¶ added in v0.0.5
func (o *GetLapsByActivityIDOK) IsServerError() bool
IsServerError returns true when this get laps by activity Id o k response has a 5xx status code
func (*GetLapsByActivityIDOK) IsSuccess ¶ added in v0.0.5
func (o *GetLapsByActivityIDOK) IsSuccess() bool
IsSuccess returns true when this get laps by activity Id o k response has a 2xx status code
func (*GetLapsByActivityIDOK) String ¶ added in v0.0.5
func (o *GetLapsByActivityIDOK) String() string
type GetLapsByActivityIDParams ¶
type GetLapsByActivityIDParams struct { /* ID. The identifier of the activity. Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLapsByActivityIDParams contains all the parameters to send to the API endpoint
for the get laps by activity Id operation. Typically these are written to a http.Request.
func NewGetLapsByActivityIDParams ¶
func NewGetLapsByActivityIDParams() *GetLapsByActivityIDParams
NewGetLapsByActivityIDParams creates a new GetLapsByActivityIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetLapsByActivityIDParamsWithContext ¶
func NewGetLapsByActivityIDParamsWithContext(ctx context.Context) *GetLapsByActivityIDParams
NewGetLapsByActivityIDParamsWithContext creates a new GetLapsByActivityIDParams object with the ability to set a context for a request.
func NewGetLapsByActivityIDParamsWithHTTPClient ¶
func NewGetLapsByActivityIDParamsWithHTTPClient(client *http.Client) *GetLapsByActivityIDParams
NewGetLapsByActivityIDParamsWithHTTPClient creates a new GetLapsByActivityIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetLapsByActivityIDParamsWithTimeout ¶
func NewGetLapsByActivityIDParamsWithTimeout(timeout time.Duration) *GetLapsByActivityIDParams
NewGetLapsByActivityIDParamsWithTimeout creates a new GetLapsByActivityIDParams object with the ability to set a timeout on a request.
func (*GetLapsByActivityIDParams) SetContext ¶
func (o *GetLapsByActivityIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get laps by activity Id params
func (*GetLapsByActivityIDParams) SetDefaults ¶
func (o *GetLapsByActivityIDParams) SetDefaults()
SetDefaults hydrates default values in the get laps by activity Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetLapsByActivityIDParams) SetHTTPClient ¶
func (o *GetLapsByActivityIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get laps by activity Id params
func (*GetLapsByActivityIDParams) SetID ¶
func (o *GetLapsByActivityIDParams) SetID(id int64)
SetID adds the id to the get laps by activity Id params
func (*GetLapsByActivityIDParams) SetTimeout ¶
func (o *GetLapsByActivityIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get laps by activity Id params
func (*GetLapsByActivityIDParams) WithContext ¶
func (o *GetLapsByActivityIDParams) WithContext(ctx context.Context) *GetLapsByActivityIDParams
WithContext adds the context to the get laps by activity Id params
func (*GetLapsByActivityIDParams) WithDefaults ¶
func (o *GetLapsByActivityIDParams) WithDefaults() *GetLapsByActivityIDParams
WithDefaults hydrates default values in the get laps by activity Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetLapsByActivityIDParams) WithHTTPClient ¶
func (o *GetLapsByActivityIDParams) WithHTTPClient(client *http.Client) *GetLapsByActivityIDParams
WithHTTPClient adds the HTTPClient to the get laps by activity Id params
func (*GetLapsByActivityIDParams) WithID ¶
func (o *GetLapsByActivityIDParams) WithID(id int64) *GetLapsByActivityIDParams
WithID adds the id to the get laps by activity Id params
func (*GetLapsByActivityIDParams) WithTimeout ¶
func (o *GetLapsByActivityIDParams) WithTimeout(timeout time.Duration) *GetLapsByActivityIDParams
WithTimeout adds the timeout to the get laps by activity Id params
func (*GetLapsByActivityIDParams) WriteToRequest ¶
func (o *GetLapsByActivityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLapsByActivityIDReader ¶
type GetLapsByActivityIDReader struct {
// contains filtered or unexported fields
}
GetLapsByActivityIDReader is a Reader for the GetLapsByActivityID structure.
func (*GetLapsByActivityIDReader) ReadResponse ¶
func (o *GetLapsByActivityIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetLoggedInAthleteActivitiesDefault ¶
type GetLoggedInAthleteActivitiesDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetLoggedInAthleteActivitiesDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetLoggedInAthleteActivitiesDefault ¶
func NewGetLoggedInAthleteActivitiesDefault(code int) *GetLoggedInAthleteActivitiesDefault
NewGetLoggedInAthleteActivitiesDefault creates a GetLoggedInAthleteActivitiesDefault with default headers values
func (*GetLoggedInAthleteActivitiesDefault) Code ¶
func (o *GetLoggedInAthleteActivitiesDefault) Code() int
Code gets the status code for the get logged in athlete activities default response
func (*GetLoggedInAthleteActivitiesDefault) Error ¶
func (o *GetLoggedInAthleteActivitiesDefault) Error() string
func (*GetLoggedInAthleteActivitiesDefault) GetPayload ¶
func (o *GetLoggedInAthleteActivitiesDefault) GetPayload() *models.Fault
func (*GetLoggedInAthleteActivitiesDefault) IsClientError ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesDefault) IsClientError() bool
IsClientError returns true when this get logged in athlete activities default response has a 4xx status code
func (*GetLoggedInAthleteActivitiesDefault) IsCode ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesDefault) IsCode(code int) bool
IsCode returns true when this get logged in athlete activities default response a status code equal to that given
func (*GetLoggedInAthleteActivitiesDefault) IsRedirect ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesDefault) IsRedirect() bool
IsRedirect returns true when this get logged in athlete activities default response has a 3xx status code
func (*GetLoggedInAthleteActivitiesDefault) IsServerError ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesDefault) IsServerError() bool
IsServerError returns true when this get logged in athlete activities default response has a 5xx status code
func (*GetLoggedInAthleteActivitiesDefault) IsSuccess ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesDefault) IsSuccess() bool
IsSuccess returns true when this get logged in athlete activities default response has a 2xx status code
func (*GetLoggedInAthleteActivitiesDefault) String ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesDefault) String() string
type GetLoggedInAthleteActivitiesOK ¶
type GetLoggedInAthleteActivitiesOK struct {
Payload []*models.SummaryActivity
}
GetLoggedInAthleteActivitiesOK describes a response with status code 200, with default header values.
The authenticated athlete's activities
func NewGetLoggedInAthleteActivitiesOK ¶
func NewGetLoggedInAthleteActivitiesOK() *GetLoggedInAthleteActivitiesOK
NewGetLoggedInAthleteActivitiesOK creates a GetLoggedInAthleteActivitiesOK with default headers values
func (*GetLoggedInAthleteActivitiesOK) Code ¶ added in v0.0.7
func (o *GetLoggedInAthleteActivitiesOK) Code() int
Code gets the status code for the get logged in athlete activities o k response
func (*GetLoggedInAthleteActivitiesOK) Error ¶
func (o *GetLoggedInAthleteActivitiesOK) Error() string
func (*GetLoggedInAthleteActivitiesOK) GetPayload ¶
func (o *GetLoggedInAthleteActivitiesOK) GetPayload() []*models.SummaryActivity
func (*GetLoggedInAthleteActivitiesOK) IsClientError ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesOK) IsClientError() bool
IsClientError returns true when this get logged in athlete activities o k response has a 4xx status code
func (*GetLoggedInAthleteActivitiesOK) IsCode ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesOK) IsCode(code int) bool
IsCode returns true when this get logged in athlete activities o k response a status code equal to that given
func (*GetLoggedInAthleteActivitiesOK) IsRedirect ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesOK) IsRedirect() bool
IsRedirect returns true when this get logged in athlete activities o k response has a 3xx status code
func (*GetLoggedInAthleteActivitiesOK) IsServerError ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesOK) IsServerError() bool
IsServerError returns true when this get logged in athlete activities o k response has a 5xx status code
func (*GetLoggedInAthleteActivitiesOK) IsSuccess ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesOK) IsSuccess() bool
IsSuccess returns true when this get logged in athlete activities o k response has a 2xx status code
func (*GetLoggedInAthleteActivitiesOK) String ¶ added in v0.0.5
func (o *GetLoggedInAthleteActivitiesOK) String() string
type GetLoggedInAthleteActivitiesParams ¶
type GetLoggedInAthleteActivitiesParams struct { /* After. An epoch timestamp to use for filtering activities that have taken place after a certain time. */ After *int64 /* Before. An epoch timestamp to use for filtering activities that have taken place before a certain time. */ Before *int64 /* Page. Page number. Defaults to 1. */ Page *int64 /* PerPage. Number of items per page. Defaults to 30. Default: 30 */ PerPage *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLoggedInAthleteActivitiesParams contains all the parameters to send to the API endpoint
for the get logged in athlete activities operation. Typically these are written to a http.Request.
func NewGetLoggedInAthleteActivitiesParams ¶
func NewGetLoggedInAthleteActivitiesParams() *GetLoggedInAthleteActivitiesParams
NewGetLoggedInAthleteActivitiesParams creates a new GetLoggedInAthleteActivitiesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetLoggedInAthleteActivitiesParamsWithContext ¶
func NewGetLoggedInAthleteActivitiesParamsWithContext(ctx context.Context) *GetLoggedInAthleteActivitiesParams
NewGetLoggedInAthleteActivitiesParamsWithContext creates a new GetLoggedInAthleteActivitiesParams object with the ability to set a context for a request.
func NewGetLoggedInAthleteActivitiesParamsWithHTTPClient ¶
func NewGetLoggedInAthleteActivitiesParamsWithHTTPClient(client *http.Client) *GetLoggedInAthleteActivitiesParams
NewGetLoggedInAthleteActivitiesParamsWithHTTPClient creates a new GetLoggedInAthleteActivitiesParams object with the ability to set a custom HTTPClient for a request.
func NewGetLoggedInAthleteActivitiesParamsWithTimeout ¶
func NewGetLoggedInAthleteActivitiesParamsWithTimeout(timeout time.Duration) *GetLoggedInAthleteActivitiesParams
NewGetLoggedInAthleteActivitiesParamsWithTimeout creates a new GetLoggedInAthleteActivitiesParams object with the ability to set a timeout on a request.
func (*GetLoggedInAthleteActivitiesParams) SetAfter ¶
func (o *GetLoggedInAthleteActivitiesParams) SetAfter(after *int64)
SetAfter adds the after to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) SetBefore ¶
func (o *GetLoggedInAthleteActivitiesParams) SetBefore(before *int64)
SetBefore adds the before to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) SetContext ¶
func (o *GetLoggedInAthleteActivitiesParams) SetContext(ctx context.Context)
SetContext adds the context to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) SetDefaults ¶
func (o *GetLoggedInAthleteActivitiesParams) SetDefaults()
SetDefaults hydrates default values in the get logged in athlete activities params (not the query body).
All values with no default are reset to their zero value.
func (*GetLoggedInAthleteActivitiesParams) SetHTTPClient ¶
func (o *GetLoggedInAthleteActivitiesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) SetPage ¶
func (o *GetLoggedInAthleteActivitiesParams) SetPage(page *int64)
SetPage adds the page to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) SetPerPage ¶
func (o *GetLoggedInAthleteActivitiesParams) SetPerPage(perPage *int64)
SetPerPage adds the perPage to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) SetTimeout ¶
func (o *GetLoggedInAthleteActivitiesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) WithAfter ¶
func (o *GetLoggedInAthleteActivitiesParams) WithAfter(after *int64) *GetLoggedInAthleteActivitiesParams
WithAfter adds the after to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) WithBefore ¶
func (o *GetLoggedInAthleteActivitiesParams) WithBefore(before *int64) *GetLoggedInAthleteActivitiesParams
WithBefore adds the before to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) WithContext ¶
func (o *GetLoggedInAthleteActivitiesParams) WithContext(ctx context.Context) *GetLoggedInAthleteActivitiesParams
WithContext adds the context to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) WithDefaults ¶
func (o *GetLoggedInAthleteActivitiesParams) WithDefaults() *GetLoggedInAthleteActivitiesParams
WithDefaults hydrates default values in the get logged in athlete activities params (not the query body).
All values with no default are reset to their zero value.
func (*GetLoggedInAthleteActivitiesParams) WithHTTPClient ¶
func (o *GetLoggedInAthleteActivitiesParams) WithHTTPClient(client *http.Client) *GetLoggedInAthleteActivitiesParams
WithHTTPClient adds the HTTPClient to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) WithPage ¶
func (o *GetLoggedInAthleteActivitiesParams) WithPage(page *int64) *GetLoggedInAthleteActivitiesParams
WithPage adds the page to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) WithPerPage ¶
func (o *GetLoggedInAthleteActivitiesParams) WithPerPage(perPage *int64) *GetLoggedInAthleteActivitiesParams
WithPerPage adds the perPage to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) WithTimeout ¶
func (o *GetLoggedInAthleteActivitiesParams) WithTimeout(timeout time.Duration) *GetLoggedInAthleteActivitiesParams
WithTimeout adds the timeout to the get logged in athlete activities params
func (*GetLoggedInAthleteActivitiesParams) WriteToRequest ¶
func (o *GetLoggedInAthleteActivitiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLoggedInAthleteActivitiesReader ¶
type GetLoggedInAthleteActivitiesReader struct {
// contains filtered or unexported fields
}
GetLoggedInAthleteActivitiesReader is a Reader for the GetLoggedInAthleteActivities structure.
func (*GetLoggedInAthleteActivitiesReader) ReadResponse ¶
func (o *GetLoggedInAthleteActivitiesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetZonesByActivityIDDefault ¶
type GetZonesByActivityIDDefault struct { Payload *models.Fault // contains filtered or unexported fields }
GetZonesByActivityIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetZonesByActivityIDDefault ¶
func NewGetZonesByActivityIDDefault(code int) *GetZonesByActivityIDDefault
NewGetZonesByActivityIDDefault creates a GetZonesByActivityIDDefault with default headers values
func (*GetZonesByActivityIDDefault) Code ¶
func (o *GetZonesByActivityIDDefault) Code() int
Code gets the status code for the get zones by activity Id default response
func (*GetZonesByActivityIDDefault) Error ¶
func (o *GetZonesByActivityIDDefault) Error() string
func (*GetZonesByActivityIDDefault) GetPayload ¶
func (o *GetZonesByActivityIDDefault) GetPayload() *models.Fault
func (*GetZonesByActivityIDDefault) IsClientError ¶ added in v0.0.5
func (o *GetZonesByActivityIDDefault) IsClientError() bool
IsClientError returns true when this get zones by activity Id default response has a 4xx status code
func (*GetZonesByActivityIDDefault) IsCode ¶ added in v0.0.5
func (o *GetZonesByActivityIDDefault) IsCode(code int) bool
IsCode returns true when this get zones by activity Id default response a status code equal to that given
func (*GetZonesByActivityIDDefault) IsRedirect ¶ added in v0.0.5
func (o *GetZonesByActivityIDDefault) IsRedirect() bool
IsRedirect returns true when this get zones by activity Id default response has a 3xx status code
func (*GetZonesByActivityIDDefault) IsServerError ¶ added in v0.0.5
func (o *GetZonesByActivityIDDefault) IsServerError() bool
IsServerError returns true when this get zones by activity Id default response has a 5xx status code
func (*GetZonesByActivityIDDefault) IsSuccess ¶ added in v0.0.5
func (o *GetZonesByActivityIDDefault) IsSuccess() bool
IsSuccess returns true when this get zones by activity Id default response has a 2xx status code
func (*GetZonesByActivityIDDefault) String ¶ added in v0.0.5
func (o *GetZonesByActivityIDDefault) String() string
type GetZonesByActivityIDOK ¶
type GetZonesByActivityIDOK struct {
Payload []*models.ActivityZone
}
GetZonesByActivityIDOK describes a response with status code 200, with default header values.
Activity Zones.
func NewGetZonesByActivityIDOK ¶
func NewGetZonesByActivityIDOK() *GetZonesByActivityIDOK
NewGetZonesByActivityIDOK creates a GetZonesByActivityIDOK with default headers values
func (*GetZonesByActivityIDOK) Code ¶ added in v0.0.7
func (o *GetZonesByActivityIDOK) Code() int
Code gets the status code for the get zones by activity Id o k response
func (*GetZonesByActivityIDOK) Error ¶
func (o *GetZonesByActivityIDOK) Error() string
func (*GetZonesByActivityIDOK) GetPayload ¶
func (o *GetZonesByActivityIDOK) GetPayload() []*models.ActivityZone
func (*GetZonesByActivityIDOK) IsClientError ¶ added in v0.0.5
func (o *GetZonesByActivityIDOK) IsClientError() bool
IsClientError returns true when this get zones by activity Id o k response has a 4xx status code
func (*GetZonesByActivityIDOK) IsCode ¶ added in v0.0.5
func (o *GetZonesByActivityIDOK) IsCode(code int) bool
IsCode returns true when this get zones by activity Id o k response a status code equal to that given
func (*GetZonesByActivityIDOK) IsRedirect ¶ added in v0.0.5
func (o *GetZonesByActivityIDOK) IsRedirect() bool
IsRedirect returns true when this get zones by activity Id o k response has a 3xx status code
func (*GetZonesByActivityIDOK) IsServerError ¶ added in v0.0.5
func (o *GetZonesByActivityIDOK) IsServerError() bool
IsServerError returns true when this get zones by activity Id o k response has a 5xx status code
func (*GetZonesByActivityIDOK) IsSuccess ¶ added in v0.0.5
func (o *GetZonesByActivityIDOK) IsSuccess() bool
IsSuccess returns true when this get zones by activity Id o k response has a 2xx status code
func (*GetZonesByActivityIDOK) String ¶ added in v0.0.5
func (o *GetZonesByActivityIDOK) String() string
type GetZonesByActivityIDParams ¶
type GetZonesByActivityIDParams struct { /* ID. The identifier of the activity. Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetZonesByActivityIDParams contains all the parameters to send to the API endpoint
for the get zones by activity Id operation. Typically these are written to a http.Request.
func NewGetZonesByActivityIDParams ¶
func NewGetZonesByActivityIDParams() *GetZonesByActivityIDParams
NewGetZonesByActivityIDParams creates a new GetZonesByActivityIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetZonesByActivityIDParamsWithContext ¶
func NewGetZonesByActivityIDParamsWithContext(ctx context.Context) *GetZonesByActivityIDParams
NewGetZonesByActivityIDParamsWithContext creates a new GetZonesByActivityIDParams object with the ability to set a context for a request.
func NewGetZonesByActivityIDParamsWithHTTPClient ¶
func NewGetZonesByActivityIDParamsWithHTTPClient(client *http.Client) *GetZonesByActivityIDParams
NewGetZonesByActivityIDParamsWithHTTPClient creates a new GetZonesByActivityIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetZonesByActivityIDParamsWithTimeout ¶
func NewGetZonesByActivityIDParamsWithTimeout(timeout time.Duration) *GetZonesByActivityIDParams
NewGetZonesByActivityIDParamsWithTimeout creates a new GetZonesByActivityIDParams object with the ability to set a timeout on a request.
func (*GetZonesByActivityIDParams) SetContext ¶
func (o *GetZonesByActivityIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get zones by activity Id params
func (*GetZonesByActivityIDParams) SetDefaults ¶
func (o *GetZonesByActivityIDParams) SetDefaults()
SetDefaults hydrates default values in the get zones by activity Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetZonesByActivityIDParams) SetHTTPClient ¶
func (o *GetZonesByActivityIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get zones by activity Id params
func (*GetZonesByActivityIDParams) SetID ¶
func (o *GetZonesByActivityIDParams) SetID(id int64)
SetID adds the id to the get zones by activity Id params
func (*GetZonesByActivityIDParams) SetTimeout ¶
func (o *GetZonesByActivityIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get zones by activity Id params
func (*GetZonesByActivityIDParams) WithContext ¶
func (o *GetZonesByActivityIDParams) WithContext(ctx context.Context) *GetZonesByActivityIDParams
WithContext adds the context to the get zones by activity Id params
func (*GetZonesByActivityIDParams) WithDefaults ¶
func (o *GetZonesByActivityIDParams) WithDefaults() *GetZonesByActivityIDParams
WithDefaults hydrates default values in the get zones by activity Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetZonesByActivityIDParams) WithHTTPClient ¶
func (o *GetZonesByActivityIDParams) WithHTTPClient(client *http.Client) *GetZonesByActivityIDParams
WithHTTPClient adds the HTTPClient to the get zones by activity Id params
func (*GetZonesByActivityIDParams) WithID ¶
func (o *GetZonesByActivityIDParams) WithID(id int64) *GetZonesByActivityIDParams
WithID adds the id to the get zones by activity Id params
func (*GetZonesByActivityIDParams) WithTimeout ¶
func (o *GetZonesByActivityIDParams) WithTimeout(timeout time.Duration) *GetZonesByActivityIDParams
WithTimeout adds the timeout to the get zones by activity Id params
func (*GetZonesByActivityIDParams) WriteToRequest ¶
func (o *GetZonesByActivityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetZonesByActivityIDReader ¶
type GetZonesByActivityIDReader struct {
// contains filtered or unexported fields
}
GetZonesByActivityIDReader is a Reader for the GetZonesByActivityID structure.
func (*GetZonesByActivityIDReader) ReadResponse ¶
func (o *GetZonesByActivityIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateActivityByIDDefault ¶
type UpdateActivityByIDDefault struct { Payload *models.Fault // contains filtered or unexported fields }
UpdateActivityByIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewUpdateActivityByIDDefault ¶
func NewUpdateActivityByIDDefault(code int) *UpdateActivityByIDDefault
NewUpdateActivityByIDDefault creates a UpdateActivityByIDDefault with default headers values
func (*UpdateActivityByIDDefault) Code ¶
func (o *UpdateActivityByIDDefault) Code() int
Code gets the status code for the update activity by Id default response
func (*UpdateActivityByIDDefault) Error ¶
func (o *UpdateActivityByIDDefault) Error() string
func (*UpdateActivityByIDDefault) GetPayload ¶
func (o *UpdateActivityByIDDefault) GetPayload() *models.Fault
func (*UpdateActivityByIDDefault) IsClientError ¶ added in v0.0.5
func (o *UpdateActivityByIDDefault) IsClientError() bool
IsClientError returns true when this update activity by Id default response has a 4xx status code
func (*UpdateActivityByIDDefault) IsCode ¶ added in v0.0.5
func (o *UpdateActivityByIDDefault) IsCode(code int) bool
IsCode returns true when this update activity by Id default response a status code equal to that given
func (*UpdateActivityByIDDefault) IsRedirect ¶ added in v0.0.5
func (o *UpdateActivityByIDDefault) IsRedirect() bool
IsRedirect returns true when this update activity by Id default response has a 3xx status code
func (*UpdateActivityByIDDefault) IsServerError ¶ added in v0.0.5
func (o *UpdateActivityByIDDefault) IsServerError() bool
IsServerError returns true when this update activity by Id default response has a 5xx status code
func (*UpdateActivityByIDDefault) IsSuccess ¶ added in v0.0.5
func (o *UpdateActivityByIDDefault) IsSuccess() bool
IsSuccess returns true when this update activity by Id default response has a 2xx status code
func (*UpdateActivityByIDDefault) String ¶ added in v0.0.5
func (o *UpdateActivityByIDDefault) String() string
type UpdateActivityByIDOK ¶
type UpdateActivityByIDOK struct {
Payload *models.DetailedActivity
}
UpdateActivityByIDOK describes a response with status code 200, with default header values.
The activity's detailed representation.
func NewUpdateActivityByIDOK ¶
func NewUpdateActivityByIDOK() *UpdateActivityByIDOK
NewUpdateActivityByIDOK creates a UpdateActivityByIDOK with default headers values
func (*UpdateActivityByIDOK) Code ¶ added in v0.0.7
func (o *UpdateActivityByIDOK) Code() int
Code gets the status code for the update activity by Id o k response
func (*UpdateActivityByIDOK) Error ¶
func (o *UpdateActivityByIDOK) Error() string
func (*UpdateActivityByIDOK) GetPayload ¶
func (o *UpdateActivityByIDOK) GetPayload() *models.DetailedActivity
func (*UpdateActivityByIDOK) IsClientError ¶ added in v0.0.5
func (o *UpdateActivityByIDOK) IsClientError() bool
IsClientError returns true when this update activity by Id o k response has a 4xx status code
func (*UpdateActivityByIDOK) IsCode ¶ added in v0.0.5
func (o *UpdateActivityByIDOK) IsCode(code int) bool
IsCode returns true when this update activity by Id o k response a status code equal to that given
func (*UpdateActivityByIDOK) IsRedirect ¶ added in v0.0.5
func (o *UpdateActivityByIDOK) IsRedirect() bool
IsRedirect returns true when this update activity by Id o k response has a 3xx status code
func (*UpdateActivityByIDOK) IsServerError ¶ added in v0.0.5
func (o *UpdateActivityByIDOK) IsServerError() bool
IsServerError returns true when this update activity by Id o k response has a 5xx status code
func (*UpdateActivityByIDOK) IsSuccess ¶ added in v0.0.5
func (o *UpdateActivityByIDOK) IsSuccess() bool
IsSuccess returns true when this update activity by Id o k response has a 2xx status code
func (*UpdateActivityByIDOK) String ¶ added in v0.0.5
func (o *UpdateActivityByIDOK) String() string
type UpdateActivityByIDParams ¶
type UpdateActivityByIDParams struct { // Body. Body *models.UpdatableActivity /* ID. The identifier of the activity. Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateActivityByIDParams contains all the parameters to send to the API endpoint
for the update activity by Id operation. Typically these are written to a http.Request.
func NewUpdateActivityByIDParams ¶
func NewUpdateActivityByIDParams() *UpdateActivityByIDParams
NewUpdateActivityByIDParams creates a new UpdateActivityByIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateActivityByIDParamsWithContext ¶
func NewUpdateActivityByIDParamsWithContext(ctx context.Context) *UpdateActivityByIDParams
NewUpdateActivityByIDParamsWithContext creates a new UpdateActivityByIDParams object with the ability to set a context for a request.
func NewUpdateActivityByIDParamsWithHTTPClient ¶
func NewUpdateActivityByIDParamsWithHTTPClient(client *http.Client) *UpdateActivityByIDParams
NewUpdateActivityByIDParamsWithHTTPClient creates a new UpdateActivityByIDParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateActivityByIDParamsWithTimeout ¶
func NewUpdateActivityByIDParamsWithTimeout(timeout time.Duration) *UpdateActivityByIDParams
NewUpdateActivityByIDParamsWithTimeout creates a new UpdateActivityByIDParams object with the ability to set a timeout on a request.
func (*UpdateActivityByIDParams) SetBody ¶
func (o *UpdateActivityByIDParams) SetBody(body *models.UpdatableActivity)
SetBody adds the body to the update activity by Id params
func (*UpdateActivityByIDParams) SetContext ¶
func (o *UpdateActivityByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the update activity by Id params
func (*UpdateActivityByIDParams) SetDefaults ¶
func (o *UpdateActivityByIDParams) SetDefaults()
SetDefaults hydrates default values in the update activity by Id params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateActivityByIDParams) SetHTTPClient ¶
func (o *UpdateActivityByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update activity by Id params
func (*UpdateActivityByIDParams) SetID ¶
func (o *UpdateActivityByIDParams) SetID(id int64)
SetID adds the id to the update activity by Id params
func (*UpdateActivityByIDParams) SetTimeout ¶
func (o *UpdateActivityByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update activity by Id params
func (*UpdateActivityByIDParams) WithBody ¶
func (o *UpdateActivityByIDParams) WithBody(body *models.UpdatableActivity) *UpdateActivityByIDParams
WithBody adds the body to the update activity by Id params
func (*UpdateActivityByIDParams) WithContext ¶
func (o *UpdateActivityByIDParams) WithContext(ctx context.Context) *UpdateActivityByIDParams
WithContext adds the context to the update activity by Id params
func (*UpdateActivityByIDParams) WithDefaults ¶
func (o *UpdateActivityByIDParams) WithDefaults() *UpdateActivityByIDParams
WithDefaults hydrates default values in the update activity by Id params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateActivityByIDParams) WithHTTPClient ¶
func (o *UpdateActivityByIDParams) WithHTTPClient(client *http.Client) *UpdateActivityByIDParams
WithHTTPClient adds the HTTPClient to the update activity by Id params
func (*UpdateActivityByIDParams) WithID ¶
func (o *UpdateActivityByIDParams) WithID(id int64) *UpdateActivityByIDParams
WithID adds the id to the update activity by Id params
func (*UpdateActivityByIDParams) WithTimeout ¶
func (o *UpdateActivityByIDParams) WithTimeout(timeout time.Duration) *UpdateActivityByIDParams
WithTimeout adds the timeout to the update activity by Id params
func (*UpdateActivityByIDParams) WriteToRequest ¶
func (o *UpdateActivityByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateActivityByIDReader ¶
type UpdateActivityByIDReader struct {
// contains filtered or unexported fields
}
UpdateActivityByIDReader is a Reader for the UpdateActivityByID structure.
func (*UpdateActivityByIDReader) ReadResponse ¶
func (o *UpdateActivityByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- activities_client.go
- create_activity_parameters.go
- create_activity_responses.go
- get_activity_by_id_parameters.go
- get_activity_by_id_responses.go
- get_comments_by_activity_id_parameters.go
- get_comments_by_activity_id_responses.go
- get_kudoers_by_activity_id_parameters.go
- get_kudoers_by_activity_id_responses.go
- get_laps_by_activity_id_parameters.go
- get_laps_by_activity_id_responses.go
- get_logged_in_athlete_activities_parameters.go
- get_logged_in_athlete_activities_responses.go
- get_zones_by_activity_id_parameters.go
- get_zones_by_activity_id_responses.go
- update_activity_by_id_parameters.go
- update_activity_by_id_responses.go