Documentation
¶
Index ¶
- type Client
- func (a *Client) PublishAll(params *PublishAllParams, authInfo runtime.ClientAuthInfoWriter) (*PublishAllOK, *PublishAllBadRequest, *PublishAllNotFound, error)
- func (a *Client) PublishAllShort(params *PublishAllParams, authInfo runtime.ClientAuthInfoWriter) (*PublishAllOK, error)
- func (a *Client) QueryChanges(params *QueryChangesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryChangesOK, error)
- func (a *Client) QueryChangesShort(params *QueryChangesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryChangesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type PublishAllBadRequest
- type PublishAllNotFound
- type PublishAllOK
- type PublishAllParams
- func (o *PublishAllParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublishAllParams) SetContext(ctx context.Context)
- func (o *PublishAllParams) SetHTTPClient(client *http.Client)
- func (o *PublishAllParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublishAllParams) SetNamespace(namespace string)
- func (o *PublishAllParams) SetStoreID(storeID string)
- func (o *PublishAllParams) SetTimeout(timeout time.Duration)
- func (o *PublishAllParams) WithContext(ctx context.Context) *PublishAllParams
- func (o *PublishAllParams) WithHTTPClient(client *http.Client) *PublishAllParams
- func (o *PublishAllParams) WithNamespace(namespace string) *PublishAllParams
- func (o *PublishAllParams) WithStoreID(storeID string) *PublishAllParams
- func (o *PublishAllParams) WithTimeout(timeout time.Duration) *PublishAllParams
- func (o *PublishAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublishAllReader
- type QueryChangesOK
- type QueryChangesParams
- func (o *QueryChangesParams) SetAction(action *string)
- func (o *QueryChangesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *QueryChangesParams) SetContext(ctx context.Context)
- func (o *QueryChangesParams) SetHTTPClient(client *http.Client)
- func (o *QueryChangesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *QueryChangesParams) SetItemType(itemType *string)
- func (o *QueryChangesParams) SetLimit(limit *int32)
- func (o *QueryChangesParams) SetNamespace(namespace string)
- func (o *QueryChangesParams) SetOffset(offset *int32)
- func (o *QueryChangesParams) SetSortBy(sortBy *string)
- func (o *QueryChangesParams) SetStatus(status *string)
- func (o *QueryChangesParams) SetStoreID(storeID string)
- func (o *QueryChangesParams) SetTimeout(timeout time.Duration)
- func (o *QueryChangesParams) SetType(typeVar *string)
- func (o *QueryChangesParams) SetUpdatedAtEnd(updatedAtEnd *string)
- func (o *QueryChangesParams) SetUpdatedAtStart(updatedAtStart *string)
- func (o *QueryChangesParams) WithAction(action *string) *QueryChangesParams
- func (o *QueryChangesParams) WithContext(ctx context.Context) *QueryChangesParams
- func (o *QueryChangesParams) WithHTTPClient(client *http.Client) *QueryChangesParams
- func (o *QueryChangesParams) WithItemType(itemType *string) *QueryChangesParams
- func (o *QueryChangesParams) WithLimit(limit *int32) *QueryChangesParams
- func (o *QueryChangesParams) WithNamespace(namespace string) *QueryChangesParams
- func (o *QueryChangesParams) WithOffset(offset *int32) *QueryChangesParams
- func (o *QueryChangesParams) WithSortBy(sortBy *string) *QueryChangesParams
- func (o *QueryChangesParams) WithStatus(status *string) *QueryChangesParams
- func (o *QueryChangesParams) WithStoreID(storeID string) *QueryChangesParams
- func (o *QueryChangesParams) WithTimeout(timeout time.Duration) *QueryChangesParams
- func (o *QueryChangesParams) WithType(typeVar *string) *QueryChangesParams
- func (o *QueryChangesParams) WithUpdatedAtEnd(updatedAtEnd *string) *QueryChangesParams
- func (o *QueryChangesParams) WithUpdatedAtStart(updatedAtStart *string) *QueryChangesParams
- func (o *QueryChangesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryChangesReader
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 catalog changes API
func (*Client) PublishAll ¶
func (a *Client) PublishAll(params *PublishAllParams, authInfo runtime.ClientAuthInfoWriter) (*PublishAllOK, *PublishAllBadRequest, *PublishAllNotFound, error)
PublishAll publishes all unpublished changes
This API is used to publish all unpublished changes.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STORE", action=1 (CREATE)</li><li><i>Returns</i>: no content</li></ul>
func (*Client) PublishAllShort ¶
func (a *Client) PublishAllShort(params *PublishAllParams, authInfo runtime.ClientAuthInfoWriter) (*PublishAllOK, error)
func (*Client) QueryChanges ¶
func (a *Client) QueryChanges(params *QueryChangesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryChangesOK, error)
QueryChanges queries catalog changes
This API is used to query changes .<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STORE", action=2 (READ)</li><li><i>Returns</i>: the pagination of changes</li></ul>
func (*Client) QueryChangesShort ¶
func (a *Client) QueryChangesShort(params *QueryChangesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryChangesOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { PublishAll(params *PublishAllParams, authInfo runtime.ClientAuthInfoWriter) (*PublishAllOK, *PublishAllBadRequest, *PublishAllNotFound, error) PublishAllShort(params *PublishAllParams, authInfo runtime.ClientAuthInfoWriter) (*PublishAllOK, error) QueryChanges(params *QueryChangesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryChangesOK, error) QueryChangesShort(params *QueryChangesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryChangesOK, 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 catalog changes API client.
type PublishAllBadRequest ¶
type PublishAllBadRequest struct {
Payload *platformclientmodels.ErrorEntity
}
PublishAllBadRequest handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30122</td><td>Store's meta mismatch</td></tr></table>
func NewPublishAllBadRequest ¶
func NewPublishAllBadRequest() *PublishAllBadRequest
NewPublishAllBadRequest creates a PublishAllBadRequest with default headers values
func (*PublishAllBadRequest) Error ¶
func (o *PublishAllBadRequest) Error() string
func (*PublishAllBadRequest) GetPayload ¶
func (o *PublishAllBadRequest) GetPayload() *platformclientmodels.ErrorEntity
type PublishAllNotFound ¶
type PublishAllNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
PublishAllNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30141</td><td>Store [{storeId}] does not exist in namespace [{namespace}]</td></tr></table>
func NewPublishAllNotFound ¶
func NewPublishAllNotFound() *PublishAllNotFound
NewPublishAllNotFound creates a PublishAllNotFound with default headers values
func (*PublishAllNotFound) Error ¶
func (o *PublishAllNotFound) Error() string
func (*PublishAllNotFound) GetPayload ¶
func (o *PublishAllNotFound) GetPayload() *platformclientmodels.ErrorEntity
type PublishAllOK ¶
type PublishAllOK struct {
Payload *platformclientmodels.StoreInfo
}
PublishAllOK handles this case with default header values.
successful operation
func NewPublishAllOK ¶
func NewPublishAllOK() *PublishAllOK
NewPublishAllOK creates a PublishAllOK with default headers values
func (*PublishAllOK) Error ¶
func (o *PublishAllOK) Error() string
func (*PublishAllOK) GetPayload ¶
func (o *PublishAllOK) GetPayload() *platformclientmodels.StoreInfo
type PublishAllParams ¶
type PublishAllParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace*/ Namespace string /*StoreID*/ StoreID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PublishAllParams contains all the parameters to send to the API endpoint for the publish all operation typically these are written to a http.Request
func NewPublishAllParams ¶
func NewPublishAllParams() *PublishAllParams
NewPublishAllParams creates a new PublishAllParams object with the default values initialized.
func NewPublishAllParamsWithContext ¶
func NewPublishAllParamsWithContext(ctx context.Context) *PublishAllParams
NewPublishAllParamsWithContext creates a new PublishAllParams object with the default values initialized, and the ability to set a context for a request
func NewPublishAllParamsWithHTTPClient ¶
func NewPublishAllParamsWithHTTPClient(client *http.Client) *PublishAllParams
NewPublishAllParamsWithHTTPClient creates a new PublishAllParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublishAllParamsWithTimeout ¶
func NewPublishAllParamsWithTimeout(timeout time.Duration) *PublishAllParams
NewPublishAllParamsWithTimeout creates a new PublishAllParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublishAllParams) SetAuthInfoWriter ¶
func (o *PublishAllParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the publish all params
func (*PublishAllParams) SetContext ¶
func (o *PublishAllParams) SetContext(ctx context.Context)
SetContext adds the context to the publish all params
func (*PublishAllParams) SetHTTPClient ¶
func (o *PublishAllParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the publish all params
func (*PublishAllParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *PublishAllParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the publish all params
func (*PublishAllParams) SetNamespace ¶
func (o *PublishAllParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the publish all params
func (*PublishAllParams) SetStoreID ¶
func (o *PublishAllParams) SetStoreID(storeID string)
SetStoreID adds the storeId to the publish all params
func (*PublishAllParams) SetTimeout ¶
func (o *PublishAllParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the publish all params
func (*PublishAllParams) WithContext ¶
func (o *PublishAllParams) WithContext(ctx context.Context) *PublishAllParams
WithContext adds the context to the publish all params
func (*PublishAllParams) WithHTTPClient ¶
func (o *PublishAllParams) WithHTTPClient(client *http.Client) *PublishAllParams
WithHTTPClient adds the HTTPClient to the publish all params
func (*PublishAllParams) WithNamespace ¶
func (o *PublishAllParams) WithNamespace(namespace string) *PublishAllParams
WithNamespace adds the namespace to the publish all params
func (*PublishAllParams) WithStoreID ¶
func (o *PublishAllParams) WithStoreID(storeID string) *PublishAllParams
WithStoreID adds the storeID to the publish all params
func (*PublishAllParams) WithTimeout ¶
func (o *PublishAllParams) WithTimeout(timeout time.Duration) *PublishAllParams
WithTimeout adds the timeout to the publish all params
func (*PublishAllParams) WriteToRequest ¶
func (o *PublishAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublishAllReader ¶
type PublishAllReader struct {
// contains filtered or unexported fields
}
PublishAllReader is a Reader for the PublishAll structure.
func (*PublishAllReader) ReadResponse ¶
func (o *PublishAllReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QueryChangesOK ¶
type QueryChangesOK struct {
Payload []*platformclientmodels.CatalogChangePagingSlicedResult
}
QueryChangesOK handles this case with default header values.
successful operation
func NewQueryChangesOK ¶
func NewQueryChangesOK() *QueryChangesOK
NewQueryChangesOK creates a QueryChangesOK with default headers values
func (*QueryChangesOK) Error ¶
func (o *QueryChangesOK) Error() string
func (*QueryChangesOK) GetPayload ¶
func (o *QueryChangesOK) GetPayload() []*platformclientmodels.CatalogChangePagingSlicedResult
type QueryChangesParams ¶
type QueryChangesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Action*/ Action *string /*ItemType*/ ItemType *string /*Limit limit */ Limit *int32 /*Namespace*/ Namespace string /*Offset offset */ Offset *int32 /*SortBy default is updatedAt:desc, allow values: [createdAt, createdAt:asc, createdAt:desc, updatedAt, updatedAt:asc, updatedAt:desc],and support sort group, eg: sortBy=title:asc,createdAt:desc. Make sure to always use more than one sort if the first sort is not an unique valuefor example, if you wish to sort by title, make sure to include other sort such as sku or createdAt after the first sort, eg: title:asc,updatedAt:desc */ SortBy *string /*Status default is UNPUBLISHED */ Status *string /*StoreID*/ StoreID string /*Type*/ Type *string /*UpdatedAtEnd updated at end , using ISO 8601 format e.g. yyyy-MM-dd'T'HH:mm:ssZZ */ UpdatedAtEnd *string /*UpdatedAtStart updated at start , using ISO 8601 format e.g. yyyy-MM-dd'T'HH:mm:ssZZ */ UpdatedAtStart *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QueryChangesParams contains all the parameters to send to the API endpoint for the query changes operation typically these are written to a http.Request
func NewQueryChangesParams ¶
func NewQueryChangesParams() *QueryChangesParams
NewQueryChangesParams creates a new QueryChangesParams object with the default values initialized.
func NewQueryChangesParamsWithContext ¶
func NewQueryChangesParamsWithContext(ctx context.Context) *QueryChangesParams
NewQueryChangesParamsWithContext creates a new QueryChangesParams object with the default values initialized, and the ability to set a context for a request
func NewQueryChangesParamsWithHTTPClient ¶
func NewQueryChangesParamsWithHTTPClient(client *http.Client) *QueryChangesParams
NewQueryChangesParamsWithHTTPClient creates a new QueryChangesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewQueryChangesParamsWithTimeout ¶
func NewQueryChangesParamsWithTimeout(timeout time.Duration) *QueryChangesParams
NewQueryChangesParamsWithTimeout creates a new QueryChangesParams object with the default values initialized, and the ability to set a timeout on a request
func (*QueryChangesParams) SetAction ¶
func (o *QueryChangesParams) SetAction(action *string)
SetAction adds the action to the query changes params
func (*QueryChangesParams) SetAuthInfoWriter ¶
func (o *QueryChangesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the query changes params
func (*QueryChangesParams) SetContext ¶
func (o *QueryChangesParams) SetContext(ctx context.Context)
SetContext adds the context to the query changes params
func (*QueryChangesParams) SetHTTPClient ¶
func (o *QueryChangesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query changes params
func (*QueryChangesParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *QueryChangesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the query changes params
func (*QueryChangesParams) SetItemType ¶
func (o *QueryChangesParams) SetItemType(itemType *string)
SetItemType adds the itemType to the query changes params
func (*QueryChangesParams) SetLimit ¶
func (o *QueryChangesParams) SetLimit(limit *int32)
SetLimit adds the limit to the query changes params
func (*QueryChangesParams) SetNamespace ¶
func (o *QueryChangesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the query changes params
func (*QueryChangesParams) SetOffset ¶
func (o *QueryChangesParams) SetOffset(offset *int32)
SetOffset adds the offset to the query changes params
func (*QueryChangesParams) SetSortBy ¶
func (o *QueryChangesParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the query changes params
func (*QueryChangesParams) SetStatus ¶
func (o *QueryChangesParams) SetStatus(status *string)
SetStatus adds the status to the query changes params
func (*QueryChangesParams) SetStoreID ¶
func (o *QueryChangesParams) SetStoreID(storeID string)
SetStoreID adds the storeId to the query changes params
func (*QueryChangesParams) SetTimeout ¶
func (o *QueryChangesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query changes params
func (*QueryChangesParams) SetType ¶
func (o *QueryChangesParams) SetType(typeVar *string)
SetType adds the type to the query changes params
func (*QueryChangesParams) SetUpdatedAtEnd ¶
func (o *QueryChangesParams) SetUpdatedAtEnd(updatedAtEnd *string)
SetUpdatedAtEnd adds the updatedAtEnd to the query changes params
func (*QueryChangesParams) SetUpdatedAtStart ¶
func (o *QueryChangesParams) SetUpdatedAtStart(updatedAtStart *string)
SetUpdatedAtStart adds the updatedAtStart to the query changes params
func (*QueryChangesParams) WithAction ¶
func (o *QueryChangesParams) WithAction(action *string) *QueryChangesParams
WithAction adds the action to the query changes params
func (*QueryChangesParams) WithContext ¶
func (o *QueryChangesParams) WithContext(ctx context.Context) *QueryChangesParams
WithContext adds the context to the query changes params
func (*QueryChangesParams) WithHTTPClient ¶
func (o *QueryChangesParams) WithHTTPClient(client *http.Client) *QueryChangesParams
WithHTTPClient adds the HTTPClient to the query changes params
func (*QueryChangesParams) WithItemType ¶
func (o *QueryChangesParams) WithItemType(itemType *string) *QueryChangesParams
WithItemType adds the itemType to the query changes params
func (*QueryChangesParams) WithLimit ¶
func (o *QueryChangesParams) WithLimit(limit *int32) *QueryChangesParams
WithLimit adds the limit to the query changes params
func (*QueryChangesParams) WithNamespace ¶
func (o *QueryChangesParams) WithNamespace(namespace string) *QueryChangesParams
WithNamespace adds the namespace to the query changes params
func (*QueryChangesParams) WithOffset ¶
func (o *QueryChangesParams) WithOffset(offset *int32) *QueryChangesParams
WithOffset adds the offset to the query changes params
func (*QueryChangesParams) WithSortBy ¶
func (o *QueryChangesParams) WithSortBy(sortBy *string) *QueryChangesParams
WithSortBy adds the sortBy to the query changes params
func (*QueryChangesParams) WithStatus ¶
func (o *QueryChangesParams) WithStatus(status *string) *QueryChangesParams
WithStatus adds the status to the query changes params
func (*QueryChangesParams) WithStoreID ¶
func (o *QueryChangesParams) WithStoreID(storeID string) *QueryChangesParams
WithStoreID adds the storeID to the query changes params
func (*QueryChangesParams) WithTimeout ¶
func (o *QueryChangesParams) WithTimeout(timeout time.Duration) *QueryChangesParams
WithTimeout adds the timeout to the query changes params
func (*QueryChangesParams) WithType ¶
func (o *QueryChangesParams) WithType(typeVar *string) *QueryChangesParams
WithType adds the typeVar to the query changes params
func (*QueryChangesParams) WithUpdatedAtEnd ¶
func (o *QueryChangesParams) WithUpdatedAtEnd(updatedAtEnd *string) *QueryChangesParams
WithUpdatedAtEnd adds the updatedAtEnd to the query changes params
func (*QueryChangesParams) WithUpdatedAtStart ¶
func (o *QueryChangesParams) WithUpdatedAtStart(updatedAtStart *string) *QueryChangesParams
WithUpdatedAtStart adds the updatedAtStart to the query changes params
func (*QueryChangesParams) WriteToRequest ¶
func (o *QueryChangesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QueryChangesReader ¶
type QueryChangesReader struct {
// contains filtered or unexported fields
}
QueryChangesReader is a Reader for the QueryChanges structure.
func (*QueryChangesReader) ReadResponse ¶
func (o *QueryChangesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.