marketplace

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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 API

func (*Client) FilterItemsUsingGET

func (a *Client) FilterItemsUsingGET(params *FilterItemsUsingGETParams, opts ...ClientOption) (*FilterItemsUsingGETOK, error)

FilterItemsUsingGET lists filter entries for a filter

func (*Client) FiltersUsingGET

func (a *Client) FiltersUsingGET(params *FiltersUsingGETParams, opts ...ClientOption) (*FiltersUsingGETOK, error)

FiltersUsingGET lists filters by endpoint

func (*Client) GetDetails

func (a *Client) GetDetails(params *GetDetailsParams, opts ...ClientOption) (*GetDetailsOK, error)

GetDetails gets content details

func (a *Client) GetLink(params *GetLinkParams, opts ...ClientOption) (*GetLinkOK, error)

GetLink gets link to the content

func (*Client) GetReviews

func (a *Client) GetReviews(params *GetReviewsParams, opts ...ClientOption) (*GetReviewsOK, error)

GetReviews gets reviews for the content

func (*Client) Search

func (a *Client) Search(params *SearchParams, opts ...ClientOption) (*SearchOK, error)

Search searches for content based on the search term

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 {
	FilterItemsUsingGET(params *FilterItemsUsingGETParams, opts ...ClientOption) (*FilterItemsUsingGETOK, error)

	FiltersUsingGET(params *FiltersUsingGETParams, opts ...ClientOption) (*FiltersUsingGETOK, error)

	GetDetails(params *GetDetailsParams, opts ...ClientOption) (*GetDetailsOK, error)

	GetLink(params *GetLinkParams, opts ...ClientOption) (*GetLinkOK, error)

	GetReviews(params *GetReviewsParams, opts ...ClientOption) (*GetReviewsOK, error)

	Search(params *SearchParams, opts ...ClientOption) (*SearchOK, 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 API client.

type FilterItemsUsingGETNotFound

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

Source or Filter not found

func NewFilterItemsUsingGETNotFound

func NewFilterItemsUsingGETNotFound() *FilterItemsUsingGETNotFound

NewFilterItemsUsingGETNotFound creates a FilterItemsUsingGETNotFound with default headers values

func (*FilterItemsUsingGETNotFound) Error

func (*FilterItemsUsingGETNotFound) GetPayload added in v0.2.9

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

type FilterItemsUsingGETOK

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

Filter entries

func NewFilterItemsUsingGETOK

func NewFilterItemsUsingGETOK() *FilterItemsUsingGETOK

NewFilterItemsUsingGETOK creates a FilterItemsUsingGETOK with default headers values

func (*FilterItemsUsingGETOK) Error

func (o *FilterItemsUsingGETOK) Error() string

func (*FilterItemsUsingGETOK) GetPayload

type FilterItemsUsingGETParams

type FilterItemsUsingGETParams struct {

	/* APIVersion.

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

	/* FilterID.

	   Filter type
	*/
	FilterID string

	/* Name.

	   Filters items by name
	*/
	Name *string

	/* SourceID.

	   Content Source Id

	   Format: uuid
	*/
	SourceID strfmt.UUID

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

FilterItemsUsingGETParams contains all the parameters to send to the API endpoint

for the filter items using g e t operation.

Typically these are written to a http.Request.

func NewFilterItemsUsingGETParams

func NewFilterItemsUsingGETParams() *FilterItemsUsingGETParams

NewFilterItemsUsingGETParams creates a new FilterItemsUsingGETParams 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 NewFilterItemsUsingGETParamsWithContext

func NewFilterItemsUsingGETParamsWithContext(ctx context.Context) *FilterItemsUsingGETParams

NewFilterItemsUsingGETParamsWithContext creates a new FilterItemsUsingGETParams object with the ability to set a context for a request.

func NewFilterItemsUsingGETParamsWithHTTPClient

func NewFilterItemsUsingGETParamsWithHTTPClient(client *http.Client) *FilterItemsUsingGETParams

NewFilterItemsUsingGETParamsWithHTTPClient creates a new FilterItemsUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewFilterItemsUsingGETParamsWithTimeout

func NewFilterItemsUsingGETParamsWithTimeout(timeout time.Duration) *FilterItemsUsingGETParams

NewFilterItemsUsingGETParamsWithTimeout creates a new FilterItemsUsingGETParams object with the ability to set a timeout on a request.

func (*FilterItemsUsingGETParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the filter items using get params

func (*FilterItemsUsingGETParams) SetContext

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

SetContext adds the context to the filter items using get params

func (*FilterItemsUsingGETParams) SetDefaults added in v0.2.20

func (o *FilterItemsUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the filter items using get params (not the query body).

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

func (*FilterItemsUsingGETParams) SetFilterID

func (o *FilterItemsUsingGETParams) SetFilterID(filterID string)

SetFilterID adds the filterId to the filter items using get params

func (*FilterItemsUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the filter items using get params

func (*FilterItemsUsingGETParams) SetName

func (o *FilterItemsUsingGETParams) SetName(name *string)

SetName adds the name to the filter items using get params

func (*FilterItemsUsingGETParams) SetSourceID

func (o *FilterItemsUsingGETParams) SetSourceID(sourceID strfmt.UUID)

SetSourceID adds the sourceId to the filter items using get params

func (*FilterItemsUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the filter items using get params

func (*FilterItemsUsingGETParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the filter items using get params

func (*FilterItemsUsingGETParams) WithContext

WithContext adds the context to the filter items using get params

func (*FilterItemsUsingGETParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the filter items using get params (not the query body).

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

func (*FilterItemsUsingGETParams) WithFilterID

func (o *FilterItemsUsingGETParams) WithFilterID(filterID string) *FilterItemsUsingGETParams

WithFilterID adds the filterID to the filter items using get params

func (*FilterItemsUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the filter items using get params

func (*FilterItemsUsingGETParams) WithName

WithName adds the name to the filter items using get params

func (*FilterItemsUsingGETParams) WithSourceID

WithSourceID adds the sourceID to the filter items using get params

func (*FilterItemsUsingGETParams) WithTimeout

WithTimeout adds the timeout to the filter items using get params

func (*FilterItemsUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type FilterItemsUsingGETReader

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

FilterItemsUsingGETReader is a Reader for the FilterItemsUsingGET structure.

func (*FilterItemsUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FiltersUsingGETNotFound

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

Source not found

func NewFiltersUsingGETNotFound

func NewFiltersUsingGETNotFound() *FiltersUsingGETNotFound

NewFiltersUsingGETNotFound creates a FiltersUsingGETNotFound with default headers values

func (*FiltersUsingGETNotFound) Error

func (o *FiltersUsingGETNotFound) Error() string

func (*FiltersUsingGETNotFound) GetPayload added in v0.2.9

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

type FiltersUsingGETOK

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

Marketplace filters

func NewFiltersUsingGETOK

func NewFiltersUsingGETOK() *FiltersUsingGETOK

NewFiltersUsingGETOK creates a FiltersUsingGETOK with default headers values

func (*FiltersUsingGETOK) Error

func (o *FiltersUsingGETOK) Error() string

func (*FiltersUsingGETOK) GetPayload

type FiltersUsingGETParams

type FiltersUsingGETParams struct {

	/* APIVersion.

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

	/* Expand.

	   expand
	*/
	Expand *bool

	/* SourceID.

	   Content Source Id

	   Format: uuid
	*/
	SourceID strfmt.UUID

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

FiltersUsingGETParams contains all the parameters to send to the API endpoint

for the filters using g e t operation.

Typically these are written to a http.Request.

func NewFiltersUsingGETParams

func NewFiltersUsingGETParams() *FiltersUsingGETParams

NewFiltersUsingGETParams creates a new FiltersUsingGETParams 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 NewFiltersUsingGETParamsWithContext

func NewFiltersUsingGETParamsWithContext(ctx context.Context) *FiltersUsingGETParams

NewFiltersUsingGETParamsWithContext creates a new FiltersUsingGETParams object with the ability to set a context for a request.

func NewFiltersUsingGETParamsWithHTTPClient

func NewFiltersUsingGETParamsWithHTTPClient(client *http.Client) *FiltersUsingGETParams

NewFiltersUsingGETParamsWithHTTPClient creates a new FiltersUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewFiltersUsingGETParamsWithTimeout

func NewFiltersUsingGETParamsWithTimeout(timeout time.Duration) *FiltersUsingGETParams

NewFiltersUsingGETParamsWithTimeout creates a new FiltersUsingGETParams object with the ability to set a timeout on a request.

func (*FiltersUsingGETParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the filters using get params

func (*FiltersUsingGETParams) SetContext

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

SetContext adds the context to the filters using get params

func (*FiltersUsingGETParams) SetDefaults added in v0.2.20

func (o *FiltersUsingGETParams) SetDefaults()

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

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

func (*FiltersUsingGETParams) SetExpand

func (o *FiltersUsingGETParams) SetExpand(expand *bool)

SetExpand adds the expand to the filters using get params

func (*FiltersUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the filters using get params

func (*FiltersUsingGETParams) SetSourceID

func (o *FiltersUsingGETParams) SetSourceID(sourceID strfmt.UUID)

SetSourceID adds the sourceId to the filters using get params

func (*FiltersUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the filters using get params

func (*FiltersUsingGETParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the filters using get params

func (*FiltersUsingGETParams) WithContext

WithContext adds the context to the filters using get params

func (*FiltersUsingGETParams) WithDefaults added in v0.2.20

func (o *FiltersUsingGETParams) WithDefaults() *FiltersUsingGETParams

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

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

func (*FiltersUsingGETParams) WithExpand

func (o *FiltersUsingGETParams) WithExpand(expand *bool) *FiltersUsingGETParams

WithExpand adds the expand to the filters using get params

func (*FiltersUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the filters using get params

func (*FiltersUsingGETParams) WithSourceID

func (o *FiltersUsingGETParams) WithSourceID(sourceID strfmt.UUID) *FiltersUsingGETParams

WithSourceID adds the sourceID to the filters using get params

func (*FiltersUsingGETParams) WithTimeout

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

WithTimeout adds the timeout to the filters using get params

func (*FiltersUsingGETParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FiltersUsingGETReader

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

FiltersUsingGETReader is a Reader for the FiltersUsingGET structure.

func (*FiltersUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDetailsNotFound

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

Source or Content not found

func NewGetDetailsNotFound

func NewGetDetailsNotFound() *GetDetailsNotFound

NewGetDetailsNotFound creates a GetDetailsNotFound with default headers values

func (*GetDetailsNotFound) Error

func (o *GetDetailsNotFound) Error() string

func (*GetDetailsNotFound) GetPayload added in v0.2.9

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

type GetDetailsOK

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

Content Details

func NewGetDetailsOK

func NewGetDetailsOK() *GetDetailsOK

NewGetDetailsOK creates a GetDetailsOK with default headers values

func (*GetDetailsOK) Error

func (o *GetDetailsOK) Error() string

func (*GetDetailsOK) GetPayload

func (o *GetDetailsOK) GetPayload() *models.MarketplaceContent

type GetDetailsParams

type GetDetailsParams struct {

	/* APIVersion.

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

	/* ContentID.

	   Content Id
	*/
	ContentID string

	/* SourceID.

	   Content Source Id

	   Format: uuid
	*/
	SourceID strfmt.UUID

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

GetDetailsParams contains all the parameters to send to the API endpoint

for the get details operation.

Typically these are written to a http.Request.

func NewGetDetailsParams

func NewGetDetailsParams() *GetDetailsParams

NewGetDetailsParams creates a new GetDetailsParams 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 NewGetDetailsParamsWithContext

func NewGetDetailsParamsWithContext(ctx context.Context) *GetDetailsParams

NewGetDetailsParamsWithContext creates a new GetDetailsParams object with the ability to set a context for a request.

func NewGetDetailsParamsWithHTTPClient

func NewGetDetailsParamsWithHTTPClient(client *http.Client) *GetDetailsParams

NewGetDetailsParamsWithHTTPClient creates a new GetDetailsParams object with the ability to set a custom HTTPClient for a request.

func NewGetDetailsParamsWithTimeout

func NewGetDetailsParamsWithTimeout(timeout time.Duration) *GetDetailsParams

NewGetDetailsParamsWithTimeout creates a new GetDetailsParams object with the ability to set a timeout on a request.

func (*GetDetailsParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the get details params

func (*GetDetailsParams) SetContentID

func (o *GetDetailsParams) SetContentID(contentID string)

SetContentID adds the contentId to the get details params

func (*GetDetailsParams) SetContext

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

SetContext adds the context to the get details params

func (*GetDetailsParams) SetDefaults added in v0.2.20

func (o *GetDetailsParams) SetDefaults()

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

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

func (*GetDetailsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get details params

func (*GetDetailsParams) SetSourceID

func (o *GetDetailsParams) SetSourceID(sourceID strfmt.UUID)

SetSourceID adds the sourceId to the get details params

func (*GetDetailsParams) SetTimeout

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

SetTimeout adds the timeout to the get details params

func (*GetDetailsParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the get details params

func (*GetDetailsParams) WithContentID

func (o *GetDetailsParams) WithContentID(contentID string) *GetDetailsParams

WithContentID adds the contentID to the get details params

func (*GetDetailsParams) WithContext

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

WithContext adds the context to the get details params

func (*GetDetailsParams) WithDefaults added in v0.2.20

func (o *GetDetailsParams) WithDefaults() *GetDetailsParams

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

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

func (*GetDetailsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get details params

func (*GetDetailsParams) WithSourceID

func (o *GetDetailsParams) WithSourceID(sourceID strfmt.UUID) *GetDetailsParams

WithSourceID adds the sourceID to the get details params

func (*GetDetailsParams) WithTimeout

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

WithTimeout adds the timeout to the get details params

func (*GetDetailsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDetailsReader

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

GetDetailsReader is a Reader for the GetDetails structure.

func (*GetDetailsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLinkNotFound

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

Source or Content not found

func NewGetLinkNotFound

func NewGetLinkNotFound() *GetLinkNotFound

NewGetLinkNotFound creates a GetLinkNotFound with default headers values

func (*GetLinkNotFound) Error

func (o *GetLinkNotFound) Error() string

func (*GetLinkNotFound) GetPayload added in v0.2.9

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

type GetLinkOK

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

Link to Content

func NewGetLinkOK

func NewGetLinkOK() *GetLinkOK

NewGetLinkOK creates a GetLinkOK with default headers values

func (*GetLinkOK) Error

func (o *GetLinkOK) Error() string

func (*GetLinkOK) GetPayload

func (o *GetLinkOK) GetPayload() *models.MarketplaceContentLink

type GetLinkParams

type GetLinkParams struct {

	/* APIVersion.

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

	/* ContentID.

	   Content Id
	*/
	ContentID string

	/* SourceID.

	   Content Source Id

	   Format: uuid
	*/
	SourceID strfmt.UUID

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

GetLinkParams contains all the parameters to send to the API endpoint

for the get link operation.

Typically these are written to a http.Request.

func NewGetLinkParams

func NewGetLinkParams() *GetLinkParams

NewGetLinkParams creates a new GetLinkParams 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 NewGetLinkParamsWithContext

func NewGetLinkParamsWithContext(ctx context.Context) *GetLinkParams

NewGetLinkParamsWithContext creates a new GetLinkParams object with the ability to set a context for a request.

func NewGetLinkParamsWithHTTPClient

func NewGetLinkParamsWithHTTPClient(client *http.Client) *GetLinkParams

NewGetLinkParamsWithHTTPClient creates a new GetLinkParams object with the ability to set a custom HTTPClient for a request.

func NewGetLinkParamsWithTimeout

func NewGetLinkParamsWithTimeout(timeout time.Duration) *GetLinkParams

NewGetLinkParamsWithTimeout creates a new GetLinkParams object with the ability to set a timeout on a request.

func (*GetLinkParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the get link params

func (*GetLinkParams) SetContentID

func (o *GetLinkParams) SetContentID(contentID string)

SetContentID adds the contentId to the get link params

func (*GetLinkParams) SetContext

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

SetContext adds the context to the get link params

func (*GetLinkParams) SetDefaults added in v0.2.20

func (o *GetLinkParams) SetDefaults()

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

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

func (*GetLinkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get link params

func (*GetLinkParams) SetSourceID

func (o *GetLinkParams) SetSourceID(sourceID strfmt.UUID)

SetSourceID adds the sourceId to the get link params

func (*GetLinkParams) SetTimeout

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

SetTimeout adds the timeout to the get link params

func (*GetLinkParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the get link params

func (*GetLinkParams) WithContentID

func (o *GetLinkParams) WithContentID(contentID string) *GetLinkParams

WithContentID adds the contentID to the get link params

func (*GetLinkParams) WithContext

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

WithContext adds the context to the get link params

func (*GetLinkParams) WithDefaults added in v0.2.20

func (o *GetLinkParams) WithDefaults() *GetLinkParams

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

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

func (*GetLinkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get link params

func (*GetLinkParams) WithSourceID

func (o *GetLinkParams) WithSourceID(sourceID strfmt.UUID) *GetLinkParams

WithSourceID adds the sourceID to the get link params

func (*GetLinkParams) WithTimeout

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

WithTimeout adds the timeout to the get link params

func (*GetLinkParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLinkReader

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

GetLinkReader is a Reader for the GetLink structure.

func (*GetLinkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetReviewsNotFound

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

Source or Content not found

func NewGetReviewsNotFound

func NewGetReviewsNotFound() *GetReviewsNotFound

NewGetReviewsNotFound creates a GetReviewsNotFound with default headers values

func (*GetReviewsNotFound) Error

func (o *GetReviewsNotFound) Error() string

func (*GetReviewsNotFound) GetPayload added in v0.2.9

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

type GetReviewsOK

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

Content Reviews

func NewGetReviewsOK

func NewGetReviewsOK() *GetReviewsOK

NewGetReviewsOK creates a GetReviewsOK with default headers values

func (*GetReviewsOK) Error

func (o *GetReviewsOK) Error() string

func (*GetReviewsOK) GetPayload

type GetReviewsParams

type GetReviewsParams struct {

	/* APIVersion.

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

	/* ContentID.

	   Content Id
	*/
	ContentID string

	/* SourceID.

	   Content Source Id

	   Format: uuid
	*/
	SourceID strfmt.UUID

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

GetReviewsParams contains all the parameters to send to the API endpoint

for the get reviews operation.

Typically these are written to a http.Request.

func NewGetReviewsParams

func NewGetReviewsParams() *GetReviewsParams

NewGetReviewsParams creates a new GetReviewsParams 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 NewGetReviewsParamsWithContext

func NewGetReviewsParamsWithContext(ctx context.Context) *GetReviewsParams

NewGetReviewsParamsWithContext creates a new GetReviewsParams object with the ability to set a context for a request.

func NewGetReviewsParamsWithHTTPClient

func NewGetReviewsParamsWithHTTPClient(client *http.Client) *GetReviewsParams

NewGetReviewsParamsWithHTTPClient creates a new GetReviewsParams object with the ability to set a custom HTTPClient for a request.

func NewGetReviewsParamsWithTimeout

func NewGetReviewsParamsWithTimeout(timeout time.Duration) *GetReviewsParams

NewGetReviewsParamsWithTimeout creates a new GetReviewsParams object with the ability to set a timeout on a request.

func (*GetReviewsParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the get reviews params

func (*GetReviewsParams) SetContentID

func (o *GetReviewsParams) SetContentID(contentID string)

SetContentID adds the contentId to the get reviews params

func (*GetReviewsParams) SetContext

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

SetContext adds the context to the get reviews params

func (*GetReviewsParams) SetDefaults added in v0.2.20

func (o *GetReviewsParams) SetDefaults()

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

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

func (*GetReviewsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reviews params

func (*GetReviewsParams) SetSourceID

func (o *GetReviewsParams) SetSourceID(sourceID strfmt.UUID)

SetSourceID adds the sourceId to the get reviews params

func (*GetReviewsParams) SetTimeout

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

SetTimeout adds the timeout to the get reviews params

func (*GetReviewsParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the get reviews params

func (*GetReviewsParams) WithContentID

func (o *GetReviewsParams) WithContentID(contentID string) *GetReviewsParams

WithContentID adds the contentID to the get reviews params

func (*GetReviewsParams) WithContext

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

WithContext adds the context to the get reviews params

func (*GetReviewsParams) WithDefaults added in v0.2.20

func (o *GetReviewsParams) WithDefaults() *GetReviewsParams

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

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

func (*GetReviewsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reviews params

func (*GetReviewsParams) WithSourceID

func (o *GetReviewsParams) WithSourceID(sourceID strfmt.UUID) *GetReviewsParams

WithSourceID adds the sourceID to the get reviews params

func (*GetReviewsParams) WithTimeout

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

WithTimeout adds the timeout to the get reviews params

func (*GetReviewsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReviewsReader

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

GetReviewsReader is a Reader for the GetReviews structure.

func (*GetReviewsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchNotFound

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

Source not found

func NewSearchNotFound

func NewSearchNotFound() *SearchNotFound

NewSearchNotFound creates a SearchNotFound with default headers values

func (*SearchNotFound) Error

func (o *SearchNotFound) Error() string

func (*SearchNotFound) GetPayload added in v0.2.9

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

type SearchOK

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

Search result

func NewSearchOK

func NewSearchOK() *SearchOK

NewSearchOK creates a SearchOK with default headers values

func (*SearchOK) Error

func (o *SearchOK) Error() string

func (*SearchOK) GetPayload

func (o *SearchOK) GetPayload() *models.MarketplaceContents

type SearchParams

type SearchParams struct {

	/* APIVersion.

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

	/* Search.

	   Full-text search term
	*/
	Search *string

	/* SourceID.

	   Content Source Id

	   Format: uuid
	*/
	SourceID strfmt.UUID

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

SearchParams contains all the parameters to send to the API endpoint

for the search operation.

Typically these are written to a http.Request.

func NewSearchParams

func NewSearchParams() *SearchParams

NewSearchParams creates a new SearchParams 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 NewSearchParamsWithContext

func NewSearchParamsWithContext(ctx context.Context) *SearchParams

NewSearchParamsWithContext creates a new SearchParams object with the ability to set a context for a request.

func NewSearchParamsWithHTTPClient

func NewSearchParamsWithHTTPClient(client *http.Client) *SearchParams

NewSearchParamsWithHTTPClient creates a new SearchParams object with the ability to set a custom HTTPClient for a request.

func NewSearchParamsWithTimeout

func NewSearchParamsWithTimeout(timeout time.Duration) *SearchParams

NewSearchParamsWithTimeout creates a new SearchParams object with the ability to set a timeout on a request.

func (*SearchParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the search params

func (*SearchParams) SetContext

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

SetContext adds the context to the search params

func (*SearchParams) SetDefaults added in v0.2.20

func (o *SearchParams) SetDefaults()

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

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

func (*SearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search params

func (*SearchParams) SetSearch

func (o *SearchParams) SetSearch(search *string)

SetSearch adds the search to the search params

func (*SearchParams) SetSourceID

func (o *SearchParams) SetSourceID(sourceID strfmt.UUID)

SetSourceID adds the sourceId to the search params

func (*SearchParams) SetTimeout

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

SetTimeout adds the timeout to the search params

func (*SearchParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the search params

func (*SearchParams) WithContext

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

WithContext adds the context to the search params

func (*SearchParams) WithDefaults added in v0.2.20

func (o *SearchParams) WithDefaults() *SearchParams

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

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

func (*SearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search params

func (*SearchParams) WithSearch

func (o *SearchParams) WithSearch(search *string) *SearchParams

WithSearch adds the search to the search params

func (*SearchParams) WithSourceID

func (o *SearchParams) WithSourceID(sourceID strfmt.UUID) *SearchParams

WithSourceID adds the sourceID to the search params

func (*SearchParams) WithTimeout

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

WithTimeout adds the timeout to the search params

func (*SearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchReader

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

SearchReader is a Reader for the Search structure.

func (*SearchReader) ReadResponse

func (o *SearchReader) 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