Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type CmsPageRepositoryV1GetByIDGetDefault
- type CmsPageRepositoryV1GetByIDGetInternalServerError
- type CmsPageRepositoryV1GetByIDGetOK
- type CmsPageRepositoryV1GetByIDGetParams
- func NewCmsPageRepositoryV1GetByIDGetParams() *CmsPageRepositoryV1GetByIDGetParams
- func NewCmsPageRepositoryV1GetByIDGetParamsWithContext(ctx context.Context) *CmsPageRepositoryV1GetByIDGetParams
- func NewCmsPageRepositoryV1GetByIDGetParamsWithHTTPClient(client *http.Client) *CmsPageRepositoryV1GetByIDGetParams
- func NewCmsPageRepositoryV1GetByIDGetParamsWithTimeout(timeout time.Duration) *CmsPageRepositoryV1GetByIDGetParams
- func (o *CmsPageRepositoryV1GetByIDGetParams) SetContext(ctx context.Context)
- func (o *CmsPageRepositoryV1GetByIDGetParams) SetDefaults()
- func (o *CmsPageRepositoryV1GetByIDGetParams) SetHTTPClient(client *http.Client)
- func (o *CmsPageRepositoryV1GetByIDGetParams) SetPageID(pageID int64)
- func (o *CmsPageRepositoryV1GetByIDGetParams) SetTimeout(timeout time.Duration)
- func (o *CmsPageRepositoryV1GetByIDGetParams) WithContext(ctx context.Context) *CmsPageRepositoryV1GetByIDGetParams
- func (o *CmsPageRepositoryV1GetByIDGetParams) WithDefaults() *CmsPageRepositoryV1GetByIDGetParams
- func (o *CmsPageRepositoryV1GetByIDGetParams) WithHTTPClient(client *http.Client) *CmsPageRepositoryV1GetByIDGetParams
- func (o *CmsPageRepositoryV1GetByIDGetParams) WithPageID(pageID int64) *CmsPageRepositoryV1GetByIDGetParams
- func (o *CmsPageRepositoryV1GetByIDGetParams) WithTimeout(timeout time.Duration) *CmsPageRepositoryV1GetByIDGetParams
- func (o *CmsPageRepositoryV1GetByIDGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CmsPageRepositoryV1GetByIDGetReader
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 ¶
func (o *CmsPageRepositoryV1GetByIDGetDefault) Code() int
Code gets the status code for the cms page repository v1 get by Id get default response
func (*CmsPageRepositoryV1GetByIDGetDefault) Error ¶
func (o *CmsPageRepositoryV1GetByIDGetDefault) Error() string
func (*CmsPageRepositoryV1GetByIDGetDefault) GetPayload ¶
func (o *CmsPageRepositoryV1GetByIDGetDefault) GetPayload() *models.ErrorResponse
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 (o *CmsPageRepositoryV1GetByIDGetInternalServerError) Error() string
func (*CmsPageRepositoryV1GetByIDGetInternalServerError) GetPayload ¶
func (o *CmsPageRepositoryV1GetByIDGetInternalServerError) GetPayload() *models.ErrorResponse
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 (o *CmsPageRepositoryV1GetByIDGetOK) Error() string
func (*CmsPageRepositoryV1GetByIDGetOK) GetPayload ¶
func (o *CmsPageRepositoryV1GetByIDGetOK) GetPayload() *models.CmsDataPageInterface
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 ¶
func (o *CmsPageRepositoryV1GetByIDGetParams) SetContext(ctx context.Context)
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 ¶
func (o *CmsPageRepositoryV1GetByIDGetParams) WithContext(ctx context.Context) *CmsPageRepositoryV1GetByIDGetParams
WithContext adds the context to the cms page repository v1 get by Id get params
func (*CmsPageRepositoryV1GetByIDGetParams) WithDefaults ¶
func (o *CmsPageRepositoryV1GetByIDGetParams) WithDefaults() *CmsPageRepositoryV1GetByIDGetParams
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 ¶
func (o *CmsPageRepositoryV1GetByIDGetParams) WithHTTPClient(client *http.Client) *CmsPageRepositoryV1GetByIDGetParams
WithHTTPClient adds the HTTPClient to the cms page repository v1 get by Id get params
func (*CmsPageRepositoryV1GetByIDGetParams) WithPageID ¶
func (o *CmsPageRepositoryV1GetByIDGetParams) WithPageID(pageID int64) *CmsPageRepositoryV1GetByIDGetParams
WithPageID adds the pageID to the cms page repository v1 get by Id get params
func (*CmsPageRepositoryV1GetByIDGetParams) WithTimeout ¶
func (o *CmsPageRepositoryV1GetByIDGetParams) WithTimeout(timeout time.Duration) *CmsPageRepositoryV1GetByIDGetParams
WithTimeout adds the timeout to the cms page repository v1 get by Id get params
func (*CmsPageRepositoryV1GetByIDGetParams) WriteToRequest ¶
func (o *CmsPageRepositoryV1GetByIDGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.