downloads

package
v0.0.0-...-e2f0fdc Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 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 API

type API interface {
	/*
	   GetDownload issues a redirect to a signed secure download URL for specified download
	   this method will issue a redirect to the url to the content
	*/
	GetDownload(ctx context.Context, params *GetDownloadParams) (*GetDownloadOK, error)
}

API is the interface of the downloads client

type Client

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

Client for downloads API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new downloads API client.

func (*Client) GetDownload

func (a *Client) GetDownload(ctx context.Context, params *GetDownloadParams) (*GetDownloadOK, error)

GetDownload issues a redirect to a signed secure download URL for specified download

this method will issue a redirect to the url to the content

type GetDownloadBadRequest

type GetDownloadBadRequest struct {
	Payload *models.ErrorBody
}

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

The request could not be understood by the server due to malformed syntax.

func NewGetDownloadBadRequest

func NewGetDownloadBadRequest() *GetDownloadBadRequest

NewGetDownloadBadRequest creates a GetDownloadBadRequest with default headers values

func (*GetDownloadBadRequest) Error

func (o *GetDownloadBadRequest) Error() string

func (*GetDownloadBadRequest) GetPayload

func (o *GetDownloadBadRequest) GetPayload() *models.ErrorBody

func (*GetDownloadBadRequest) IsClientError

func (o *GetDownloadBadRequest) IsClientError() bool

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

func (*GetDownloadBadRequest) IsCode

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

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

func (*GetDownloadBadRequest) IsRedirect

func (o *GetDownloadBadRequest) IsRedirect() bool

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

func (*GetDownloadBadRequest) IsServerError

func (o *GetDownloadBadRequest) IsServerError() bool

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

func (*GetDownloadBadRequest) IsSuccess

func (o *GetDownloadBadRequest) IsSuccess() bool

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

func (*GetDownloadBadRequest) String

func (o *GetDownloadBadRequest) String() string

type GetDownloadForbidden

type GetDownloadForbidden struct {
	Payload *models.ErrorBody
}

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

You are not authorized to perform the requested action.

func NewGetDownloadForbidden

func NewGetDownloadForbidden() *GetDownloadForbidden

NewGetDownloadForbidden creates a GetDownloadForbidden with default headers values

func (*GetDownloadForbidden) Error

func (o *GetDownloadForbidden) Error() string

func (*GetDownloadForbidden) GetPayload

func (o *GetDownloadForbidden) GetPayload() *models.ErrorBody

func (*GetDownloadForbidden) IsClientError

func (o *GetDownloadForbidden) IsClientError() bool

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

func (*GetDownloadForbidden) IsCode

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

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

func (*GetDownloadForbidden) IsRedirect

func (o *GetDownloadForbidden) IsRedirect() bool

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

func (*GetDownloadForbidden) IsServerError

func (o *GetDownloadForbidden) IsServerError() bool

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

func (*GetDownloadForbidden) IsSuccess

func (o *GetDownloadForbidden) IsSuccess() bool

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

func (*GetDownloadForbidden) String

func (o *GetDownloadForbidden) String() string

type GetDownloadGatewayTimeout

type GetDownloadGatewayTimeout struct {
	Payload *models.ErrorBody
}

GetDownloadGatewayTimeout describes a response with status code 504, with default header values.

The request timed out.

func NewGetDownloadGatewayTimeout

func NewGetDownloadGatewayTimeout() *GetDownloadGatewayTimeout

NewGetDownloadGatewayTimeout creates a GetDownloadGatewayTimeout with default headers values

func (*GetDownloadGatewayTimeout) Error

func (o *GetDownloadGatewayTimeout) Error() string

func (*GetDownloadGatewayTimeout) GetPayload

func (o *GetDownloadGatewayTimeout) GetPayload() *models.ErrorBody

func (*GetDownloadGatewayTimeout) IsClientError

func (o *GetDownloadGatewayTimeout) IsClientError() bool

IsClientError returns true when this get download gateway timeout response has a 4xx status code

func (*GetDownloadGatewayTimeout) IsCode

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

IsCode returns true when this get download gateway timeout response a status code equal to that given

func (*GetDownloadGatewayTimeout) IsRedirect

func (o *GetDownloadGatewayTimeout) IsRedirect() bool

IsRedirect returns true when this get download gateway timeout response has a 3xx status code

func (*GetDownloadGatewayTimeout) IsServerError

func (o *GetDownloadGatewayTimeout) IsServerError() bool

IsServerError returns true when this get download gateway timeout response has a 5xx status code

func (*GetDownloadGatewayTimeout) IsSuccess

func (o *GetDownloadGatewayTimeout) IsSuccess() bool

IsSuccess returns true when this get download gateway timeout response has a 2xx status code

func (*GetDownloadGatewayTimeout) String

func (o *GetDownloadGatewayTimeout) String() string

type GetDownloadInternalServerError

type GetDownloadInternalServerError struct {
	Payload *models.ErrorBody
}

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

The server encountered an unexpected condition which prevented it from fulfilling the request.

func NewGetDownloadInternalServerError

func NewGetDownloadInternalServerError() *GetDownloadInternalServerError

NewGetDownloadInternalServerError creates a GetDownloadInternalServerError with default headers values

func (*GetDownloadInternalServerError) Error

func (*GetDownloadInternalServerError) GetPayload

func (*GetDownloadInternalServerError) IsClientError

func (o *GetDownloadInternalServerError) IsClientError() bool

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

func (*GetDownloadInternalServerError) IsCode

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

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

func (*GetDownloadInternalServerError) IsRedirect

func (o *GetDownloadInternalServerError) IsRedirect() bool

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

func (*GetDownloadInternalServerError) IsServerError

func (o *GetDownloadInternalServerError) IsServerError() bool

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

func (*GetDownloadInternalServerError) IsSuccess

func (o *GetDownloadInternalServerError) IsSuccess() bool

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

func (*GetDownloadInternalServerError) String

type GetDownloadNotFound

type GetDownloadNotFound struct {
	Payload *models.ErrorBody
}

GetDownloadNotFound describes a response with status code 404, with default header values.

The requested resource was not found.

func NewGetDownloadNotFound

func NewGetDownloadNotFound() *GetDownloadNotFound

NewGetDownloadNotFound creates a GetDownloadNotFound with default headers values

func (*GetDownloadNotFound) Error

func (o *GetDownloadNotFound) Error() string

func (*GetDownloadNotFound) GetPayload

func (o *GetDownloadNotFound) GetPayload() *models.ErrorBody

func (*GetDownloadNotFound) IsClientError

func (o *GetDownloadNotFound) IsClientError() bool

IsClientError returns true when this get download not found response has a 4xx status code

func (*GetDownloadNotFound) IsCode

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

IsCode returns true when this get download not found response a status code equal to that given

func (*GetDownloadNotFound) IsRedirect

func (o *GetDownloadNotFound) IsRedirect() bool

IsRedirect returns true when this get download not found response has a 3xx status code

func (*GetDownloadNotFound) IsServerError

func (o *GetDownloadNotFound) IsServerError() bool

IsServerError returns true when this get download not found response has a 5xx status code

func (*GetDownloadNotFound) IsSuccess

func (o *GetDownloadNotFound) IsSuccess() bool

IsSuccess returns true when this get download not found response has a 2xx status code

func (*GetDownloadNotFound) String

func (o *GetDownloadNotFound) String() string

type GetDownloadOK

type GetDownloadOK struct {
	Payload *models.URLResponse
}

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

successful operation

func NewGetDownloadOK

func NewGetDownloadOK() *GetDownloadOK

NewGetDownloadOK creates a GetDownloadOK with default headers values

func (*GetDownloadOK) Error

func (o *GetDownloadOK) Error() string

func (*GetDownloadOK) GetPayload

func (o *GetDownloadOK) GetPayload() *models.URLResponse

func (*GetDownloadOK) IsClientError

func (o *GetDownloadOK) IsClientError() bool

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

func (*GetDownloadOK) IsCode

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

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

func (*GetDownloadOK) IsRedirect

func (o *GetDownloadOK) IsRedirect() bool

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

func (*GetDownloadOK) IsServerError

func (o *GetDownloadOK) IsServerError() bool

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

func (*GetDownloadOK) IsSuccess

func (o *GetDownloadOK) IsSuccess() bool

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

func (*GetDownloadOK) String

func (o *GetDownloadOK) String() string

type GetDownloadParams

type GetDownloadParams struct {

	// ContentDisposition.
	ContentDisposition *string

	/* DownloadID.

	   Download ID
	*/
	DownloadID string

	// IssueRedirect.
	//
	// Default: true
	IssueRedirect *bool

	// RedirectToAuth.
	//
	// Default: true
	RedirectToAuth *bool

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

GetDownloadParams contains all the parameters to send to the API endpoint

for the get download operation.

Typically these are written to a http.Request.

func NewGetDownloadParams

func NewGetDownloadParams() *GetDownloadParams

NewGetDownloadParams creates a new GetDownloadParams 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 NewGetDownloadParamsWithContext

func NewGetDownloadParamsWithContext(ctx context.Context) *GetDownloadParams

NewGetDownloadParamsWithContext creates a new GetDownloadParams object with the ability to set a context for a request.

func NewGetDownloadParamsWithHTTPClient

func NewGetDownloadParamsWithHTTPClient(client *http.Client) *GetDownloadParams

NewGetDownloadParamsWithHTTPClient creates a new GetDownloadParams object with the ability to set a custom HTTPClient for a request.

func NewGetDownloadParamsWithTimeout

func NewGetDownloadParamsWithTimeout(timeout time.Duration) *GetDownloadParams

NewGetDownloadParamsWithTimeout creates a new GetDownloadParams object with the ability to set a timeout on a request.

func (*GetDownloadParams) SetContentDisposition

func (o *GetDownloadParams) SetContentDisposition(contentDisposition *string)

SetContentDisposition adds the contentDisposition to the get download params

func (*GetDownloadParams) SetContext

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

SetContext adds the context to the get download params

func (*GetDownloadParams) SetDefaults

func (o *GetDownloadParams) SetDefaults()

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

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

func (*GetDownloadParams) SetDownloadID

func (o *GetDownloadParams) SetDownloadID(downloadID string)

SetDownloadID adds the downloadId to the get download params

func (*GetDownloadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get download params

func (*GetDownloadParams) SetIssueRedirect

func (o *GetDownloadParams) SetIssueRedirect(issueRedirect *bool)

SetIssueRedirect adds the issueRedirect to the get download params

func (*GetDownloadParams) SetRedirectToAuth

func (o *GetDownloadParams) SetRedirectToAuth(redirectToAuth *bool)

SetRedirectToAuth adds the redirectToAuth to the get download params

func (*GetDownloadParams) SetTimeout

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

SetTimeout adds the timeout to the get download params

func (*GetDownloadParams) WithContentDisposition

func (o *GetDownloadParams) WithContentDisposition(contentDisposition *string) *GetDownloadParams

WithContentDisposition adds the contentDisposition to the get download params

func (*GetDownloadParams) WithContext

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

WithContext adds the context to the get download params

func (*GetDownloadParams) WithDefaults

func (o *GetDownloadParams) WithDefaults() *GetDownloadParams

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

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

func (*GetDownloadParams) WithDownloadID

func (o *GetDownloadParams) WithDownloadID(downloadID string) *GetDownloadParams

WithDownloadID adds the downloadID to the get download params

func (*GetDownloadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get download params

func (*GetDownloadParams) WithIssueRedirect

func (o *GetDownloadParams) WithIssueRedirect(issueRedirect *bool) *GetDownloadParams

WithIssueRedirect adds the issueRedirect to the get download params

func (*GetDownloadParams) WithRedirectToAuth

func (o *GetDownloadParams) WithRedirectToAuth(redirectToAuth *bool) *GetDownloadParams

WithRedirectToAuth adds the redirectToAuth to the get download params

func (*GetDownloadParams) WithTimeout

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

WithTimeout adds the timeout to the get download params

func (*GetDownloadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDownloadReader

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

GetDownloadReader is a Reader for the GetDownload structure.

func (*GetDownloadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDownloadRequestEntityTooLarge

type GetDownloadRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

GetDownloadRequestEntityTooLarge describes a response with status code 413, with default header values.

The request is over the size limit. Maximum bytes: %s

func NewGetDownloadRequestEntityTooLarge

func NewGetDownloadRequestEntityTooLarge() *GetDownloadRequestEntityTooLarge

NewGetDownloadRequestEntityTooLarge creates a GetDownloadRequestEntityTooLarge with default headers values

func (*GetDownloadRequestEntityTooLarge) Error

func (*GetDownloadRequestEntityTooLarge) GetPayload

func (*GetDownloadRequestEntityTooLarge) IsClientError

func (o *GetDownloadRequestEntityTooLarge) IsClientError() bool

IsClientError returns true when this get download request entity too large response has a 4xx status code

func (*GetDownloadRequestEntityTooLarge) IsCode

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

IsCode returns true when this get download request entity too large response a status code equal to that given

func (*GetDownloadRequestEntityTooLarge) IsRedirect

func (o *GetDownloadRequestEntityTooLarge) IsRedirect() bool

IsRedirect returns true when this get download request entity too large response has a 3xx status code

func (*GetDownloadRequestEntityTooLarge) IsServerError

func (o *GetDownloadRequestEntityTooLarge) IsServerError() bool

IsServerError returns true when this get download request entity too large response has a 5xx status code

func (*GetDownloadRequestEntityTooLarge) IsSuccess

func (o *GetDownloadRequestEntityTooLarge) IsSuccess() bool

IsSuccess returns true when this get download request entity too large response has a 2xx status code

func (*GetDownloadRequestEntityTooLarge) String

type GetDownloadRequestTimeout

type GetDownloadRequestTimeout struct {
	Payload *models.ErrorBody
}

GetDownloadRequestTimeout describes a response with status code 408, with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.

func NewGetDownloadRequestTimeout

func NewGetDownloadRequestTimeout() *GetDownloadRequestTimeout

NewGetDownloadRequestTimeout creates a GetDownloadRequestTimeout with default headers values

func (*GetDownloadRequestTimeout) Error

func (o *GetDownloadRequestTimeout) Error() string

func (*GetDownloadRequestTimeout) GetPayload

func (o *GetDownloadRequestTimeout) GetPayload() *models.ErrorBody

func (*GetDownloadRequestTimeout) IsClientError

func (o *GetDownloadRequestTimeout) IsClientError() bool

IsClientError returns true when this get download request timeout response has a 4xx status code

func (*GetDownloadRequestTimeout) IsCode

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

IsCode returns true when this get download request timeout response a status code equal to that given

func (*GetDownloadRequestTimeout) IsRedirect

func (o *GetDownloadRequestTimeout) IsRedirect() bool

IsRedirect returns true when this get download request timeout response has a 3xx status code

func (*GetDownloadRequestTimeout) IsServerError

func (o *GetDownloadRequestTimeout) IsServerError() bool

IsServerError returns true when this get download request timeout response has a 5xx status code

func (*GetDownloadRequestTimeout) IsSuccess

func (o *GetDownloadRequestTimeout) IsSuccess() bool

IsSuccess returns true when this get download request timeout response has a 2xx status code

func (*GetDownloadRequestTimeout) String

func (o *GetDownloadRequestTimeout) String() string

type GetDownloadServiceUnavailable

type GetDownloadServiceUnavailable struct {
	Payload *models.ErrorBody
}

GetDownloadServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).

func NewGetDownloadServiceUnavailable

func NewGetDownloadServiceUnavailable() *GetDownloadServiceUnavailable

NewGetDownloadServiceUnavailable creates a GetDownloadServiceUnavailable with default headers values

func (*GetDownloadServiceUnavailable) Error

func (*GetDownloadServiceUnavailable) GetPayload

func (*GetDownloadServiceUnavailable) IsClientError

func (o *GetDownloadServiceUnavailable) IsClientError() bool

IsClientError returns true when this get download service unavailable response has a 4xx status code

func (*GetDownloadServiceUnavailable) IsCode

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

IsCode returns true when this get download service unavailable response a status code equal to that given

func (*GetDownloadServiceUnavailable) IsRedirect

func (o *GetDownloadServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this get download service unavailable response has a 3xx status code

func (*GetDownloadServiceUnavailable) IsServerError

func (o *GetDownloadServiceUnavailable) IsServerError() bool

IsServerError returns true when this get download service unavailable response has a 5xx status code

func (*GetDownloadServiceUnavailable) IsSuccess

func (o *GetDownloadServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this get download service unavailable response has a 2xx status code

func (*GetDownloadServiceUnavailable) String

type GetDownloadTooManyRequests

type GetDownloadTooManyRequests struct {
	Payload *models.ErrorBody
}

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

Rate limit exceeded the maximum. Retry the request in [%s] seconds

func NewGetDownloadTooManyRequests

func NewGetDownloadTooManyRequests() *GetDownloadTooManyRequests

NewGetDownloadTooManyRequests creates a GetDownloadTooManyRequests with default headers values

func (*GetDownloadTooManyRequests) Error

func (*GetDownloadTooManyRequests) GetPayload

func (o *GetDownloadTooManyRequests) GetPayload() *models.ErrorBody

func (*GetDownloadTooManyRequests) IsClientError

func (o *GetDownloadTooManyRequests) IsClientError() bool

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

func (*GetDownloadTooManyRequests) IsCode

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

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

func (*GetDownloadTooManyRequests) IsRedirect

func (o *GetDownloadTooManyRequests) IsRedirect() bool

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

func (*GetDownloadTooManyRequests) IsServerError

func (o *GetDownloadTooManyRequests) IsServerError() bool

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

func (*GetDownloadTooManyRequests) IsSuccess

func (o *GetDownloadTooManyRequests) IsSuccess() bool

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

func (*GetDownloadTooManyRequests) String

func (o *GetDownloadTooManyRequests) String() string

type GetDownloadUnauthorized

type GetDownloadUnauthorized struct {
	Payload *models.ErrorBody
}

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

No authentication bearer token specified in authorization header.

func NewGetDownloadUnauthorized

func NewGetDownloadUnauthorized() *GetDownloadUnauthorized

NewGetDownloadUnauthorized creates a GetDownloadUnauthorized with default headers values

func (*GetDownloadUnauthorized) Error

func (o *GetDownloadUnauthorized) Error() string

func (*GetDownloadUnauthorized) GetPayload

func (o *GetDownloadUnauthorized) GetPayload() *models.ErrorBody

func (*GetDownloadUnauthorized) IsClientError

func (o *GetDownloadUnauthorized) IsClientError() bool

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

func (*GetDownloadUnauthorized) IsCode

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

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

func (*GetDownloadUnauthorized) IsRedirect

func (o *GetDownloadUnauthorized) IsRedirect() bool

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

func (*GetDownloadUnauthorized) IsServerError

func (o *GetDownloadUnauthorized) IsServerError() bool

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

func (*GetDownloadUnauthorized) IsSuccess

func (o *GetDownloadUnauthorized) IsSuccess() bool

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

func (*GetDownloadUnauthorized) String

func (o *GetDownloadUnauthorized) String() string

type GetDownloadUnsupportedMediaType

type GetDownloadUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

GetDownloadUnsupportedMediaType describes a response with status code 415, with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.

func NewGetDownloadUnsupportedMediaType

func NewGetDownloadUnsupportedMediaType() *GetDownloadUnsupportedMediaType

NewGetDownloadUnsupportedMediaType creates a GetDownloadUnsupportedMediaType with default headers values

func (*GetDownloadUnsupportedMediaType) Error

func (*GetDownloadUnsupportedMediaType) GetPayload

func (*GetDownloadUnsupportedMediaType) IsClientError

func (o *GetDownloadUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this get download unsupported media type response has a 4xx status code

func (*GetDownloadUnsupportedMediaType) IsCode

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

IsCode returns true when this get download unsupported media type response a status code equal to that given

func (*GetDownloadUnsupportedMediaType) IsRedirect

func (o *GetDownloadUnsupportedMediaType) IsRedirect() bool

IsRedirect returns true when this get download unsupported media type response has a 3xx status code

func (*GetDownloadUnsupportedMediaType) IsServerError

func (o *GetDownloadUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this get download unsupported media type response has a 5xx status code

func (*GetDownloadUnsupportedMediaType) IsSuccess

func (o *GetDownloadUnsupportedMediaType) IsSuccess() bool

IsSuccess returns true when this get download unsupported media type response has a 2xx status code

func (*GetDownloadUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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