sample_uploads

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for sample uploads API

func (*Client) DeleteSampleV3

func (a *Client) DeleteSampleV3(params *DeleteSampleV3Params, opts ...ClientOption) (*DeleteSampleV3OK, error)

DeleteSampleV3 removes a sample including file meta and submissions from the collection

func (*Client) GetSampleV3

func (a *Client) GetSampleV3(params *GetSampleV3Params, opts ...ClientOption) (*GetSampleV3OK, error)

GetSampleV3 retrieves the file associated with the given ID s h a256

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UploadSampleV3

func (a *Client) UploadSampleV3(params *UploadSampleV3Params, opts ...ClientOption) (*UploadSampleV3OK, error)

UploadSampleV3 uploads a file for further cloud analysis after uploading call the specific analysis API endpoint

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteSampleV3(params *DeleteSampleV3Params, opts ...ClientOption) (*DeleteSampleV3OK, error)

	GetSampleV3(params *GetSampleV3Params, opts ...ClientOption) (*GetSampleV3OK, error)

	UploadSampleV3(params *UploadSampleV3Params, opts ...ClientOption) (*UploadSampleV3OK, 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 sample uploads API client.

type DeleteSampleV3BadRequest

type DeleteSampleV3BadRequest struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
DeleteSampleV3BadRequest describes a response with status code 400, with default header values.

Bad Request

func NewDeleteSampleV3BadRequest

func NewDeleteSampleV3BadRequest() *DeleteSampleV3BadRequest

NewDeleteSampleV3BadRequest creates a DeleteSampleV3BadRequest with default headers values

func (*DeleteSampleV3BadRequest) Error

func (o *DeleteSampleV3BadRequest) Error() string

func (*DeleteSampleV3BadRequest) GetPayload

type DeleteSampleV3Default

type DeleteSampleV3Default struct {
	Payload *models.MsaQueryResponse
	// contains filtered or unexported fields
}
DeleteSampleV3Default describes a response with status code -1, with default header values.

OK

func NewDeleteSampleV3Default

func NewDeleteSampleV3Default(code int) *DeleteSampleV3Default

NewDeleteSampleV3Default creates a DeleteSampleV3Default with default headers values

func (*DeleteSampleV3Default) Code

func (o *DeleteSampleV3Default) Code() int

Code gets the status code for the delete sample v3 default response

func (*DeleteSampleV3Default) Error

func (o *DeleteSampleV3Default) Error() string

func (*DeleteSampleV3Default) GetPayload

type DeleteSampleV3Forbidden

type DeleteSampleV3Forbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
DeleteSampleV3Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteSampleV3Forbidden

func NewDeleteSampleV3Forbidden() *DeleteSampleV3Forbidden

NewDeleteSampleV3Forbidden creates a DeleteSampleV3Forbidden with default headers values

func (*DeleteSampleV3Forbidden) Error

func (o *DeleteSampleV3Forbidden) Error() string

func (*DeleteSampleV3Forbidden) GetPayload

type DeleteSampleV3InternalServerError

type DeleteSampleV3InternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
DeleteSampleV3InternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewDeleteSampleV3InternalServerError

func NewDeleteSampleV3InternalServerError() *DeleteSampleV3InternalServerError

NewDeleteSampleV3InternalServerError creates a DeleteSampleV3InternalServerError with default headers values

func (*DeleteSampleV3InternalServerError) Error

func (*DeleteSampleV3InternalServerError) GetPayload

type DeleteSampleV3NotFound

type DeleteSampleV3NotFound struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
DeleteSampleV3NotFound describes a response with status code 404, with default header values.

Not Found

func NewDeleteSampleV3NotFound

func NewDeleteSampleV3NotFound() *DeleteSampleV3NotFound

NewDeleteSampleV3NotFound creates a DeleteSampleV3NotFound with default headers values

func (*DeleteSampleV3NotFound) Error

func (o *DeleteSampleV3NotFound) Error() string

func (*DeleteSampleV3NotFound) GetPayload

type DeleteSampleV3OK

type DeleteSampleV3OK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
DeleteSampleV3OK describes a response with status code 200, with default header values.

OK

func NewDeleteSampleV3OK

func NewDeleteSampleV3OK() *DeleteSampleV3OK

NewDeleteSampleV3OK creates a DeleteSampleV3OK with default headers values

func (*DeleteSampleV3OK) Error

func (o *DeleteSampleV3OK) Error() string

func (*DeleteSampleV3OK) GetPayload

func (o *DeleteSampleV3OK) GetPayload() *models.MsaQueryResponse

type DeleteSampleV3Params

type DeleteSampleV3Params struct {

	/* Ids.

	   The file SHA256.
	*/
	Ids string

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

DeleteSampleV3Params contains all the parameters to send to the API endpoint

for the delete sample v3 operation.

Typically these are written to a http.Request.

func NewDeleteSampleV3Params

func NewDeleteSampleV3Params() *DeleteSampleV3Params

NewDeleteSampleV3Params creates a new DeleteSampleV3Params 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 NewDeleteSampleV3ParamsWithContext

func NewDeleteSampleV3ParamsWithContext(ctx context.Context) *DeleteSampleV3Params

NewDeleteSampleV3ParamsWithContext creates a new DeleteSampleV3Params object with the ability to set a context for a request.

func NewDeleteSampleV3ParamsWithHTTPClient

func NewDeleteSampleV3ParamsWithHTTPClient(client *http.Client) *DeleteSampleV3Params

NewDeleteSampleV3ParamsWithHTTPClient creates a new DeleteSampleV3Params object with the ability to set a custom HTTPClient for a request.

func NewDeleteSampleV3ParamsWithTimeout

func NewDeleteSampleV3ParamsWithTimeout(timeout time.Duration) *DeleteSampleV3Params

NewDeleteSampleV3ParamsWithTimeout creates a new DeleteSampleV3Params object with the ability to set a timeout on a request.

func (*DeleteSampleV3Params) SetContext

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

SetContext adds the context to the delete sample v3 params

func (*DeleteSampleV3Params) SetDefaults

func (o *DeleteSampleV3Params) SetDefaults()

SetDefaults hydrates default values in the delete sample v3 params (not the query body).

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

func (*DeleteSampleV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete sample v3 params

func (*DeleteSampleV3Params) SetIds

func (o *DeleteSampleV3Params) SetIds(ids string)

SetIds adds the ids to the delete sample v3 params

func (*DeleteSampleV3Params) SetTimeout

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

SetTimeout adds the timeout to the delete sample v3 params

func (*DeleteSampleV3Params) WithContext

WithContext adds the context to the delete sample v3 params

func (*DeleteSampleV3Params) WithDefaults

func (o *DeleteSampleV3Params) WithDefaults() *DeleteSampleV3Params

WithDefaults hydrates default values in the delete sample v3 params (not the query body).

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

func (*DeleteSampleV3Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete sample v3 params

func (*DeleteSampleV3Params) WithIds

WithIds adds the ids to the delete sample v3 params

func (*DeleteSampleV3Params) WithTimeout

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

WithTimeout adds the timeout to the delete sample v3 params

func (*DeleteSampleV3Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteSampleV3Reader

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

DeleteSampleV3Reader is a Reader for the DeleteSampleV3 structure.

func (*DeleteSampleV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSampleV3TooManyRequests

type DeleteSampleV3TooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
DeleteSampleV3TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewDeleteSampleV3TooManyRequests

func NewDeleteSampleV3TooManyRequests() *DeleteSampleV3TooManyRequests

NewDeleteSampleV3TooManyRequests creates a DeleteSampleV3TooManyRequests with default headers values

func (*DeleteSampleV3TooManyRequests) Error

func (*DeleteSampleV3TooManyRequests) GetPayload

type GetSampleV3BadRequest

type GetSampleV3BadRequest struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
GetSampleV3BadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetSampleV3BadRequest

func NewGetSampleV3BadRequest() *GetSampleV3BadRequest

NewGetSampleV3BadRequest creates a GetSampleV3BadRequest with default headers values

func (*GetSampleV3BadRequest) Error

func (o *GetSampleV3BadRequest) Error() string

func (*GetSampleV3BadRequest) GetPayload

type GetSampleV3Default

type GetSampleV3Default struct {
	Payload string
	// contains filtered or unexported fields
}
GetSampleV3Default describes a response with status code -1, with default header values.

OK

func NewGetSampleV3Default

func NewGetSampleV3Default(code int) *GetSampleV3Default

NewGetSampleV3Default creates a GetSampleV3Default with default headers values

func (*GetSampleV3Default) Code

func (o *GetSampleV3Default) Code() int

Code gets the status code for the get sample v3 default response

func (*GetSampleV3Default) Error

func (o *GetSampleV3Default) Error() string

func (*GetSampleV3Default) GetPayload

func (o *GetSampleV3Default) GetPayload() string

type GetSampleV3Forbidden

type GetSampleV3Forbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
GetSampleV3Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetSampleV3Forbidden

func NewGetSampleV3Forbidden() *GetSampleV3Forbidden

NewGetSampleV3Forbidden creates a GetSampleV3Forbidden with default headers values

func (*GetSampleV3Forbidden) Error

func (o *GetSampleV3Forbidden) Error() string

func (*GetSampleV3Forbidden) GetPayload

func (o *GetSampleV3Forbidden) GetPayload() *models.MsaReplyMetaOnly

type GetSampleV3InternalServerError

type GetSampleV3InternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
GetSampleV3InternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetSampleV3InternalServerError

func NewGetSampleV3InternalServerError() *GetSampleV3InternalServerError

NewGetSampleV3InternalServerError creates a GetSampleV3InternalServerError with default headers values

func (*GetSampleV3InternalServerError) Error

func (*GetSampleV3InternalServerError) GetPayload

type GetSampleV3NotFound

type GetSampleV3NotFound struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
GetSampleV3NotFound describes a response with status code 404, with default header values.

Not Found

func NewGetSampleV3NotFound

func NewGetSampleV3NotFound() *GetSampleV3NotFound

NewGetSampleV3NotFound creates a GetSampleV3NotFound with default headers values

func (*GetSampleV3NotFound) Error

func (o *GetSampleV3NotFound) Error() string

func (*GetSampleV3NotFound) GetPayload

func (o *GetSampleV3NotFound) GetPayload() *models.MsaReplyMetaOnly

type GetSampleV3OK

type GetSampleV3OK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload string
}
GetSampleV3OK describes a response with status code 200, with default header values.

OK

func NewGetSampleV3OK

func NewGetSampleV3OK() *GetSampleV3OK

NewGetSampleV3OK creates a GetSampleV3OK with default headers values

func (*GetSampleV3OK) Error

func (o *GetSampleV3OK) Error() string

func (*GetSampleV3OK) GetPayload

func (o *GetSampleV3OK) GetPayload() string

type GetSampleV3Params

type GetSampleV3Params struct {

	/* Ids.

	   The file SHA256.
	*/
	Ids string

	/* PasswordProtected.

	   Flag whether the sample should be zipped and password protected with pass='infected'
	*/
	PasswordProtected *bool

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

GetSampleV3Params contains all the parameters to send to the API endpoint

for the get sample v3 operation.

Typically these are written to a http.Request.

func NewGetSampleV3Params

func NewGetSampleV3Params() *GetSampleV3Params

NewGetSampleV3Params creates a new GetSampleV3Params 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 NewGetSampleV3ParamsWithContext

func NewGetSampleV3ParamsWithContext(ctx context.Context) *GetSampleV3Params

NewGetSampleV3ParamsWithContext creates a new GetSampleV3Params object with the ability to set a context for a request.

func NewGetSampleV3ParamsWithHTTPClient

func NewGetSampleV3ParamsWithHTTPClient(client *http.Client) *GetSampleV3Params

NewGetSampleV3ParamsWithHTTPClient creates a new GetSampleV3Params object with the ability to set a custom HTTPClient for a request.

func NewGetSampleV3ParamsWithTimeout

func NewGetSampleV3ParamsWithTimeout(timeout time.Duration) *GetSampleV3Params

NewGetSampleV3ParamsWithTimeout creates a new GetSampleV3Params object with the ability to set a timeout on a request.

func (*GetSampleV3Params) SetContext

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

SetContext adds the context to the get sample v3 params

func (*GetSampleV3Params) SetDefaults

func (o *GetSampleV3Params) SetDefaults()

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

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

func (*GetSampleV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sample v3 params

func (*GetSampleV3Params) SetIds

func (o *GetSampleV3Params) SetIds(ids string)

SetIds adds the ids to the get sample v3 params

func (*GetSampleV3Params) SetPasswordProtected

func (o *GetSampleV3Params) SetPasswordProtected(passwordProtected *bool)

SetPasswordProtected adds the passwordProtected to the get sample v3 params

func (*GetSampleV3Params) SetTimeout

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

SetTimeout adds the timeout to the get sample v3 params

func (*GetSampleV3Params) WithContext

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

WithContext adds the context to the get sample v3 params

func (*GetSampleV3Params) WithDefaults

func (o *GetSampleV3Params) WithDefaults() *GetSampleV3Params

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

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

func (*GetSampleV3Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get sample v3 params

func (*GetSampleV3Params) WithIds

func (o *GetSampleV3Params) WithIds(ids string) *GetSampleV3Params

WithIds adds the ids to the get sample v3 params

func (*GetSampleV3Params) WithPasswordProtected

func (o *GetSampleV3Params) WithPasswordProtected(passwordProtected *bool) *GetSampleV3Params

WithPasswordProtected adds the passwordProtected to the get sample v3 params

func (*GetSampleV3Params) WithTimeout

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

WithTimeout adds the timeout to the get sample v3 params

func (*GetSampleV3Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSampleV3Reader

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

GetSampleV3Reader is a Reader for the GetSampleV3 structure.

func (*GetSampleV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSampleV3TooManyRequests

type GetSampleV3TooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
GetSampleV3TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetSampleV3TooManyRequests

func NewGetSampleV3TooManyRequests() *GetSampleV3TooManyRequests

NewGetSampleV3TooManyRequests creates a GetSampleV3TooManyRequests with default headers values

func (*GetSampleV3TooManyRequests) Error

func (*GetSampleV3TooManyRequests) GetPayload

type UploadSampleV3BadRequest

type UploadSampleV3BadRequest struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.ClientSampleMetadataResponseV2
}
UploadSampleV3BadRequest describes a response with status code 400, with default header values.

Bad Request

func NewUploadSampleV3BadRequest

func NewUploadSampleV3BadRequest() *UploadSampleV3BadRequest

NewUploadSampleV3BadRequest creates a UploadSampleV3BadRequest with default headers values

func (*UploadSampleV3BadRequest) Error

func (o *UploadSampleV3BadRequest) Error() string

func (*UploadSampleV3BadRequest) GetPayload

type UploadSampleV3Default

type UploadSampleV3Default struct {
	Payload *models.ClientSampleMetadataResponseV2
	// contains filtered or unexported fields
}
UploadSampleV3Default describes a response with status code -1, with default header values.

OK

func NewUploadSampleV3Default

func NewUploadSampleV3Default(code int) *UploadSampleV3Default

NewUploadSampleV3Default creates a UploadSampleV3Default with default headers values

func (*UploadSampleV3Default) Code

func (o *UploadSampleV3Default) Code() int

Code gets the status code for the upload sample v3 default response

func (*UploadSampleV3Default) Error

func (o *UploadSampleV3Default) Error() string

func (*UploadSampleV3Default) GetPayload

type UploadSampleV3Forbidden

type UploadSampleV3Forbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
UploadSampleV3Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewUploadSampleV3Forbidden

func NewUploadSampleV3Forbidden() *UploadSampleV3Forbidden

NewUploadSampleV3Forbidden creates a UploadSampleV3Forbidden with default headers values

func (*UploadSampleV3Forbidden) Error

func (o *UploadSampleV3Forbidden) Error() string

func (*UploadSampleV3Forbidden) GetPayload

type UploadSampleV3InternalServerError

type UploadSampleV3InternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.ClientSampleMetadataResponseV2
}
UploadSampleV3InternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUploadSampleV3InternalServerError

func NewUploadSampleV3InternalServerError() *UploadSampleV3InternalServerError

NewUploadSampleV3InternalServerError creates a UploadSampleV3InternalServerError with default headers values

func (*UploadSampleV3InternalServerError) Error

func (*UploadSampleV3InternalServerError) GetPayload

type UploadSampleV3OK

type UploadSampleV3OK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.ClientSampleMetadataResponseV2
}
UploadSampleV3OK describes a response with status code 200, with default header values.

OK

func NewUploadSampleV3OK

func NewUploadSampleV3OK() *UploadSampleV3OK

NewUploadSampleV3OK creates a UploadSampleV3OK with default headers values

func (*UploadSampleV3OK) Error

func (o *UploadSampleV3OK) Error() string

func (*UploadSampleV3OK) GetPayload

type UploadSampleV3Params

type UploadSampleV3Params struct {

	/* Comment.

	   A descriptive comment to identify the file for other users.
	*/
	Comment *string

	/* FileName.

	   Name of the file.
	*/
	FileName string

	/* IsConfidential.

	     Defines visibility of this file in Falcon MalQuery, either via the API or the Falcon console.

	- `true`: File is only shown to users within your customer account
	- `false`: File can be seen by other CrowdStrike customers

	Default: `true`.

	     Default: true
	*/
	IsConfidential *bool

	/* Sample.

	     Content of the uploaded sample in binary format. For example, use `--data-binary @$FILE_PATH` when using cURL. Max file size: 256 MB.

	Accepted file formats:

	- Portable executables: `.exe`, `.scr`, `.pif`, `.dll`, `.com`, `.cpl`, etc.
	- Office documents: `.doc`, `.docx`, `.ppt`, `.pps`, `.pptx`, `.ppsx`, `.xls`, `.xlsx`, `.rtf`, `.pub`
	- PDF
	- APK
	- Executable JAR
	- Windows script component: `.sct`
	- Windows shortcut: `.lnk`
	- Windows help: `.chm`
	- HTML application: `.hta`
	- Windows script file: `.wsf`
	- Javascript: `.js`
	- Visual Basic: `.vbs`,  `.vbe`
	- Shockwave Flash: `.swf`
	- Perl: `.pl`
	- Powershell: `.ps1`, `.psd1`, `.psm1`
	- Scalable vector graphics: `.svg`
	- Python: `.py`
	- Linux ELF executables
	- Email files: MIME RFC 822 `.eml`, Outlook `.msg`.
	*/
	Sample runtime.NamedReadCloser

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

UploadSampleV3Params contains all the parameters to send to the API endpoint

for the upload sample v3 operation.

Typically these are written to a http.Request.

func NewUploadSampleV3Params

func NewUploadSampleV3Params() *UploadSampleV3Params

NewUploadSampleV3Params creates a new UploadSampleV3Params 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 NewUploadSampleV3ParamsWithContext

func NewUploadSampleV3ParamsWithContext(ctx context.Context) *UploadSampleV3Params

NewUploadSampleV3ParamsWithContext creates a new UploadSampleV3Params object with the ability to set a context for a request.

func NewUploadSampleV3ParamsWithHTTPClient

func NewUploadSampleV3ParamsWithHTTPClient(client *http.Client) *UploadSampleV3Params

NewUploadSampleV3ParamsWithHTTPClient creates a new UploadSampleV3Params object with the ability to set a custom HTTPClient for a request.

func NewUploadSampleV3ParamsWithTimeout

func NewUploadSampleV3ParamsWithTimeout(timeout time.Duration) *UploadSampleV3Params

NewUploadSampleV3ParamsWithTimeout creates a new UploadSampleV3Params object with the ability to set a timeout on a request.

func (*UploadSampleV3Params) SetComment

func (o *UploadSampleV3Params) SetComment(comment *string)

SetComment adds the comment to the upload sample v3 params

func (*UploadSampleV3Params) SetContext

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

SetContext adds the context to the upload sample v3 params

func (*UploadSampleV3Params) SetDefaults

func (o *UploadSampleV3Params) SetDefaults()

SetDefaults hydrates default values in the upload sample v3 params (not the query body).

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

func (*UploadSampleV3Params) SetFileName

func (o *UploadSampleV3Params) SetFileName(fileName string)

SetFileName adds the fileName to the upload sample v3 params

func (*UploadSampleV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload sample v3 params

func (*UploadSampleV3Params) SetIsConfidential

func (o *UploadSampleV3Params) SetIsConfidential(isConfidential *bool)

SetIsConfidential adds the isConfidential to the upload sample v3 params

func (*UploadSampleV3Params) SetSample added in v0.2.6

func (o *UploadSampleV3Params) SetSample(sample runtime.NamedReadCloser)

SetSample adds the sample to the upload sample v3 params

func (*UploadSampleV3Params) SetTimeout

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

SetTimeout adds the timeout to the upload sample v3 params

func (*UploadSampleV3Params) WithComment

func (o *UploadSampleV3Params) WithComment(comment *string) *UploadSampleV3Params

WithComment adds the comment to the upload sample v3 params

func (*UploadSampleV3Params) WithContext

WithContext adds the context to the upload sample v3 params

func (*UploadSampleV3Params) WithDefaults

func (o *UploadSampleV3Params) WithDefaults() *UploadSampleV3Params

WithDefaults hydrates default values in the upload sample v3 params (not the query body).

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

func (*UploadSampleV3Params) WithFileName

func (o *UploadSampleV3Params) WithFileName(fileName string) *UploadSampleV3Params

WithFileName adds the fileName to the upload sample v3 params

func (*UploadSampleV3Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload sample v3 params

func (*UploadSampleV3Params) WithIsConfidential

func (o *UploadSampleV3Params) WithIsConfidential(isConfidential *bool) *UploadSampleV3Params

WithIsConfidential adds the isConfidential to the upload sample v3 params

func (*UploadSampleV3Params) WithSample added in v0.2.6

WithSample adds the sample to the upload sample v3 params

func (*UploadSampleV3Params) WithTimeout

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

WithTimeout adds the timeout to the upload sample v3 params

func (*UploadSampleV3Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UploadSampleV3Reader

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

UploadSampleV3Reader is a Reader for the UploadSampleV3 structure.

func (*UploadSampleV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UploadSampleV3TooManyRequests

type UploadSampleV3TooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
UploadSampleV3TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewUploadSampleV3TooManyRequests

func NewUploadSampleV3TooManyRequests() *UploadSampleV3TooManyRequests

NewUploadSampleV3TooManyRequests creates a UploadSampleV3TooManyRequests with default headers values

func (*UploadSampleV3TooManyRequests) Error

func (*UploadSampleV3TooManyRequests) GetPayload

Jump to

Keyboard shortcuts

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