Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
- type Client
- func (a *Client) CreateUpload(params *CreateUploadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateUploadCreated, error)
- func (a *Client) CreateUploadContext(ctx context.Context, params *CreateUploadParams, ...) (*CreateUploadCreated, error)
- func (a *Client) GetUploadByID(params *GetUploadByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUploadByIDOK, error)
- func (a *Client) GetUploadByIDContext(ctx context.Context, params *GetUploadByIDParams, ...) (*GetUploadByIDOK, error)
- func (a *Client) SetTransport(transport runtime.ContextualTransport)
- type ClientOption
- type ClientService
- type CreateUploadCreated
- func (o *CreateUploadCreated) Code() int
- func (o *CreateUploadCreated) Error() string
- func (o *CreateUploadCreated) GetPayload() *models.Upload
- func (o *CreateUploadCreated) IsClientError() bool
- func (o *CreateUploadCreated) IsCode(code int) bool
- func (o *CreateUploadCreated) IsRedirect() bool
- func (o *CreateUploadCreated) IsServerError() bool
- func (o *CreateUploadCreated) IsSuccess() bool
- func (o *CreateUploadCreated) String() string
- type CreateUploadDefault
- func (o *CreateUploadDefault) Code() int
- func (o *CreateUploadDefault) Error() string
- func (o *CreateUploadDefault) GetPayload() *models.Fault
- func (o *CreateUploadDefault) IsClientError() bool
- func (o *CreateUploadDefault) IsCode(code int) bool
- func (o *CreateUploadDefault) IsRedirect() bool
- func (o *CreateUploadDefault) IsServerError() bool
- func (o *CreateUploadDefault) IsSuccess() bool
- func (o *CreateUploadDefault) String() string
- type CreateUploadParams
- func NewCreateUploadParams() *CreateUploadParams
- func NewCreateUploadParamsWithContext(ctx context.Context) *CreateUploadParamsdeprecated
- func NewCreateUploadParamsWithHTTPClient(client *http.Client) *CreateUploadParams
- func NewCreateUploadParamsWithTimeout(timeout time.Duration) *CreateUploadParams
- func (o *CreateUploadParams) SetCommute(commute *string)
- func (o *CreateUploadParams) SetContext(ctx context.Context)deprecated
- func (o *CreateUploadParams) SetDataType(dataType *string)
- func (o *CreateUploadParams) SetDefaults()
- func (o *CreateUploadParams) SetDescription(description *string)
- func (o *CreateUploadParams) SetExternalID(externalID *string)
- func (o *CreateUploadParams) SetFile(file runtime.NamedReadCloser)
- func (o *CreateUploadParams) SetHTTPClient(client *http.Client)
- func (o *CreateUploadParams) SetName(name *string)
- func (o *CreateUploadParams) SetTimeout(timeout time.Duration)
- func (o *CreateUploadParams) SetTrainer(trainer *string)
- func (o *CreateUploadParams) WithCommute(commute *string) *CreateUploadParams
- func (o *CreateUploadParams) WithContext(ctx context.Context) *CreateUploadParamsdeprecated
- func (o *CreateUploadParams) WithDataType(dataType *string) *CreateUploadParams
- func (o *CreateUploadParams) WithDefaults() *CreateUploadParams
- func (o *CreateUploadParams) WithDescription(description *string) *CreateUploadParams
- func (o *CreateUploadParams) WithExternalID(externalID *string) *CreateUploadParams
- func (o *CreateUploadParams) WithFile(file runtime.NamedReadCloser) *CreateUploadParams
- func (o *CreateUploadParams) WithHTTPClient(client *http.Client) *CreateUploadParams
- func (o *CreateUploadParams) WithName(name *string) *CreateUploadParams
- func (o *CreateUploadParams) WithTimeout(timeout time.Duration) *CreateUploadParams
- func (o *CreateUploadParams) WithTrainer(trainer *string) *CreateUploadParams
- func (o *CreateUploadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUploadReader
- type GetUploadByIDDefault
- func (o *GetUploadByIDDefault) Code() int
- func (o *GetUploadByIDDefault) Error() string
- func (o *GetUploadByIDDefault) GetPayload() *models.Fault
- func (o *GetUploadByIDDefault) IsClientError() bool
- func (o *GetUploadByIDDefault) IsCode(code int) bool
- func (o *GetUploadByIDDefault) IsRedirect() bool
- func (o *GetUploadByIDDefault) IsServerError() bool
- func (o *GetUploadByIDDefault) IsSuccess() bool
- func (o *GetUploadByIDDefault) String() string
- type GetUploadByIDOK
- func (o *GetUploadByIDOK) Code() int
- func (o *GetUploadByIDOK) Error() string
- func (o *GetUploadByIDOK) GetPayload() *models.Upload
- func (o *GetUploadByIDOK) IsClientError() bool
- func (o *GetUploadByIDOK) IsCode(code int) bool
- func (o *GetUploadByIDOK) IsRedirect() bool
- func (o *GetUploadByIDOK) IsServerError() bool
- func (o *GetUploadByIDOK) IsSuccess() bool
- func (o *GetUploadByIDOK) String() string
- type GetUploadByIDParams
- func NewGetUploadByIDParams() *GetUploadByIDParams
- func NewGetUploadByIDParamsWithContext(ctx context.Context) *GetUploadByIDParamsdeprecated
- func NewGetUploadByIDParamsWithHTTPClient(client *http.Client) *GetUploadByIDParams
- func NewGetUploadByIDParamsWithTimeout(timeout time.Duration) *GetUploadByIDParams
- func (o *GetUploadByIDParams) SetContext(ctx context.Context)deprecated
- func (o *GetUploadByIDParams) SetDefaults()
- func (o *GetUploadByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetUploadByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetUploadByIDParams) SetUploadID(uploadID int64)
- func (o *GetUploadByIDParams) WithContext(ctx context.Context) *GetUploadByIDParamsdeprecated
- func (o *GetUploadByIDParams) WithDefaults() *GetUploadByIDParams
- func (o *GetUploadByIDParams) WithHTTPClient(client *http.Client) *GetUploadByIDParams
- func (o *GetUploadByIDParams) WithTimeout(timeout time.Duration) *GetUploadByIDParams
- func (o *GetUploadByIDParams) WithUploadID(uploadID int64) *GetUploadByIDParams
- func (o *GetUploadByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUploadByIDReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeMultipartFormData ¶
func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
WithContentTypeMultipartFormData sets the Content-Type header to "multipart/form-data".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for uploads API.
func (*Client) CreateUpload ¶
func (a *Client) CreateUpload(params *CreateUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUploadCreated, error)
CreateUploaduploads activity.
Uploads a new data file to create an activity from. Requires activity:write scope..
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.CreateUploadContext instead.
func (*Client) CreateUploadContext ¶ added in v1.4.0
func (a *Client) CreateUploadContext(ctx context.Context, params *CreateUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUploadCreated, error)
CreateUploadContextuploads activity.
Uploads a new data file to create an activity from. Requires activity:write scope..
Do not use the deprecated [CreateUploadParams.Context] with this method: it would be ignored.
func (*Client) GetUploadByID ¶
func (a *Client) GetUploadByID(params *GetUploadByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUploadByIDOK, error)
GetUploadByIDgets upload.
Returns an upload for a given identifier. Requires activity:write scope..
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.GetUploadByIDContext instead.
func (*Client) GetUploadByIDContext ¶ added in v1.4.0
func (a *Client) GetUploadByIDContext(ctx context.Context, params *GetUploadByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUploadByIDOK, error)
GetUploadByIDContextgets upload.
Returns an upload for a given identifier. Requires activity:write scope..
Do not use the deprecated [GetUploadByIDParams.Context] with this method: it would be ignored.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ContextualTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface {
// CreateUpload upload activity.
CreateUpload(params *CreateUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUploadCreated, error)
// CreateUploadContext upload activity.
CreateUploadContext(ctx context.Context, params *CreateUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUploadCreated, error)
// GetUploadByID get upload.
GetUploadByID(params *GetUploadByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUploadByIDOK, error)
// GetUploadByIDContext get upload.
GetUploadByIDContext(ctx context.Context, params *GetUploadByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUploadByIDOK, error)
SetTransport(transport runtime.ContextualTransport)
}
ClientService is the interface for Client methods.
func New ¶
func New(transport runtime.ContextualTransport, formats strfmt.Registry) ClientService
New creates a new uploads API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new uploads API client with basic auth credentials.
It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new uploads API client with a bearer token for authentication.
It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type CreateUploadCreated ¶
CreateUploadCreated describes a response with status code 201, with default header values.
A representation of the created upload.
func NewCreateUploadCreated ¶
func NewCreateUploadCreated() *CreateUploadCreated
NewCreateUploadCreated creates a CreateUploadCreated with default headers values
func (*CreateUploadCreated) Code ¶
func (o *CreateUploadCreated) Code() int
Code gets the status code for the create upload created response
func (*CreateUploadCreated) Error ¶
func (o *CreateUploadCreated) Error() string
func (*CreateUploadCreated) GetPayload ¶
func (o *CreateUploadCreated) GetPayload() *models.Upload
func (*CreateUploadCreated) IsClientError ¶
func (o *CreateUploadCreated) IsClientError() bool
IsClientError returns true when this create upload created response has a 4xx status code
func (*CreateUploadCreated) IsCode ¶
func (o *CreateUploadCreated) IsCode(code int) bool
IsCode returns true when this create upload created response a status code equal to that given
func (*CreateUploadCreated) IsRedirect ¶
func (o *CreateUploadCreated) IsRedirect() bool
IsRedirect returns true when this create upload created response has a 3xx status code
func (*CreateUploadCreated) IsServerError ¶
func (o *CreateUploadCreated) IsServerError() bool
IsServerError returns true when this create upload created response has a 5xx status code
func (*CreateUploadCreated) IsSuccess ¶
func (o *CreateUploadCreated) IsSuccess() bool
IsSuccess returns true when this create upload created response has a 2xx status code
func (*CreateUploadCreated) String ¶
func (o *CreateUploadCreated) String() string
type CreateUploadDefault ¶
CreateUploadDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewCreateUploadDefault ¶
func NewCreateUploadDefault(code int) *CreateUploadDefault
NewCreateUploadDefault creates a CreateUploadDefault with default headers values
func (*CreateUploadDefault) Code ¶
func (o *CreateUploadDefault) Code() int
Code gets the status code for the create upload default response
func (*CreateUploadDefault) Error ¶
func (o *CreateUploadDefault) Error() string
func (*CreateUploadDefault) GetPayload ¶
func (o *CreateUploadDefault) GetPayload() *models.Fault
func (*CreateUploadDefault) IsClientError ¶
func (o *CreateUploadDefault) IsClientError() bool
IsClientError returns true when this create upload default response has a 4xx status code
func (*CreateUploadDefault) IsCode ¶
func (o *CreateUploadDefault) IsCode(code int) bool
IsCode returns true when this create upload default response a status code equal to that given
func (*CreateUploadDefault) IsRedirect ¶
func (o *CreateUploadDefault) IsRedirect() bool
IsRedirect returns true when this create upload default response has a 3xx status code
func (*CreateUploadDefault) IsServerError ¶
func (o *CreateUploadDefault) IsServerError() bool
IsServerError returns true when this create upload default response has a 5xx status code
func (*CreateUploadDefault) IsSuccess ¶
func (o *CreateUploadDefault) IsSuccess() bool
IsSuccess returns true when this create upload default response has a 2xx status code
func (*CreateUploadDefault) String ¶
func (o *CreateUploadDefault) String() string
type CreateUploadParams ¶
type CreateUploadParams struct {
/* Commute.
Whether the resulting activity should be tagged as a commute.
*/
Commute *string
/* DataType.
The format of the uploaded file.
*/
DataType *string
/* Description.
The desired description of the resulting activity.
*/
Description *string
/* ExternalID.
The desired external identifier of the resulting activity.
*/
ExternalID *string
/* File.
The uploaded file.
*/
File runtime.NamedReadCloser
/* Name.
The desired name of the resulting activity.
*/
Name *string
/* Trainer.
Whether the resulting activity should be marked as having been performed on a trainer.
*/
Trainer *string
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateUploadParams contains all the parameters to send to the API endpoint
for the create upload operation. Typically these are written to a http.Request.
func NewCreateUploadParams ¶
func NewCreateUploadParams() *CreateUploadParams
NewCreateUploadParams creates a new CreateUploadParams 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 NewCreateUploadParamsWithContext
deprecated
func NewCreateUploadParamsWithContext(ctx context.Context) *CreateUploadParams
NewCreateUploadParamsWithContext creates a new CreateUploadParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of CreateUploadParams.
func NewCreateUploadParamsWithHTTPClient ¶
func NewCreateUploadParamsWithHTTPClient(client *http.Client) *CreateUploadParams
NewCreateUploadParamsWithHTTPClient creates a new CreateUploadParams object with the ability to set a custom HTTPClient for a request.
func NewCreateUploadParamsWithTimeout ¶
func NewCreateUploadParamsWithTimeout(timeout time.Duration) *CreateUploadParams
NewCreateUploadParamsWithTimeout creates a new CreateUploadParams object with the ability to set a timeout on a request.
func (*CreateUploadParams) SetCommute ¶
func (o *CreateUploadParams) SetCommute(commute *string)
SetCommute adds the commute to the create upload params.
func (*CreateUploadParams) SetContext
deprecated
func (o *CreateUploadParams) SetContext(ctx context.Context)
SetContext adds the context to the create upload params.
Deprecated: use the operation call with context to pass the context instead of CreateUploadParams.
func (*CreateUploadParams) SetDataType ¶
func (o *CreateUploadParams) SetDataType(dataType *string)
SetDataType adds the dataType to the create upload params.
func (*CreateUploadParams) SetDefaults ¶
func (o *CreateUploadParams) SetDefaults()
SetDefaults hydrates default values in the create upload params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUploadParams) SetDescription ¶
func (o *CreateUploadParams) SetDescription(description *string)
SetDescription adds the description to the create upload params.
func (*CreateUploadParams) SetExternalID ¶
func (o *CreateUploadParams) SetExternalID(externalID *string)
SetExternalID adds the externalId to the create upload params.
func (*CreateUploadParams) SetFile ¶
func (o *CreateUploadParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the create upload params.
func (*CreateUploadParams) SetHTTPClient ¶
func (o *CreateUploadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create upload params.
func (*CreateUploadParams) SetName ¶
func (o *CreateUploadParams) SetName(name *string)
SetName adds the name to the create upload params.
func (*CreateUploadParams) SetTimeout ¶
func (o *CreateUploadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create upload params.
func (*CreateUploadParams) SetTrainer ¶
func (o *CreateUploadParams) SetTrainer(trainer *string)
SetTrainer adds the trainer to the create upload params.
func (*CreateUploadParams) WithCommute ¶
func (o *CreateUploadParams) WithCommute(commute *string) *CreateUploadParams
WithCommute adds the commute to the create upload params.
func (*CreateUploadParams) WithContext
deprecated
func (o *CreateUploadParams) WithContext(ctx context.Context) *CreateUploadParams
WithContext adds the context to the create upload params.
Deprecated: use the operation call with context to pass the context instead of CreateUploadParams.
func (*CreateUploadParams) WithDataType ¶
func (o *CreateUploadParams) WithDataType(dataType *string) *CreateUploadParams
WithDataType adds the dataType to the create upload params.
func (*CreateUploadParams) WithDefaults ¶
func (o *CreateUploadParams) WithDefaults() *CreateUploadParams
WithDefaults hydrates default values in the create upload params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUploadParams) WithDescription ¶
func (o *CreateUploadParams) WithDescription(description *string) *CreateUploadParams
WithDescription adds the description to the create upload params.
func (*CreateUploadParams) WithExternalID ¶
func (o *CreateUploadParams) WithExternalID(externalID *string) *CreateUploadParams
WithExternalID adds the externalID to the create upload params.
func (*CreateUploadParams) WithFile ¶
func (o *CreateUploadParams) WithFile(file runtime.NamedReadCloser) *CreateUploadParams
WithFile adds the file to the create upload params.
func (*CreateUploadParams) WithHTTPClient ¶
func (o *CreateUploadParams) WithHTTPClient(client *http.Client) *CreateUploadParams
WithHTTPClient adds the HTTPClient to the create upload params.
func (*CreateUploadParams) WithName ¶
func (o *CreateUploadParams) WithName(name *string) *CreateUploadParams
WithName adds the name to the create upload params.
func (*CreateUploadParams) WithTimeout ¶
func (o *CreateUploadParams) WithTimeout(timeout time.Duration) *CreateUploadParams
WithTimeout adds the timeout to the create upload params.
func (*CreateUploadParams) WithTrainer ¶
func (o *CreateUploadParams) WithTrainer(trainer *string) *CreateUploadParams
WithTrainer adds the trainer to the create upload params.
func (*CreateUploadParams) WriteToRequest ¶
func (o *CreateUploadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type CreateUploadReader ¶
type CreateUploadReader struct {
// contains filtered or unexported fields
}
CreateUploadReader is a Reader for the CreateUpload structure.
func (*CreateUploadReader) ReadResponse ¶
func (o *CreateUploadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetUploadByIDDefault ¶
type GetUploadByIDDefault struct {
Payload *models.Fault
// contains filtered or unexported fields
}
GetUploadByIDDefault describes a response with status code -1, with default header values.
Unexpected error.
func NewGetUploadByIDDefault ¶
func NewGetUploadByIDDefault(code int) *GetUploadByIDDefault
NewGetUploadByIDDefault creates a GetUploadByIDDefault with default headers values
func (*GetUploadByIDDefault) Code ¶
func (o *GetUploadByIDDefault) Code() int
Code gets the status code for the get upload by Id default response
func (*GetUploadByIDDefault) Error ¶
func (o *GetUploadByIDDefault) Error() string
func (*GetUploadByIDDefault) GetPayload ¶
func (o *GetUploadByIDDefault) GetPayload() *models.Fault
func (*GetUploadByIDDefault) IsClientError ¶
func (o *GetUploadByIDDefault) IsClientError() bool
IsClientError returns true when this get upload by Id default response has a 4xx status code
func (*GetUploadByIDDefault) IsCode ¶
func (o *GetUploadByIDDefault) IsCode(code int) bool
IsCode returns true when this get upload by Id default response a status code equal to that given
func (*GetUploadByIDDefault) IsRedirect ¶
func (o *GetUploadByIDDefault) IsRedirect() bool
IsRedirect returns true when this get upload by Id default response has a 3xx status code
func (*GetUploadByIDDefault) IsServerError ¶
func (o *GetUploadByIDDefault) IsServerError() bool
IsServerError returns true when this get upload by Id default response has a 5xx status code
func (*GetUploadByIDDefault) IsSuccess ¶
func (o *GetUploadByIDDefault) IsSuccess() bool
IsSuccess returns true when this get upload by Id default response has a 2xx status code
func (*GetUploadByIDDefault) String ¶
func (o *GetUploadByIDDefault) String() string
type GetUploadByIDOK ¶
GetUploadByIDOK describes a response with status code 200, with default header values.
Representation of the upload.
func NewGetUploadByIDOK ¶
func NewGetUploadByIDOK() *GetUploadByIDOK
NewGetUploadByIDOK creates a GetUploadByIDOK with default headers values
func (*GetUploadByIDOK) Code ¶
func (o *GetUploadByIDOK) Code() int
Code gets the status code for the get upload by Id o k response
func (*GetUploadByIDOK) Error ¶
func (o *GetUploadByIDOK) Error() string
func (*GetUploadByIDOK) GetPayload ¶
func (o *GetUploadByIDOK) GetPayload() *models.Upload
func (*GetUploadByIDOK) IsClientError ¶
func (o *GetUploadByIDOK) IsClientError() bool
IsClientError returns true when this get upload by Id o k response has a 4xx status code
func (*GetUploadByIDOK) IsCode ¶
func (o *GetUploadByIDOK) IsCode(code int) bool
IsCode returns true when this get upload by Id o k response a status code equal to that given
func (*GetUploadByIDOK) IsRedirect ¶
func (o *GetUploadByIDOK) IsRedirect() bool
IsRedirect returns true when this get upload by Id o k response has a 3xx status code
func (*GetUploadByIDOK) IsServerError ¶
func (o *GetUploadByIDOK) IsServerError() bool
IsServerError returns true when this get upload by Id o k response has a 5xx status code
func (*GetUploadByIDOK) IsSuccess ¶
func (o *GetUploadByIDOK) IsSuccess() bool
IsSuccess returns true when this get upload by Id o k response has a 2xx status code
func (*GetUploadByIDOK) String ¶
func (o *GetUploadByIDOK) String() string
type GetUploadByIDParams ¶
type GetUploadByIDParams struct {
/* UploadID.
The identifier of the upload.
Format: int64
*/
UploadID int64
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetUploadByIDParams contains all the parameters to send to the API endpoint
for the get upload by Id operation. Typically these are written to a http.Request.
func NewGetUploadByIDParams ¶
func NewGetUploadByIDParams() *GetUploadByIDParams
NewGetUploadByIDParams creates a new GetUploadByIDParams 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 NewGetUploadByIDParamsWithContext
deprecated
func NewGetUploadByIDParamsWithContext(ctx context.Context) *GetUploadByIDParams
NewGetUploadByIDParamsWithContext creates a new GetUploadByIDParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of GetUploadByIDParams.
func NewGetUploadByIDParamsWithHTTPClient ¶
func NewGetUploadByIDParamsWithHTTPClient(client *http.Client) *GetUploadByIDParams
NewGetUploadByIDParamsWithHTTPClient creates a new GetUploadByIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetUploadByIDParamsWithTimeout ¶
func NewGetUploadByIDParamsWithTimeout(timeout time.Duration) *GetUploadByIDParams
NewGetUploadByIDParamsWithTimeout creates a new GetUploadByIDParams object with the ability to set a timeout on a request.
func (*GetUploadByIDParams) SetContext
deprecated
func (o *GetUploadByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get upload by Id params.
Deprecated: use the operation call with context to pass the context instead of GetUploadByIDParams.
func (*GetUploadByIDParams) SetDefaults ¶
func (o *GetUploadByIDParams) SetDefaults()
SetDefaults hydrates default values in the get upload by Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetUploadByIDParams) SetHTTPClient ¶
func (o *GetUploadByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get upload by Id params.
func (*GetUploadByIDParams) SetTimeout ¶
func (o *GetUploadByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get upload by Id params.
func (*GetUploadByIDParams) SetUploadID ¶
func (o *GetUploadByIDParams) SetUploadID(uploadID int64)
SetUploadID adds the uploadId to the get upload by Id params.
func (*GetUploadByIDParams) WithContext
deprecated
func (o *GetUploadByIDParams) WithContext(ctx context.Context) *GetUploadByIDParams
WithContext adds the context to the get upload by Id params.
Deprecated: use the operation call with context to pass the context instead of GetUploadByIDParams.
func (*GetUploadByIDParams) WithDefaults ¶
func (o *GetUploadByIDParams) WithDefaults() *GetUploadByIDParams
WithDefaults hydrates default values in the get upload by Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetUploadByIDParams) WithHTTPClient ¶
func (o *GetUploadByIDParams) WithHTTPClient(client *http.Client) *GetUploadByIDParams
WithHTTPClient adds the HTTPClient to the get upload by Id params.
func (*GetUploadByIDParams) WithTimeout ¶
func (o *GetUploadByIDParams) WithTimeout(timeout time.Duration) *GetUploadByIDParams
WithTimeout adds the timeout to the get upload by Id params.
func (*GetUploadByIDParams) WithUploadID ¶
func (o *GetUploadByIDParams) WithUploadID(uploadID int64) *GetUploadByIDParams
WithUploadID adds the uploadID to the get upload by Id params.
func (*GetUploadByIDParams) WriteToRequest ¶
func (o *GetUploadByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type GetUploadByIDReader ¶
type GetUploadByIDReader struct {
// contains filtered or unexported fields
}
GetUploadByIDReader is a Reader for the GetUploadByID structure.
func (*GetUploadByIDReader) ReadResponse ¶
func (o *GetUploadByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.