section

package
v0.1.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 16 Imported by: 1

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 section API

func (*Client) CreateSection deprecated

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

CreateSection create a section This API is used to create a section.

Other detail info:

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

## Restrictions for section extension and 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) CreateSectionShort

func (a *Client) CreateSectionShort(params *CreateSectionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSectionCreated, error)

CreateSectionShort create a section This API is used to create a section.

Other detail info:

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

## Restrictions for section extension and 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) DeleteSection deprecated

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

DeleteSection delete a section This API is used to delete s section.

Other detail info:

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

func (*Client) DeleteSectionShort

func (a *Client) DeleteSectionShort(params *DeleteSectionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSectionNoContent, error)

DeleteSectionShort delete a section This API is used to delete s section.

Other detail info:

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

func (*Client) GetSection deprecated

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

GetSection get a section This API is used to get a section.

Other detail info:

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

func (*Client) GetSectionShort

func (a *Client) GetSectionShort(params *GetSectionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSectionOK, error)

GetSectionShort get a section This API is used to get a section.

Other detail info:

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

func (*Client) PublicListActiveSections deprecated

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

PublicListActiveSections list active section contents This API is used to list active section contents.

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 sections)
  • Optional permission : resource="SANDBOX", action=1(CREATE) (user with this permission can view draft store sections)
  • Returns : active section contents

func (*Client) PublicListActiveSectionsShort

func (a *Client) PublicListActiveSectionsShort(params *PublicListActiveSectionsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListActiveSectionsOK, error)

PublicListActiveSectionsShort list active section contents This API is used to list active section contents.

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 sections)
  • Optional permission : resource="SANDBOX", action=1(CREATE) (user with this permission can view draft store sections)
  • Returns : active section contents

func (*Client) PurgeExpiredSection deprecated

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

PurgeExpiredSection purge expired section This API is used to purge expired section.

Other detail info:

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

func (*Client) PurgeExpiredSectionShort

func (a *Client) PurgeExpiredSectionShort(params *PurgeExpiredSectionParams, authInfo runtime.ClientAuthInfoWriter) (*PurgeExpiredSectionNoContent, error)

PurgeExpiredSectionShort purge expired section This API is used to purge expired section.

Other detail info:

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

func (*Client) QuerySections deprecated

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

QuerySections list sections This API is used to query sections.

Other detail info:

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

func (*Client) QuerySectionsShort

func (a *Client) QuerySectionsShort(params *QuerySectionsParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySectionsOK, error)

QuerySectionsShort list sections This API is used to query sections.

Other detail info:

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateSection deprecated

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

UpdateSection update s section This API is used to update s section.

Other detail info:

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

## Restrictions for section extension and 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) UpdateSectionShort

func (a *Client) UpdateSectionShort(params *UpdateSectionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSectionOK, error)

UpdateSectionShort update s section This API is used to update s section.

Other detail info:

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

## Restrictions for section extension and 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 {
	QuerySections(params *QuerySectionsParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySectionsOK, *QuerySectionsNotFound, *QuerySectionsUnprocessableEntity, error)
	QuerySectionsShort(params *QuerySectionsParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySectionsOK, error)
	CreateSection(params *CreateSectionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSectionCreated, *CreateSectionBadRequest, *CreateSectionNotFound, *CreateSectionConflict, *CreateSectionUnprocessableEntity, error)
	CreateSectionShort(params *CreateSectionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSectionCreated, error)
	PurgeExpiredSection(params *PurgeExpiredSectionParams, authInfo runtime.ClientAuthInfoWriter) (*PurgeExpiredSectionNoContent, *PurgeExpiredSectionNotFound, error)
	PurgeExpiredSectionShort(params *PurgeExpiredSectionParams, authInfo runtime.ClientAuthInfoWriter) (*PurgeExpiredSectionNoContent, error)
	GetSection(params *GetSectionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSectionOK, *GetSectionNotFound, error)
	GetSectionShort(params *GetSectionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSectionOK, error)
	UpdateSection(params *UpdateSectionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSectionOK, *UpdateSectionBadRequest, *UpdateSectionNotFound, *UpdateSectionConflict, *UpdateSectionUnprocessableEntity, error)
	UpdateSectionShort(params *UpdateSectionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSectionOK, error)
	DeleteSection(params *DeleteSectionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSectionNoContent, *DeleteSectionNotFound, *DeleteSectionConflict, error)
	DeleteSectionShort(params *DeleteSectionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSectionNoContent, error)
	PublicListActiveSections(params *PublicListActiveSectionsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListActiveSectionsOK, *PublicListActiveSectionsNotFound, error)
	PublicListActiveSectionsShort(params *PublicListActiveSectionsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListActiveSectionsOK, 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 section API client.

type CreateSectionBadRequest

type CreateSectionBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateSectionBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20027</td><td>Invalid time range</td></tr><tr><td>30021</td><td>Default language [{language}] required</td></tr><tr><td>30023</td><td>Catalog plugin grpc server address required</td></tr></table>

func NewCreateSectionBadRequest

func NewCreateSectionBadRequest() *CreateSectionBadRequest

NewCreateSectionBadRequest creates a CreateSectionBadRequest with default headers values

func (*CreateSectionBadRequest) Error

func (o *CreateSectionBadRequest) Error() string

func (*CreateSectionBadRequest) GetPayload

func (*CreateSectionBadRequest) ToJSONString

func (o *CreateSectionBadRequest) ToJSONString() string

type CreateSectionConflict

type CreateSectionConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateSectionConflict 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 NewCreateSectionConflict

func NewCreateSectionConflict() *CreateSectionConflict

NewCreateSectionConflict creates a CreateSectionConflict with default headers values

func (*CreateSectionConflict) Error

func (o *CreateSectionConflict) Error() string

func (*CreateSectionConflict) GetPayload

func (*CreateSectionConflict) ToJSONString

func (o *CreateSectionConflict) ToJSONString() string

type CreateSectionCreated

type CreateSectionCreated struct {
	Payload *platformclientmodels.FullSectionInfo
}

CreateSectionCreated handles this case with default header values.

successful operation

func NewCreateSectionCreated

func NewCreateSectionCreated() *CreateSectionCreated

NewCreateSectionCreated creates a CreateSectionCreated with default headers values

func (*CreateSectionCreated) Error

func (o *CreateSectionCreated) Error() string

func (*CreateSectionCreated) GetPayload

func (*CreateSectionCreated) ToJSONString

func (o *CreateSectionCreated) ToJSONString() string

type CreateSectionNotFound

type CreateSectionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateSectionNotFound 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 NewCreateSectionNotFound

func NewCreateSectionNotFound() *CreateSectionNotFound

NewCreateSectionNotFound creates a CreateSectionNotFound with default headers values

func (*CreateSectionNotFound) Error

func (o *CreateSectionNotFound) Error() string

func (*CreateSectionNotFound) GetPayload

func (*CreateSectionNotFound) ToJSONString

func (o *CreateSectionNotFound) ToJSONString() string

type CreateSectionParams

type CreateSectionParams struct {

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

	*/
	Namespace string
	/*StoreID*/
	StoreID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewCreateSectionParams

func NewCreateSectionParams() *CreateSectionParams

NewCreateSectionParams creates a new CreateSectionParams object with the default values initialized.

func NewCreateSectionParamsWithContext

func NewCreateSectionParamsWithContext(ctx context.Context) *CreateSectionParams

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

func NewCreateSectionParamsWithHTTPClient

func NewCreateSectionParamsWithHTTPClient(client *http.Client) *CreateSectionParams

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

func NewCreateSectionParamsWithTimeout

func NewCreateSectionParamsWithTimeout(timeout time.Duration) *CreateSectionParams

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

func (*CreateSectionParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the create section params

func (*CreateSectionParams) SetBody

SetBody adds the body to the create section params

func (*CreateSectionParams) SetContext

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

SetContext adds the context to the create section params

func (*CreateSectionParams) SetFlightId

func (o *CreateSectionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*CreateSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create section params

func (*CreateSectionParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the create section params

func (*CreateSectionParams) SetNamespace

func (o *CreateSectionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create section params

func (*CreateSectionParams) SetStoreID

func (o *CreateSectionParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the create section params

func (*CreateSectionParams) SetTimeout

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

SetTimeout adds the timeout to the create section params

func (*CreateSectionParams) WithBody

WithBody adds the body to the create section params

func (*CreateSectionParams) WithContext

WithContext adds the context to the create section params

func (*CreateSectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create section params

func (*CreateSectionParams) WithNamespace

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

WithNamespace adds the namespace to the create section params

func (*CreateSectionParams) WithStoreID

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

WithStoreID adds the storeID to the create section params

func (*CreateSectionParams) WithTimeout

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

WithTimeout adds the timeout to the create section params

func (*CreateSectionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateSectionReader

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

CreateSectionReader is a Reader for the CreateSection structure.

func (*CreateSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateSectionUnprocessableEntity

type CreateSectionUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

CreateSectionUnprocessableEntity 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 NewCreateSectionUnprocessableEntity

func NewCreateSectionUnprocessableEntity() *CreateSectionUnprocessableEntity

NewCreateSectionUnprocessableEntity creates a CreateSectionUnprocessableEntity with default headers values

func (*CreateSectionUnprocessableEntity) Error

func (*CreateSectionUnprocessableEntity) GetPayload

func (*CreateSectionUnprocessableEntity) ToJSONString

func (o *CreateSectionUnprocessableEntity) ToJSONString() string

type DeleteSectionConflict

type DeleteSectionConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

DeleteSectionConflict 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 NewDeleteSectionConflict

func NewDeleteSectionConflict() *DeleteSectionConflict

NewDeleteSectionConflict creates a DeleteSectionConflict with default headers values

func (*DeleteSectionConflict) Error

func (o *DeleteSectionConflict) Error() string

func (*DeleteSectionConflict) GetPayload

func (*DeleteSectionConflict) ToJSONString

func (o *DeleteSectionConflict) ToJSONString() string

type DeleteSectionNoContent

type DeleteSectionNoContent struct {
}

DeleteSectionNoContent handles this case with default header values.

Delete section successfully

func NewDeleteSectionNoContent

func NewDeleteSectionNoContent() *DeleteSectionNoContent

NewDeleteSectionNoContent creates a DeleteSectionNoContent with default headers values

func (*DeleteSectionNoContent) Error

func (o *DeleteSectionNoContent) Error() string

type DeleteSectionNotFound

type DeleteSectionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

DeleteSectionNotFound 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>30741</td><td>Section [{sectionId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewDeleteSectionNotFound

func NewDeleteSectionNotFound() *DeleteSectionNotFound

NewDeleteSectionNotFound creates a DeleteSectionNotFound with default headers values

func (*DeleteSectionNotFound) Error

func (o *DeleteSectionNotFound) Error() string

func (*DeleteSectionNotFound) GetPayload

func (*DeleteSectionNotFound) ToJSONString

func (o *DeleteSectionNotFound) ToJSONString() string

type DeleteSectionParams

type DeleteSectionParams struct {

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

	*/
	Namespace string
	/*SectionID*/
	SectionID string
	/*StoreID*/
	StoreID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewDeleteSectionParams

func NewDeleteSectionParams() *DeleteSectionParams

NewDeleteSectionParams creates a new DeleteSectionParams object with the default values initialized.

func NewDeleteSectionParamsWithContext

func NewDeleteSectionParamsWithContext(ctx context.Context) *DeleteSectionParams

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

func NewDeleteSectionParamsWithHTTPClient

func NewDeleteSectionParamsWithHTTPClient(client *http.Client) *DeleteSectionParams

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

func NewDeleteSectionParamsWithTimeout

func NewDeleteSectionParamsWithTimeout(timeout time.Duration) *DeleteSectionParams

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

func (*DeleteSectionParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the delete section params

func (*DeleteSectionParams) SetContext

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

SetContext adds the context to the delete section params

func (*DeleteSectionParams) SetFlightId

func (o *DeleteSectionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*DeleteSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete section params

func (*DeleteSectionParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the delete section params

func (*DeleteSectionParams) SetNamespace

func (o *DeleteSectionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete section params

func (*DeleteSectionParams) SetSectionID

func (o *DeleteSectionParams) SetSectionID(sectionID string)

SetSectionID adds the sectionId to the delete section params

func (*DeleteSectionParams) SetStoreID

func (o *DeleteSectionParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the delete section params

func (*DeleteSectionParams) SetTimeout

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

SetTimeout adds the timeout to the delete section params

func (*DeleteSectionParams) WithContext

WithContext adds the context to the delete section params

func (*DeleteSectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete section params

func (*DeleteSectionParams) WithNamespace

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

WithNamespace adds the namespace to the delete section params

func (*DeleteSectionParams) WithSectionID

func (o *DeleteSectionParams) WithSectionID(sectionID string) *DeleteSectionParams

WithSectionID adds the sectionID to the delete section params

func (*DeleteSectionParams) WithStoreID

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

WithStoreID adds the storeID to the delete section params

func (*DeleteSectionParams) WithTimeout

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

WithTimeout adds the timeout to the delete section params

func (*DeleteSectionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteSectionReader

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

DeleteSectionReader is a Reader for the DeleteSection structure.

func (*DeleteSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSectionNotFound

type GetSectionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetSectionNotFound 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>30741</td><td>Section [{sectionId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetSectionNotFound

func NewGetSectionNotFound() *GetSectionNotFound

NewGetSectionNotFound creates a GetSectionNotFound with default headers values

func (*GetSectionNotFound) Error

func (o *GetSectionNotFound) Error() string

func (*GetSectionNotFound) GetPayload

func (*GetSectionNotFound) ToJSONString

func (o *GetSectionNotFound) ToJSONString() string

type GetSectionOK

type GetSectionOK struct {
	Payload *platformclientmodels.FullSectionInfo
}

GetSectionOK handles this case with default header values.

successful operation

func NewGetSectionOK

func NewGetSectionOK() *GetSectionOK

NewGetSectionOK creates a GetSectionOK with default headers values

func (*GetSectionOK) Error

func (o *GetSectionOK) Error() string

func (*GetSectionOK) GetPayload

func (*GetSectionOK) ToJSONString

func (o *GetSectionOK) ToJSONString() string

type GetSectionParams

type GetSectionParams struct {

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

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

	*/
	StoreID *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewGetSectionParams

func NewGetSectionParams() *GetSectionParams

NewGetSectionParams creates a new GetSectionParams object with the default values initialized.

func NewGetSectionParamsWithContext

func NewGetSectionParamsWithContext(ctx context.Context) *GetSectionParams

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

func NewGetSectionParamsWithHTTPClient

func NewGetSectionParamsWithHTTPClient(client *http.Client) *GetSectionParams

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

func NewGetSectionParamsWithTimeout

func NewGetSectionParamsWithTimeout(timeout time.Duration) *GetSectionParams

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

func (*GetSectionParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get section params

func (*GetSectionParams) SetContext

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

SetContext adds the context to the get section params

func (*GetSectionParams) SetFlightId

func (o *GetSectionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get section params

func (*GetSectionParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get section params

func (*GetSectionParams) SetNamespace

func (o *GetSectionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get section params

func (*GetSectionParams) SetSectionID

func (o *GetSectionParams) SetSectionID(sectionID string)

SetSectionID adds the sectionId to the get section params

func (*GetSectionParams) SetStoreID

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

SetStoreID adds the storeId to the get section params

func (*GetSectionParams) SetTimeout

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

SetTimeout adds the timeout to the get section params

func (*GetSectionParams) WithContext

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

WithContext adds the context to the get section params

func (*GetSectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get section params

func (*GetSectionParams) WithNamespace

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

WithNamespace adds the namespace to the get section params

func (*GetSectionParams) WithSectionID

func (o *GetSectionParams) WithSectionID(sectionID string) *GetSectionParams

WithSectionID adds the sectionID to the get section params

func (*GetSectionParams) WithStoreID

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

WithStoreID adds the storeID to the get section params

func (*GetSectionParams) WithTimeout

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

WithTimeout adds the timeout to the get section params

func (*GetSectionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSectionReader

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

GetSectionReader is a Reader for the GetSection structure.

func (*GetSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicListActiveSectionsNotFound

type PublicListActiveSectionsNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicListActiveSectionsNotFound 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 NewPublicListActiveSectionsNotFound

func NewPublicListActiveSectionsNotFound() *PublicListActiveSectionsNotFound

NewPublicListActiveSectionsNotFound creates a PublicListActiveSectionsNotFound with default headers values

func (*PublicListActiveSectionsNotFound) Error

func (*PublicListActiveSectionsNotFound) GetPayload

func (*PublicListActiveSectionsNotFound) ToJSONString

func (o *PublicListActiveSectionsNotFound) ToJSONString() string

type PublicListActiveSectionsOK

type PublicListActiveSectionsOK struct {
	Payload []*platformclientmodels.SectionInfo
}

PublicListActiveSectionsOK handles this case with default header values.

successful operation

func NewPublicListActiveSectionsOK

func NewPublicListActiveSectionsOK() *PublicListActiveSectionsOK

NewPublicListActiveSectionsOK creates a PublicListActiveSectionsOK with default headers values

func (*PublicListActiveSectionsOK) Error

func (*PublicListActiveSectionsOK) GetPayload

func (*PublicListActiveSectionsOK) ToJSONString

func (o *PublicListActiveSectionsOK) ToJSONString() string

type PublicListActiveSectionsParams

type PublicListActiveSectionsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*AutoCalcEstimatedPrice*/
	AutoCalcEstimatedPrice *bool
	/*Language*/
	Language *string
	/*Region*/
	Region *string
	/*StoreID
	  default is published store id

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewPublicListActiveSectionsParams

func NewPublicListActiveSectionsParams() *PublicListActiveSectionsParams

NewPublicListActiveSectionsParams creates a new PublicListActiveSectionsParams object with the default values initialized.

func NewPublicListActiveSectionsParamsWithContext

func NewPublicListActiveSectionsParamsWithContext(ctx context.Context) *PublicListActiveSectionsParams

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

func NewPublicListActiveSectionsParamsWithHTTPClient

func NewPublicListActiveSectionsParamsWithHTTPClient(client *http.Client) *PublicListActiveSectionsParams

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

func NewPublicListActiveSectionsParamsWithTimeout

func NewPublicListActiveSectionsParamsWithTimeout(timeout time.Duration) *PublicListActiveSectionsParams

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

func (*PublicListActiveSectionsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public list active sections params

func (*PublicListActiveSectionsParams) SetAutoCalcEstimatedPrice

func (o *PublicListActiveSectionsParams) SetAutoCalcEstimatedPrice(autoCalcEstimatedPrice *bool)

SetAutoCalcEstimatedPrice adds the autoCalcEstimatedPrice to the public list active sections params

func (*PublicListActiveSectionsParams) SetContext

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

SetContext adds the context to the public list active sections params

func (*PublicListActiveSectionsParams) SetFlightId

func (o *PublicListActiveSectionsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicListActiveSectionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public list active sections params

func (*PublicListActiveSectionsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public list active sections params

func (*PublicListActiveSectionsParams) SetLanguage

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

SetLanguage adds the language to the public list active sections params

func (*PublicListActiveSectionsParams) SetNamespace

func (o *PublicListActiveSectionsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public list active sections params

func (*PublicListActiveSectionsParams) SetRegion

func (o *PublicListActiveSectionsParams) SetRegion(region *string)

SetRegion adds the region to the public list active sections params

func (*PublicListActiveSectionsParams) SetStoreID

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

SetStoreID adds the storeId to the public list active sections params

func (*PublicListActiveSectionsParams) SetTimeout

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

SetTimeout adds the timeout to the public list active sections params

func (*PublicListActiveSectionsParams) SetUserID

func (o *PublicListActiveSectionsParams) SetUserID(userID string)

SetUserID adds the userId to the public list active sections params

func (*PublicListActiveSectionsParams) SetViewID

func (o *PublicListActiveSectionsParams) SetViewID(viewID *string)

SetViewID adds the viewId to the public list active sections params

func (*PublicListActiveSectionsParams) WithAutoCalcEstimatedPrice

func (o *PublicListActiveSectionsParams) WithAutoCalcEstimatedPrice(autoCalcEstimatedPrice *bool) *PublicListActiveSectionsParams

WithAutoCalcEstimatedPrice adds the autoCalcEstimatedPrice to the public list active sections params

func (*PublicListActiveSectionsParams) WithContext

WithContext adds the context to the public list active sections params

func (*PublicListActiveSectionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public list active sections params

func (*PublicListActiveSectionsParams) WithLanguage

WithLanguage adds the language to the public list active sections params

func (*PublicListActiveSectionsParams) WithNamespace

WithNamespace adds the namespace to the public list active sections params

func (*PublicListActiveSectionsParams) WithRegion

WithRegion adds the region to the public list active sections params

func (*PublicListActiveSectionsParams) WithStoreID

WithStoreID adds the storeID to the public list active sections params

func (*PublicListActiveSectionsParams) WithTimeout

WithTimeout adds the timeout to the public list active sections params

func (*PublicListActiveSectionsParams) WithUserID

WithUserID adds the userID to the public list active sections params

func (*PublicListActiveSectionsParams) WithViewID

WithViewID adds the viewID to the public list active sections params

func (*PublicListActiveSectionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicListActiveSectionsReader

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

PublicListActiveSectionsReader is a Reader for the PublicListActiveSections structure.

func (*PublicListActiveSectionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PurgeExpiredSectionNoContent

type PurgeExpiredSectionNoContent struct {
}

PurgeExpiredSectionNoContent handles this case with default header values.

purge expired section successfully

func NewPurgeExpiredSectionNoContent

func NewPurgeExpiredSectionNoContent() *PurgeExpiredSectionNoContent

NewPurgeExpiredSectionNoContent creates a PurgeExpiredSectionNoContent with default headers values

func (*PurgeExpiredSectionNoContent) Error

type PurgeExpiredSectionNotFound

type PurgeExpiredSectionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PurgeExpiredSectionNotFound 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 NewPurgeExpiredSectionNotFound

func NewPurgeExpiredSectionNotFound() *PurgeExpiredSectionNotFound

NewPurgeExpiredSectionNotFound creates a PurgeExpiredSectionNotFound with default headers values

func (*PurgeExpiredSectionNotFound) Error

func (*PurgeExpiredSectionNotFound) GetPayload

func (*PurgeExpiredSectionNotFound) ToJSONString

func (o *PurgeExpiredSectionNotFound) ToJSONString() string

type PurgeExpiredSectionParams

type PurgeExpiredSectionParams struct {

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

	*/
	Namespace string
	/*StoreID*/
	StoreID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PurgeExpiredSectionParams contains all the parameters to send to the API endpoint for the purge expired section operation typically these are written to a http.Request

func NewPurgeExpiredSectionParams

func NewPurgeExpiredSectionParams() *PurgeExpiredSectionParams

NewPurgeExpiredSectionParams creates a new PurgeExpiredSectionParams object with the default values initialized.

func NewPurgeExpiredSectionParamsWithContext

func NewPurgeExpiredSectionParamsWithContext(ctx context.Context) *PurgeExpiredSectionParams

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

func NewPurgeExpiredSectionParamsWithHTTPClient

func NewPurgeExpiredSectionParamsWithHTTPClient(client *http.Client) *PurgeExpiredSectionParams

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

func NewPurgeExpiredSectionParamsWithTimeout

func NewPurgeExpiredSectionParamsWithTimeout(timeout time.Duration) *PurgeExpiredSectionParams

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

func (*PurgeExpiredSectionParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the purge expired section params

func (*PurgeExpiredSectionParams) SetContext

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

SetContext adds the context to the purge expired section params

func (*PurgeExpiredSectionParams) SetFlightId

func (o *PurgeExpiredSectionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PurgeExpiredSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the purge expired section params

func (*PurgeExpiredSectionParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the purge expired section params

func (*PurgeExpiredSectionParams) SetNamespace

func (o *PurgeExpiredSectionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the purge expired section params

func (*PurgeExpiredSectionParams) SetStoreID

func (o *PurgeExpiredSectionParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the purge expired section params

func (*PurgeExpiredSectionParams) SetTimeout

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

SetTimeout adds the timeout to the purge expired section params

func (*PurgeExpiredSectionParams) WithContext

WithContext adds the context to the purge expired section params

func (*PurgeExpiredSectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the purge expired section params

func (*PurgeExpiredSectionParams) WithNamespace

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

WithNamespace adds the namespace to the purge expired section params

func (*PurgeExpiredSectionParams) WithStoreID

WithStoreID adds the storeID to the purge expired section params

func (*PurgeExpiredSectionParams) WithTimeout

WithTimeout adds the timeout to the purge expired section params

func (*PurgeExpiredSectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PurgeExpiredSectionReader

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

PurgeExpiredSectionReader is a Reader for the PurgeExpiredSection structure.

func (*PurgeExpiredSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QuerySectionsNotFound

type QuerySectionsNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

QuerySectionsNotFound 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 NewQuerySectionsNotFound

func NewQuerySectionsNotFound() *QuerySectionsNotFound

NewQuerySectionsNotFound creates a QuerySectionsNotFound with default headers values

func (*QuerySectionsNotFound) Error

func (o *QuerySectionsNotFound) Error() string

func (*QuerySectionsNotFound) GetPayload

func (*QuerySectionsNotFound) ToJSONString

func (o *QuerySectionsNotFound) ToJSONString() string

type QuerySectionsOK

type QuerySectionsOK struct {
	Payload *platformclientmodels.SectionPagingSlicedResult
}

QuerySectionsOK handles this case with default header values.

successful operation

func NewQuerySectionsOK

func NewQuerySectionsOK() *QuerySectionsOK

NewQuerySectionsOK creates a QuerySectionsOK with default headers values

func (*QuerySectionsOK) Error

func (o *QuerySectionsOK) Error() string

func (*QuerySectionsOK) GetPayload

func (*QuerySectionsOK) ToJSONString

func (o *QuerySectionsOK) ToJSONString() string

type QuerySectionsParams

type QuerySectionsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*End
	  section active range time end, using ISO 8601 format e.g. yyyy-MM-dd'T'HH:mm:ssZZ

	*/
	End *string
	/*Limit
	  limit

	*/
	Limit *int32
	/*Offset
	  offset

	*/
	Offset *int32
	/*Start
	  section active range time start , using ISO 8601 format e.g. yyyy-MM-dd'T'HH:mm:ssZZ

	*/
	Start *string
	/*StoreID
	  default is published store id

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

QuerySectionsParams contains all the parameters to send to the API endpoint for the query sections operation typically these are written to a http.Request

func NewQuerySectionsParams

func NewQuerySectionsParams() *QuerySectionsParams

NewQuerySectionsParams creates a new QuerySectionsParams object with the default values initialized.

func NewQuerySectionsParamsWithContext

func NewQuerySectionsParamsWithContext(ctx context.Context) *QuerySectionsParams

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

func NewQuerySectionsParamsWithHTTPClient

func NewQuerySectionsParamsWithHTTPClient(client *http.Client) *QuerySectionsParams

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

func NewQuerySectionsParamsWithTimeout

func NewQuerySectionsParamsWithTimeout(timeout time.Duration) *QuerySectionsParams

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

func (*QuerySectionsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the query sections params

func (*QuerySectionsParams) SetContext

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

SetContext adds the context to the query sections params

func (*QuerySectionsParams) SetEnd

func (o *QuerySectionsParams) SetEnd(end *string)

SetEnd adds the end to the query sections params

func (*QuerySectionsParams) SetFlightId

func (o *QuerySectionsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*QuerySectionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query sections params

func (*QuerySectionsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the query sections params

func (*QuerySectionsParams) SetLimit

func (o *QuerySectionsParams) SetLimit(limit *int32)

SetLimit adds the limit to the query sections params

func (*QuerySectionsParams) SetNamespace

func (o *QuerySectionsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query sections params

func (*QuerySectionsParams) SetOffset

func (o *QuerySectionsParams) SetOffset(offset *int32)

SetOffset adds the offset to the query sections params

func (*QuerySectionsParams) SetStart

func (o *QuerySectionsParams) SetStart(start *string)

SetStart adds the start to the query sections params

func (*QuerySectionsParams) SetStoreID

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

SetStoreID adds the storeId to the query sections params

func (*QuerySectionsParams) SetTimeout

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

SetTimeout adds the timeout to the query sections params

func (*QuerySectionsParams) SetViewID

func (o *QuerySectionsParams) SetViewID(viewID *string)

SetViewID adds the viewId to the query sections params

func (*QuerySectionsParams) WithContext

WithContext adds the context to the query sections params

func (*QuerySectionsParams) WithEnd

WithEnd adds the end to the query sections params

func (*QuerySectionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query sections params

func (*QuerySectionsParams) WithLimit

func (o *QuerySectionsParams) WithLimit(limit *int32) *QuerySectionsParams

WithLimit adds the limit to the query sections params

func (*QuerySectionsParams) WithNamespace

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

WithNamespace adds the namespace to the query sections params

func (*QuerySectionsParams) WithOffset

func (o *QuerySectionsParams) WithOffset(offset *int32) *QuerySectionsParams

WithOffset adds the offset to the query sections params

func (*QuerySectionsParams) WithStart

func (o *QuerySectionsParams) WithStart(start *string) *QuerySectionsParams

WithStart adds the start to the query sections params

func (*QuerySectionsParams) WithStoreID

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

WithStoreID adds the storeID to the query sections params

func (*QuerySectionsParams) WithTimeout

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

WithTimeout adds the timeout to the query sections params

func (*QuerySectionsParams) WithViewID

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

WithViewID adds the viewID to the query sections params

func (*QuerySectionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QuerySectionsReader

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

QuerySectionsReader is a Reader for the QuerySections structure.

func (*QuerySectionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QuerySectionsUnprocessableEntity

type QuerySectionsUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

QuerySectionsUnprocessableEntity 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 NewQuerySectionsUnprocessableEntity

func NewQuerySectionsUnprocessableEntity() *QuerySectionsUnprocessableEntity

NewQuerySectionsUnprocessableEntity creates a QuerySectionsUnprocessableEntity with default headers values

func (*QuerySectionsUnprocessableEntity) Error

func (*QuerySectionsUnprocessableEntity) GetPayload

func (*QuerySectionsUnprocessableEntity) ToJSONString

func (o *QuerySectionsUnprocessableEntity) ToJSONString() string

type UpdateSectionBadRequest

type UpdateSectionBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateSectionBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20027</td><td>Invalid time range</td></tr><tr><td>30021</td><td>Default language [{language}] required</td></tr><tr><td>30023</td><td>Catalog plugin grpc server address required</td></tr></table>

func NewUpdateSectionBadRequest

func NewUpdateSectionBadRequest() *UpdateSectionBadRequest

NewUpdateSectionBadRequest creates a UpdateSectionBadRequest with default headers values

func (*UpdateSectionBadRequest) Error

func (o *UpdateSectionBadRequest) Error() string

func (*UpdateSectionBadRequest) GetPayload

func (*UpdateSectionBadRequest) ToJSONString

func (o *UpdateSectionBadRequest) ToJSONString() string

type UpdateSectionConflict

type UpdateSectionConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateSectionConflict 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 NewUpdateSectionConflict

func NewUpdateSectionConflict() *UpdateSectionConflict

NewUpdateSectionConflict creates a UpdateSectionConflict with default headers values

func (*UpdateSectionConflict) Error

func (o *UpdateSectionConflict) Error() string

func (*UpdateSectionConflict) GetPayload

func (*UpdateSectionConflict) ToJSONString

func (o *UpdateSectionConflict) ToJSONString() string

type UpdateSectionNotFound

type UpdateSectionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateSectionNotFound 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><tr><td>30741</td><td>Section [{sectionId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewUpdateSectionNotFound

func NewUpdateSectionNotFound() *UpdateSectionNotFound

NewUpdateSectionNotFound creates a UpdateSectionNotFound with default headers values

func (*UpdateSectionNotFound) Error

func (o *UpdateSectionNotFound) Error() string

func (*UpdateSectionNotFound) GetPayload

func (*UpdateSectionNotFound) ToJSONString

func (o *UpdateSectionNotFound) ToJSONString() string

type UpdateSectionOK

type UpdateSectionOK struct {
	Payload *platformclientmodels.FullSectionInfo
}

UpdateSectionOK handles this case with default header values.

successful operation

func NewUpdateSectionOK

func NewUpdateSectionOK() *UpdateSectionOK

NewUpdateSectionOK creates a UpdateSectionOK with default headers values

func (*UpdateSectionOK) Error

func (o *UpdateSectionOK) Error() string

func (*UpdateSectionOK) GetPayload

func (*UpdateSectionOK) ToJSONString

func (o *UpdateSectionOK) ToJSONString() string

type UpdateSectionParams

type UpdateSectionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.SectionUpdate
	/*Namespace*/
	Namespace string
	/*SectionID*/
	SectionID string
	/*StoreID*/
	StoreID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewUpdateSectionParams

func NewUpdateSectionParams() *UpdateSectionParams

NewUpdateSectionParams creates a new UpdateSectionParams object with the default values initialized.

func NewUpdateSectionParamsWithContext

func NewUpdateSectionParamsWithContext(ctx context.Context) *UpdateSectionParams

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

func NewUpdateSectionParamsWithHTTPClient

func NewUpdateSectionParamsWithHTTPClient(client *http.Client) *UpdateSectionParams

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

func NewUpdateSectionParamsWithTimeout

func NewUpdateSectionParamsWithTimeout(timeout time.Duration) *UpdateSectionParams

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

func (*UpdateSectionParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update section params

func (*UpdateSectionParams) SetBody

SetBody adds the body to the update section params

func (*UpdateSectionParams) SetContext

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

SetContext adds the context to the update section params

func (*UpdateSectionParams) SetFlightId

func (o *UpdateSectionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*UpdateSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update section params

func (*UpdateSectionParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the update section params

func (*UpdateSectionParams) SetNamespace

func (o *UpdateSectionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update section params

func (*UpdateSectionParams) SetSectionID

func (o *UpdateSectionParams) SetSectionID(sectionID string)

SetSectionID adds the sectionId to the update section params

func (*UpdateSectionParams) SetStoreID

func (o *UpdateSectionParams) SetStoreID(storeID string)

SetStoreID adds the storeId to the update section params

func (*UpdateSectionParams) SetTimeout

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

SetTimeout adds the timeout to the update section params

func (*UpdateSectionParams) WithBody

WithBody adds the body to the update section params

func (*UpdateSectionParams) WithContext

WithContext adds the context to the update section params

func (*UpdateSectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update section params

func (*UpdateSectionParams) WithNamespace

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

WithNamespace adds the namespace to the update section params

func (*UpdateSectionParams) WithSectionID

func (o *UpdateSectionParams) WithSectionID(sectionID string) *UpdateSectionParams

WithSectionID adds the sectionID to the update section params

func (*UpdateSectionParams) WithStoreID

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

WithStoreID adds the storeID to the update section params

func (*UpdateSectionParams) WithTimeout

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

WithTimeout adds the timeout to the update section params

func (*UpdateSectionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateSectionReader

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

UpdateSectionReader is a Reader for the UpdateSection structure.

func (*UpdateSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSectionUnprocessableEntity

type UpdateSectionUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UpdateSectionUnprocessableEntity 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 NewUpdateSectionUnprocessableEntity

func NewUpdateSectionUnprocessableEntity() *UpdateSectionUnprocessableEntity

NewUpdateSectionUnprocessableEntity creates a UpdateSectionUnprocessableEntity with default headers values

func (*UpdateSectionUnprocessableEntity) Error

func (*UpdateSectionUnprocessableEntity) GetPayload

func (*UpdateSectionUnprocessableEntity) ToJSONString

func (o *UpdateSectionUnprocessableEntity) ToJSONString() string

Jump to

Keyboard shortcuts

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