Documentation ¶
Index ¶
- type Client
- func (a *Client) DownloadHistoryUsingGET(params *DownloadHistoryUsingGETParams, opts ...ClientOption) (*DownloadHistoryUsingGETOK, error)
- func (a *Client) DownloadRequestUsingPOST(params *DownloadRequestUsingPOSTParams, opts ...ClientOption) (*DownloadRequestUsingPOSTAccepted, error)
- func (a *Client) GetRequestByIDUsingGET(params *GetRequestByIDUsingGETParams, opts ...ClientOption) (*GetRequestByIDUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DownloadHistoryUsingGETOK
- type DownloadHistoryUsingGETParams
- func NewDownloadHistoryUsingGETParams() *DownloadHistoryUsingGETParams
- func NewDownloadHistoryUsingGETParamsWithContext(ctx context.Context) *DownloadHistoryUsingGETParams
- func NewDownloadHistoryUsingGETParamsWithHTTPClient(client *http.Client) *DownloadHistoryUsingGETParams
- func NewDownloadHistoryUsingGETParamsWithTimeout(timeout time.Duration) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) SetAPIVersion(aPIVersion *string)
- func (o *DownloadHistoryUsingGETParams) SetContentName(contentName *string)
- func (o *DownloadHistoryUsingGETParams) SetContentType(contentType *string)
- func (o *DownloadHistoryUsingGETParams) SetContext(ctx context.Context)
- func (o *DownloadHistoryUsingGETParams) SetDefaults()
- func (o *DownloadHistoryUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *DownloadHistoryUsingGETParams) SetStatus(status *string)
- func (o *DownloadHistoryUsingGETParams) SetTargetIds(targetIds []string)
- func (o *DownloadHistoryUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *DownloadHistoryUsingGETParams) WithAPIVersion(aPIVersion *string) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WithContentName(contentName *string) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WithContentType(contentType *string) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WithContext(ctx context.Context) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WithDefaults() *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WithHTTPClient(client *http.Client) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WithStatus(status *string) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WithTargetIds(targetIds []string) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WithTimeout(timeout time.Duration) *DownloadHistoryUsingGETParams
- func (o *DownloadHistoryUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DownloadHistoryUsingGETReader
- type DownloadRequestUsingPOSTAccepted
- type DownloadRequestUsingPOSTBadRequest
- type DownloadRequestUsingPOSTNotFound
- type DownloadRequestUsingPOSTParams
- func NewDownloadRequestUsingPOSTParams() *DownloadRequestUsingPOSTParams
- func NewDownloadRequestUsingPOSTParamsWithContext(ctx context.Context) *DownloadRequestUsingPOSTParams
- func NewDownloadRequestUsingPOSTParamsWithHTTPClient(client *http.Client) *DownloadRequestUsingPOSTParams
- func NewDownloadRequestUsingPOSTParamsWithTimeout(timeout time.Duration) *DownloadRequestUsingPOSTParams
- func (o *DownloadRequestUsingPOSTParams) SetAPIVersion(aPIVersion *string)
- func (o *DownloadRequestUsingPOSTParams) SetContext(ctx context.Context)
- func (o *DownloadRequestUsingPOSTParams) SetDefaults()
- func (o *DownloadRequestUsingPOSTParams) SetDownloadRequest(downloadRequest *models.MarketplaceContentDownloadRequest)
- func (o *DownloadRequestUsingPOSTParams) SetHTTPClient(client *http.Client)
- func (o *DownloadRequestUsingPOSTParams) SetTimeout(timeout time.Duration)
- func (o *DownloadRequestUsingPOSTParams) WithAPIVersion(aPIVersion *string) *DownloadRequestUsingPOSTParams
- func (o *DownloadRequestUsingPOSTParams) WithContext(ctx context.Context) *DownloadRequestUsingPOSTParams
- func (o *DownloadRequestUsingPOSTParams) WithDefaults() *DownloadRequestUsingPOSTParams
- func (o *DownloadRequestUsingPOSTParams) WithDownloadRequest(downloadRequest *models.MarketplaceContentDownloadRequest) *DownloadRequestUsingPOSTParams
- func (o *DownloadRequestUsingPOSTParams) WithHTTPClient(client *http.Client) *DownloadRequestUsingPOSTParams
- func (o *DownloadRequestUsingPOSTParams) WithTimeout(timeout time.Duration) *DownloadRequestUsingPOSTParams
- func (o *DownloadRequestUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DownloadRequestUsingPOSTReader
- type GetRequestByIDUsingGETNotFound
- type GetRequestByIDUsingGETOK
- type GetRequestByIDUsingGETParams
- func NewGetRequestByIDUsingGETParams() *GetRequestByIDUsingGETParams
- func NewGetRequestByIDUsingGETParamsWithContext(ctx context.Context) *GetRequestByIDUsingGETParams
- func NewGetRequestByIDUsingGETParamsWithHTTPClient(client *http.Client) *GetRequestByIDUsingGETParams
- func NewGetRequestByIDUsingGETParamsWithTimeout(timeout time.Duration) *GetRequestByIDUsingGETParams
- func (o *GetRequestByIDUsingGETParams) SetAPIVersion(aPIVersion *string)
- func (o *GetRequestByIDUsingGETParams) SetContext(ctx context.Context)
- func (o *GetRequestByIDUsingGETParams) SetDefaults()
- func (o *GetRequestByIDUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetRequestByIDUsingGETParams) SetID(id strfmt.UUID)
- func (o *GetRequestByIDUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetRequestByIDUsingGETParams) WithAPIVersion(aPIVersion *string) *GetRequestByIDUsingGETParams
- func (o *GetRequestByIDUsingGETParams) WithContext(ctx context.Context) *GetRequestByIDUsingGETParams
- func (o *GetRequestByIDUsingGETParams) WithDefaults() *GetRequestByIDUsingGETParams
- func (o *GetRequestByIDUsingGETParams) WithHTTPClient(client *http.Client) *GetRequestByIDUsingGETParams
- func (o *GetRequestByIDUsingGETParams) WithID(id strfmt.UUID) *GetRequestByIDUsingGETParams
- func (o *GetRequestByIDUsingGETParams) WithTimeout(timeout time.Duration) *GetRequestByIDUsingGETParams
- func (o *GetRequestByIDUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRequestByIDUsingGETReader
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 ¶
func (o *DownloadHistoryUsingGETOK) GetPayload() *models.MarketplaceDownloadHistory
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 ¶
func (o *DownloadHistoryUsingGETParams) WithContext(ctx context.Context) *DownloadHistoryUsingGETParams
WithContext adds the context to the download history using get params
func (*DownloadHistoryUsingGETParams) WithDefaults ¶ added in v0.2.20
func (o *DownloadHistoryUsingGETParams) WithDefaults() *DownloadHistoryUsingGETParams
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 ¶
func (o *DownloadHistoryUsingGETParams) WithHTTPClient(client *http.Client) *DownloadHistoryUsingGETParams
WithHTTPClient adds the HTTPClient to the download history using get params
func (*DownloadHistoryUsingGETParams) WithStatus ¶
func (o *DownloadHistoryUsingGETParams) WithStatus(status *string) *DownloadHistoryUsingGETParams
WithStatus adds the status to the download history using get params
func (*DownloadHistoryUsingGETParams) WithTargetIds ¶
func (o *DownloadHistoryUsingGETParams) WithTargetIds(targetIds []string) *DownloadHistoryUsingGETParams
WithTargetIds adds the targetIds to the download history using get params
func (*DownloadHistoryUsingGETParams) WithTimeout ¶
func (o *DownloadHistoryUsingGETParams) WithTimeout(timeout time.Duration) *DownloadHistoryUsingGETParams
WithTimeout adds the timeout to the download history using get params
func (*DownloadHistoryUsingGETParams) WriteToRequest ¶
func (o *DownloadHistoryUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *DownloadRequestUsingPOSTAccepted) Error() string
func (*DownloadRequestUsingPOSTAccepted) GetPayload ¶
func (o *DownloadRequestUsingPOSTAccepted) GetPayload() *models.MarketplaceContentDownloadRequest
type DownloadRequestUsingPOSTBadRequest ¶
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 (o *DownloadRequestUsingPOSTBadRequest) Error() string
func (*DownloadRequestUsingPOSTBadRequest) GetPayload ¶ added in v0.2.9
func (o *DownloadRequestUsingPOSTBadRequest) GetPayload() *models.Error
type DownloadRequestUsingPOSTNotFound ¶
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 (o *DownloadRequestUsingPOSTNotFound) Error() string
func (*DownloadRequestUsingPOSTNotFound) GetPayload ¶ added in v0.2.9
func (o *DownloadRequestUsingPOSTNotFound) GetPayload() *models.Error
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 ¶
func (o *DownloadRequestUsingPOSTParams) WithAPIVersion(aPIVersion *string) *DownloadRequestUsingPOSTParams
WithAPIVersion adds the aPIVersion to the download request using p o s t params
func (*DownloadRequestUsingPOSTParams) WithContext ¶
func (o *DownloadRequestUsingPOSTParams) WithContext(ctx context.Context) *DownloadRequestUsingPOSTParams
WithContext adds the context to the download request using p o s t params
func (*DownloadRequestUsingPOSTParams) WithDefaults ¶ added in v0.2.20
func (o *DownloadRequestUsingPOSTParams) WithDefaults() *DownloadRequestUsingPOSTParams
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 ¶
func (o *DownloadRequestUsingPOSTParams) WithDownloadRequest(downloadRequest *models.MarketplaceContentDownloadRequest) *DownloadRequestUsingPOSTParams
WithDownloadRequest adds the downloadRequest to the download request using p o s t params
func (*DownloadRequestUsingPOSTParams) WithHTTPClient ¶
func (o *DownloadRequestUsingPOSTParams) WithHTTPClient(client *http.Client) *DownloadRequestUsingPOSTParams
WithHTTPClient adds the HTTPClient to the download request using p o s t params
func (*DownloadRequestUsingPOSTParams) WithTimeout ¶
func (o *DownloadRequestUsingPOSTParams) WithTimeout(timeout time.Duration) *DownloadRequestUsingPOSTParams
WithTimeout adds the timeout to the download request using p o s t params
func (*DownloadRequestUsingPOSTParams) WriteToRequest ¶
func (o *DownloadRequestUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *GetRequestByIDUsingGETNotFound) Error() string
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 ¶
func (o *GetRequestByIDUsingGETOK) GetPayload() *models.MarketplaceContentDownloadRequest
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 ¶
func (o *GetRequestByIDUsingGETParams) SetID(id strfmt.UUID)
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 ¶
func (o *GetRequestByIDUsingGETParams) WithContext(ctx context.Context) *GetRequestByIDUsingGETParams
WithContext adds the context to the get request by Id using get params
func (*GetRequestByIDUsingGETParams) WithDefaults ¶ added in v0.2.20
func (o *GetRequestByIDUsingGETParams) WithDefaults() *GetRequestByIDUsingGETParams
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 ¶
func (o *GetRequestByIDUsingGETParams) WithHTTPClient(client *http.Client) *GetRequestByIDUsingGETParams
WithHTTPClient adds the HTTPClient to the get request by Id using get params
func (*GetRequestByIDUsingGETParams) WithID ¶
func (o *GetRequestByIDUsingGETParams) WithID(id strfmt.UUID) *GetRequestByIDUsingGETParams
WithID adds the id to the get request by Id using get params
func (*GetRequestByIDUsingGETParams) WithTimeout ¶
func (o *GetRequestByIDUsingGETParams) WithTimeout(timeout time.Duration) *GetRequestByIDUsingGETParams
WithTimeout adds the timeout to the get request by Id using get params
func (*GetRequestByIDUsingGETParams) WriteToRequest ¶
func (o *GetRequestByIDUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.