Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteFileObject(params *DeleteFileObjectParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetFileObject(params *GetFileObjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetFileObjectOK, error)
- func (a *Client) ListFileObjects(params *ListFileObjectsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListFileObjectsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateFileObject(params *UpdateFileObjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateFileObjectOK, error)
- type ClientOption
- type ClientService
- type DeleteFileObjectDefault
- func (o *DeleteFileObjectDefault) Code() int
- func (o *DeleteFileObjectDefault) Error() string
- func (o *DeleteFileObjectDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *DeleteFileObjectDefault) IsClientError() bool
- func (o *DeleteFileObjectDefault) IsCode(code int) bool
- func (o *DeleteFileObjectDefault) IsRedirect() bool
- func (o *DeleteFileObjectDefault) IsServerError() bool
- func (o *DeleteFileObjectDefault) IsSuccess() bool
- func (o *DeleteFileObjectDefault) String() string
- type DeleteFileObjectParams
- func NewDeleteFileObjectParams() *DeleteFileObjectParams
- func NewDeleteFileObjectParamsWithContext(ctx context.Context) *DeleteFileObjectParams
- func NewDeleteFileObjectParamsWithHTTPClient(client *http.Client) *DeleteFileObjectParams
- func NewDeleteFileObjectParamsWithTimeout(timeout time.Duration) *DeleteFileObjectParams
- func (o *DeleteFileObjectParams) SetContext(ctx context.Context)
- func (o *DeleteFileObjectParams) SetDefaults()
- func (o *DeleteFileObjectParams) SetHTTPClient(client *http.Client)
- func (o *DeleteFileObjectParams) SetObjectID(objectID string)
- func (o *DeleteFileObjectParams) SetTimeout(timeout time.Duration)
- func (o *DeleteFileObjectParams) WithContext(ctx context.Context) *DeleteFileObjectParams
- func (o *DeleteFileObjectParams) WithDefaults() *DeleteFileObjectParams
- func (o *DeleteFileObjectParams) WithHTTPClient(client *http.Client) *DeleteFileObjectParams
- func (o *DeleteFileObjectParams) WithObjectID(objectID string) *DeleteFileObjectParams
- func (o *DeleteFileObjectParams) WithTimeout(timeout time.Duration) *DeleteFileObjectParams
- func (o *DeleteFileObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteFileObjectReader
- type GetFileObjectBadRequest
- func (o *GetFileObjectBadRequest) Code() int
- func (o *GetFileObjectBadRequest) Error() string
- func (o *GetFileObjectBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *GetFileObjectBadRequest) IsClientError() bool
- func (o *GetFileObjectBadRequest) IsCode(code int) bool
- func (o *GetFileObjectBadRequest) IsRedirect() bool
- func (o *GetFileObjectBadRequest) IsServerError() bool
- func (o *GetFileObjectBadRequest) IsSuccess() bool
- func (o *GetFileObjectBadRequest) String() string
- type GetFileObjectOK
- func (o *GetFileObjectOK) Code() int
- func (o *GetFileObjectOK) Error() string
- func (o *GetFileObjectOK) GetPayload() garm_params.FileObject
- func (o *GetFileObjectOK) IsClientError() bool
- func (o *GetFileObjectOK) IsCode(code int) bool
- func (o *GetFileObjectOK) IsRedirect() bool
- func (o *GetFileObjectOK) IsServerError() bool
- func (o *GetFileObjectOK) IsSuccess() bool
- func (o *GetFileObjectOK) String() string
- type GetFileObjectParams
- func (o *GetFileObjectParams) SetContext(ctx context.Context)
- func (o *GetFileObjectParams) SetDefaults()
- func (o *GetFileObjectParams) SetHTTPClient(client *http.Client)
- func (o *GetFileObjectParams) SetObjectID(objectID string)
- func (o *GetFileObjectParams) SetTimeout(timeout time.Duration)
- func (o *GetFileObjectParams) WithContext(ctx context.Context) *GetFileObjectParams
- func (o *GetFileObjectParams) WithDefaults() *GetFileObjectParams
- func (o *GetFileObjectParams) WithHTTPClient(client *http.Client) *GetFileObjectParams
- func (o *GetFileObjectParams) WithObjectID(objectID string) *GetFileObjectParams
- func (o *GetFileObjectParams) WithTimeout(timeout time.Duration) *GetFileObjectParams
- func (o *GetFileObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFileObjectReader
- type ListFileObjectsBadRequest
- func (o *ListFileObjectsBadRequest) Code() int
- func (o *ListFileObjectsBadRequest) Error() string
- func (o *ListFileObjectsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListFileObjectsBadRequest) IsClientError() bool
- func (o *ListFileObjectsBadRequest) IsCode(code int) bool
- func (o *ListFileObjectsBadRequest) IsRedirect() bool
- func (o *ListFileObjectsBadRequest) IsServerError() bool
- func (o *ListFileObjectsBadRequest) IsSuccess() bool
- func (o *ListFileObjectsBadRequest) String() string
- type ListFileObjectsOK
- func (o *ListFileObjectsOK) Code() int
- func (o *ListFileObjectsOK) Error() string
- func (o *ListFileObjectsOK) GetPayload() garm_params.FileObjectPaginatedResponse
- func (o *ListFileObjectsOK) IsClientError() bool
- func (o *ListFileObjectsOK) IsCode(code int) bool
- func (o *ListFileObjectsOK) IsRedirect() bool
- func (o *ListFileObjectsOK) IsServerError() bool
- func (o *ListFileObjectsOK) IsSuccess() bool
- func (o *ListFileObjectsOK) String() string
- type ListFileObjectsParams
- func NewListFileObjectsParams() *ListFileObjectsParams
- func NewListFileObjectsParamsWithContext(ctx context.Context) *ListFileObjectsParams
- func NewListFileObjectsParamsWithHTTPClient(client *http.Client) *ListFileObjectsParams
- func NewListFileObjectsParamsWithTimeout(timeout time.Duration) *ListFileObjectsParams
- func (o *ListFileObjectsParams) SetContext(ctx context.Context)
- func (o *ListFileObjectsParams) SetDefaults()
- func (o *ListFileObjectsParams) SetHTTPClient(client *http.Client)
- func (o *ListFileObjectsParams) SetPage(page *int64)
- func (o *ListFileObjectsParams) SetPageSize(pageSize *int64)
- func (o *ListFileObjectsParams) SetTags(tags *string)
- func (o *ListFileObjectsParams) SetTimeout(timeout time.Duration)
- func (o *ListFileObjectsParams) WithContext(ctx context.Context) *ListFileObjectsParams
- func (o *ListFileObjectsParams) WithDefaults() *ListFileObjectsParams
- func (o *ListFileObjectsParams) WithHTTPClient(client *http.Client) *ListFileObjectsParams
- func (o *ListFileObjectsParams) WithPage(page *int64) *ListFileObjectsParams
- func (o *ListFileObjectsParams) WithPageSize(pageSize *int64) *ListFileObjectsParams
- func (o *ListFileObjectsParams) WithTags(tags *string) *ListFileObjectsParams
- func (o *ListFileObjectsParams) WithTimeout(timeout time.Duration) *ListFileObjectsParams
- func (o *ListFileObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListFileObjectsReader
- type UpdateFileObjectBadRequest
- func (o *UpdateFileObjectBadRequest) Code() int
- func (o *UpdateFileObjectBadRequest) Error() string
- func (o *UpdateFileObjectBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *UpdateFileObjectBadRequest) IsClientError() bool
- func (o *UpdateFileObjectBadRequest) IsCode(code int) bool
- func (o *UpdateFileObjectBadRequest) IsRedirect() bool
- func (o *UpdateFileObjectBadRequest) IsServerError() bool
- func (o *UpdateFileObjectBadRequest) IsSuccess() bool
- func (o *UpdateFileObjectBadRequest) String() string
- type UpdateFileObjectOK
- func (o *UpdateFileObjectOK) Code() int
- func (o *UpdateFileObjectOK) Error() string
- func (o *UpdateFileObjectOK) GetPayload() garm_params.FileObject
- func (o *UpdateFileObjectOK) IsClientError() bool
- func (o *UpdateFileObjectOK) IsCode(code int) bool
- func (o *UpdateFileObjectOK) IsRedirect() bool
- func (o *UpdateFileObjectOK) IsServerError() bool
- func (o *UpdateFileObjectOK) IsSuccess() bool
- func (o *UpdateFileObjectOK) String() string
- type UpdateFileObjectParams
- func NewUpdateFileObjectParams() *UpdateFileObjectParams
- func NewUpdateFileObjectParamsWithContext(ctx context.Context) *UpdateFileObjectParams
- func NewUpdateFileObjectParamsWithHTTPClient(client *http.Client) *UpdateFileObjectParams
- func NewUpdateFileObjectParamsWithTimeout(timeout time.Duration) *UpdateFileObjectParams
- func (o *UpdateFileObjectParams) SetBody(body garm_params.UpdateFileObjectParams)
- func (o *UpdateFileObjectParams) SetContext(ctx context.Context)
- func (o *UpdateFileObjectParams) SetDefaults()
- func (o *UpdateFileObjectParams) SetHTTPClient(client *http.Client)
- func (o *UpdateFileObjectParams) SetObjectID(objectID string)
- func (o *UpdateFileObjectParams) SetTimeout(timeout time.Duration)
- func (o *UpdateFileObjectParams) WithBody(body garm_params.UpdateFileObjectParams) *UpdateFileObjectParams
- func (o *UpdateFileObjectParams) WithContext(ctx context.Context) *UpdateFileObjectParams
- func (o *UpdateFileObjectParams) WithDefaults() *UpdateFileObjectParams
- func (o *UpdateFileObjectParams) WithHTTPClient(client *http.Client) *UpdateFileObjectParams
- func (o *UpdateFileObjectParams) WithObjectID(objectID string) *UpdateFileObjectParams
- func (o *UpdateFileObjectParams) WithTimeout(timeout time.Duration) *UpdateFileObjectParams
- func (o *UpdateFileObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateFileObjectReader
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 objects API
func (*Client) DeleteFileObject ¶
func (a *Client) DeleteFileObject(params *DeleteFileObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeleteFileObject deletes a file object
func (*Client) GetFileObject ¶
func (a *Client) GetFileObject(params *GetFileObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFileObjectOK, error)
GetFileObject gets a file object
func (*Client) ListFileObjects ¶
func (a *Client) ListFileObjects(params *ListFileObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFileObjectsOK, error)
ListFileObjects lists file objects
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateFileObject ¶
func (a *Client) UpdateFileObject(params *UpdateFileObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateFileObjectOK, error)
UpdateFileObject updates a file object
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
DeleteFileObject(params *DeleteFileObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
GetFileObject(params *GetFileObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFileObjectOK, error)
ListFileObjects(params *ListFileObjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFileObjectsOK, error)
UpdateFileObject(params *UpdateFileObjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateFileObjectOK, 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 objects API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new objects 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 objects 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 DeleteFileObjectDefault ¶
type DeleteFileObjectDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
DeleteFileObjectDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewDeleteFileObjectDefault ¶
func NewDeleteFileObjectDefault(code int) *DeleteFileObjectDefault
NewDeleteFileObjectDefault creates a DeleteFileObjectDefault with default headers values
func (*DeleteFileObjectDefault) Code ¶
func (o *DeleteFileObjectDefault) Code() int
Code gets the status code for the delete file object default response
func (*DeleteFileObjectDefault) Error ¶
func (o *DeleteFileObjectDefault) Error() string
func (*DeleteFileObjectDefault) GetPayload ¶
func (o *DeleteFileObjectDefault) GetPayload() apiserver_params.APIErrorResponse
func (*DeleteFileObjectDefault) IsClientError ¶
func (o *DeleteFileObjectDefault) IsClientError() bool
IsClientError returns true when this delete file object default response has a 4xx status code
func (*DeleteFileObjectDefault) IsCode ¶
func (o *DeleteFileObjectDefault) IsCode(code int) bool
IsCode returns true when this delete file object default response a status code equal to that given
func (*DeleteFileObjectDefault) IsRedirect ¶
func (o *DeleteFileObjectDefault) IsRedirect() bool
IsRedirect returns true when this delete file object default response has a 3xx status code
func (*DeleteFileObjectDefault) IsServerError ¶
func (o *DeleteFileObjectDefault) IsServerError() bool
IsServerError returns true when this delete file object default response has a 5xx status code
func (*DeleteFileObjectDefault) IsSuccess ¶
func (o *DeleteFileObjectDefault) IsSuccess() bool
IsSuccess returns true when this delete file object default response has a 2xx status code
func (*DeleteFileObjectDefault) String ¶
func (o *DeleteFileObjectDefault) String() string
type DeleteFileObjectParams ¶
type DeleteFileObjectParams struct {
/* ObjectID.
The ID of the file object.
*/
ObjectID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteFileObjectParams contains all the parameters to send to the API endpoint
for the delete file object operation. Typically these are written to a http.Request.
func NewDeleteFileObjectParams ¶
func NewDeleteFileObjectParams() *DeleteFileObjectParams
NewDeleteFileObjectParams creates a new DeleteFileObjectParams 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 NewDeleteFileObjectParamsWithContext ¶
func NewDeleteFileObjectParamsWithContext(ctx context.Context) *DeleteFileObjectParams
NewDeleteFileObjectParamsWithContext creates a new DeleteFileObjectParams object with the ability to set a context for a request.
func NewDeleteFileObjectParamsWithHTTPClient ¶
func NewDeleteFileObjectParamsWithHTTPClient(client *http.Client) *DeleteFileObjectParams
NewDeleteFileObjectParamsWithHTTPClient creates a new DeleteFileObjectParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteFileObjectParamsWithTimeout ¶
func NewDeleteFileObjectParamsWithTimeout(timeout time.Duration) *DeleteFileObjectParams
NewDeleteFileObjectParamsWithTimeout creates a new DeleteFileObjectParams object with the ability to set a timeout on a request.
func (*DeleteFileObjectParams) SetContext ¶
func (o *DeleteFileObjectParams) SetContext(ctx context.Context)
SetContext adds the context to the delete file object params
func (*DeleteFileObjectParams) SetDefaults ¶
func (o *DeleteFileObjectParams) SetDefaults()
SetDefaults hydrates default values in the delete file object params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteFileObjectParams) SetHTTPClient ¶
func (o *DeleteFileObjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete file object params
func (*DeleteFileObjectParams) SetObjectID ¶
func (o *DeleteFileObjectParams) SetObjectID(objectID string)
SetObjectID adds the objectId to the delete file object params
func (*DeleteFileObjectParams) SetTimeout ¶
func (o *DeleteFileObjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete file object params
func (*DeleteFileObjectParams) WithContext ¶
func (o *DeleteFileObjectParams) WithContext(ctx context.Context) *DeleteFileObjectParams
WithContext adds the context to the delete file object params
func (*DeleteFileObjectParams) WithDefaults ¶
func (o *DeleteFileObjectParams) WithDefaults() *DeleteFileObjectParams
WithDefaults hydrates default values in the delete file object params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteFileObjectParams) WithHTTPClient ¶
func (o *DeleteFileObjectParams) WithHTTPClient(client *http.Client) *DeleteFileObjectParams
WithHTTPClient adds the HTTPClient to the delete file object params
func (*DeleteFileObjectParams) WithObjectID ¶
func (o *DeleteFileObjectParams) WithObjectID(objectID string) *DeleteFileObjectParams
WithObjectID adds the objectID to the delete file object params
func (*DeleteFileObjectParams) WithTimeout ¶
func (o *DeleteFileObjectParams) WithTimeout(timeout time.Duration) *DeleteFileObjectParams
WithTimeout adds the timeout to the delete file object params
func (*DeleteFileObjectParams) WriteToRequest ¶
func (o *DeleteFileObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteFileObjectReader ¶
type DeleteFileObjectReader struct {
// contains filtered or unexported fields
}
DeleteFileObjectReader is a Reader for the DeleteFileObject structure.
func (*DeleteFileObjectReader) ReadResponse ¶
func (o *DeleteFileObjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetFileObjectBadRequest ¶
type GetFileObjectBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
GetFileObjectBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewGetFileObjectBadRequest ¶
func NewGetFileObjectBadRequest() *GetFileObjectBadRequest
NewGetFileObjectBadRequest creates a GetFileObjectBadRequest with default headers values
func (*GetFileObjectBadRequest) Code ¶
func (o *GetFileObjectBadRequest) Code() int
Code gets the status code for the get file object bad request response
func (*GetFileObjectBadRequest) Error ¶
func (o *GetFileObjectBadRequest) Error() string
func (*GetFileObjectBadRequest) GetPayload ¶
func (o *GetFileObjectBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*GetFileObjectBadRequest) IsClientError ¶
func (o *GetFileObjectBadRequest) IsClientError() bool
IsClientError returns true when this get file object bad request response has a 4xx status code
func (*GetFileObjectBadRequest) IsCode ¶
func (o *GetFileObjectBadRequest) IsCode(code int) bool
IsCode returns true when this get file object bad request response a status code equal to that given
func (*GetFileObjectBadRequest) IsRedirect ¶
func (o *GetFileObjectBadRequest) IsRedirect() bool
IsRedirect returns true when this get file object bad request response has a 3xx status code
func (*GetFileObjectBadRequest) IsServerError ¶
func (o *GetFileObjectBadRequest) IsServerError() bool
IsServerError returns true when this get file object bad request response has a 5xx status code
func (*GetFileObjectBadRequest) IsSuccess ¶
func (o *GetFileObjectBadRequest) IsSuccess() bool
IsSuccess returns true when this get file object bad request response has a 2xx status code
func (*GetFileObjectBadRequest) String ¶
func (o *GetFileObjectBadRequest) String() string
type GetFileObjectOK ¶
type GetFileObjectOK struct {
Payload garm_params.FileObject
}
GetFileObjectOK describes a response with status code 200, with default header values.
FileObject
func NewGetFileObjectOK ¶
func NewGetFileObjectOK() *GetFileObjectOK
NewGetFileObjectOK creates a GetFileObjectOK with default headers values
func (*GetFileObjectOK) Code ¶
func (o *GetFileObjectOK) Code() int
Code gets the status code for the get file object o k response
func (*GetFileObjectOK) Error ¶
func (o *GetFileObjectOK) Error() string
func (*GetFileObjectOK) GetPayload ¶
func (o *GetFileObjectOK) GetPayload() garm_params.FileObject
func (*GetFileObjectOK) IsClientError ¶
func (o *GetFileObjectOK) IsClientError() bool
IsClientError returns true when this get file object o k response has a 4xx status code
func (*GetFileObjectOK) IsCode ¶
func (o *GetFileObjectOK) IsCode(code int) bool
IsCode returns true when this get file object o k response a status code equal to that given
func (*GetFileObjectOK) IsRedirect ¶
func (o *GetFileObjectOK) IsRedirect() bool
IsRedirect returns true when this get file object o k response has a 3xx status code
func (*GetFileObjectOK) IsServerError ¶
func (o *GetFileObjectOK) IsServerError() bool
IsServerError returns true when this get file object o k response has a 5xx status code
func (*GetFileObjectOK) IsSuccess ¶
func (o *GetFileObjectOK) IsSuccess() bool
IsSuccess returns true when this get file object o k response has a 2xx status code
func (*GetFileObjectOK) String ¶
func (o *GetFileObjectOK) String() string
type GetFileObjectParams ¶
type GetFileObjectParams struct {
/* ObjectID.
The ID of the file object.
*/
ObjectID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetFileObjectParams contains all the parameters to send to the API endpoint
for the get file object operation. Typically these are written to a http.Request.
func NewGetFileObjectParams ¶
func NewGetFileObjectParams() *GetFileObjectParams
NewGetFileObjectParams creates a new GetFileObjectParams 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 NewGetFileObjectParamsWithContext ¶
func NewGetFileObjectParamsWithContext(ctx context.Context) *GetFileObjectParams
NewGetFileObjectParamsWithContext creates a new GetFileObjectParams object with the ability to set a context for a request.
func NewGetFileObjectParamsWithHTTPClient ¶
func NewGetFileObjectParamsWithHTTPClient(client *http.Client) *GetFileObjectParams
NewGetFileObjectParamsWithHTTPClient creates a new GetFileObjectParams object with the ability to set a custom HTTPClient for a request.
func NewGetFileObjectParamsWithTimeout ¶
func NewGetFileObjectParamsWithTimeout(timeout time.Duration) *GetFileObjectParams
NewGetFileObjectParamsWithTimeout creates a new GetFileObjectParams object with the ability to set a timeout on a request.
func (*GetFileObjectParams) SetContext ¶
func (o *GetFileObjectParams) SetContext(ctx context.Context)
SetContext adds the context to the get file object params
func (*GetFileObjectParams) SetDefaults ¶
func (o *GetFileObjectParams) SetDefaults()
SetDefaults hydrates default values in the get file object params (not the query body).
All values with no default are reset to their zero value.
func (*GetFileObjectParams) SetHTTPClient ¶
func (o *GetFileObjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get file object params
func (*GetFileObjectParams) SetObjectID ¶
func (o *GetFileObjectParams) SetObjectID(objectID string)
SetObjectID adds the objectId to the get file object params
func (*GetFileObjectParams) SetTimeout ¶
func (o *GetFileObjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get file object params
func (*GetFileObjectParams) WithContext ¶
func (o *GetFileObjectParams) WithContext(ctx context.Context) *GetFileObjectParams
WithContext adds the context to the get file object params
func (*GetFileObjectParams) WithDefaults ¶
func (o *GetFileObjectParams) WithDefaults() *GetFileObjectParams
WithDefaults hydrates default values in the get file object params (not the query body).
All values with no default are reset to their zero value.
func (*GetFileObjectParams) WithHTTPClient ¶
func (o *GetFileObjectParams) WithHTTPClient(client *http.Client) *GetFileObjectParams
WithHTTPClient adds the HTTPClient to the get file object params
func (*GetFileObjectParams) WithObjectID ¶
func (o *GetFileObjectParams) WithObjectID(objectID string) *GetFileObjectParams
WithObjectID adds the objectID to the get file object params
func (*GetFileObjectParams) WithTimeout ¶
func (o *GetFileObjectParams) WithTimeout(timeout time.Duration) *GetFileObjectParams
WithTimeout adds the timeout to the get file object params
func (*GetFileObjectParams) WriteToRequest ¶
func (o *GetFileObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFileObjectReader ¶
type GetFileObjectReader struct {
// contains filtered or unexported fields
}
GetFileObjectReader is a Reader for the GetFileObject structure.
func (*GetFileObjectReader) ReadResponse ¶
func (o *GetFileObjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ListFileObjectsBadRequest ¶
type ListFileObjectsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
ListFileObjectsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewListFileObjectsBadRequest ¶
func NewListFileObjectsBadRequest() *ListFileObjectsBadRequest
NewListFileObjectsBadRequest creates a ListFileObjectsBadRequest with default headers values
func (*ListFileObjectsBadRequest) Code ¶
func (o *ListFileObjectsBadRequest) Code() int
Code gets the status code for the list file objects bad request response
func (*ListFileObjectsBadRequest) Error ¶
func (o *ListFileObjectsBadRequest) Error() string
func (*ListFileObjectsBadRequest) GetPayload ¶
func (o *ListFileObjectsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*ListFileObjectsBadRequest) IsClientError ¶
func (o *ListFileObjectsBadRequest) IsClientError() bool
IsClientError returns true when this list file objects bad request response has a 4xx status code
func (*ListFileObjectsBadRequest) IsCode ¶
func (o *ListFileObjectsBadRequest) IsCode(code int) bool
IsCode returns true when this list file objects bad request response a status code equal to that given
func (*ListFileObjectsBadRequest) IsRedirect ¶
func (o *ListFileObjectsBadRequest) IsRedirect() bool
IsRedirect returns true when this list file objects bad request response has a 3xx status code
func (*ListFileObjectsBadRequest) IsServerError ¶
func (o *ListFileObjectsBadRequest) IsServerError() bool
IsServerError returns true when this list file objects bad request response has a 5xx status code
func (*ListFileObjectsBadRequest) IsSuccess ¶
func (o *ListFileObjectsBadRequest) IsSuccess() bool
IsSuccess returns true when this list file objects bad request response has a 2xx status code
func (*ListFileObjectsBadRequest) String ¶
func (o *ListFileObjectsBadRequest) String() string
type ListFileObjectsOK ¶
type ListFileObjectsOK struct {
Payload garm_params.FileObjectPaginatedResponse
}
ListFileObjectsOK describes a response with status code 200, with default header values.
FileObjectPaginatedResponse
func NewListFileObjectsOK ¶
func NewListFileObjectsOK() *ListFileObjectsOK
NewListFileObjectsOK creates a ListFileObjectsOK with default headers values
func (*ListFileObjectsOK) Code ¶
func (o *ListFileObjectsOK) Code() int
Code gets the status code for the list file objects o k response
func (*ListFileObjectsOK) Error ¶
func (o *ListFileObjectsOK) Error() string
func (*ListFileObjectsOK) GetPayload ¶
func (o *ListFileObjectsOK) GetPayload() garm_params.FileObjectPaginatedResponse
func (*ListFileObjectsOK) IsClientError ¶
func (o *ListFileObjectsOK) IsClientError() bool
IsClientError returns true when this list file objects o k response has a 4xx status code
func (*ListFileObjectsOK) IsCode ¶
func (o *ListFileObjectsOK) IsCode(code int) bool
IsCode returns true when this list file objects o k response a status code equal to that given
func (*ListFileObjectsOK) IsRedirect ¶
func (o *ListFileObjectsOK) IsRedirect() bool
IsRedirect returns true when this list file objects o k response has a 3xx status code
func (*ListFileObjectsOK) IsServerError ¶
func (o *ListFileObjectsOK) IsServerError() bool
IsServerError returns true when this list file objects o k response has a 5xx status code
func (*ListFileObjectsOK) IsSuccess ¶
func (o *ListFileObjectsOK) IsSuccess() bool
IsSuccess returns true when this list file objects o k response has a 2xx status code
func (*ListFileObjectsOK) String ¶
func (o *ListFileObjectsOK) String() string
type ListFileObjectsParams ¶
type ListFileObjectsParams struct {
/* Page.
The page at which to list.
*/
Page *int64
/* PageSize.
Number of items per page.
*/
PageSize *int64
/* Tags.
List of tags to filter by.
*/
Tags *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListFileObjectsParams contains all the parameters to send to the API endpoint
for the list file objects operation. Typically these are written to a http.Request.
func NewListFileObjectsParams ¶
func NewListFileObjectsParams() *ListFileObjectsParams
NewListFileObjectsParams creates a new ListFileObjectsParams 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 NewListFileObjectsParamsWithContext ¶
func NewListFileObjectsParamsWithContext(ctx context.Context) *ListFileObjectsParams
NewListFileObjectsParamsWithContext creates a new ListFileObjectsParams object with the ability to set a context for a request.
func NewListFileObjectsParamsWithHTTPClient ¶
func NewListFileObjectsParamsWithHTTPClient(client *http.Client) *ListFileObjectsParams
NewListFileObjectsParamsWithHTTPClient creates a new ListFileObjectsParams object with the ability to set a custom HTTPClient for a request.
func NewListFileObjectsParamsWithTimeout ¶
func NewListFileObjectsParamsWithTimeout(timeout time.Duration) *ListFileObjectsParams
NewListFileObjectsParamsWithTimeout creates a new ListFileObjectsParams object with the ability to set a timeout on a request.
func (*ListFileObjectsParams) SetContext ¶
func (o *ListFileObjectsParams) SetContext(ctx context.Context)
SetContext adds the context to the list file objects params
func (*ListFileObjectsParams) SetDefaults ¶
func (o *ListFileObjectsParams) SetDefaults()
SetDefaults hydrates default values in the list file objects params (not the query body).
All values with no default are reset to their zero value.
func (*ListFileObjectsParams) SetHTTPClient ¶
func (o *ListFileObjectsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list file objects params
func (*ListFileObjectsParams) SetPage ¶
func (o *ListFileObjectsParams) SetPage(page *int64)
SetPage adds the page to the list file objects params
func (*ListFileObjectsParams) SetPageSize ¶
func (o *ListFileObjectsParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the list file objects params
func (*ListFileObjectsParams) SetTags ¶
func (o *ListFileObjectsParams) SetTags(tags *string)
SetTags adds the tags to the list file objects params
func (*ListFileObjectsParams) SetTimeout ¶
func (o *ListFileObjectsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list file objects params
func (*ListFileObjectsParams) WithContext ¶
func (o *ListFileObjectsParams) WithContext(ctx context.Context) *ListFileObjectsParams
WithContext adds the context to the list file objects params
func (*ListFileObjectsParams) WithDefaults ¶
func (o *ListFileObjectsParams) WithDefaults() *ListFileObjectsParams
WithDefaults hydrates default values in the list file objects params (not the query body).
All values with no default are reset to their zero value.
func (*ListFileObjectsParams) WithHTTPClient ¶
func (o *ListFileObjectsParams) WithHTTPClient(client *http.Client) *ListFileObjectsParams
WithHTTPClient adds the HTTPClient to the list file objects params
func (*ListFileObjectsParams) WithPage ¶
func (o *ListFileObjectsParams) WithPage(page *int64) *ListFileObjectsParams
WithPage adds the page to the list file objects params
func (*ListFileObjectsParams) WithPageSize ¶
func (o *ListFileObjectsParams) WithPageSize(pageSize *int64) *ListFileObjectsParams
WithPageSize adds the pageSize to the list file objects params
func (*ListFileObjectsParams) WithTags ¶
func (o *ListFileObjectsParams) WithTags(tags *string) *ListFileObjectsParams
WithTags adds the tags to the list file objects params
func (*ListFileObjectsParams) WithTimeout ¶
func (o *ListFileObjectsParams) WithTimeout(timeout time.Duration) *ListFileObjectsParams
WithTimeout adds the timeout to the list file objects params
func (*ListFileObjectsParams) WriteToRequest ¶
func (o *ListFileObjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListFileObjectsReader ¶
type ListFileObjectsReader struct {
// contains filtered or unexported fields
}
ListFileObjectsReader is a Reader for the ListFileObjects structure.
func (*ListFileObjectsReader) ReadResponse ¶
func (o *ListFileObjectsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type UpdateFileObjectBadRequest ¶
type UpdateFileObjectBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
UpdateFileObjectBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewUpdateFileObjectBadRequest ¶
func NewUpdateFileObjectBadRequest() *UpdateFileObjectBadRequest
NewUpdateFileObjectBadRequest creates a UpdateFileObjectBadRequest with default headers values
func (*UpdateFileObjectBadRequest) Code ¶
func (o *UpdateFileObjectBadRequest) Code() int
Code gets the status code for the update file object bad request response
func (*UpdateFileObjectBadRequest) Error ¶
func (o *UpdateFileObjectBadRequest) Error() string
func (*UpdateFileObjectBadRequest) GetPayload ¶
func (o *UpdateFileObjectBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*UpdateFileObjectBadRequest) IsClientError ¶
func (o *UpdateFileObjectBadRequest) IsClientError() bool
IsClientError returns true when this update file object bad request response has a 4xx status code
func (*UpdateFileObjectBadRequest) IsCode ¶
func (o *UpdateFileObjectBadRequest) IsCode(code int) bool
IsCode returns true when this update file object bad request response a status code equal to that given
func (*UpdateFileObjectBadRequest) IsRedirect ¶
func (o *UpdateFileObjectBadRequest) IsRedirect() bool
IsRedirect returns true when this update file object bad request response has a 3xx status code
func (*UpdateFileObjectBadRequest) IsServerError ¶
func (o *UpdateFileObjectBadRequest) IsServerError() bool
IsServerError returns true when this update file object bad request response has a 5xx status code
func (*UpdateFileObjectBadRequest) IsSuccess ¶
func (o *UpdateFileObjectBadRequest) IsSuccess() bool
IsSuccess returns true when this update file object bad request response has a 2xx status code
func (*UpdateFileObjectBadRequest) String ¶
func (o *UpdateFileObjectBadRequest) String() string
type UpdateFileObjectOK ¶
type UpdateFileObjectOK struct {
Payload garm_params.FileObject
}
UpdateFileObjectOK describes a response with status code 200, with default header values.
FileObject
func NewUpdateFileObjectOK ¶
func NewUpdateFileObjectOK() *UpdateFileObjectOK
NewUpdateFileObjectOK creates a UpdateFileObjectOK with default headers values
func (*UpdateFileObjectOK) Code ¶
func (o *UpdateFileObjectOK) Code() int
Code gets the status code for the update file object o k response
func (*UpdateFileObjectOK) Error ¶
func (o *UpdateFileObjectOK) Error() string
func (*UpdateFileObjectOK) GetPayload ¶
func (o *UpdateFileObjectOK) GetPayload() garm_params.FileObject
func (*UpdateFileObjectOK) IsClientError ¶
func (o *UpdateFileObjectOK) IsClientError() bool
IsClientError returns true when this update file object o k response has a 4xx status code
func (*UpdateFileObjectOK) IsCode ¶
func (o *UpdateFileObjectOK) IsCode(code int) bool
IsCode returns true when this update file object o k response a status code equal to that given
func (*UpdateFileObjectOK) IsRedirect ¶
func (o *UpdateFileObjectOK) IsRedirect() bool
IsRedirect returns true when this update file object o k response has a 3xx status code
func (*UpdateFileObjectOK) IsServerError ¶
func (o *UpdateFileObjectOK) IsServerError() bool
IsServerError returns true when this update file object o k response has a 5xx status code
func (*UpdateFileObjectOK) IsSuccess ¶
func (o *UpdateFileObjectOK) IsSuccess() bool
IsSuccess returns true when this update file object o k response has a 2xx status code
func (*UpdateFileObjectOK) String ¶
func (o *UpdateFileObjectOK) String() string
type UpdateFileObjectParams ¶
type UpdateFileObjectParams struct {
/* Body.
Parameters used when updating a file object.
*/
Body garm_params.UpdateFileObjectParams
/* ObjectID.
The ID of the file object.
*/
ObjectID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateFileObjectParams contains all the parameters to send to the API endpoint
for the update file object operation. Typically these are written to a http.Request.
func NewUpdateFileObjectParams ¶
func NewUpdateFileObjectParams() *UpdateFileObjectParams
NewUpdateFileObjectParams creates a new UpdateFileObjectParams 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 NewUpdateFileObjectParamsWithContext ¶
func NewUpdateFileObjectParamsWithContext(ctx context.Context) *UpdateFileObjectParams
NewUpdateFileObjectParamsWithContext creates a new UpdateFileObjectParams object with the ability to set a context for a request.
func NewUpdateFileObjectParamsWithHTTPClient ¶
func NewUpdateFileObjectParamsWithHTTPClient(client *http.Client) *UpdateFileObjectParams
NewUpdateFileObjectParamsWithHTTPClient creates a new UpdateFileObjectParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateFileObjectParamsWithTimeout ¶
func NewUpdateFileObjectParamsWithTimeout(timeout time.Duration) *UpdateFileObjectParams
NewUpdateFileObjectParamsWithTimeout creates a new UpdateFileObjectParams object with the ability to set a timeout on a request.
func (*UpdateFileObjectParams) SetBody ¶
func (o *UpdateFileObjectParams) SetBody(body garm_params.UpdateFileObjectParams)
SetBody adds the body to the update file object params
func (*UpdateFileObjectParams) SetContext ¶
func (o *UpdateFileObjectParams) SetContext(ctx context.Context)
SetContext adds the context to the update file object params
func (*UpdateFileObjectParams) SetDefaults ¶
func (o *UpdateFileObjectParams) SetDefaults()
SetDefaults hydrates default values in the update file object params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateFileObjectParams) SetHTTPClient ¶
func (o *UpdateFileObjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update file object params
func (*UpdateFileObjectParams) SetObjectID ¶
func (o *UpdateFileObjectParams) SetObjectID(objectID string)
SetObjectID adds the objectId to the update file object params
func (*UpdateFileObjectParams) SetTimeout ¶
func (o *UpdateFileObjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update file object params
func (*UpdateFileObjectParams) WithBody ¶
func (o *UpdateFileObjectParams) WithBody(body garm_params.UpdateFileObjectParams) *UpdateFileObjectParams
WithBody adds the body to the update file object params
func (*UpdateFileObjectParams) WithContext ¶
func (o *UpdateFileObjectParams) WithContext(ctx context.Context) *UpdateFileObjectParams
WithContext adds the context to the update file object params
func (*UpdateFileObjectParams) WithDefaults ¶
func (o *UpdateFileObjectParams) WithDefaults() *UpdateFileObjectParams
WithDefaults hydrates default values in the update file object params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateFileObjectParams) WithHTTPClient ¶
func (o *UpdateFileObjectParams) WithHTTPClient(client *http.Client) *UpdateFileObjectParams
WithHTTPClient adds the HTTPClient to the update file object params
func (*UpdateFileObjectParams) WithObjectID ¶
func (o *UpdateFileObjectParams) WithObjectID(objectID string) *UpdateFileObjectParams
WithObjectID adds the objectID to the update file object params
func (*UpdateFileObjectParams) WithTimeout ¶
func (o *UpdateFileObjectParams) WithTimeout(timeout time.Duration) *UpdateFileObjectParams
WithTimeout adds the timeout to the update file object params
func (*UpdateFileObjectParams) WriteToRequest ¶
func (o *UpdateFileObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateFileObjectReader ¶
type UpdateFileObjectReader struct {
// contains filtered or unexported fields
}
UpdateFileObjectReader is a Reader for the UpdateFileObject structure.
func (*UpdateFileObjectReader) ReadResponse ¶
func (o *UpdateFileObjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.