downloads_api

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for downloads api API

func (*Client) DownloadFile

func (a *Client) DownloadFile(params *DownloadFileParams, opts ...ClientOption) (*DownloadFileOK, error)

DownloadFile gets pre signed URL for the file

func (*Client) EnumerateFile

func (a *Client) EnumerateFile(params *EnumerateFileParams, opts ...ClientOption) (*EnumerateFileOK, error)

EnumerateFile enumerates a list of files available for c ID

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DownloadFile(params *DownloadFileParams, opts ...ClientOption) (*DownloadFileOK, error)

	EnumerateFile(params *EnumerateFileParams, opts ...ClientOption) (*EnumerateFileOK, 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 downloads api API client.

type DownloadFileBadRequest

type DownloadFileBadRequest 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.CommonEntitiesResponse
}

DownloadFileBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewDownloadFileBadRequest

func NewDownloadFileBadRequest() *DownloadFileBadRequest

NewDownloadFileBadRequest creates a DownloadFileBadRequest with default headers values

func (*DownloadFileBadRequest) Code

func (o *DownloadFileBadRequest) Code() int

Code gets the status code for the download file bad request response

func (*DownloadFileBadRequest) Error

func (o *DownloadFileBadRequest) Error() string

func (*DownloadFileBadRequest) GetPayload

func (*DownloadFileBadRequest) IsClientError

func (o *DownloadFileBadRequest) IsClientError() bool

IsClientError returns true when this download file bad request response has a 4xx status code

func (*DownloadFileBadRequest) IsCode

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

IsCode returns true when this download file bad request response a status code equal to that given

func (*DownloadFileBadRequest) IsRedirect

func (o *DownloadFileBadRequest) IsRedirect() bool

IsRedirect returns true when this download file bad request response has a 3xx status code

func (*DownloadFileBadRequest) IsServerError

func (o *DownloadFileBadRequest) IsServerError() bool

IsServerError returns true when this download file bad request response has a 5xx status code

func (*DownloadFileBadRequest) IsSuccess

func (o *DownloadFileBadRequest) IsSuccess() bool

IsSuccess returns true when this download file bad request response has a 2xx status code

func (*DownloadFileBadRequest) String

func (o *DownloadFileBadRequest) String() string

type DownloadFileForbidden

type DownloadFileForbidden 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.CommonEntitiesResponse
}

DownloadFileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDownloadFileForbidden

func NewDownloadFileForbidden() *DownloadFileForbidden

NewDownloadFileForbidden creates a DownloadFileForbidden with default headers values

func (*DownloadFileForbidden) Code

func (o *DownloadFileForbidden) Code() int

Code gets the status code for the download file forbidden response

func (*DownloadFileForbidden) Error

func (o *DownloadFileForbidden) Error() string

func (*DownloadFileForbidden) GetPayload

func (*DownloadFileForbidden) IsClientError

func (o *DownloadFileForbidden) IsClientError() bool

IsClientError returns true when this download file forbidden response has a 4xx status code

func (*DownloadFileForbidden) IsCode

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

IsCode returns true when this download file forbidden response a status code equal to that given

func (*DownloadFileForbidden) IsRedirect

func (o *DownloadFileForbidden) IsRedirect() bool

IsRedirect returns true when this download file forbidden response has a 3xx status code

func (*DownloadFileForbidden) IsServerError

func (o *DownloadFileForbidden) IsServerError() bool

IsServerError returns true when this download file forbidden response has a 5xx status code

func (*DownloadFileForbidden) IsSuccess

func (o *DownloadFileForbidden) IsSuccess() bool

IsSuccess returns true when this download file forbidden response has a 2xx status code

func (*DownloadFileForbidden) String

func (o *DownloadFileForbidden) String() string

type DownloadFileInternalServerError

type DownloadFileInternalServerError 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.CommonEntitiesResponse
}

DownloadFileInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewDownloadFileInternalServerError

func NewDownloadFileInternalServerError() *DownloadFileInternalServerError

NewDownloadFileInternalServerError creates a DownloadFileInternalServerError with default headers values

func (*DownloadFileInternalServerError) Code

Code gets the status code for the download file internal server error response

func (*DownloadFileInternalServerError) Error

func (*DownloadFileInternalServerError) GetPayload

func (*DownloadFileInternalServerError) IsClientError

func (o *DownloadFileInternalServerError) IsClientError() bool

IsClientError returns true when this download file internal server error response has a 4xx status code

func (*DownloadFileInternalServerError) IsCode

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

IsCode returns true when this download file internal server error response a status code equal to that given

func (*DownloadFileInternalServerError) IsRedirect

func (o *DownloadFileInternalServerError) IsRedirect() bool

IsRedirect returns true when this download file internal server error response has a 3xx status code

func (*DownloadFileInternalServerError) IsServerError

func (o *DownloadFileInternalServerError) IsServerError() bool

IsServerError returns true when this download file internal server error response has a 5xx status code

func (*DownloadFileInternalServerError) IsSuccess

func (o *DownloadFileInternalServerError) IsSuccess() bool

IsSuccess returns true when this download file internal server error response has a 2xx status code

func (*DownloadFileInternalServerError) String

type DownloadFileOK

type DownloadFileOK 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.CommonEntitiesResponse
}

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

OK

func NewDownloadFileOK

func NewDownloadFileOK() *DownloadFileOK

NewDownloadFileOK creates a DownloadFileOK with default headers values

func (*DownloadFileOK) Code

func (o *DownloadFileOK) Code() int

Code gets the status code for the download file o k response

func (*DownloadFileOK) Error

func (o *DownloadFileOK) Error() string

func (*DownloadFileOK) GetPayload

func (o *DownloadFileOK) GetPayload() *models.CommonEntitiesResponse

func (*DownloadFileOK) IsClientError

func (o *DownloadFileOK) IsClientError() bool

IsClientError returns true when this download file o k response has a 4xx status code

func (*DownloadFileOK) IsCode

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

IsCode returns true when this download file o k response a status code equal to that given

func (*DownloadFileOK) IsRedirect

func (o *DownloadFileOK) IsRedirect() bool

IsRedirect returns true when this download file o k response has a 3xx status code

func (*DownloadFileOK) IsServerError

func (o *DownloadFileOK) IsServerError() bool

IsServerError returns true when this download file o k response has a 5xx status code

func (*DownloadFileOK) IsSuccess

func (o *DownloadFileOK) IsSuccess() bool

IsSuccess returns true when this download file o k response has a 2xx status code

func (*DownloadFileOK) String

func (o *DownloadFileOK) String() string

type DownloadFileParams

type DownloadFileParams struct {

	/* FileName.

	   Name of the file to be downloaded
	*/
	FileName string

	/* FileVersion.

	   Version of the file to be downloaded
	*/
	FileVersion string

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

DownloadFileParams contains all the parameters to send to the API endpoint

for the download file operation.

Typically these are written to a http.Request.

func NewDownloadFileParams

func NewDownloadFileParams() *DownloadFileParams

NewDownloadFileParams creates a new DownloadFileParams 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 NewDownloadFileParamsWithContext

func NewDownloadFileParamsWithContext(ctx context.Context) *DownloadFileParams

NewDownloadFileParamsWithContext creates a new DownloadFileParams object with the ability to set a context for a request.

func NewDownloadFileParamsWithHTTPClient

func NewDownloadFileParamsWithHTTPClient(client *http.Client) *DownloadFileParams

NewDownloadFileParamsWithHTTPClient creates a new DownloadFileParams object with the ability to set a custom HTTPClient for a request.

func NewDownloadFileParamsWithTimeout

func NewDownloadFileParamsWithTimeout(timeout time.Duration) *DownloadFileParams

NewDownloadFileParamsWithTimeout creates a new DownloadFileParams object with the ability to set a timeout on a request.

func (*DownloadFileParams) SetContext

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

SetContext adds the context to the download file params

func (*DownloadFileParams) SetDefaults

func (o *DownloadFileParams) SetDefaults()

SetDefaults hydrates default values in the download file params (not the query body).

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

func (*DownloadFileParams) SetFileName

func (o *DownloadFileParams) SetFileName(fileName string)

SetFileName adds the fileName to the download file params

func (*DownloadFileParams) SetFileVersion

func (o *DownloadFileParams) SetFileVersion(fileVersion string)

SetFileVersion adds the fileVersion to the download file params

func (*DownloadFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download file params

func (*DownloadFileParams) SetTimeout

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

SetTimeout adds the timeout to the download file params

func (*DownloadFileParams) WithContext

WithContext adds the context to the download file params

func (*DownloadFileParams) WithDefaults

func (o *DownloadFileParams) WithDefaults() *DownloadFileParams

WithDefaults hydrates default values in the download file params (not the query body).

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

func (*DownloadFileParams) WithFileName

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

WithFileName adds the fileName to the download file params

func (*DownloadFileParams) WithFileVersion

func (o *DownloadFileParams) WithFileVersion(fileVersion string) *DownloadFileParams

WithFileVersion adds the fileVersion to the download file params

func (*DownloadFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the download file params

func (*DownloadFileParams) WithTimeout

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

WithTimeout adds the timeout to the download file params

func (*DownloadFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DownloadFileReader

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

DownloadFileReader is a Reader for the DownloadFile structure.

func (*DownloadFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadFileTooManyRequests

type DownloadFileTooManyRequests 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
}

DownloadFileTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewDownloadFileTooManyRequests

func NewDownloadFileTooManyRequests() *DownloadFileTooManyRequests

NewDownloadFileTooManyRequests creates a DownloadFileTooManyRequests with default headers values

func (*DownloadFileTooManyRequests) Code

func (o *DownloadFileTooManyRequests) Code() int

Code gets the status code for the download file too many requests response

func (*DownloadFileTooManyRequests) Error

func (*DownloadFileTooManyRequests) GetPayload

func (*DownloadFileTooManyRequests) IsClientError

func (o *DownloadFileTooManyRequests) IsClientError() bool

IsClientError returns true when this download file too many requests response has a 4xx status code

func (*DownloadFileTooManyRequests) IsCode

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

IsCode returns true when this download file too many requests response a status code equal to that given

func (*DownloadFileTooManyRequests) IsRedirect

func (o *DownloadFileTooManyRequests) IsRedirect() bool

IsRedirect returns true when this download file too many requests response has a 3xx status code

func (*DownloadFileTooManyRequests) IsServerError

func (o *DownloadFileTooManyRequests) IsServerError() bool

IsServerError returns true when this download file too many requests response has a 5xx status code

func (*DownloadFileTooManyRequests) IsSuccess

func (o *DownloadFileTooManyRequests) IsSuccess() bool

IsSuccess returns true when this download file too many requests response has a 2xx status code

func (*DownloadFileTooManyRequests) String

func (o *DownloadFileTooManyRequests) String() string

type DownloadFileUnauthorized

type DownloadFileUnauthorized 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.CommonEntitiesResponse
}

DownloadFileUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDownloadFileUnauthorized

func NewDownloadFileUnauthorized() *DownloadFileUnauthorized

NewDownloadFileUnauthorized creates a DownloadFileUnauthorized with default headers values

func (*DownloadFileUnauthorized) Code

func (o *DownloadFileUnauthorized) Code() int

Code gets the status code for the download file unauthorized response

func (*DownloadFileUnauthorized) Error

func (o *DownloadFileUnauthorized) Error() string

func (*DownloadFileUnauthorized) GetPayload

func (*DownloadFileUnauthorized) IsClientError

func (o *DownloadFileUnauthorized) IsClientError() bool

IsClientError returns true when this download file unauthorized response has a 4xx status code

func (*DownloadFileUnauthorized) IsCode

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

IsCode returns true when this download file unauthorized response a status code equal to that given

func (*DownloadFileUnauthorized) IsRedirect

func (o *DownloadFileUnauthorized) IsRedirect() bool

IsRedirect returns true when this download file unauthorized response has a 3xx status code

func (*DownloadFileUnauthorized) IsServerError

func (o *DownloadFileUnauthorized) IsServerError() bool

IsServerError returns true when this download file unauthorized response has a 5xx status code

func (*DownloadFileUnauthorized) IsSuccess

func (o *DownloadFileUnauthorized) IsSuccess() bool

IsSuccess returns true when this download file unauthorized response has a 2xx status code

func (*DownloadFileUnauthorized) String

func (o *DownloadFileUnauthorized) String() string

type EnumerateFileBadRequest

type EnumerateFileBadRequest 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.CommonEntitiesResponse
}

EnumerateFileBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewEnumerateFileBadRequest

func NewEnumerateFileBadRequest() *EnumerateFileBadRequest

NewEnumerateFileBadRequest creates a EnumerateFileBadRequest with default headers values

func (*EnumerateFileBadRequest) Code

func (o *EnumerateFileBadRequest) Code() int

Code gets the status code for the enumerate file bad request response

func (*EnumerateFileBadRequest) Error

func (o *EnumerateFileBadRequest) Error() string

func (*EnumerateFileBadRequest) GetPayload

func (*EnumerateFileBadRequest) IsClientError

func (o *EnumerateFileBadRequest) IsClientError() bool

IsClientError returns true when this enumerate file bad request response has a 4xx status code

func (*EnumerateFileBadRequest) IsCode

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

IsCode returns true when this enumerate file bad request response a status code equal to that given

func (*EnumerateFileBadRequest) IsRedirect

func (o *EnumerateFileBadRequest) IsRedirect() bool

IsRedirect returns true when this enumerate file bad request response has a 3xx status code

func (*EnumerateFileBadRequest) IsServerError

func (o *EnumerateFileBadRequest) IsServerError() bool

IsServerError returns true when this enumerate file bad request response has a 5xx status code

func (*EnumerateFileBadRequest) IsSuccess

func (o *EnumerateFileBadRequest) IsSuccess() bool

IsSuccess returns true when this enumerate file bad request response has a 2xx status code

func (*EnumerateFileBadRequest) String

func (o *EnumerateFileBadRequest) String() string

type EnumerateFileForbidden

type EnumerateFileForbidden 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.CommonEntitiesResponse
}

EnumerateFileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewEnumerateFileForbidden

func NewEnumerateFileForbidden() *EnumerateFileForbidden

NewEnumerateFileForbidden creates a EnumerateFileForbidden with default headers values

func (*EnumerateFileForbidden) Code

func (o *EnumerateFileForbidden) Code() int

Code gets the status code for the enumerate file forbidden response

func (*EnumerateFileForbidden) Error

func (o *EnumerateFileForbidden) Error() string

func (*EnumerateFileForbidden) GetPayload

func (*EnumerateFileForbidden) IsClientError

func (o *EnumerateFileForbidden) IsClientError() bool

IsClientError returns true when this enumerate file forbidden response has a 4xx status code

func (*EnumerateFileForbidden) IsCode

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

IsCode returns true when this enumerate file forbidden response a status code equal to that given

func (*EnumerateFileForbidden) IsRedirect

func (o *EnumerateFileForbidden) IsRedirect() bool

IsRedirect returns true when this enumerate file forbidden response has a 3xx status code

func (*EnumerateFileForbidden) IsServerError

func (o *EnumerateFileForbidden) IsServerError() bool

IsServerError returns true when this enumerate file forbidden response has a 5xx status code

func (*EnumerateFileForbidden) IsSuccess

func (o *EnumerateFileForbidden) IsSuccess() bool

IsSuccess returns true when this enumerate file forbidden response has a 2xx status code

func (*EnumerateFileForbidden) String

func (o *EnumerateFileForbidden) String() string

type EnumerateFileInternalServerError

type EnumerateFileInternalServerError 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.CommonEntitiesResponse
}

EnumerateFileInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewEnumerateFileInternalServerError

func NewEnumerateFileInternalServerError() *EnumerateFileInternalServerError

NewEnumerateFileInternalServerError creates a EnumerateFileInternalServerError with default headers values

func (*EnumerateFileInternalServerError) Code

Code gets the status code for the enumerate file internal server error response

func (*EnumerateFileInternalServerError) Error

func (*EnumerateFileInternalServerError) GetPayload

func (*EnumerateFileInternalServerError) IsClientError

func (o *EnumerateFileInternalServerError) IsClientError() bool

IsClientError returns true when this enumerate file internal server error response has a 4xx status code

func (*EnumerateFileInternalServerError) IsCode

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

IsCode returns true when this enumerate file internal server error response a status code equal to that given

func (*EnumerateFileInternalServerError) IsRedirect

func (o *EnumerateFileInternalServerError) IsRedirect() bool

IsRedirect returns true when this enumerate file internal server error response has a 3xx status code

func (*EnumerateFileInternalServerError) IsServerError

func (o *EnumerateFileInternalServerError) IsServerError() bool

IsServerError returns true when this enumerate file internal server error response has a 5xx status code

func (*EnumerateFileInternalServerError) IsSuccess

func (o *EnumerateFileInternalServerError) IsSuccess() bool

IsSuccess returns true when this enumerate file internal server error response has a 2xx status code

func (*EnumerateFileInternalServerError) String

type EnumerateFileOK

type EnumerateFileOK 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.CommonEntitiesResponse
}

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

OK

func NewEnumerateFileOK

func NewEnumerateFileOK() *EnumerateFileOK

NewEnumerateFileOK creates a EnumerateFileOK with default headers values

func (*EnumerateFileOK) Code

func (o *EnumerateFileOK) Code() int

Code gets the status code for the enumerate file o k response

func (*EnumerateFileOK) Error

func (o *EnumerateFileOK) Error() string

func (*EnumerateFileOK) GetPayload

func (*EnumerateFileOK) IsClientError

func (o *EnumerateFileOK) IsClientError() bool

IsClientError returns true when this enumerate file o k response has a 4xx status code

func (*EnumerateFileOK) IsCode

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

IsCode returns true when this enumerate file o k response a status code equal to that given

func (*EnumerateFileOK) IsRedirect

func (o *EnumerateFileOK) IsRedirect() bool

IsRedirect returns true when this enumerate file o k response has a 3xx status code

func (*EnumerateFileOK) IsServerError

func (o *EnumerateFileOK) IsServerError() bool

IsServerError returns true when this enumerate file o k response has a 5xx status code

func (*EnumerateFileOK) IsSuccess

func (o *EnumerateFileOK) IsSuccess() bool

IsSuccess returns true when this enumerate file o k response has a 2xx status code

func (*EnumerateFileOK) String

func (o *EnumerateFileOK) String() string

type EnumerateFileParams

type EnumerateFileParams struct {

	/* Arch.

	   Apply filtering on architecture
	*/
	Arch *string

	/* Category.

	   Apply filtering on file category
	*/
	Category *string

	/* FileName.

	   Apply filtering on file name
	*/
	FileName *string

	/* FileVersion.

	   Apply filtering on file version
	*/
	FileVersion *string

	/* Os.

	   Apply filtering on operating system
	*/
	Os *string

	/* Platform.

	   Apply filtering on file platform
	*/
	Platform *string

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

EnumerateFileParams contains all the parameters to send to the API endpoint

for the enumerate file operation.

Typically these are written to a http.Request.

func NewEnumerateFileParams

func NewEnumerateFileParams() *EnumerateFileParams

NewEnumerateFileParams creates a new EnumerateFileParams 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 NewEnumerateFileParamsWithContext

func NewEnumerateFileParamsWithContext(ctx context.Context) *EnumerateFileParams

NewEnumerateFileParamsWithContext creates a new EnumerateFileParams object with the ability to set a context for a request.

func NewEnumerateFileParamsWithHTTPClient

func NewEnumerateFileParamsWithHTTPClient(client *http.Client) *EnumerateFileParams

NewEnumerateFileParamsWithHTTPClient creates a new EnumerateFileParams object with the ability to set a custom HTTPClient for a request.

func NewEnumerateFileParamsWithTimeout

func NewEnumerateFileParamsWithTimeout(timeout time.Duration) *EnumerateFileParams

NewEnumerateFileParamsWithTimeout creates a new EnumerateFileParams object with the ability to set a timeout on a request.

func (*EnumerateFileParams) SetArch

func (o *EnumerateFileParams) SetArch(arch *string)

SetArch adds the arch to the enumerate file params

func (*EnumerateFileParams) SetCategory

func (o *EnumerateFileParams) SetCategory(category *string)

SetCategory adds the category to the enumerate file params

func (*EnumerateFileParams) SetContext

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

SetContext adds the context to the enumerate file params

func (*EnumerateFileParams) SetDefaults

func (o *EnumerateFileParams) SetDefaults()

SetDefaults hydrates default values in the enumerate file params (not the query body).

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

func (*EnumerateFileParams) SetFileName

func (o *EnumerateFileParams) SetFileName(fileName *string)

SetFileName adds the fileName to the enumerate file params

func (*EnumerateFileParams) SetFileVersion

func (o *EnumerateFileParams) SetFileVersion(fileVersion *string)

SetFileVersion adds the fileVersion to the enumerate file params

func (*EnumerateFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enumerate file params

func (*EnumerateFileParams) SetOs

func (o *EnumerateFileParams) SetOs(os *string)

SetOs adds the os to the enumerate file params

func (*EnumerateFileParams) SetPlatform

func (o *EnumerateFileParams) SetPlatform(platform *string)

SetPlatform adds the platform to the enumerate file params

func (*EnumerateFileParams) SetTimeout

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

SetTimeout adds the timeout to the enumerate file params

func (*EnumerateFileParams) WithArch

func (o *EnumerateFileParams) WithArch(arch *string) *EnumerateFileParams

WithArch adds the arch to the enumerate file params

func (*EnumerateFileParams) WithCategory

func (o *EnumerateFileParams) WithCategory(category *string) *EnumerateFileParams

WithCategory adds the category to the enumerate file params

func (*EnumerateFileParams) WithContext

WithContext adds the context to the enumerate file params

func (*EnumerateFileParams) WithDefaults

func (o *EnumerateFileParams) WithDefaults() *EnumerateFileParams

WithDefaults hydrates default values in the enumerate file params (not the query body).

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

func (*EnumerateFileParams) WithFileName

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

WithFileName adds the fileName to the enumerate file params

func (*EnumerateFileParams) WithFileVersion

func (o *EnumerateFileParams) WithFileVersion(fileVersion *string) *EnumerateFileParams

WithFileVersion adds the fileVersion to the enumerate file params

func (*EnumerateFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enumerate file params

func (*EnumerateFileParams) WithOs

WithOs adds the os to the enumerate file params

func (*EnumerateFileParams) WithPlatform

func (o *EnumerateFileParams) WithPlatform(platform *string) *EnumerateFileParams

WithPlatform adds the platform to the enumerate file params

func (*EnumerateFileParams) WithTimeout

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

WithTimeout adds the timeout to the enumerate file params

func (*EnumerateFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnumerateFileReader

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

EnumerateFileReader is a Reader for the EnumerateFile structure.

func (*EnumerateFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnumerateFileTooManyRequests

type EnumerateFileTooManyRequests 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
}

EnumerateFileTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewEnumerateFileTooManyRequests

func NewEnumerateFileTooManyRequests() *EnumerateFileTooManyRequests

NewEnumerateFileTooManyRequests creates a EnumerateFileTooManyRequests with default headers values

func (*EnumerateFileTooManyRequests) Code

Code gets the status code for the enumerate file too many requests response

func (*EnumerateFileTooManyRequests) Error

func (*EnumerateFileTooManyRequests) GetPayload

func (*EnumerateFileTooManyRequests) IsClientError

func (o *EnumerateFileTooManyRequests) IsClientError() bool

IsClientError returns true when this enumerate file too many requests response has a 4xx status code

func (*EnumerateFileTooManyRequests) IsCode

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

IsCode returns true when this enumerate file too many requests response a status code equal to that given

func (*EnumerateFileTooManyRequests) IsRedirect

func (o *EnumerateFileTooManyRequests) IsRedirect() bool

IsRedirect returns true when this enumerate file too many requests response has a 3xx status code

func (*EnumerateFileTooManyRequests) IsServerError

func (o *EnumerateFileTooManyRequests) IsServerError() bool

IsServerError returns true when this enumerate file too many requests response has a 5xx status code

func (*EnumerateFileTooManyRequests) IsSuccess

func (o *EnumerateFileTooManyRequests) IsSuccess() bool

IsSuccess returns true when this enumerate file too many requests response has a 2xx status code

func (*EnumerateFileTooManyRequests) String

type EnumerateFileUnauthorized

type EnumerateFileUnauthorized 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.CommonEntitiesResponse
}

EnumerateFileUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewEnumerateFileUnauthorized

func NewEnumerateFileUnauthorized() *EnumerateFileUnauthorized

NewEnumerateFileUnauthorized creates a EnumerateFileUnauthorized with default headers values

func (*EnumerateFileUnauthorized) Code

func (o *EnumerateFileUnauthorized) Code() int

Code gets the status code for the enumerate file unauthorized response

func (*EnumerateFileUnauthorized) Error

func (o *EnumerateFileUnauthorized) Error() string

func (*EnumerateFileUnauthorized) GetPayload

func (*EnumerateFileUnauthorized) IsClientError

func (o *EnumerateFileUnauthorized) IsClientError() bool

IsClientError returns true when this enumerate file unauthorized response has a 4xx status code

func (*EnumerateFileUnauthorized) IsCode

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

IsCode returns true when this enumerate file unauthorized response a status code equal to that given

func (*EnumerateFileUnauthorized) IsRedirect

func (o *EnumerateFileUnauthorized) IsRedirect() bool

IsRedirect returns true when this enumerate file unauthorized response has a 3xx status code

func (*EnumerateFileUnauthorized) IsServerError

func (o *EnumerateFileUnauthorized) IsServerError() bool

IsServerError returns true when this enumerate file unauthorized response has a 5xx status code

func (*EnumerateFileUnauthorized) IsSuccess

func (o *EnumerateFileUnauthorized) IsSuccess() bool

IsSuccess returns true when this enumerate file unauthorized response has a 2xx status code

func (*EnumerateFileUnauthorized) String

func (o *EnumerateFileUnauthorized) String() string

Jump to

Keyboard shortcuts

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