view

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 15 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 view API

func (*Client) CreateView deprecated

Deprecated: 2022-08-10 - Use CreateViewShort instead.

CreateView create a view This API is used to create a view.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=1 (CREATE)
  • Returns : created a view

## Restrictions for localization extension

1. Cannot use "." as the key name -

{ "data.2": "value" }

2. Cannot use "$" as the prefix in key names -

{ "$data": "value" }

func (*Client) CreateViewShort

func (a *Client) CreateViewShort(params *CreateViewParams, authInfo runtime.ClientAuthInfoWriter) (*CreateViewCreated, error)

CreateViewShort create a view This API is used to create a view.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=1 (CREATE)
  • Returns : created a view

## Restrictions for localization extension

1. Cannot use "." as the key name -

{ "data.2": "value" }

2. Cannot use "$" as the prefix in key names -

{ "$data": "value" }

func (*Client) DeleteView deprecated

Deprecated: 2022-08-10 - Use DeleteViewShort instead.

DeleteView delete a view This API is used to delete a view.It will also delete all the related sections

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=8 (DELETE)

func (*Client) DeleteViewShort

func (a *Client) DeleteViewShort(params *DeleteViewParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteViewNoContent, error)

DeleteViewShort delete a view This API is used to delete a view.It will also delete all the related sections

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=8 (DELETE)

func (*Client) GetView deprecated

func (a *Client) GetView(params *GetViewParams, authInfo runtime.ClientAuthInfoWriter) (*GetViewOK, *GetViewNotFound, error)

Deprecated: 2022-08-10 - Use GetViewShort instead.

GetView get a view This API is used to get a view.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=2 (READ)
  • Returns : view data

func (*Client) GetViewShort

func (a *Client) GetViewShort(params *GetViewParams, authInfo runtime.ClientAuthInfoWriter) (*GetViewOK, error)

GetViewShort get a view This API is used to get a view.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=2 (READ)
  • Returns : view data

func (*Client) ListViews deprecated

Deprecated: 2022-08-10 - Use ListViewsShort instead.

ListViews list all views This API is used to list all views.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=2 (READ)
  • Returns : the list of views

func (*Client) ListViewsShort

func (a *Client) ListViewsShort(params *ListViewsParams, authInfo runtime.ClientAuthInfoWriter) (*ListViewsOK, error)

ListViewsShort list all views This API is used to list all views.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=2 (READ)
  • Returns : the list of views

func (*Client) PublicListViews deprecated

func (a *Client) PublicListViews(params *PublicListViewsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListViewsOK, error)

Deprecated: 2022-08-10 - Use PublicListViewsShort instead.

PublicListViews get all views This API is used to get all views.

Other detail info:

  • Required permission : resource=NAMESPACE:{namespace}:USER:{userId}:STORE, action=2 (READ)
  • Optional permission : resource="PREVIEW", action=1(CREATE) (user with this permission can view draft store views)
  • Optional permission : resource="SANDBOX", action=1(CREATE) (user with this permission can view draft store views)
  • Returns : all views

func (*Client) PublicListViewsShort

func (a *Client) PublicListViewsShort(params *PublicListViewsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListViewsOK, error)

PublicListViewsShort get all views This API is used to get all views.

Other detail info:

  • Required permission : resource=NAMESPACE:{namespace}:USER:{userId}:STORE, action=2 (READ)
  • Optional permission : resource="PREVIEW", action=1(CREATE) (user with this permission can view draft store views)
  • Optional permission : resource="SANDBOX", action=1(CREATE) (user with this permission can view draft store views)
  • Returns : all views

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateView deprecated

Deprecated: 2022-08-10 - Use UpdateViewShort instead.

UpdateView update a view This API is used to update a view.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=4 (UPDATE)
  • Returns : updated view data

## Restrictions for localization extension

1. Cannot use "." as the key name -

{ "data.2": "value" }

2. Cannot use "$" as the prefix in key names -

{ "$data": "value" }

func (*Client) UpdateViewShort

func (a *Client) UpdateViewShort(params *UpdateViewParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateViewOK, error)

UpdateViewShort update a view This API is used to update a view.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:STORE", action=4 (UPDATE)
  • Returns : updated view data

## Restrictions for localization extension

1. Cannot use "." as the key name -

{ "data.2": "value" }

2. Cannot use "$" as the prefix in key names -

{ "$data": "value" }

type ClientService

type ClientService interface {
	ListViews(params *ListViewsParams, authInfo runtime.ClientAuthInfoWriter) (*ListViewsOK, *ListViewsNotFound, *ListViewsUnprocessableEntity, error)
	ListViewsShort(params *ListViewsParams, authInfo runtime.ClientAuthInfoWriter) (*ListViewsOK, error)
	CreateView(params *CreateViewParams, authInfo runtime.ClientAuthInfoWriter) (*CreateViewCreated, *CreateViewBadRequest, *CreateViewNotFound, *CreateViewConflict, *CreateViewUnprocessableEntity, error)
	CreateViewShort(params *CreateViewParams, authInfo runtime.ClientAuthInfoWriter) (*CreateViewCreated, error)
	GetView(params *GetViewParams, authInfo runtime.ClientAuthInfoWriter) (*GetViewOK, *GetViewNotFound, error)
	GetViewShort(params *GetViewParams, authInfo runtime.ClientAuthInfoWriter) (*GetViewOK, error)
	UpdateView(params *UpdateViewParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateViewOK, *UpdateViewBadRequest, *UpdateViewNotFound, *UpdateViewConflict, *UpdateViewUnprocessableEntity, error)
	UpdateViewShort(params *UpdateViewParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateViewOK, error)
	DeleteView(params *DeleteViewParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteViewNoContent, *DeleteViewNotFound, *DeleteViewConflict, error)
	DeleteViewShort(params *DeleteViewParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteViewNoContent, error)
	PublicListViews(params *PublicListViewsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListViewsOK, error)
	PublicListViewsShort(params *PublicListViewsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListViewsOK, 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 view API client.

type CreateViewBadRequest

type CreateViewBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateViewBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30021</td><td>Default language [{language}] required</td></tr></table>

func NewCreateViewBadRequest

func NewCreateViewBadRequest() *CreateViewBadRequest

NewCreateViewBadRequest creates a CreateViewBadRequest with default headers values

func (*CreateViewBadRequest) Error

func (o *CreateViewBadRequest) Error() string

func (*CreateViewBadRequest) GetPayload

func (*CreateViewBadRequest) ToJSONString

func (o *CreateViewBadRequest) ToJSONString() string

type CreateViewConflict

type CreateViewConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateViewConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30173</td><td>Published store can't modify content</td></tr></table>

func NewCreateViewConflict

func NewCreateViewConflict() *CreateViewConflict

NewCreateViewConflict creates a CreateViewConflict with default headers values

func (*CreateViewConflict) Error

func (o *CreateViewConflict) Error() string

func (*CreateViewConflict) GetPayload

func (*CreateViewConflict) ToJSONString

func (o *CreateViewConflict) ToJSONString() string

type CreateViewCreated

type CreateViewCreated struct {
	Payload *platformclientmodels.FullViewInfo
}

CreateViewCreated handles this case with default header values.

successful operation

func NewCreateViewCreated

func NewCreateViewCreated() *CreateViewCreated

NewCreateViewCreated creates a CreateViewCreated with default headers values

func (*CreateViewCreated) Error

func (o *CreateViewCreated) Error() string

func (*CreateViewCreated) GetPayload

func (*CreateViewCreated) ToJSONString

func (o *CreateViewCreated) ToJSONString() string

type CreateViewNotFound

type CreateViewNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateViewNotFound 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 NewCreateViewNotFound

func NewCreateViewNotFound() *CreateViewNotFound

NewCreateViewNotFound creates a CreateViewNotFound with default headers values

func (*CreateViewNotFound) Error

func (o *CreateViewNotFound) Error() string

func (*CreateViewNotFound) GetPayload

func (*CreateViewNotFound) ToJSONString

func (o *CreateViewNotFound) ToJSONString() string

type CreateViewParams

type CreateViewParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.ViewCreate
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*StoreID*/
	StoreID string

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

CreateViewParams contains all the parameters to send to the API endpoint for the create view operation typically these are written to a http.Request

func NewCreateViewParams

func NewCreateViewParams() *CreateViewParams

NewCreateViewParams creates a new CreateViewParams object with the default values initialized.

func NewCreateViewParamsWithContext

func NewCreateViewParamsWithContext(ctx context.Context) *CreateViewParams

NewCreateViewParamsWithContext creates a new CreateViewParams object with the default values initialized, and the ability to set a context for a request

func NewCreateViewParamsWithHTTPClient

func NewCreateViewParamsWithHTTPClient(client *http.Client) *CreateViewParams

NewCreateViewParamsWithHTTPClient creates a new CreateViewParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateViewParamsWithTimeout

func NewCreateViewParamsWithTimeout(timeout time.Duration) *CreateViewParams

NewCreateViewParamsWithTimeout creates a new CreateViewParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateViewParams) SetAuthInfoWriter

func (o *CreateViewParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the create view params

func (*CreateViewParams) SetBody

SetBody adds the body to the create view params

func (*CreateViewParams) SetContext

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

SetContext adds the context to the create view params

func (*CreateViewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create view params

func (*CreateViewParams) SetHTTPClientTransport

func (o *CreateViewParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the create view params

func (*CreateViewParams) SetNamespace

func (o *CreateViewParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create view params

func (*CreateViewParams) SetStoreID

func (o *CreateViewParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the create view params

func (*CreateViewParams) SetTimeout

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

SetTimeout adds the timeout to the create view params

func (*CreateViewParams) WithBody

WithBody adds the body to the create view params

func (*CreateViewParams) WithContext

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

WithContext adds the context to the create view params

func (*CreateViewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create view params

func (*CreateViewParams) WithNamespace

func (o *CreateViewParams) WithNamespace(namespace string) *CreateViewParams

WithNamespace adds the namespace to the create view params

func (*CreateViewParams) WithStoreID

func (o *CreateViewParams) WithStoreID(storeID string) *CreateViewParams

WithStoreID adds the storeID to the create view params

func (*CreateViewParams) WithTimeout

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

WithTimeout adds the timeout to the create view params

func (*CreateViewParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateViewReader

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

CreateViewReader is a Reader for the CreateView structure.

func (*CreateViewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateViewUnprocessableEntity

type CreateViewUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

CreateViewUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewCreateViewUnprocessableEntity

func NewCreateViewUnprocessableEntity() *CreateViewUnprocessableEntity

NewCreateViewUnprocessableEntity creates a CreateViewUnprocessableEntity with default headers values

func (*CreateViewUnprocessableEntity) Error

func (*CreateViewUnprocessableEntity) GetPayload

func (*CreateViewUnprocessableEntity) ToJSONString

func (o *CreateViewUnprocessableEntity) ToJSONString() string

type DeleteViewConflict

type DeleteViewConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

DeleteViewConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30173</td><td>Published store can't modify content</td></tr></table>

func NewDeleteViewConflict

func NewDeleteViewConflict() *DeleteViewConflict

NewDeleteViewConflict creates a DeleteViewConflict with default headers values

func (*DeleteViewConflict) Error

func (o *DeleteViewConflict) Error() string

func (*DeleteViewConflict) GetPayload

func (*DeleteViewConflict) ToJSONString

func (o *DeleteViewConflict) ToJSONString() string

type DeleteViewNoContent

type DeleteViewNoContent struct {
}

DeleteViewNoContent handles this case with default header values.

Delete view successfully

func NewDeleteViewNoContent

func NewDeleteViewNoContent() *DeleteViewNoContent

NewDeleteViewNoContent creates a DeleteViewNoContent with default headers values

func (*DeleteViewNoContent) Error

func (o *DeleteViewNoContent) Error() string

type DeleteViewNotFound

type DeleteViewNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

DeleteViewNotFound 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><tr><td>30641</td><td>View [{viewId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewDeleteViewNotFound

func NewDeleteViewNotFound() *DeleteViewNotFound

NewDeleteViewNotFound creates a DeleteViewNotFound with default headers values

func (*DeleteViewNotFound) Error

func (o *DeleteViewNotFound) Error() string

func (*DeleteViewNotFound) GetPayload

func (*DeleteViewNotFound) ToJSONString

func (o *DeleteViewNotFound) ToJSONString() string

type DeleteViewParams

type DeleteViewParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*ViewID*/
	ViewID string
	/*StoreID*/
	StoreID string

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

DeleteViewParams contains all the parameters to send to the API endpoint for the delete view operation typically these are written to a http.Request

func NewDeleteViewParams

func NewDeleteViewParams() *DeleteViewParams

NewDeleteViewParams creates a new DeleteViewParams object with the default values initialized.

func NewDeleteViewParamsWithContext

func NewDeleteViewParamsWithContext(ctx context.Context) *DeleteViewParams

NewDeleteViewParamsWithContext creates a new DeleteViewParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteViewParamsWithHTTPClient

func NewDeleteViewParamsWithHTTPClient(client *http.Client) *DeleteViewParams

NewDeleteViewParamsWithHTTPClient creates a new DeleteViewParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteViewParamsWithTimeout

func NewDeleteViewParamsWithTimeout(timeout time.Duration) *DeleteViewParams

NewDeleteViewParamsWithTimeout creates a new DeleteViewParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteViewParams) SetAuthInfoWriter

func (o *DeleteViewParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the delete view params

func (*DeleteViewParams) SetContext

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

SetContext adds the context to the delete view params

func (*DeleteViewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete view params

func (*DeleteViewParams) SetHTTPClientTransport

func (o *DeleteViewParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the delete view params

func (*DeleteViewParams) SetNamespace

func (o *DeleteViewParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete view params

func (*DeleteViewParams) SetStoreID

func (o *DeleteViewParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the delete view params

func (*DeleteViewParams) SetTimeout

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

SetTimeout adds the timeout to the delete view params

func (*DeleteViewParams) SetViewID

func (o *DeleteViewParams) SetViewID(viewID string)

SetViewID adds the viewId to the delete view params

func (*DeleteViewParams) WithContext

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

WithContext adds the context to the delete view params

func (*DeleteViewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete view params

func (*DeleteViewParams) WithNamespace

func (o *DeleteViewParams) WithNamespace(namespace string) *DeleteViewParams

WithNamespace adds the namespace to the delete view params

func (*DeleteViewParams) WithStoreID

func (o *DeleteViewParams) WithStoreID(storeID string) *DeleteViewParams

WithStoreID adds the storeID to the delete view params

func (*DeleteViewParams) WithTimeout

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

WithTimeout adds the timeout to the delete view params

func (*DeleteViewParams) WithViewID

func (o *DeleteViewParams) WithViewID(viewID string) *DeleteViewParams

WithViewID adds the viewID to the delete view params

func (*DeleteViewParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteViewReader

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

DeleteViewReader is a Reader for the DeleteView structure.

func (*DeleteViewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetViewNotFound

type GetViewNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetViewNotFound 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><tr><td>30142</td><td>Published store does not exist in namespace [{namespace}]</td></tr><tr><td>30641</td><td>View [{viewId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetViewNotFound

func NewGetViewNotFound() *GetViewNotFound

NewGetViewNotFound creates a GetViewNotFound with default headers values

func (*GetViewNotFound) Error

func (o *GetViewNotFound) Error() string

func (*GetViewNotFound) GetPayload

func (*GetViewNotFound) ToJSONString

func (o *GetViewNotFound) ToJSONString() string

type GetViewOK

type GetViewOK struct {
	Payload *platformclientmodels.FullViewInfo
}

GetViewOK handles this case with default header values.

successful operation

func NewGetViewOK

func NewGetViewOK() *GetViewOK

NewGetViewOK creates a GetViewOK with default headers values

func (*GetViewOK) Error

func (o *GetViewOK) Error() string

func (*GetViewOK) GetPayload

func (o *GetViewOK) GetPayload() *platformclientmodels.FullViewInfo

func (*GetViewOK) ToJSONString

func (o *GetViewOK) ToJSONString() string

type GetViewParams

type GetViewParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*ViewID*/
	ViewID string
	/*StoreID
	  default is published store id

	*/
	StoreID *string

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

GetViewParams contains all the parameters to send to the API endpoint for the get view operation typically these are written to a http.Request

func NewGetViewParams

func NewGetViewParams() *GetViewParams

NewGetViewParams creates a new GetViewParams object with the default values initialized.

func NewGetViewParamsWithContext

func NewGetViewParamsWithContext(ctx context.Context) *GetViewParams

NewGetViewParamsWithContext creates a new GetViewParams object with the default values initialized, and the ability to set a context for a request

func NewGetViewParamsWithHTTPClient

func NewGetViewParamsWithHTTPClient(client *http.Client) *GetViewParams

NewGetViewParamsWithHTTPClient creates a new GetViewParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetViewParamsWithTimeout

func NewGetViewParamsWithTimeout(timeout time.Duration) *GetViewParams

NewGetViewParamsWithTimeout creates a new GetViewParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetViewParams) SetAuthInfoWriter

func (o *GetViewParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get view params

func (*GetViewParams) SetContext

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

SetContext adds the context to the get view params

func (*GetViewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get view params

func (*GetViewParams) SetHTTPClientTransport

func (o *GetViewParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get view params

func (*GetViewParams) SetNamespace

func (o *GetViewParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get view params

func (*GetViewParams) SetStoreID

func (o *GetViewParams) SetStoreID(storeID *string)

SetStoreID adds the storeId to the get view params

func (*GetViewParams) SetTimeout

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

SetTimeout adds the timeout to the get view params

func (*GetViewParams) SetViewID

func (o *GetViewParams) SetViewID(viewID string)

SetViewID adds the viewId to the get view params

func (*GetViewParams) WithContext

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

WithContext adds the context to the get view params

func (*GetViewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get view params

func (*GetViewParams) WithNamespace

func (o *GetViewParams) WithNamespace(namespace string) *GetViewParams

WithNamespace adds the namespace to the get view params

func (*GetViewParams) WithStoreID

func (o *GetViewParams) WithStoreID(storeID *string) *GetViewParams

WithStoreID adds the storeID to the get view params

func (*GetViewParams) WithTimeout

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

WithTimeout adds the timeout to the get view params

func (*GetViewParams) WithViewID

func (o *GetViewParams) WithViewID(viewID string) *GetViewParams

WithViewID adds the viewID to the get view params

func (*GetViewParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetViewReader

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

GetViewReader is a Reader for the GetView structure.

func (*GetViewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListViewsNotFound

type ListViewsNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

ListViewsNotFound 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><tr><td>30142</td><td>Published store does not exist in namespace [{namespace}]</td></tr></table>

func NewListViewsNotFound

func NewListViewsNotFound() *ListViewsNotFound

NewListViewsNotFound creates a ListViewsNotFound with default headers values

func (*ListViewsNotFound) Error

func (o *ListViewsNotFound) Error() string

func (*ListViewsNotFound) GetPayload

func (*ListViewsNotFound) ToJSONString

func (o *ListViewsNotFound) ToJSONString() string

type ListViewsOK

type ListViewsOK struct {
	Payload []*platformclientmodels.ListViewInfo
}

ListViewsOK handles this case with default header values.

successful operation

func NewListViewsOK

func NewListViewsOK() *ListViewsOK

NewListViewsOK creates a ListViewsOK with default headers values

func (*ListViewsOK) Error

func (o *ListViewsOK) Error() string

func (*ListViewsOK) GetPayload

func (o *ListViewsOK) GetPayload() []*platformclientmodels.ListViewInfo

func (*ListViewsOK) ToJSONString

func (o *ListViewsOK) ToJSONString() string

type ListViewsParams

type ListViewsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*StoreID
	  default is published store id

	*/
	StoreID *string

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

ListViewsParams contains all the parameters to send to the API endpoint for the list views operation typically these are written to a http.Request

func NewListViewsParams

func NewListViewsParams() *ListViewsParams

NewListViewsParams creates a new ListViewsParams object with the default values initialized.

func NewListViewsParamsWithContext

func NewListViewsParamsWithContext(ctx context.Context) *ListViewsParams

NewListViewsParamsWithContext creates a new ListViewsParams object with the default values initialized, and the ability to set a context for a request

func NewListViewsParamsWithHTTPClient

func NewListViewsParamsWithHTTPClient(client *http.Client) *ListViewsParams

NewListViewsParamsWithHTTPClient creates a new ListViewsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListViewsParamsWithTimeout

func NewListViewsParamsWithTimeout(timeout time.Duration) *ListViewsParams

NewListViewsParamsWithTimeout creates a new ListViewsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListViewsParams) SetAuthInfoWriter

func (o *ListViewsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the list views params

func (*ListViewsParams) SetContext

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

SetContext adds the context to the list views params

func (*ListViewsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list views params

func (*ListViewsParams) SetHTTPClientTransport

func (o *ListViewsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the list views params

func (*ListViewsParams) SetNamespace

func (o *ListViewsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the list views params

func (*ListViewsParams) SetStoreID

func (o *ListViewsParams) SetStoreID(storeID *string)

SetStoreID adds the storeId to the list views params

func (*ListViewsParams) SetTimeout

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

SetTimeout adds the timeout to the list views params

func (*ListViewsParams) WithContext

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

WithContext adds the context to the list views params

func (*ListViewsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list views params

func (*ListViewsParams) WithNamespace

func (o *ListViewsParams) WithNamespace(namespace string) *ListViewsParams

WithNamespace adds the namespace to the list views params

func (*ListViewsParams) WithStoreID

func (o *ListViewsParams) WithStoreID(storeID *string) *ListViewsParams

WithStoreID adds the storeID to the list views params

func (*ListViewsParams) WithTimeout

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

WithTimeout adds the timeout to the list views params

func (*ListViewsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListViewsReader

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

ListViewsReader is a Reader for the ListViews structure.

func (*ListViewsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListViewsUnprocessableEntity

type ListViewsUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

ListViewsUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewListViewsUnprocessableEntity

func NewListViewsUnprocessableEntity() *ListViewsUnprocessableEntity

NewListViewsUnprocessableEntity creates a ListViewsUnprocessableEntity with default headers values

func (*ListViewsUnprocessableEntity) Error

func (*ListViewsUnprocessableEntity) GetPayload

func (*ListViewsUnprocessableEntity) ToJSONString

func (o *ListViewsUnprocessableEntity) ToJSONString() string

type PublicListViewsOK

type PublicListViewsOK struct {
	Payload []*platformclientmodels.ViewInfo
}

PublicListViewsOK handles this case with default header values.

successful operation

func NewPublicListViewsOK

func NewPublicListViewsOK() *PublicListViewsOK

NewPublicListViewsOK creates a PublicListViewsOK with default headers values

func (*PublicListViewsOK) Error

func (o *PublicListViewsOK) Error() string

func (*PublicListViewsOK) GetPayload

func (o *PublicListViewsOK) GetPayload() []*platformclientmodels.ViewInfo

func (*PublicListViewsOK) ToJSONString

func (o *PublicListViewsOK) ToJSONString() string

type PublicListViewsParams

type PublicListViewsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*UserID*/
	UserID string
	/*Language*/
	Language *string
	/*StoreID
	  default is published store id

	*/
	StoreID *string

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

PublicListViewsParams contains all the parameters to send to the API endpoint for the public list views operation typically these are written to a http.Request

func NewPublicListViewsParams

func NewPublicListViewsParams() *PublicListViewsParams

NewPublicListViewsParams creates a new PublicListViewsParams object with the default values initialized.

func NewPublicListViewsParamsWithContext

func NewPublicListViewsParamsWithContext(ctx context.Context) *PublicListViewsParams

NewPublicListViewsParamsWithContext creates a new PublicListViewsParams object with the default values initialized, and the ability to set a context for a request

func NewPublicListViewsParamsWithHTTPClient

func NewPublicListViewsParamsWithHTTPClient(client *http.Client) *PublicListViewsParams

NewPublicListViewsParamsWithHTTPClient creates a new PublicListViewsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicListViewsParamsWithTimeout

func NewPublicListViewsParamsWithTimeout(timeout time.Duration) *PublicListViewsParams

NewPublicListViewsParamsWithTimeout creates a new PublicListViewsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicListViewsParams) SetAuthInfoWriter

func (o *PublicListViewsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public list views params

func (*PublicListViewsParams) SetContext

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

SetContext adds the context to the public list views params

func (*PublicListViewsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public list views params

func (*PublicListViewsParams) SetHTTPClientTransport

func (o *PublicListViewsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public list views params

func (*PublicListViewsParams) SetLanguage

func (o *PublicListViewsParams) SetLanguage(language *string)

SetLanguage adds the language to the public list views params

func (*PublicListViewsParams) SetNamespace

func (o *PublicListViewsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public list views params

func (*PublicListViewsParams) SetStoreID

func (o *PublicListViewsParams) SetStoreID(storeID *string)

SetStoreID adds the storeId to the public list views params

func (*PublicListViewsParams) SetTimeout

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

SetTimeout adds the timeout to the public list views params

func (*PublicListViewsParams) SetUserID

func (o *PublicListViewsParams) SetUserID(userID string)

SetUserID adds the userId to the public list views params

func (*PublicListViewsParams) WithContext

WithContext adds the context to the public list views params

func (*PublicListViewsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public list views params

func (*PublicListViewsParams) WithLanguage

func (o *PublicListViewsParams) WithLanguage(language *string) *PublicListViewsParams

WithLanguage adds the language to the public list views params

func (*PublicListViewsParams) WithNamespace

func (o *PublicListViewsParams) WithNamespace(namespace string) *PublicListViewsParams

WithNamespace adds the namespace to the public list views params

func (*PublicListViewsParams) WithStoreID

func (o *PublicListViewsParams) WithStoreID(storeID *string) *PublicListViewsParams

WithStoreID adds the storeID to the public list views params

func (*PublicListViewsParams) WithTimeout

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

WithTimeout adds the timeout to the public list views params

func (*PublicListViewsParams) WithUserID

func (o *PublicListViewsParams) WithUserID(userID string) *PublicListViewsParams

WithUserID adds the userID to the public list views params

func (*PublicListViewsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PublicListViewsReader

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

PublicListViewsReader is a Reader for the PublicListViews structure.

func (*PublicListViewsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateViewBadRequest

type UpdateViewBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateViewBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30021</td><td>Default language [{language}] required</td></tr></table>

func NewUpdateViewBadRequest

func NewUpdateViewBadRequest() *UpdateViewBadRequest

NewUpdateViewBadRequest creates a UpdateViewBadRequest with default headers values

func (*UpdateViewBadRequest) Error

func (o *UpdateViewBadRequest) Error() string

func (*UpdateViewBadRequest) GetPayload

func (*UpdateViewBadRequest) ToJSONString

func (o *UpdateViewBadRequest) ToJSONString() string

type UpdateViewConflict

type UpdateViewConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateViewConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30173</td><td>Published store can't modify content</td></tr></table>

func NewUpdateViewConflict

func NewUpdateViewConflict() *UpdateViewConflict

NewUpdateViewConflict creates a UpdateViewConflict with default headers values

func (*UpdateViewConflict) Error

func (o *UpdateViewConflict) Error() string

func (*UpdateViewConflict) GetPayload

func (*UpdateViewConflict) ToJSONString

func (o *UpdateViewConflict) ToJSONString() string

type UpdateViewNotFound

type UpdateViewNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateViewNotFound 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><tr><td>30641</td><td>View [{viewId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewUpdateViewNotFound

func NewUpdateViewNotFound() *UpdateViewNotFound

NewUpdateViewNotFound creates a UpdateViewNotFound with default headers values

func (*UpdateViewNotFound) Error

func (o *UpdateViewNotFound) Error() string

func (*UpdateViewNotFound) GetPayload

func (*UpdateViewNotFound) ToJSONString

func (o *UpdateViewNotFound) ToJSONString() string

type UpdateViewOK

type UpdateViewOK struct {
	Payload *platformclientmodels.FullViewInfo
}

UpdateViewOK handles this case with default header values.

successful operation

func NewUpdateViewOK

func NewUpdateViewOK() *UpdateViewOK

NewUpdateViewOK creates a UpdateViewOK with default headers values

func (*UpdateViewOK) Error

func (o *UpdateViewOK) Error() string

func (*UpdateViewOK) GetPayload

func (*UpdateViewOK) ToJSONString

func (o *UpdateViewOK) ToJSONString() string

type UpdateViewParams

type UpdateViewParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.ViewUpdate
	/*Namespace*/
	Namespace string
	/*ViewID*/
	ViewID string
	/*StoreID*/
	StoreID string

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

UpdateViewParams contains all the parameters to send to the API endpoint for the update view operation typically these are written to a http.Request

func NewUpdateViewParams

func NewUpdateViewParams() *UpdateViewParams

NewUpdateViewParams creates a new UpdateViewParams object with the default values initialized.

func NewUpdateViewParamsWithContext

func NewUpdateViewParamsWithContext(ctx context.Context) *UpdateViewParams

NewUpdateViewParamsWithContext creates a new UpdateViewParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateViewParamsWithHTTPClient

func NewUpdateViewParamsWithHTTPClient(client *http.Client) *UpdateViewParams

NewUpdateViewParamsWithHTTPClient creates a new UpdateViewParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateViewParamsWithTimeout

func NewUpdateViewParamsWithTimeout(timeout time.Duration) *UpdateViewParams

NewUpdateViewParamsWithTimeout creates a new UpdateViewParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateViewParams) SetAuthInfoWriter

func (o *UpdateViewParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the update view params

func (*UpdateViewParams) SetBody

SetBody adds the body to the update view params

func (*UpdateViewParams) SetContext

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

SetContext adds the context to the update view params

func (*UpdateViewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update view params

func (*UpdateViewParams) SetHTTPClientTransport

func (o *UpdateViewParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the update view params

func (*UpdateViewParams) SetNamespace

func (o *UpdateViewParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update view params

func (*UpdateViewParams) SetStoreID

func (o *UpdateViewParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the update view params

func (*UpdateViewParams) SetTimeout

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

SetTimeout adds the timeout to the update view params

func (*UpdateViewParams) SetViewID

func (o *UpdateViewParams) SetViewID(viewID string)

SetViewID adds the viewId to the update view params

func (*UpdateViewParams) WithBody

WithBody adds the body to the update view params

func (*UpdateViewParams) WithContext

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

WithContext adds the context to the update view params

func (*UpdateViewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update view params

func (*UpdateViewParams) WithNamespace

func (o *UpdateViewParams) WithNamespace(namespace string) *UpdateViewParams

WithNamespace adds the namespace to the update view params

func (*UpdateViewParams) WithStoreID

func (o *UpdateViewParams) WithStoreID(storeID string) *UpdateViewParams

WithStoreID adds the storeID to the update view params

func (*UpdateViewParams) WithTimeout

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

WithTimeout adds the timeout to the update view params

func (*UpdateViewParams) WithViewID

func (o *UpdateViewParams) WithViewID(viewID string) *UpdateViewParams

WithViewID adds the viewID to the update view params

func (*UpdateViewParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateViewReader

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

UpdateViewReader is a Reader for the UpdateView structure.

func (*UpdateViewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateViewUnprocessableEntity

type UpdateViewUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UpdateViewUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewUpdateViewUnprocessableEntity

func NewUpdateViewUnprocessableEntity() *UpdateViewUnprocessableEntity

NewUpdateViewUnprocessableEntity creates a UpdateViewUnprocessableEntity with default headers values

func (*UpdateViewUnprocessableEntity) Error

func (*UpdateViewUnprocessableEntity) GetPayload

func (*UpdateViewUnprocessableEntity) ToJSONString

func (o *UpdateViewUnprocessableEntity) ToJSONString() string

Jump to

Keyboard shortcuts

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