marketplace_downloads

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 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 New

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

New creates a new marketplace downloads API client.

func (*Client) DownloadHistoryUsingGET

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

DownloadHistoryUsingGET gets download history

Get download history for the content downloaded from Marketplace

func (*Client) DownloadRequestUsingPOST

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

DownloadRequestUsingPOST submits download request

Submit a download request for a content

func (*Client) GetRequestByIDUsingGET

func (a *Client) GetRequestByIDUsingGET(params *GetRequestByIDUsingGETParams) (*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 DownloadHistoryUsingGETOK

type DownloadHistoryUsingGETOK struct {
	Payload *models.MarketplaceDownloadHistory
}

DownloadHistoryUsingGETOK handles this case 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 values initialized.

func NewDownloadHistoryUsingGETParamsWithContext

func NewDownloadHistoryUsingGETParamsWithContext(ctx context.Context) *DownloadHistoryUsingGETParams

NewDownloadHistoryUsingGETParamsWithContext creates a new DownloadHistoryUsingGETParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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 handles this case 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 values initialized.

func NewDownloadRequestUsingPOSTParamsWithContext

func NewDownloadRequestUsingPOSTParamsWithContext(ctx context.Context) *DownloadRequestUsingPOSTParams

NewDownloadRequestUsingPOSTParamsWithContext creates a new DownloadRequestUsingPOSTParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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

	*/
	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 values initialized.

func NewGetRequestByIDUsingGETParamsWithContext

func NewGetRequestByIDUsingGETParamsWithContext(ctx context.Context) *GetRequestByIDUsingGETParams

NewGetRequestByIDUsingGETParamsWithContext creates a new GetRequestByIDUsingGETParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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