cms_page_repository_v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for cms page repository v1 API

func (*Client) CmsPageRepositoryV1GetByIDGet

func (a *Client) CmsPageRepositoryV1GetByIDGet(params *CmsPageRepositoryV1GetByIDGetParams, opts ...ClientOption) (*CmsPageRepositoryV1GetByIDGetOK, error)

CmsPageRepositoryV1GetByIDGet Retrieve page.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CmsPageRepositoryV1GetByIDGet(params *CmsPageRepositoryV1GetByIDGetParams, opts ...ClientOption) (*CmsPageRepositoryV1GetByIDGetOK, 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 cms page repository v1 API client.

type CmsPageRepositoryV1GetByIDGetDefault

type CmsPageRepositoryV1GetByIDGetDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
CmsPageRepositoryV1GetByIDGetDefault describes a response with status code -1, with default header values.

Unexpected error

func NewCmsPageRepositoryV1GetByIDGetDefault

func NewCmsPageRepositoryV1GetByIDGetDefault(code int) *CmsPageRepositoryV1GetByIDGetDefault

NewCmsPageRepositoryV1GetByIDGetDefault creates a CmsPageRepositoryV1GetByIDGetDefault with default headers values

func (*CmsPageRepositoryV1GetByIDGetDefault) Code

Code gets the status code for the cms page repository v1 get by Id get default response

func (*CmsPageRepositoryV1GetByIDGetDefault) Error

func (*CmsPageRepositoryV1GetByIDGetDefault) GetPayload

type CmsPageRepositoryV1GetByIDGetInternalServerError

type CmsPageRepositoryV1GetByIDGetInternalServerError struct {
	Payload *models.ErrorResponse
}
CmsPageRepositoryV1GetByIDGetInternalServerError describes a response with status code 500, with default header values.

Internal Server error

func NewCmsPageRepositoryV1GetByIDGetInternalServerError

func NewCmsPageRepositoryV1GetByIDGetInternalServerError() *CmsPageRepositoryV1GetByIDGetInternalServerError

NewCmsPageRepositoryV1GetByIDGetInternalServerError creates a CmsPageRepositoryV1GetByIDGetInternalServerError with default headers values

func (*CmsPageRepositoryV1GetByIDGetInternalServerError) Error

func (*CmsPageRepositoryV1GetByIDGetInternalServerError) GetPayload

type CmsPageRepositoryV1GetByIDGetOK

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

200 Success.

func NewCmsPageRepositoryV1GetByIDGetOK

func NewCmsPageRepositoryV1GetByIDGetOK() *CmsPageRepositoryV1GetByIDGetOK

NewCmsPageRepositoryV1GetByIDGetOK creates a CmsPageRepositoryV1GetByIDGetOK with default headers values

func (*CmsPageRepositoryV1GetByIDGetOK) Error

func (*CmsPageRepositoryV1GetByIDGetOK) GetPayload

type CmsPageRepositoryV1GetByIDGetParams

type CmsPageRepositoryV1GetByIDGetParams struct {

	// PageID.
	PageID int64

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

CmsPageRepositoryV1GetByIDGetParams contains all the parameters to send to the API endpoint

for the cms page repository v1 get by Id get operation.

Typically these are written to a http.Request.

func NewCmsPageRepositoryV1GetByIDGetParams

func NewCmsPageRepositoryV1GetByIDGetParams() *CmsPageRepositoryV1GetByIDGetParams

NewCmsPageRepositoryV1GetByIDGetParams creates a new CmsPageRepositoryV1GetByIDGetParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCmsPageRepositoryV1GetByIDGetParamsWithContext

func NewCmsPageRepositoryV1GetByIDGetParamsWithContext(ctx context.Context) *CmsPageRepositoryV1GetByIDGetParams

NewCmsPageRepositoryV1GetByIDGetParamsWithContext creates a new CmsPageRepositoryV1GetByIDGetParams object with the ability to set a context for a request.

func NewCmsPageRepositoryV1GetByIDGetParamsWithHTTPClient

func NewCmsPageRepositoryV1GetByIDGetParamsWithHTTPClient(client *http.Client) *CmsPageRepositoryV1GetByIDGetParams

NewCmsPageRepositoryV1GetByIDGetParamsWithHTTPClient creates a new CmsPageRepositoryV1GetByIDGetParams object with the ability to set a custom HTTPClient for a request.

func NewCmsPageRepositoryV1GetByIDGetParamsWithTimeout

func NewCmsPageRepositoryV1GetByIDGetParamsWithTimeout(timeout time.Duration) *CmsPageRepositoryV1GetByIDGetParams

NewCmsPageRepositoryV1GetByIDGetParamsWithTimeout creates a new CmsPageRepositoryV1GetByIDGetParams object with the ability to set a timeout on a request.

func (*CmsPageRepositoryV1GetByIDGetParams) SetContext

SetContext adds the context to the cms page repository v1 get by Id get params

func (*CmsPageRepositoryV1GetByIDGetParams) SetDefaults

func (o *CmsPageRepositoryV1GetByIDGetParams) SetDefaults()

SetDefaults hydrates default values in the cms page repository v1 get by Id get params (not the query body).

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

func (*CmsPageRepositoryV1GetByIDGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cms page repository v1 get by Id get params

func (*CmsPageRepositoryV1GetByIDGetParams) SetPageID

func (o *CmsPageRepositoryV1GetByIDGetParams) SetPageID(pageID int64)

SetPageID adds the pageId to the cms page repository v1 get by Id get params

func (*CmsPageRepositoryV1GetByIDGetParams) SetTimeout

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

SetTimeout adds the timeout to the cms page repository v1 get by Id get params

func (*CmsPageRepositoryV1GetByIDGetParams) WithContext

WithContext adds the context to the cms page repository v1 get by Id get params

func (*CmsPageRepositoryV1GetByIDGetParams) WithDefaults

WithDefaults hydrates default values in the cms page repository v1 get by Id get params (not the query body).

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

func (*CmsPageRepositoryV1GetByIDGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the cms page repository v1 get by Id get params

func (*CmsPageRepositoryV1GetByIDGetParams) WithPageID

WithPageID adds the pageID to the cms page repository v1 get by Id get params

func (*CmsPageRepositoryV1GetByIDGetParams) WithTimeout

WithTimeout adds the timeout to the cms page repository v1 get by Id get params

func (*CmsPageRepositoryV1GetByIDGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CmsPageRepositoryV1GetByIDGetReader

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

CmsPageRepositoryV1GetByIDGetReader is a Reader for the CmsPageRepositoryV1GetByIDGet structure.

func (*CmsPageRepositoryV1GetByIDGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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