athletes

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 11 Imported by: 0

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 athletes API

func (*Client) GetLoggedInAthlete

func (a *Client) GetLoggedInAthlete(params *GetLoggedInAthleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoggedInAthleteOK, error)

GetLoggedInAthlete gets authenticated athlete

Returns the currently authenticated athlete. Tokens with profile:read_all scope will receive a detailed athlete representation; all others will receive a summary representation.

func (*Client) GetLoggedInAthleteZones

func (a *Client) GetLoggedInAthleteZones(params *GetLoggedInAthleteZonesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoggedInAthleteZonesOK, error)

GetLoggedInAthleteZones gets zones

Returns the the authenticated athlete's heart rate and power zones. Requires profile:read_all.

func (*Client) GetStats

func (a *Client) GetStats(params *GetStatsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetStatsOK, error)

GetStats gets athlete stats

Returns the activity stats of an athlete. Only includes data from activities set to Everyone visibilty.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateLoggedInAthlete

func (a *Client) UpdateLoggedInAthlete(params *UpdateLoggedInAthleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLoggedInAthleteOK, error)

UpdateLoggedInAthlete updates athlete

Update the currently authenticated athlete. Requires profile:write scope.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetLoggedInAthlete(params *GetLoggedInAthleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoggedInAthleteOK, error)

	GetLoggedInAthleteZones(params *GetLoggedInAthleteZonesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoggedInAthleteZonesOK, error)

	GetStats(params *GetStatsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetStatsOK, error)

	UpdateLoggedInAthlete(params *UpdateLoggedInAthleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLoggedInAthleteOK, 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 athletes API client.

type GetLoggedInAthleteDefault

type GetLoggedInAthleteDefault struct {
	Payload *models.Fault
	// contains filtered or unexported fields
}

GetLoggedInAthleteDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetLoggedInAthleteDefault

func NewGetLoggedInAthleteDefault(code int) *GetLoggedInAthleteDefault

NewGetLoggedInAthleteDefault creates a GetLoggedInAthleteDefault with default headers values

func (*GetLoggedInAthleteDefault) Code

func (o *GetLoggedInAthleteDefault) Code() int

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

func (*GetLoggedInAthleteDefault) Error

func (o *GetLoggedInAthleteDefault) Error() string

func (*GetLoggedInAthleteDefault) GetPayload

func (o *GetLoggedInAthleteDefault) GetPayload() *models.Fault

func (*GetLoggedInAthleteDefault) IsClientError added in v0.0.5

func (o *GetLoggedInAthleteDefault) IsClientError() bool

IsClientError returns true when this get logged in athlete default response has a 4xx status code

func (*GetLoggedInAthleteDefault) IsCode added in v0.0.5

func (o *GetLoggedInAthleteDefault) IsCode(code int) bool

IsCode returns true when this get logged in athlete default response a status code equal to that given

func (*GetLoggedInAthleteDefault) IsRedirect added in v0.0.5

func (o *GetLoggedInAthleteDefault) IsRedirect() bool

IsRedirect returns true when this get logged in athlete default response has a 3xx status code

func (*GetLoggedInAthleteDefault) IsServerError added in v0.0.5

func (o *GetLoggedInAthleteDefault) IsServerError() bool

IsServerError returns true when this get logged in athlete default response has a 5xx status code

func (*GetLoggedInAthleteDefault) IsSuccess added in v0.0.5

func (o *GetLoggedInAthleteDefault) IsSuccess() bool

IsSuccess returns true when this get logged in athlete default response has a 2xx status code

func (*GetLoggedInAthleteDefault) String added in v0.0.5

func (o *GetLoggedInAthleteDefault) String() string

type GetLoggedInAthleteOK

type GetLoggedInAthleteOK struct {
	Payload *models.DetailedAthlete
}

GetLoggedInAthleteOK describes a response with status code 200, with default header values.

Profile information for the authenticated athlete.

func NewGetLoggedInAthleteOK

func NewGetLoggedInAthleteOK() *GetLoggedInAthleteOK

NewGetLoggedInAthleteOK creates a GetLoggedInAthleteOK with default headers values

func (*GetLoggedInAthleteOK) Code added in v0.0.7

func (o *GetLoggedInAthleteOK) Code() int

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

func (*GetLoggedInAthleteOK) Error

func (o *GetLoggedInAthleteOK) Error() string

func (*GetLoggedInAthleteOK) GetPayload

func (o *GetLoggedInAthleteOK) GetPayload() *models.DetailedAthlete

func (*GetLoggedInAthleteOK) IsClientError added in v0.0.5

func (o *GetLoggedInAthleteOK) IsClientError() bool

IsClientError returns true when this get logged in athlete o k response has a 4xx status code

func (*GetLoggedInAthleteOK) IsCode added in v0.0.5

func (o *GetLoggedInAthleteOK) IsCode(code int) bool

IsCode returns true when this get logged in athlete o k response a status code equal to that given

func (*GetLoggedInAthleteOK) IsRedirect added in v0.0.5

func (o *GetLoggedInAthleteOK) IsRedirect() bool

IsRedirect returns true when this get logged in athlete o k response has a 3xx status code

func (*GetLoggedInAthleteOK) IsServerError added in v0.0.5

func (o *GetLoggedInAthleteOK) IsServerError() bool

IsServerError returns true when this get logged in athlete o k response has a 5xx status code

func (*GetLoggedInAthleteOK) IsSuccess added in v0.0.5

func (o *GetLoggedInAthleteOK) IsSuccess() bool

IsSuccess returns true when this get logged in athlete o k response has a 2xx status code

func (*GetLoggedInAthleteOK) String added in v0.0.5

func (o *GetLoggedInAthleteOK) String() string

type GetLoggedInAthleteParams

type GetLoggedInAthleteParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetLoggedInAthleteParams contains all the parameters to send to the API endpoint

for the get logged in athlete operation.

Typically these are written to a http.Request.

func NewGetLoggedInAthleteParams

func NewGetLoggedInAthleteParams() *GetLoggedInAthleteParams

NewGetLoggedInAthleteParams creates a new GetLoggedInAthleteParams 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 NewGetLoggedInAthleteParamsWithContext

func NewGetLoggedInAthleteParamsWithContext(ctx context.Context) *GetLoggedInAthleteParams

NewGetLoggedInAthleteParamsWithContext creates a new GetLoggedInAthleteParams object with the ability to set a context for a request.

func NewGetLoggedInAthleteParamsWithHTTPClient

func NewGetLoggedInAthleteParamsWithHTTPClient(client *http.Client) *GetLoggedInAthleteParams

NewGetLoggedInAthleteParamsWithHTTPClient creates a new GetLoggedInAthleteParams object with the ability to set a custom HTTPClient for a request.

func NewGetLoggedInAthleteParamsWithTimeout

func NewGetLoggedInAthleteParamsWithTimeout(timeout time.Duration) *GetLoggedInAthleteParams

NewGetLoggedInAthleteParamsWithTimeout creates a new GetLoggedInAthleteParams object with the ability to set a timeout on a request.

func (*GetLoggedInAthleteParams) SetContext

func (o *GetLoggedInAthleteParams) SetContext(ctx context.Context)

SetContext adds the context to the get logged in athlete params

func (*GetLoggedInAthleteParams) SetDefaults

func (o *GetLoggedInAthleteParams) SetDefaults()

SetDefaults hydrates default values in the get logged in athlete params (not the query body).

All values with no default are reset to their zero value.

func (*GetLoggedInAthleteParams) SetHTTPClient

func (o *GetLoggedInAthleteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get logged in athlete params

func (*GetLoggedInAthleteParams) SetTimeout

func (o *GetLoggedInAthleteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get logged in athlete params

func (*GetLoggedInAthleteParams) WithContext

WithContext adds the context to the get logged in athlete params

func (*GetLoggedInAthleteParams) WithDefaults

WithDefaults hydrates default values in the get logged in athlete params (not the query body).

All values with no default are reset to their zero value.

func (*GetLoggedInAthleteParams) WithHTTPClient

func (o *GetLoggedInAthleteParams) WithHTTPClient(client *http.Client) *GetLoggedInAthleteParams

WithHTTPClient adds the HTTPClient to the get logged in athlete params

func (*GetLoggedInAthleteParams) WithTimeout

WithTimeout adds the timeout to the get logged in athlete params

func (*GetLoggedInAthleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLoggedInAthleteReader

type GetLoggedInAthleteReader struct {
	// contains filtered or unexported fields
}

GetLoggedInAthleteReader is a Reader for the GetLoggedInAthlete structure.

func (*GetLoggedInAthleteReader) ReadResponse

func (o *GetLoggedInAthleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetLoggedInAthleteZonesDefault

type GetLoggedInAthleteZonesDefault struct {
	Payload *models.Fault
	// contains filtered or unexported fields
}

GetLoggedInAthleteZonesDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetLoggedInAthleteZonesDefault

func NewGetLoggedInAthleteZonesDefault(code int) *GetLoggedInAthleteZonesDefault

NewGetLoggedInAthleteZonesDefault creates a GetLoggedInAthleteZonesDefault with default headers values

func (*GetLoggedInAthleteZonesDefault) Code

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

func (*GetLoggedInAthleteZonesDefault) Error

func (*GetLoggedInAthleteZonesDefault) GetPayload

func (o *GetLoggedInAthleteZonesDefault) GetPayload() *models.Fault

func (*GetLoggedInAthleteZonesDefault) IsClientError added in v0.0.5

func (o *GetLoggedInAthleteZonesDefault) IsClientError() bool

IsClientError returns true when this get logged in athlete zones default response has a 4xx status code

func (*GetLoggedInAthleteZonesDefault) IsCode added in v0.0.5

func (o *GetLoggedInAthleteZonesDefault) IsCode(code int) bool

IsCode returns true when this get logged in athlete zones default response a status code equal to that given

func (*GetLoggedInAthleteZonesDefault) IsRedirect added in v0.0.5

func (o *GetLoggedInAthleteZonesDefault) IsRedirect() bool

IsRedirect returns true when this get logged in athlete zones default response has a 3xx status code

func (*GetLoggedInAthleteZonesDefault) IsServerError added in v0.0.5

func (o *GetLoggedInAthleteZonesDefault) IsServerError() bool

IsServerError returns true when this get logged in athlete zones default response has a 5xx status code

func (*GetLoggedInAthleteZonesDefault) IsSuccess added in v0.0.5

func (o *GetLoggedInAthleteZonesDefault) IsSuccess() bool

IsSuccess returns true when this get logged in athlete zones default response has a 2xx status code

func (*GetLoggedInAthleteZonesDefault) String added in v0.0.5

type GetLoggedInAthleteZonesOK

type GetLoggedInAthleteZonesOK struct {
	Payload *models.Zones
}

GetLoggedInAthleteZonesOK describes a response with status code 200, with default header values.

Heart rate and power zones.

func NewGetLoggedInAthleteZonesOK

func NewGetLoggedInAthleteZonesOK() *GetLoggedInAthleteZonesOK

NewGetLoggedInAthleteZonesOK creates a GetLoggedInAthleteZonesOK with default headers values

func (*GetLoggedInAthleteZonesOK) Code added in v0.0.7

func (o *GetLoggedInAthleteZonesOK) Code() int

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

func (*GetLoggedInAthleteZonesOK) Error

func (o *GetLoggedInAthleteZonesOK) Error() string

func (*GetLoggedInAthleteZonesOK) GetPayload

func (o *GetLoggedInAthleteZonesOK) GetPayload() *models.Zones

func (*GetLoggedInAthleteZonesOK) IsClientError added in v0.0.5

func (o *GetLoggedInAthleteZonesOK) IsClientError() bool

IsClientError returns true when this get logged in athlete zones o k response has a 4xx status code

func (*GetLoggedInAthleteZonesOK) IsCode added in v0.0.5

func (o *GetLoggedInAthleteZonesOK) IsCode(code int) bool

IsCode returns true when this get logged in athlete zones o k response a status code equal to that given

func (*GetLoggedInAthleteZonesOK) IsRedirect added in v0.0.5

func (o *GetLoggedInAthleteZonesOK) IsRedirect() bool

IsRedirect returns true when this get logged in athlete zones o k response has a 3xx status code

func (*GetLoggedInAthleteZonesOK) IsServerError added in v0.0.5

func (o *GetLoggedInAthleteZonesOK) IsServerError() bool

IsServerError returns true when this get logged in athlete zones o k response has a 5xx status code

func (*GetLoggedInAthleteZonesOK) IsSuccess added in v0.0.5

func (o *GetLoggedInAthleteZonesOK) IsSuccess() bool

IsSuccess returns true when this get logged in athlete zones o k response has a 2xx status code

func (*GetLoggedInAthleteZonesOK) String added in v0.0.5

func (o *GetLoggedInAthleteZonesOK) String() string

type GetLoggedInAthleteZonesParams

type GetLoggedInAthleteZonesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetLoggedInAthleteZonesParams contains all the parameters to send to the API endpoint

for the get logged in athlete zones operation.

Typically these are written to a http.Request.

func NewGetLoggedInAthleteZonesParams

func NewGetLoggedInAthleteZonesParams() *GetLoggedInAthleteZonesParams

NewGetLoggedInAthleteZonesParams creates a new GetLoggedInAthleteZonesParams 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 NewGetLoggedInAthleteZonesParamsWithContext

func NewGetLoggedInAthleteZonesParamsWithContext(ctx context.Context) *GetLoggedInAthleteZonesParams

NewGetLoggedInAthleteZonesParamsWithContext creates a new GetLoggedInAthleteZonesParams object with the ability to set a context for a request.

func NewGetLoggedInAthleteZonesParamsWithHTTPClient

func NewGetLoggedInAthleteZonesParamsWithHTTPClient(client *http.Client) *GetLoggedInAthleteZonesParams

NewGetLoggedInAthleteZonesParamsWithHTTPClient creates a new GetLoggedInAthleteZonesParams object with the ability to set a custom HTTPClient for a request.

func NewGetLoggedInAthleteZonesParamsWithTimeout

func NewGetLoggedInAthleteZonesParamsWithTimeout(timeout time.Duration) *GetLoggedInAthleteZonesParams

NewGetLoggedInAthleteZonesParamsWithTimeout creates a new GetLoggedInAthleteZonesParams object with the ability to set a timeout on a request.

func (*GetLoggedInAthleteZonesParams) SetContext

func (o *GetLoggedInAthleteZonesParams) SetContext(ctx context.Context)

SetContext adds the context to the get logged in athlete zones params

func (*GetLoggedInAthleteZonesParams) SetDefaults

func (o *GetLoggedInAthleteZonesParams) SetDefaults()

SetDefaults hydrates default values in the get logged in athlete zones params (not the query body).

All values with no default are reset to their zero value.

func (*GetLoggedInAthleteZonesParams) SetHTTPClient

func (o *GetLoggedInAthleteZonesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get logged in athlete zones params

func (*GetLoggedInAthleteZonesParams) SetTimeout

func (o *GetLoggedInAthleteZonesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get logged in athlete zones params

func (*GetLoggedInAthleteZonesParams) WithContext

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

func (*GetLoggedInAthleteZonesParams) WithDefaults

WithDefaults hydrates default values in the get logged in athlete zones params (not the query body).

All values with no default are reset to their zero value.

func (*GetLoggedInAthleteZonesParams) WithHTTPClient

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

func (*GetLoggedInAthleteZonesParams) WithTimeout

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

func (*GetLoggedInAthleteZonesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLoggedInAthleteZonesReader

type GetLoggedInAthleteZonesReader struct {
	// contains filtered or unexported fields
}

GetLoggedInAthleteZonesReader is a Reader for the GetLoggedInAthleteZones structure.

func (*GetLoggedInAthleteZonesReader) ReadResponse

func (o *GetLoggedInAthleteZonesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetStatsDefault

type GetStatsDefault struct {
	Payload *models.Fault
	// contains filtered or unexported fields
}

GetStatsDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetStatsDefault

func NewGetStatsDefault(code int) *GetStatsDefault

NewGetStatsDefault creates a GetStatsDefault with default headers values

func (*GetStatsDefault) Code

func (o *GetStatsDefault) Code() int

Code gets the status code for the get stats default response

func (*GetStatsDefault) Error

func (o *GetStatsDefault) Error() string

func (*GetStatsDefault) GetPayload

func (o *GetStatsDefault) GetPayload() *models.Fault

func (*GetStatsDefault) IsClientError added in v0.0.5

func (o *GetStatsDefault) IsClientError() bool

IsClientError returns true when this get stats default response has a 4xx status code

func (*GetStatsDefault) IsCode added in v0.0.5

func (o *GetStatsDefault) IsCode(code int) bool

IsCode returns true when this get stats default response a status code equal to that given

func (*GetStatsDefault) IsRedirect added in v0.0.5

func (o *GetStatsDefault) IsRedirect() bool

IsRedirect returns true when this get stats default response has a 3xx status code

func (*GetStatsDefault) IsServerError added in v0.0.5

func (o *GetStatsDefault) IsServerError() bool

IsServerError returns true when this get stats default response has a 5xx status code

func (*GetStatsDefault) IsSuccess added in v0.0.5

func (o *GetStatsDefault) IsSuccess() bool

IsSuccess returns true when this get stats default response has a 2xx status code

func (*GetStatsDefault) String added in v0.0.5

func (o *GetStatsDefault) String() string

type GetStatsOK

type GetStatsOK struct {
	Payload *models.ActivityStats
}

GetStatsOK describes a response with status code 200, with default header values.

Activity stats of the athlete.

func NewGetStatsOK

func NewGetStatsOK() *GetStatsOK

NewGetStatsOK creates a GetStatsOK with default headers values

func (*GetStatsOK) Code added in v0.0.7

func (o *GetStatsOK) Code() int

Code gets the status code for the get stats o k response

func (*GetStatsOK) Error

func (o *GetStatsOK) Error() string

func (*GetStatsOK) GetPayload

func (o *GetStatsOK) GetPayload() *models.ActivityStats

func (*GetStatsOK) IsClientError added in v0.0.5

func (o *GetStatsOK) IsClientError() bool

IsClientError returns true when this get stats o k response has a 4xx status code

func (*GetStatsOK) IsCode added in v0.0.5

func (o *GetStatsOK) IsCode(code int) bool

IsCode returns true when this get stats o k response a status code equal to that given

func (*GetStatsOK) IsRedirect added in v0.0.5

func (o *GetStatsOK) IsRedirect() bool

IsRedirect returns true when this get stats o k response has a 3xx status code

func (*GetStatsOK) IsServerError added in v0.0.5

func (o *GetStatsOK) IsServerError() bool

IsServerError returns true when this get stats o k response has a 5xx status code

func (*GetStatsOK) IsSuccess added in v0.0.5

func (o *GetStatsOK) IsSuccess() bool

IsSuccess returns true when this get stats o k response has a 2xx status code

func (*GetStatsOK) String added in v0.0.5

func (o *GetStatsOK) String() string

type GetStatsParams

type GetStatsParams struct {

	/* ID.

	   The identifier of the athlete. Must match the authenticated athlete.

	   Format: int64
	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetStatsParams contains all the parameters to send to the API endpoint

for the get stats operation.

Typically these are written to a http.Request.

func NewGetStatsParams

func NewGetStatsParams() *GetStatsParams

NewGetStatsParams creates a new GetStatsParams 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 NewGetStatsParamsWithContext

func NewGetStatsParamsWithContext(ctx context.Context) *GetStatsParams

NewGetStatsParamsWithContext creates a new GetStatsParams object with the ability to set a context for a request.

func NewGetStatsParamsWithHTTPClient

func NewGetStatsParamsWithHTTPClient(client *http.Client) *GetStatsParams

NewGetStatsParamsWithHTTPClient creates a new GetStatsParams object with the ability to set a custom HTTPClient for a request.

func NewGetStatsParamsWithTimeout

func NewGetStatsParamsWithTimeout(timeout time.Duration) *GetStatsParams

NewGetStatsParamsWithTimeout creates a new GetStatsParams object with the ability to set a timeout on a request.

func (*GetStatsParams) SetContext

func (o *GetStatsParams) SetContext(ctx context.Context)

SetContext adds the context to the get stats params

func (*GetStatsParams) SetDefaults

func (o *GetStatsParams) SetDefaults()

SetDefaults hydrates default values in the get stats params (not the query body).

All values with no default are reset to their zero value.

func (*GetStatsParams) SetHTTPClient

func (o *GetStatsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get stats params

func (*GetStatsParams) SetID

func (o *GetStatsParams) SetID(id int64)

SetID adds the id to the get stats params

func (*GetStatsParams) SetTimeout

func (o *GetStatsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get stats params

func (*GetStatsParams) WithContext

func (o *GetStatsParams) WithContext(ctx context.Context) *GetStatsParams

WithContext adds the context to the get stats params

func (*GetStatsParams) WithDefaults

func (o *GetStatsParams) WithDefaults() *GetStatsParams

WithDefaults hydrates default values in the get stats params (not the query body).

All values with no default are reset to their zero value.

func (*GetStatsParams) WithHTTPClient

func (o *GetStatsParams) WithHTTPClient(client *http.Client) *GetStatsParams

WithHTTPClient adds the HTTPClient to the get stats params

func (*GetStatsParams) WithID

func (o *GetStatsParams) WithID(id int64) *GetStatsParams

WithID adds the id to the get stats params

func (*GetStatsParams) WithTimeout

func (o *GetStatsParams) WithTimeout(timeout time.Duration) *GetStatsParams

WithTimeout adds the timeout to the get stats params

func (*GetStatsParams) WriteToRequest

func (o *GetStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetStatsReader

type GetStatsReader struct {
	// contains filtered or unexported fields
}

GetStatsReader is a Reader for the GetStats structure.

func (*GetStatsReader) ReadResponse

func (o *GetStatsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateLoggedInAthleteDefault

type UpdateLoggedInAthleteDefault struct {
	Payload *models.Fault
	// contains filtered or unexported fields
}

UpdateLoggedInAthleteDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewUpdateLoggedInAthleteDefault

func NewUpdateLoggedInAthleteDefault(code int) *UpdateLoggedInAthleteDefault

NewUpdateLoggedInAthleteDefault creates a UpdateLoggedInAthleteDefault with default headers values

func (*UpdateLoggedInAthleteDefault) Code

Code gets the status code for the update logged in athlete default response

func (*UpdateLoggedInAthleteDefault) Error

func (*UpdateLoggedInAthleteDefault) GetPayload

func (o *UpdateLoggedInAthleteDefault) GetPayload() *models.Fault

func (*UpdateLoggedInAthleteDefault) IsClientError added in v0.0.5

func (o *UpdateLoggedInAthleteDefault) IsClientError() bool

IsClientError returns true when this update logged in athlete default response has a 4xx status code

func (*UpdateLoggedInAthleteDefault) IsCode added in v0.0.5

func (o *UpdateLoggedInAthleteDefault) IsCode(code int) bool

IsCode returns true when this update logged in athlete default response a status code equal to that given

func (*UpdateLoggedInAthleteDefault) IsRedirect added in v0.0.5

func (o *UpdateLoggedInAthleteDefault) IsRedirect() bool

IsRedirect returns true when this update logged in athlete default response has a 3xx status code

func (*UpdateLoggedInAthleteDefault) IsServerError added in v0.0.5

func (o *UpdateLoggedInAthleteDefault) IsServerError() bool

IsServerError returns true when this update logged in athlete default response has a 5xx status code

func (*UpdateLoggedInAthleteDefault) IsSuccess added in v0.0.5

func (o *UpdateLoggedInAthleteDefault) IsSuccess() bool

IsSuccess returns true when this update logged in athlete default response has a 2xx status code

func (*UpdateLoggedInAthleteDefault) String added in v0.0.5

type UpdateLoggedInAthleteOK

type UpdateLoggedInAthleteOK struct {
	Payload *models.DetailedAthlete
}

UpdateLoggedInAthleteOK describes a response with status code 200, with default header values.

Profile information for the authenticated athlete.

func NewUpdateLoggedInAthleteOK

func NewUpdateLoggedInAthleteOK() *UpdateLoggedInAthleteOK

NewUpdateLoggedInAthleteOK creates a UpdateLoggedInAthleteOK with default headers values

func (*UpdateLoggedInAthleteOK) Code added in v0.0.7

func (o *UpdateLoggedInAthleteOK) Code() int

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

func (*UpdateLoggedInAthleteOK) Error

func (o *UpdateLoggedInAthleteOK) Error() string

func (*UpdateLoggedInAthleteOK) GetPayload

func (*UpdateLoggedInAthleteOK) IsClientError added in v0.0.5

func (o *UpdateLoggedInAthleteOK) IsClientError() bool

IsClientError returns true when this update logged in athlete o k response has a 4xx status code

func (*UpdateLoggedInAthleteOK) IsCode added in v0.0.5

func (o *UpdateLoggedInAthleteOK) IsCode(code int) bool

IsCode returns true when this update logged in athlete o k response a status code equal to that given

func (*UpdateLoggedInAthleteOK) IsRedirect added in v0.0.5

func (o *UpdateLoggedInAthleteOK) IsRedirect() bool

IsRedirect returns true when this update logged in athlete o k response has a 3xx status code

func (*UpdateLoggedInAthleteOK) IsServerError added in v0.0.5

func (o *UpdateLoggedInAthleteOK) IsServerError() bool

IsServerError returns true when this update logged in athlete o k response has a 5xx status code

func (*UpdateLoggedInAthleteOK) IsSuccess added in v0.0.5

func (o *UpdateLoggedInAthleteOK) IsSuccess() bool

IsSuccess returns true when this update logged in athlete o k response has a 2xx status code

func (*UpdateLoggedInAthleteOK) String added in v0.0.5

func (o *UpdateLoggedInAthleteOK) String() string

type UpdateLoggedInAthleteParams

type UpdateLoggedInAthleteParams struct {

	/* Weight.

	   The weight of the athlete in kilograms.

	   Format: float
	*/
	Weight float32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateLoggedInAthleteParams contains all the parameters to send to the API endpoint

for the update logged in athlete operation.

Typically these are written to a http.Request.

func NewUpdateLoggedInAthleteParams

func NewUpdateLoggedInAthleteParams() *UpdateLoggedInAthleteParams

NewUpdateLoggedInAthleteParams creates a new UpdateLoggedInAthleteParams 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 NewUpdateLoggedInAthleteParamsWithContext

func NewUpdateLoggedInAthleteParamsWithContext(ctx context.Context) *UpdateLoggedInAthleteParams

NewUpdateLoggedInAthleteParamsWithContext creates a new UpdateLoggedInAthleteParams object with the ability to set a context for a request.

func NewUpdateLoggedInAthleteParamsWithHTTPClient

func NewUpdateLoggedInAthleteParamsWithHTTPClient(client *http.Client) *UpdateLoggedInAthleteParams

NewUpdateLoggedInAthleteParamsWithHTTPClient creates a new UpdateLoggedInAthleteParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateLoggedInAthleteParamsWithTimeout

func NewUpdateLoggedInAthleteParamsWithTimeout(timeout time.Duration) *UpdateLoggedInAthleteParams

NewUpdateLoggedInAthleteParamsWithTimeout creates a new UpdateLoggedInAthleteParams object with the ability to set a timeout on a request.

func (*UpdateLoggedInAthleteParams) SetContext

func (o *UpdateLoggedInAthleteParams) SetContext(ctx context.Context)

SetContext adds the context to the update logged in athlete params

func (*UpdateLoggedInAthleteParams) SetDefaults

func (o *UpdateLoggedInAthleteParams) SetDefaults()

SetDefaults hydrates default values in the update logged in athlete params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateLoggedInAthleteParams) SetHTTPClient

func (o *UpdateLoggedInAthleteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update logged in athlete params

func (*UpdateLoggedInAthleteParams) SetTimeout

func (o *UpdateLoggedInAthleteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update logged in athlete params

func (*UpdateLoggedInAthleteParams) SetWeight

func (o *UpdateLoggedInAthleteParams) SetWeight(weight float32)

SetWeight adds the weight to the update logged in athlete params

func (*UpdateLoggedInAthleteParams) WithContext

WithContext adds the context to the update logged in athlete params

func (*UpdateLoggedInAthleteParams) WithDefaults

WithDefaults hydrates default values in the update logged in athlete params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateLoggedInAthleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update logged in athlete params

func (*UpdateLoggedInAthleteParams) WithTimeout

WithTimeout adds the timeout to the update logged in athlete params

func (*UpdateLoggedInAthleteParams) WithWeight

WithWeight adds the weight to the update logged in athlete params

func (*UpdateLoggedInAthleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateLoggedInAthleteReader

type UpdateLoggedInAthleteReader struct {
	// contains filtered or unexported fields
}

UpdateLoggedInAthleteReader is a Reader for the UpdateLoggedInAthlete structure.

func (*UpdateLoggedInAthleteReader) ReadResponse

func (o *UpdateLoggedInAthleteReader) 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