activities

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

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 is the option for 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.

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 (*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

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

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

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

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

Code gets the status code for the get comments by activity Id default response

func (*GetCommentsByActivityIDDefault) Error

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

type GetCommentsByActivityIDOK

type GetCommentsByActivityIDOK struct {
	Payload []*models.Comment
}

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

WithContext adds the context to the get comments by activity Id params

func (*GetCommentsByActivityIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get comments by activity Id params

func (*GetCommentsByActivityIDParams) WithID

WithID adds the id to the get comments by activity Id params

func (*GetCommentsByActivityIDParams) WithPage

WithPage adds the page to the get comments by activity Id params

func (*GetCommentsByActivityIDParams) WithPageSize added in v0.0.6

WithPageSize adds the pageSize to the get comments by activity Id params

func (*GetCommentsByActivityIDParams) WithPerPage

WithPerPage adds the perPage to the get comments by activity Id params

func (*GetCommentsByActivityIDParams) WithTimeout

WithTimeout adds the timeout to the get comments by activity Id params

func (*GetCommentsByActivityIDParams) WriteToRequest

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

Code gets the status code for the get kudoers by activity Id default response

func (*GetKudoersByActivityIDDefault) Error

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

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

WithContext adds the context to the get kudoers by activity Id params

func (*GetKudoersByActivityIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get kudoers by activity Id params

func (*GetKudoersByActivityIDParams) WithID

WithID adds the id to the get kudoers by activity Id params

func (*GetKudoersByActivityIDParams) WithPage

WithPage adds the page to the get kudoers by activity Id params

func (*GetKudoersByActivityIDParams) WithPerPage

WithPerPage adds the perPage to the get kudoers by activity Id params

func (*GetKudoersByActivityIDParams) WithTimeout

WithTimeout adds the timeout to the get kudoers by activity Id params

func (*GetKudoersByActivityIDParams) WriteToRequest

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 (*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

type GetLapsByActivityIDOK struct {
	Payload []*models.Lap
}

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

WithContext adds the context to the get laps by activity Id params

func (*GetLapsByActivityIDParams) WithDefaults

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

WithID adds the id to the get laps by activity Id params

func (*GetLapsByActivityIDParams) WithTimeout

WithTimeout adds the timeout to the get laps by activity Id params

func (*GetLapsByActivityIDParams) WriteToRequest

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

Code gets the status code for the get logged in athlete activities default response

func (*GetLoggedInAthleteActivitiesDefault) Error

func (*GetLoggedInAthleteActivitiesDefault) GetPayload

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

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

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

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

Code gets the status code for the get logged in athlete activities o k response

func (*GetLoggedInAthleteActivitiesOK) Error

func (*GetLoggedInAthleteActivitiesOK) GetPayload

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

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

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

WithAfter adds the after to the get logged in athlete activities params

func (*GetLoggedInAthleteActivitiesParams) WithBefore

WithBefore adds the before to the get logged in athlete activities params

func (*GetLoggedInAthleteActivitiesParams) WithContext

WithContext adds the context to the get logged in athlete activities params

func (*GetLoggedInAthleteActivitiesParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get logged in athlete activities params

func (*GetLoggedInAthleteActivitiesParams) WithPage

WithPage adds the page to the get logged in athlete activities params

func (*GetLoggedInAthleteActivitiesParams) WithPerPage

WithPerPage adds the perPage to the get logged in athlete activities params

func (*GetLoggedInAthleteActivitiesParams) WithTimeout

WithTimeout adds the timeout to the get logged in athlete activities params

func (*GetLoggedInAthleteActivitiesParams) WriteToRequest

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 (*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

WithContext adds the context to the get zones by activity Id params

func (*GetZonesByActivityIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get zones by activity Id params

func (*GetZonesByActivityIDParams) WithID

WithID adds the id to the get zones by activity Id params

func (*GetZonesByActivityIDParams) WithTimeout

WithTimeout adds the timeout to the get zones by activity Id params

func (*GetZonesByActivityIDParams) WriteToRequest

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

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

WithBody adds the body to the update activity by Id params

func (*UpdateActivityByIDParams) WithContext

WithContext adds the context to the update activity by Id params

func (*UpdateActivityByIDParams) WithDefaults

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

WithID adds the id to the update activity by Id params

func (*UpdateActivityByIDParams) WithTimeout

WithTimeout adds the timeout to the update activity by Id params

func (*UpdateActivityByIDParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL