Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteSpeedtestsID(params *DeleteSpeedtestsIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSpeedtestsIDOK, error)
- func (a *Client) GetSpeedtests(params *GetSpeedtestsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSpeedtestsOK, error)
- func (a *Client) PostSpeedtestsStart(params *PostSpeedtestsStartParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostSpeedtestsStartOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteSpeedtestsIDBadRequest
- type DeleteSpeedtestsIDForbidden
- type DeleteSpeedtestsIDInternalServerError
- type DeleteSpeedtestsIDNotFound
- type DeleteSpeedtestsIDOK
- type DeleteSpeedtestsIDParams
- func NewDeleteSpeedtestsIDParams() *DeleteSpeedtestsIDParams
- func NewDeleteSpeedtestsIDParamsWithContext(ctx context.Context) *DeleteSpeedtestsIDParams
- func NewDeleteSpeedtestsIDParamsWithHTTPClient(client *http.Client) *DeleteSpeedtestsIDParams
- func NewDeleteSpeedtestsIDParamsWithTimeout(timeout time.Duration) *DeleteSpeedtestsIDParams
- func (o *DeleteSpeedtestsIDParams) SetContext(ctx context.Context)
- func (o *DeleteSpeedtestsIDParams) SetDefaults()
- func (o *DeleteSpeedtestsIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSpeedtestsIDParams) SetID(id string)
- func (o *DeleteSpeedtestsIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSpeedtestsIDParams) WithContext(ctx context.Context) *DeleteSpeedtestsIDParams
- func (o *DeleteSpeedtestsIDParams) WithDefaults() *DeleteSpeedtestsIDParams
- func (o *DeleteSpeedtestsIDParams) WithHTTPClient(client *http.Client) *DeleteSpeedtestsIDParams
- func (o *DeleteSpeedtestsIDParams) WithID(id string) *DeleteSpeedtestsIDParams
- func (o *DeleteSpeedtestsIDParams) WithTimeout(timeout time.Duration) *DeleteSpeedtestsIDParams
- func (o *DeleteSpeedtestsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSpeedtestsIDReader
- type DeleteSpeedtestsIDUnauthorized
- type GetSpeedtestsForbidden
- type GetSpeedtestsInternalServerError
- type GetSpeedtestsOK
- type GetSpeedtestsParams
- func (o *GetSpeedtestsParams) SetContext(ctx context.Context)
- func (o *GetSpeedtestsParams) SetDefaults()
- func (o *GetSpeedtestsParams) SetHTTPClient(client *http.Client)
- func (o *GetSpeedtestsParams) SetTimeout(timeout time.Duration)
- func (o *GetSpeedtestsParams) WithContext(ctx context.Context) *GetSpeedtestsParams
- func (o *GetSpeedtestsParams) WithDefaults() *GetSpeedtestsParams
- func (o *GetSpeedtestsParams) WithHTTPClient(client *http.Client) *GetSpeedtestsParams
- func (o *GetSpeedtestsParams) WithTimeout(timeout time.Duration) *GetSpeedtestsParams
- func (o *GetSpeedtestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSpeedtestsReader
- type GetSpeedtestsUnauthorized
- type PostSpeedtestsStartBadRequest
- type PostSpeedtestsStartForbidden
- type PostSpeedtestsStartInternalServerError
- type PostSpeedtestsStartOK
- type PostSpeedtestsStartParams
- func NewPostSpeedtestsStartParams() *PostSpeedtestsStartParams
- func NewPostSpeedtestsStartParamsWithContext(ctx context.Context) *PostSpeedtestsStartParams
- func NewPostSpeedtestsStartParamsWithHTTPClient(client *http.Client) *PostSpeedtestsStartParams
- func NewPostSpeedtestsStartParamsWithTimeout(timeout time.Duration) *PostSpeedtestsStartParams
- func (o *PostSpeedtestsStartParams) SetBody(body *models.PayloadSpeedTest)
- func (o *PostSpeedtestsStartParams) SetContext(ctx context.Context)
- func (o *PostSpeedtestsStartParams) SetDefaults()
- func (o *PostSpeedtestsStartParams) SetHTTPClient(client *http.Client)
- func (o *PostSpeedtestsStartParams) SetTimeout(timeout time.Duration)
- func (o *PostSpeedtestsStartParams) WithBody(body *models.PayloadSpeedTest) *PostSpeedtestsStartParams
- func (o *PostSpeedtestsStartParams) WithContext(ctx context.Context) *PostSpeedtestsStartParams
- func (o *PostSpeedtestsStartParams) WithDefaults() *PostSpeedtestsStartParams
- func (o *PostSpeedtestsStartParams) WithHTTPClient(client *http.Client) *PostSpeedtestsStartParams
- func (o *PostSpeedtestsStartParams) WithTimeout(timeout time.Duration) *PostSpeedtestsStartParams
- func (o *PostSpeedtestsStartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostSpeedtestsStartReader
- type PostSpeedtestsStartUnauthorized
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 speed test API
func (*Client) DeleteSpeedtestsID ¶
func (a *Client) DeleteSpeedtestsID(params *DeleteSpeedtestsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSpeedtestsIDOK, error)
DeleteSpeedtestsID stops speed test between two devices
func (*Client) GetSpeedtests ¶
func (a *Client) GetSpeedtests(params *GetSpeedtestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSpeedtestsOK, error)
GetSpeedtests returns detail about running speedtests
func (*Client) PostSpeedtestsStart ¶
func (a *Client) PostSpeedtestsStart(params *PostSpeedtestsStartParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostSpeedtestsStartOK, error)
PostSpeedtestsStart executes speed test between two devices
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { DeleteSpeedtestsID(params *DeleteSpeedtestsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSpeedtestsIDOK, error) GetSpeedtests(params *GetSpeedtestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSpeedtestsOK, error) PostSpeedtestsStart(params *PostSpeedtestsStartParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostSpeedtestsStartOK, 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 speed test API client.
type DeleteSpeedtestsIDBadRequest ¶
DeleteSpeedtestsIDBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteSpeedtestsIDBadRequest ¶
func NewDeleteSpeedtestsIDBadRequest() *DeleteSpeedtestsIDBadRequest
NewDeleteSpeedtestsIDBadRequest creates a DeleteSpeedtestsIDBadRequest with default headers values
func (*DeleteSpeedtestsIDBadRequest) Error ¶
func (o *DeleteSpeedtestsIDBadRequest) Error() string
func (*DeleteSpeedtestsIDBadRequest) GetPayload ¶
func (o *DeleteSpeedtestsIDBadRequest) GetPayload() *models.Error
type DeleteSpeedtestsIDForbidden ¶
DeleteSpeedtestsIDForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteSpeedtestsIDForbidden ¶
func NewDeleteSpeedtestsIDForbidden() *DeleteSpeedtestsIDForbidden
NewDeleteSpeedtestsIDForbidden creates a DeleteSpeedtestsIDForbidden with default headers values
func (*DeleteSpeedtestsIDForbidden) Error ¶
func (o *DeleteSpeedtestsIDForbidden) Error() string
func (*DeleteSpeedtestsIDForbidden) GetPayload ¶
func (o *DeleteSpeedtestsIDForbidden) GetPayload() *models.Error
type DeleteSpeedtestsIDInternalServerError ¶
DeleteSpeedtestsIDInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewDeleteSpeedtestsIDInternalServerError ¶
func NewDeleteSpeedtestsIDInternalServerError() *DeleteSpeedtestsIDInternalServerError
NewDeleteSpeedtestsIDInternalServerError creates a DeleteSpeedtestsIDInternalServerError with default headers values
func (*DeleteSpeedtestsIDInternalServerError) Error ¶
func (o *DeleteSpeedtestsIDInternalServerError) Error() string
func (*DeleteSpeedtestsIDInternalServerError) GetPayload ¶
func (o *DeleteSpeedtestsIDInternalServerError) GetPayload() *models.Error
type DeleteSpeedtestsIDNotFound ¶
DeleteSpeedtestsIDNotFound describes a response with status code 404, with default header values.
Not Found
func NewDeleteSpeedtestsIDNotFound ¶
func NewDeleteSpeedtestsIDNotFound() *DeleteSpeedtestsIDNotFound
NewDeleteSpeedtestsIDNotFound creates a DeleteSpeedtestsIDNotFound with default headers values
func (*DeleteSpeedtestsIDNotFound) Error ¶
func (o *DeleteSpeedtestsIDNotFound) Error() string
func (*DeleteSpeedtestsIDNotFound) GetPayload ¶
func (o *DeleteSpeedtestsIDNotFound) GetPayload() *models.Error
type DeleteSpeedtestsIDOK ¶
DeleteSpeedtestsIDOK describes a response with status code 200, with default header values.
Successful
func NewDeleteSpeedtestsIDOK ¶
func NewDeleteSpeedtestsIDOK() *DeleteSpeedtestsIDOK
NewDeleteSpeedtestsIDOK creates a DeleteSpeedtestsIDOK with default headers values
func (*DeleteSpeedtestsIDOK) Error ¶
func (o *DeleteSpeedtestsIDOK) Error() string
func (*DeleteSpeedtestsIDOK) GetPayload ¶
func (o *DeleteSpeedtestsIDOK) GetPayload() *models.Status
type DeleteSpeedtestsIDParams ¶
type DeleteSpeedtestsIDParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSpeedtestsIDParams contains all the parameters to send to the API endpoint
for the delete speedtests Id operation. Typically these are written to a http.Request.
func NewDeleteSpeedtestsIDParams ¶
func NewDeleteSpeedtestsIDParams() *DeleteSpeedtestsIDParams
NewDeleteSpeedtestsIDParams creates a new DeleteSpeedtestsIDParams 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 NewDeleteSpeedtestsIDParamsWithContext ¶
func NewDeleteSpeedtestsIDParamsWithContext(ctx context.Context) *DeleteSpeedtestsIDParams
NewDeleteSpeedtestsIDParamsWithContext creates a new DeleteSpeedtestsIDParams object with the ability to set a context for a request.
func NewDeleteSpeedtestsIDParamsWithHTTPClient ¶
func NewDeleteSpeedtestsIDParamsWithHTTPClient(client *http.Client) *DeleteSpeedtestsIDParams
NewDeleteSpeedtestsIDParamsWithHTTPClient creates a new DeleteSpeedtestsIDParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSpeedtestsIDParamsWithTimeout ¶
func NewDeleteSpeedtestsIDParamsWithTimeout(timeout time.Duration) *DeleteSpeedtestsIDParams
NewDeleteSpeedtestsIDParamsWithTimeout creates a new DeleteSpeedtestsIDParams object with the ability to set a timeout on a request.
func (*DeleteSpeedtestsIDParams) SetContext ¶
func (o *DeleteSpeedtestsIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete speedtests Id params
func (*DeleteSpeedtestsIDParams) SetDefaults ¶
func (o *DeleteSpeedtestsIDParams) SetDefaults()
SetDefaults hydrates default values in the delete speedtests Id params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSpeedtestsIDParams) SetHTTPClient ¶
func (o *DeleteSpeedtestsIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete speedtests Id params
func (*DeleteSpeedtestsIDParams) SetID ¶
func (o *DeleteSpeedtestsIDParams) SetID(id string)
SetID adds the id to the delete speedtests Id params
func (*DeleteSpeedtestsIDParams) SetTimeout ¶
func (o *DeleteSpeedtestsIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete speedtests Id params
func (*DeleteSpeedtestsIDParams) WithContext ¶
func (o *DeleteSpeedtestsIDParams) WithContext(ctx context.Context) *DeleteSpeedtestsIDParams
WithContext adds the context to the delete speedtests Id params
func (*DeleteSpeedtestsIDParams) WithDefaults ¶
func (o *DeleteSpeedtestsIDParams) WithDefaults() *DeleteSpeedtestsIDParams
WithDefaults hydrates default values in the delete speedtests Id params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSpeedtestsIDParams) WithHTTPClient ¶
func (o *DeleteSpeedtestsIDParams) WithHTTPClient(client *http.Client) *DeleteSpeedtestsIDParams
WithHTTPClient adds the HTTPClient to the delete speedtests Id params
func (*DeleteSpeedtestsIDParams) WithID ¶
func (o *DeleteSpeedtestsIDParams) WithID(id string) *DeleteSpeedtestsIDParams
WithID adds the id to the delete speedtests Id params
func (*DeleteSpeedtestsIDParams) WithTimeout ¶
func (o *DeleteSpeedtestsIDParams) WithTimeout(timeout time.Duration) *DeleteSpeedtestsIDParams
WithTimeout adds the timeout to the delete speedtests Id params
func (*DeleteSpeedtestsIDParams) WriteToRequest ¶
func (o *DeleteSpeedtestsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSpeedtestsIDReader ¶
type DeleteSpeedtestsIDReader struct {
// contains filtered or unexported fields
}
DeleteSpeedtestsIDReader is a Reader for the DeleteSpeedtestsID structure.
func (*DeleteSpeedtestsIDReader) ReadResponse ¶
func (o *DeleteSpeedtestsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSpeedtestsIDUnauthorized ¶
type DeleteSpeedtestsIDUnauthorized struct {
}DeleteSpeedtestsIDUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteSpeedtestsIDUnauthorized ¶
func NewDeleteSpeedtestsIDUnauthorized() *DeleteSpeedtestsIDUnauthorized
NewDeleteSpeedtestsIDUnauthorized creates a DeleteSpeedtestsIDUnauthorized with default headers values
func (*DeleteSpeedtestsIDUnauthorized) Error ¶
func (o *DeleteSpeedtestsIDUnauthorized) Error() string
func (*DeleteSpeedtestsIDUnauthorized) GetPayload ¶
func (o *DeleteSpeedtestsIDUnauthorized) GetPayload() *models.Error
type GetSpeedtestsForbidden ¶
GetSpeedtestsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetSpeedtestsForbidden ¶
func NewGetSpeedtestsForbidden() *GetSpeedtestsForbidden
NewGetSpeedtestsForbidden creates a GetSpeedtestsForbidden with default headers values
func (*GetSpeedtestsForbidden) Error ¶
func (o *GetSpeedtestsForbidden) Error() string
func (*GetSpeedtestsForbidden) GetPayload ¶
func (o *GetSpeedtestsForbidden) GetPayload() *models.Error
type GetSpeedtestsInternalServerError ¶
GetSpeedtestsInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetSpeedtestsInternalServerError ¶
func NewGetSpeedtestsInternalServerError() *GetSpeedtestsInternalServerError
NewGetSpeedtestsInternalServerError creates a GetSpeedtestsInternalServerError with default headers values
func (*GetSpeedtestsInternalServerError) Error ¶
func (o *GetSpeedtestsInternalServerError) Error() string
func (*GetSpeedtestsInternalServerError) GetPayload ¶
func (o *GetSpeedtestsInternalServerError) GetPayload() *models.Error
type GetSpeedtestsOK ¶
type GetSpeedtestsOK struct {
Payload models.ListOfSpeedTests
}
GetSpeedtestsOK describes a response with status code 200, with default header values.
Successful
func NewGetSpeedtestsOK ¶
func NewGetSpeedtestsOK() *GetSpeedtestsOK
NewGetSpeedtestsOK creates a GetSpeedtestsOK with default headers values
func (*GetSpeedtestsOK) Error ¶
func (o *GetSpeedtestsOK) Error() string
func (*GetSpeedtestsOK) GetPayload ¶
func (o *GetSpeedtestsOK) GetPayload() models.ListOfSpeedTests
type GetSpeedtestsParams ¶
type GetSpeedtestsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSpeedtestsParams contains all the parameters to send to the API endpoint
for the get speedtests operation. Typically these are written to a http.Request.
func NewGetSpeedtestsParams ¶
func NewGetSpeedtestsParams() *GetSpeedtestsParams
NewGetSpeedtestsParams creates a new GetSpeedtestsParams 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 NewGetSpeedtestsParamsWithContext ¶
func NewGetSpeedtestsParamsWithContext(ctx context.Context) *GetSpeedtestsParams
NewGetSpeedtestsParamsWithContext creates a new GetSpeedtestsParams object with the ability to set a context for a request.
func NewGetSpeedtestsParamsWithHTTPClient ¶
func NewGetSpeedtestsParamsWithHTTPClient(client *http.Client) *GetSpeedtestsParams
NewGetSpeedtestsParamsWithHTTPClient creates a new GetSpeedtestsParams object with the ability to set a custom HTTPClient for a request.
func NewGetSpeedtestsParamsWithTimeout ¶
func NewGetSpeedtestsParamsWithTimeout(timeout time.Duration) *GetSpeedtestsParams
NewGetSpeedtestsParamsWithTimeout creates a new GetSpeedtestsParams object with the ability to set a timeout on a request.
func (*GetSpeedtestsParams) SetContext ¶
func (o *GetSpeedtestsParams) SetContext(ctx context.Context)
SetContext adds the context to the get speedtests params
func (*GetSpeedtestsParams) SetDefaults ¶
func (o *GetSpeedtestsParams) SetDefaults()
SetDefaults hydrates default values in the get speedtests params (not the query body).
All values with no default are reset to their zero value.
func (*GetSpeedtestsParams) SetHTTPClient ¶
func (o *GetSpeedtestsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get speedtests params
func (*GetSpeedtestsParams) SetTimeout ¶
func (o *GetSpeedtestsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get speedtests params
func (*GetSpeedtestsParams) WithContext ¶
func (o *GetSpeedtestsParams) WithContext(ctx context.Context) *GetSpeedtestsParams
WithContext adds the context to the get speedtests params
func (*GetSpeedtestsParams) WithDefaults ¶
func (o *GetSpeedtestsParams) WithDefaults() *GetSpeedtestsParams
WithDefaults hydrates default values in the get speedtests params (not the query body).
All values with no default are reset to their zero value.
func (*GetSpeedtestsParams) WithHTTPClient ¶
func (o *GetSpeedtestsParams) WithHTTPClient(client *http.Client) *GetSpeedtestsParams
WithHTTPClient adds the HTTPClient to the get speedtests params
func (*GetSpeedtestsParams) WithTimeout ¶
func (o *GetSpeedtestsParams) WithTimeout(timeout time.Duration) *GetSpeedtestsParams
WithTimeout adds the timeout to the get speedtests params
func (*GetSpeedtestsParams) WriteToRequest ¶
func (o *GetSpeedtestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSpeedtestsReader ¶
type GetSpeedtestsReader struct {
// contains filtered or unexported fields
}
GetSpeedtestsReader is a Reader for the GetSpeedtests structure.
func (*GetSpeedtestsReader) ReadResponse ¶
func (o *GetSpeedtestsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSpeedtestsUnauthorized ¶
type GetSpeedtestsUnauthorized struct {
}GetSpeedtestsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetSpeedtestsUnauthorized ¶
func NewGetSpeedtestsUnauthorized() *GetSpeedtestsUnauthorized
NewGetSpeedtestsUnauthorized creates a GetSpeedtestsUnauthorized with default headers values
func (*GetSpeedtestsUnauthorized) Error ¶
func (o *GetSpeedtestsUnauthorized) Error() string
func (*GetSpeedtestsUnauthorized) GetPayload ¶
func (o *GetSpeedtestsUnauthorized) GetPayload() *models.Error
type PostSpeedtestsStartBadRequest ¶
PostSpeedtestsStartBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostSpeedtestsStartBadRequest ¶
func NewPostSpeedtestsStartBadRequest() *PostSpeedtestsStartBadRequest
NewPostSpeedtestsStartBadRequest creates a PostSpeedtestsStartBadRequest with default headers values
func (*PostSpeedtestsStartBadRequest) Error ¶
func (o *PostSpeedtestsStartBadRequest) Error() string
func (*PostSpeedtestsStartBadRequest) GetPayload ¶
func (o *PostSpeedtestsStartBadRequest) GetPayload() *models.Error
type PostSpeedtestsStartForbidden ¶
PostSpeedtestsStartForbidden describes a response with status code 403, with default header values.
Forbidden
func NewPostSpeedtestsStartForbidden ¶
func NewPostSpeedtestsStartForbidden() *PostSpeedtestsStartForbidden
NewPostSpeedtestsStartForbidden creates a PostSpeedtestsStartForbidden with default headers values
func (*PostSpeedtestsStartForbidden) Error ¶
func (o *PostSpeedtestsStartForbidden) Error() string
func (*PostSpeedtestsStartForbidden) GetPayload ¶
func (o *PostSpeedtestsStartForbidden) GetPayload() *models.Error
type PostSpeedtestsStartInternalServerError ¶
PostSpeedtestsStartInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostSpeedtestsStartInternalServerError ¶
func NewPostSpeedtestsStartInternalServerError() *PostSpeedtestsStartInternalServerError
NewPostSpeedtestsStartInternalServerError creates a PostSpeedtestsStartInternalServerError with default headers values
func (*PostSpeedtestsStartInternalServerError) Error ¶
func (o *PostSpeedtestsStartInternalServerError) Error() string
func (*PostSpeedtestsStartInternalServerError) GetPayload ¶
func (o *PostSpeedtestsStartInternalServerError) GetPayload() *models.Error
type PostSpeedtestsStartOK ¶
type PostSpeedtestsStartOK struct {
Payload *models.SpeedTestStart
}
PostSpeedtestsStartOK describes a response with status code 200, with default header values.
Successful
func NewPostSpeedtestsStartOK ¶
func NewPostSpeedtestsStartOK() *PostSpeedtestsStartOK
NewPostSpeedtestsStartOK creates a PostSpeedtestsStartOK with default headers values
func (*PostSpeedtestsStartOK) Error ¶
func (o *PostSpeedtestsStartOK) Error() string
func (*PostSpeedtestsStartOK) GetPayload ¶
func (o *PostSpeedtestsStartOK) GetPayload() *models.SpeedTestStart
type PostSpeedtestsStartParams ¶
type PostSpeedtestsStartParams struct { // Body. Body *models.PayloadSpeedTest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostSpeedtestsStartParams contains all the parameters to send to the API endpoint
for the post speedtests start operation. Typically these are written to a http.Request.
func NewPostSpeedtestsStartParams ¶
func NewPostSpeedtestsStartParams() *PostSpeedtestsStartParams
NewPostSpeedtestsStartParams creates a new PostSpeedtestsStartParams 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 NewPostSpeedtestsStartParamsWithContext ¶
func NewPostSpeedtestsStartParamsWithContext(ctx context.Context) *PostSpeedtestsStartParams
NewPostSpeedtestsStartParamsWithContext creates a new PostSpeedtestsStartParams object with the ability to set a context for a request.
func NewPostSpeedtestsStartParamsWithHTTPClient ¶
func NewPostSpeedtestsStartParamsWithHTTPClient(client *http.Client) *PostSpeedtestsStartParams
NewPostSpeedtestsStartParamsWithHTTPClient creates a new PostSpeedtestsStartParams object with the ability to set a custom HTTPClient for a request.
func NewPostSpeedtestsStartParamsWithTimeout ¶
func NewPostSpeedtestsStartParamsWithTimeout(timeout time.Duration) *PostSpeedtestsStartParams
NewPostSpeedtestsStartParamsWithTimeout creates a new PostSpeedtestsStartParams object with the ability to set a timeout on a request.
func (*PostSpeedtestsStartParams) SetBody ¶
func (o *PostSpeedtestsStartParams) SetBody(body *models.PayloadSpeedTest)
SetBody adds the body to the post speedtests start params
func (*PostSpeedtestsStartParams) SetContext ¶
func (o *PostSpeedtestsStartParams) SetContext(ctx context.Context)
SetContext adds the context to the post speedtests start params
func (*PostSpeedtestsStartParams) SetDefaults ¶
func (o *PostSpeedtestsStartParams) SetDefaults()
SetDefaults hydrates default values in the post speedtests start params (not the query body).
All values with no default are reset to their zero value.
func (*PostSpeedtestsStartParams) SetHTTPClient ¶
func (o *PostSpeedtestsStartParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post speedtests start params
func (*PostSpeedtestsStartParams) SetTimeout ¶
func (o *PostSpeedtestsStartParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post speedtests start params
func (*PostSpeedtestsStartParams) WithBody ¶
func (o *PostSpeedtestsStartParams) WithBody(body *models.PayloadSpeedTest) *PostSpeedtestsStartParams
WithBody adds the body to the post speedtests start params
func (*PostSpeedtestsStartParams) WithContext ¶
func (o *PostSpeedtestsStartParams) WithContext(ctx context.Context) *PostSpeedtestsStartParams
WithContext adds the context to the post speedtests start params
func (*PostSpeedtestsStartParams) WithDefaults ¶
func (o *PostSpeedtestsStartParams) WithDefaults() *PostSpeedtestsStartParams
WithDefaults hydrates default values in the post speedtests start params (not the query body).
All values with no default are reset to their zero value.
func (*PostSpeedtestsStartParams) WithHTTPClient ¶
func (o *PostSpeedtestsStartParams) WithHTTPClient(client *http.Client) *PostSpeedtestsStartParams
WithHTTPClient adds the HTTPClient to the post speedtests start params
func (*PostSpeedtestsStartParams) WithTimeout ¶
func (o *PostSpeedtestsStartParams) WithTimeout(timeout time.Duration) *PostSpeedtestsStartParams
WithTimeout adds the timeout to the post speedtests start params
func (*PostSpeedtestsStartParams) WriteToRequest ¶
func (o *PostSpeedtestsStartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostSpeedtestsStartReader ¶
type PostSpeedtestsStartReader struct {
// contains filtered or unexported fields
}
PostSpeedtestsStartReader is a Reader for the PostSpeedtestsStart structure.
func (*PostSpeedtestsStartReader) ReadResponse ¶
func (o *PostSpeedtestsStartReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostSpeedtestsStartUnauthorized ¶
type PostSpeedtestsStartUnauthorized struct {
}PostSpeedtestsStartUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostSpeedtestsStartUnauthorized ¶
func NewPostSpeedtestsStartUnauthorized() *PostSpeedtestsStartUnauthorized
NewPostSpeedtestsStartUnauthorized creates a PostSpeedtestsStartUnauthorized with default headers values
func (*PostSpeedtestsStartUnauthorized) Error ¶
func (o *PostSpeedtestsStartUnauthorized) Error() string
func (*PostSpeedtestsStartUnauthorized) GetPayload ¶
func (o *PostSpeedtestsStartUnauthorized) GetPayload() *models.Error