marketplace_downloads

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 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 marketplace downloads API

func (*Client) DownloadHistoryUsingGET

func (a *Client) DownloadHistoryUsingGET(params *DownloadHistoryUsingGETParams, opts ...ClientOption) (*DownloadHistoryUsingGETOK, error)

DownloadHistoryUsingGET gets download history

Get download history for the content downloaded from Marketplace

func (*Client) DownloadRequestUsingPOST

func (a *Client) DownloadRequestUsingPOST(params *DownloadRequestUsingPOSTParams, opts ...ClientOption) (*DownloadRequestUsingPOSTAccepted, error)

DownloadRequestUsingPOST submits download request

Submit a download request for a content

func (*Client) GetRequestByIDUsingGET

func (a *Client) GetRequestByIDUsingGET(params *GetRequestByIDUsingGETParams, opts ...ClientOption) (*GetRequestByIDUsingGETOK, error)

GetRequestByIDUsingGET gets download request

Get a download request by Id

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	DownloadHistoryUsingGET(params *DownloadHistoryUsingGETParams, opts ...ClientOption) (*DownloadHistoryUsingGETOK, error)

	DownloadRequestUsingPOST(params *DownloadRequestUsingPOSTParams, opts ...ClientOption) (*DownloadRequestUsingPOSTAccepted, error)

	GetRequestByIDUsingGET(params *GetRequestByIDUsingGETParams, opts ...ClientOption) (*GetRequestByIDUsingGETOK, 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 marketplace downloads API client.

type DownloadHistoryUsingGETOK

type DownloadHistoryUsingGETOK struct {
	Payload *models.MarketplaceDownloadHistory
}
DownloadHistoryUsingGETOK describes a response with status code 200, with default header values.

Download history

func NewDownloadHistoryUsingGETOK

func NewDownloadHistoryUsingGETOK() *DownloadHistoryUsingGETOK

NewDownloadHistoryUsingGETOK creates a DownloadHistoryUsingGETOK with default headers values

func (*DownloadHistoryUsingGETOK) Error

func (o *DownloadHistoryUsingGETOK) Error() string

func (*DownloadHistoryUsingGETOK) GetPayload

type DownloadHistoryUsingGETParams

type DownloadHistoryUsingGETParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about
	*/
	APIVersion *string

	/* ContentName.

	   Search based on content name
	*/
	ContentName *string

	/* ContentType.

	   Search based on content type
	*/
	ContentType *string

	/* Status.

	   Search based on download status
	*/
	Status *string

	/* TargetIds.

	   Search based on target Ids
	*/
	TargetIds []string

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

DownloadHistoryUsingGETParams contains all the parameters to send to the API endpoint

for the download history using g e t operation.

Typically these are written to a http.Request.

func NewDownloadHistoryUsingGETParams

func NewDownloadHistoryUsingGETParams() *DownloadHistoryUsingGETParams

NewDownloadHistoryUsingGETParams creates a new DownloadHistoryUsingGETParams 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 NewDownloadHistoryUsingGETParamsWithContext

func NewDownloadHistoryUsingGETParamsWithContext(ctx context.Context) *DownloadHistoryUsingGETParams

NewDownloadHistoryUsingGETParamsWithContext creates a new DownloadHistoryUsingGETParams object with the ability to set a context for a request.

func NewDownloadHistoryUsingGETParamsWithHTTPClient

func NewDownloadHistoryUsingGETParamsWithHTTPClient(client *http.Client) *DownloadHistoryUsingGETParams

NewDownloadHistoryUsingGETParamsWithHTTPClient creates a new DownloadHistoryUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewDownloadHistoryUsingGETParamsWithTimeout

func NewDownloadHistoryUsingGETParamsWithTimeout(timeout time.Duration) *DownloadHistoryUsingGETParams

NewDownloadHistoryUsingGETParamsWithTimeout creates a new DownloadHistoryUsingGETParams object with the ability to set a timeout on a request.

func (*DownloadHistoryUsingGETParams) SetAPIVersion

func (o *DownloadHistoryUsingGETParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the download history using get params

func (*DownloadHistoryUsingGETParams) SetContentName

func (o *DownloadHistoryUsingGETParams) SetContentName(contentName *string)

SetContentName adds the contentName to the download history using get params

func (*DownloadHistoryUsingGETParams) SetContentType

func (o *DownloadHistoryUsingGETParams) SetContentType(contentType *string)

SetContentType adds the contentType to the download history using get params

func (*DownloadHistoryUsingGETParams) SetContext

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

SetContext adds the context to the download history using get params

func (*DownloadHistoryUsingGETParams) SetDefaults added in v0.2.20

func (o *DownloadHistoryUsingGETParams) SetDefaults()

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

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

func (*DownloadHistoryUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download history using get params

func (*DownloadHistoryUsingGETParams) SetStatus

func (o *DownloadHistoryUsingGETParams) SetStatus(status *string)

SetStatus adds the status to the download history using get params

func (*DownloadHistoryUsingGETParams) SetTargetIds

func (o *DownloadHistoryUsingGETParams) SetTargetIds(targetIds []string)

SetTargetIds adds the targetIds to the download history using get params

func (*DownloadHistoryUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the download history using get params

func (*DownloadHistoryUsingGETParams) WithAPIVersion

func (o *DownloadHistoryUsingGETParams) WithAPIVersion(aPIVersion *string) *DownloadHistoryUsingGETParams

WithAPIVersion adds the aPIVersion to the download history using get params

func (*DownloadHistoryUsingGETParams) WithContentName

func (o *DownloadHistoryUsingGETParams) WithContentName(contentName *string) *DownloadHistoryUsingGETParams

WithContentName adds the contentName to the download history using get params

func (*DownloadHistoryUsingGETParams) WithContentType

func (o *DownloadHistoryUsingGETParams) WithContentType(contentType *string) *DownloadHistoryUsingGETParams

WithContentType adds the contentType to the download history using get params

func (*DownloadHistoryUsingGETParams) WithContext

WithContext adds the context to the download history using get params

func (*DownloadHistoryUsingGETParams) WithDefaults added in v0.2.20

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

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

func (*DownloadHistoryUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the download history using get params

func (*DownloadHistoryUsingGETParams) WithStatus

WithStatus adds the status to the download history using get params

func (*DownloadHistoryUsingGETParams) WithTargetIds

WithTargetIds adds the targetIds to the download history using get params

func (*DownloadHistoryUsingGETParams) WithTimeout

WithTimeout adds the timeout to the download history using get params

func (*DownloadHistoryUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DownloadHistoryUsingGETReader

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

DownloadHistoryUsingGETReader is a Reader for the DownloadHistoryUsingGET structure.

func (*DownloadHistoryUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadRequestUsingPOSTAccepted

type DownloadRequestUsingPOSTAccepted struct {
	Payload *models.MarketplaceContentDownloadRequest
}
DownloadRequestUsingPOSTAccepted describes a response with status code 202, with default header values.

Submitted download request

func NewDownloadRequestUsingPOSTAccepted

func NewDownloadRequestUsingPOSTAccepted() *DownloadRequestUsingPOSTAccepted

NewDownloadRequestUsingPOSTAccepted creates a DownloadRequestUsingPOSTAccepted with default headers values

func (*DownloadRequestUsingPOSTAccepted) Error

func (*DownloadRequestUsingPOSTAccepted) GetPayload

type DownloadRequestUsingPOSTBadRequest

type DownloadRequestUsingPOSTBadRequest struct {
	Payload *models.Error
}
DownloadRequestUsingPOSTBadRequest describes a response with status code 400, with default header values.

Invalid source type

func NewDownloadRequestUsingPOSTBadRequest

func NewDownloadRequestUsingPOSTBadRequest() *DownloadRequestUsingPOSTBadRequest

NewDownloadRequestUsingPOSTBadRequest creates a DownloadRequestUsingPOSTBadRequest with default headers values

func (*DownloadRequestUsingPOSTBadRequest) Error

func (*DownloadRequestUsingPOSTBadRequest) GetPayload added in v0.2.9

type DownloadRequestUsingPOSTNotFound

type DownloadRequestUsingPOSTNotFound struct {
	Payload *models.Error
}
DownloadRequestUsingPOSTNotFound describes a response with status code 404, with default header values.

source not found

func NewDownloadRequestUsingPOSTNotFound

func NewDownloadRequestUsingPOSTNotFound() *DownloadRequestUsingPOSTNotFound

NewDownloadRequestUsingPOSTNotFound creates a DownloadRequestUsingPOSTNotFound with default headers values

func (*DownloadRequestUsingPOSTNotFound) Error

func (*DownloadRequestUsingPOSTNotFound) GetPayload added in v0.2.9

type DownloadRequestUsingPOSTParams

type DownloadRequestUsingPOSTParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about
	*/
	APIVersion *string

	/* DownloadRequest.

	   downloadRequest
	*/
	DownloadRequest *models.MarketplaceContentDownloadRequest

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

DownloadRequestUsingPOSTParams contains all the parameters to send to the API endpoint

for the download request using p o s t operation.

Typically these are written to a http.Request.

func NewDownloadRequestUsingPOSTParams

func NewDownloadRequestUsingPOSTParams() *DownloadRequestUsingPOSTParams

NewDownloadRequestUsingPOSTParams creates a new DownloadRequestUsingPOSTParams 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 NewDownloadRequestUsingPOSTParamsWithContext

func NewDownloadRequestUsingPOSTParamsWithContext(ctx context.Context) *DownloadRequestUsingPOSTParams

NewDownloadRequestUsingPOSTParamsWithContext creates a new DownloadRequestUsingPOSTParams object with the ability to set a context for a request.

func NewDownloadRequestUsingPOSTParamsWithHTTPClient

func NewDownloadRequestUsingPOSTParamsWithHTTPClient(client *http.Client) *DownloadRequestUsingPOSTParams

NewDownloadRequestUsingPOSTParamsWithHTTPClient creates a new DownloadRequestUsingPOSTParams object with the ability to set a custom HTTPClient for a request.

func NewDownloadRequestUsingPOSTParamsWithTimeout

func NewDownloadRequestUsingPOSTParamsWithTimeout(timeout time.Duration) *DownloadRequestUsingPOSTParams

NewDownloadRequestUsingPOSTParamsWithTimeout creates a new DownloadRequestUsingPOSTParams object with the ability to set a timeout on a request.

func (*DownloadRequestUsingPOSTParams) SetAPIVersion

func (o *DownloadRequestUsingPOSTParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) SetContext

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

SetContext adds the context to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) SetDefaults added in v0.2.20

func (o *DownloadRequestUsingPOSTParams) SetDefaults()

SetDefaults hydrates default values in the download request using p o s t params (not the query body).

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

func (*DownloadRequestUsingPOSTParams) SetDownloadRequest

func (o *DownloadRequestUsingPOSTParams) SetDownloadRequest(downloadRequest *models.MarketplaceContentDownloadRequest)

SetDownloadRequest adds the downloadRequest to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) SetTimeout

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

SetTimeout adds the timeout to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) WithAPIVersion

WithAPIVersion adds the aPIVersion to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) WithContext

WithContext adds the context to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the download request using p o s t params (not the query body).

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

func (*DownloadRequestUsingPOSTParams) WithDownloadRequest

WithDownloadRequest adds the downloadRequest to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) WithTimeout

WithTimeout adds the timeout to the download request using p o s t params

func (*DownloadRequestUsingPOSTParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DownloadRequestUsingPOSTReader

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

DownloadRequestUsingPOSTReader is a Reader for the DownloadRequestUsingPOST structure.

func (*DownloadRequestUsingPOSTReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRequestByIDUsingGETNotFound

type GetRequestByIDUsingGETNotFound struct {
	Payload *models.Error
}
GetRequestByIDUsingGETNotFound describes a response with status code 404, with default header values.

request not found

func NewGetRequestByIDUsingGETNotFound

func NewGetRequestByIDUsingGETNotFound() *GetRequestByIDUsingGETNotFound

NewGetRequestByIDUsingGETNotFound creates a GetRequestByIDUsingGETNotFound with default headers values

func (*GetRequestByIDUsingGETNotFound) Error

func (*GetRequestByIDUsingGETNotFound) GetPayload added in v0.2.9

func (o *GetRequestByIDUsingGETNotFound) GetPayload() *models.Error

type GetRequestByIDUsingGETOK

type GetRequestByIDUsingGETOK struct {
	Payload *models.MarketplaceContentDownloadRequest
}
GetRequestByIDUsingGETOK describes a response with status code 200, with default header values.

Download request for id

func NewGetRequestByIDUsingGETOK

func NewGetRequestByIDUsingGETOK() *GetRequestByIDUsingGETOK

NewGetRequestByIDUsingGETOK creates a GetRequestByIDUsingGETOK with default headers values

func (*GetRequestByIDUsingGETOK) Error

func (o *GetRequestByIDUsingGETOK) Error() string

func (*GetRequestByIDUsingGETOK) GetPayload

type GetRequestByIDUsingGETParams

type GetRequestByIDUsingGETParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about
	*/
	APIVersion *string

	/* ID.

	   ID of the download request

	   Format: uuid
	*/
	ID strfmt.UUID

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

GetRequestByIDUsingGETParams contains all the parameters to send to the API endpoint

for the get request by Id using g e t operation.

Typically these are written to a http.Request.

func NewGetRequestByIDUsingGETParams

func NewGetRequestByIDUsingGETParams() *GetRequestByIDUsingGETParams

NewGetRequestByIDUsingGETParams creates a new GetRequestByIDUsingGETParams 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 NewGetRequestByIDUsingGETParamsWithContext

func NewGetRequestByIDUsingGETParamsWithContext(ctx context.Context) *GetRequestByIDUsingGETParams

NewGetRequestByIDUsingGETParamsWithContext creates a new GetRequestByIDUsingGETParams object with the ability to set a context for a request.

func NewGetRequestByIDUsingGETParamsWithHTTPClient

func NewGetRequestByIDUsingGETParamsWithHTTPClient(client *http.Client) *GetRequestByIDUsingGETParams

NewGetRequestByIDUsingGETParamsWithHTTPClient creates a new GetRequestByIDUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetRequestByIDUsingGETParamsWithTimeout

func NewGetRequestByIDUsingGETParamsWithTimeout(timeout time.Duration) *GetRequestByIDUsingGETParams

NewGetRequestByIDUsingGETParamsWithTimeout creates a new GetRequestByIDUsingGETParams object with the ability to set a timeout on a request.

func (*GetRequestByIDUsingGETParams) SetAPIVersion

func (o *GetRequestByIDUsingGETParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) SetContext

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

SetContext adds the context to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) SetDefaults added in v0.2.20

func (o *GetRequestByIDUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the get request by Id using get params (not the query body).

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

func (*GetRequestByIDUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) SetID

SetID adds the id to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) WithAPIVersion

func (o *GetRequestByIDUsingGETParams) WithAPIVersion(aPIVersion *string) *GetRequestByIDUsingGETParams

WithAPIVersion adds the aPIVersion to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) WithContext

WithContext adds the context to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get request by Id using get params (not the query body).

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

func (*GetRequestByIDUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) WithID

WithID adds the id to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get request by Id using get params

func (*GetRequestByIDUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRequestByIDUsingGETReader

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

GetRequestByIDUsingGETReader is a Reader for the GetRequestByIDUsingGET structure.

func (*GetRequestByIDUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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