Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type CmsBlockRepositoryV1GetByIDGetDefault
- type CmsBlockRepositoryV1GetByIDGetInternalServerError
- type CmsBlockRepositoryV1GetByIDGetOK
- type CmsBlockRepositoryV1GetByIDGetParams
- func NewCmsBlockRepositoryV1GetByIDGetParams() *CmsBlockRepositoryV1GetByIDGetParams
- func NewCmsBlockRepositoryV1GetByIDGetParamsWithContext(ctx context.Context) *CmsBlockRepositoryV1GetByIDGetParams
- func NewCmsBlockRepositoryV1GetByIDGetParamsWithHTTPClient(client *http.Client) *CmsBlockRepositoryV1GetByIDGetParams
- func NewCmsBlockRepositoryV1GetByIDGetParamsWithTimeout(timeout time.Duration) *CmsBlockRepositoryV1GetByIDGetParams
- func (o *CmsBlockRepositoryV1GetByIDGetParams) SetBlockID(blockID string)
- func (o *CmsBlockRepositoryV1GetByIDGetParams) SetContext(ctx context.Context)
- func (o *CmsBlockRepositoryV1GetByIDGetParams) SetDefaults()
- func (o *CmsBlockRepositoryV1GetByIDGetParams) SetHTTPClient(client *http.Client)
- func (o *CmsBlockRepositoryV1GetByIDGetParams) SetTimeout(timeout time.Duration)
- func (o *CmsBlockRepositoryV1GetByIDGetParams) WithBlockID(blockID string) *CmsBlockRepositoryV1GetByIDGetParams
- func (o *CmsBlockRepositoryV1GetByIDGetParams) WithContext(ctx context.Context) *CmsBlockRepositoryV1GetByIDGetParams
- func (o *CmsBlockRepositoryV1GetByIDGetParams) WithDefaults() *CmsBlockRepositoryV1GetByIDGetParams
- func (o *CmsBlockRepositoryV1GetByIDGetParams) WithHTTPClient(client *http.Client) *CmsBlockRepositoryV1GetByIDGetParams
- func (o *CmsBlockRepositoryV1GetByIDGetParams) WithTimeout(timeout time.Duration) *CmsBlockRepositoryV1GetByIDGetParams
- func (o *CmsBlockRepositoryV1GetByIDGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CmsBlockRepositoryV1GetByIDGetReader
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 block repository v1 API
func (*Client) CmsBlockRepositoryV1GetByIDGet ¶
func (a *Client) CmsBlockRepositoryV1GetByIDGet(params *CmsBlockRepositoryV1GetByIDGetParams, opts ...ClientOption) (*CmsBlockRepositoryV1GetByIDGetOK, error)
CmsBlockRepositoryV1GetByIDGet Retrieve block.
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 { CmsBlockRepositoryV1GetByIDGet(params *CmsBlockRepositoryV1GetByIDGetParams, opts ...ClientOption) (*CmsBlockRepositoryV1GetByIDGetOK, 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 block repository v1 API client.
type CmsBlockRepositoryV1GetByIDGetDefault ¶
type CmsBlockRepositoryV1GetByIDGetDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CmsBlockRepositoryV1GetByIDGetDefault describes a response with status code -1, with default header values.
Unexpected error
func NewCmsBlockRepositoryV1GetByIDGetDefault ¶
func NewCmsBlockRepositoryV1GetByIDGetDefault(code int) *CmsBlockRepositoryV1GetByIDGetDefault
NewCmsBlockRepositoryV1GetByIDGetDefault creates a CmsBlockRepositoryV1GetByIDGetDefault with default headers values
func (*CmsBlockRepositoryV1GetByIDGetDefault) Code ¶
func (o *CmsBlockRepositoryV1GetByIDGetDefault) Code() int
Code gets the status code for the cms block repository v1 get by Id get default response
func (*CmsBlockRepositoryV1GetByIDGetDefault) Error ¶
func (o *CmsBlockRepositoryV1GetByIDGetDefault) Error() string
func (*CmsBlockRepositoryV1GetByIDGetDefault) GetPayload ¶
func (o *CmsBlockRepositoryV1GetByIDGetDefault) GetPayload() *models.ErrorResponse
type CmsBlockRepositoryV1GetByIDGetInternalServerError ¶
type CmsBlockRepositoryV1GetByIDGetInternalServerError struct {
Payload *models.ErrorResponse
}
CmsBlockRepositoryV1GetByIDGetInternalServerError describes a response with status code 500, with default header values.
Internal Server error
func NewCmsBlockRepositoryV1GetByIDGetInternalServerError ¶
func NewCmsBlockRepositoryV1GetByIDGetInternalServerError() *CmsBlockRepositoryV1GetByIDGetInternalServerError
NewCmsBlockRepositoryV1GetByIDGetInternalServerError creates a CmsBlockRepositoryV1GetByIDGetInternalServerError with default headers values
func (*CmsBlockRepositoryV1GetByIDGetInternalServerError) Error ¶
func (o *CmsBlockRepositoryV1GetByIDGetInternalServerError) Error() string
func (*CmsBlockRepositoryV1GetByIDGetInternalServerError) GetPayload ¶
func (o *CmsBlockRepositoryV1GetByIDGetInternalServerError) GetPayload() *models.ErrorResponse
type CmsBlockRepositoryV1GetByIDGetOK ¶
type CmsBlockRepositoryV1GetByIDGetOK struct {
Payload *models.CmsDataBlockInterface
}
CmsBlockRepositoryV1GetByIDGetOK describes a response with status code 200, with default header values.
200 Success.
func NewCmsBlockRepositoryV1GetByIDGetOK ¶
func NewCmsBlockRepositoryV1GetByIDGetOK() *CmsBlockRepositoryV1GetByIDGetOK
NewCmsBlockRepositoryV1GetByIDGetOK creates a CmsBlockRepositoryV1GetByIDGetOK with default headers values
func (*CmsBlockRepositoryV1GetByIDGetOK) Error ¶
func (o *CmsBlockRepositoryV1GetByIDGetOK) Error() string
func (*CmsBlockRepositoryV1GetByIDGetOK) GetPayload ¶
func (o *CmsBlockRepositoryV1GetByIDGetOK) GetPayload() *models.CmsDataBlockInterface
type CmsBlockRepositoryV1GetByIDGetParams ¶
type CmsBlockRepositoryV1GetByIDGetParams struct { // BlockID. BlockID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CmsBlockRepositoryV1GetByIDGetParams contains all the parameters to send to the API endpoint
for the cms block repository v1 get by Id get operation. Typically these are written to a http.Request.
func NewCmsBlockRepositoryV1GetByIDGetParams ¶
func NewCmsBlockRepositoryV1GetByIDGetParams() *CmsBlockRepositoryV1GetByIDGetParams
NewCmsBlockRepositoryV1GetByIDGetParams creates a new CmsBlockRepositoryV1GetByIDGetParams 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 NewCmsBlockRepositoryV1GetByIDGetParamsWithContext ¶
func NewCmsBlockRepositoryV1GetByIDGetParamsWithContext(ctx context.Context) *CmsBlockRepositoryV1GetByIDGetParams
NewCmsBlockRepositoryV1GetByIDGetParamsWithContext creates a new CmsBlockRepositoryV1GetByIDGetParams object with the ability to set a context for a request.
func NewCmsBlockRepositoryV1GetByIDGetParamsWithHTTPClient ¶
func NewCmsBlockRepositoryV1GetByIDGetParamsWithHTTPClient(client *http.Client) *CmsBlockRepositoryV1GetByIDGetParams
NewCmsBlockRepositoryV1GetByIDGetParamsWithHTTPClient creates a new CmsBlockRepositoryV1GetByIDGetParams object with the ability to set a custom HTTPClient for a request.
func NewCmsBlockRepositoryV1GetByIDGetParamsWithTimeout ¶
func NewCmsBlockRepositoryV1GetByIDGetParamsWithTimeout(timeout time.Duration) *CmsBlockRepositoryV1GetByIDGetParams
NewCmsBlockRepositoryV1GetByIDGetParamsWithTimeout creates a new CmsBlockRepositoryV1GetByIDGetParams object with the ability to set a timeout on a request.
func (*CmsBlockRepositoryV1GetByIDGetParams) SetBlockID ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) SetBlockID(blockID string)
SetBlockID adds the blockId to the cms block repository v1 get by Id get params
func (*CmsBlockRepositoryV1GetByIDGetParams) SetContext ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) SetContext(ctx context.Context)
SetContext adds the context to the cms block repository v1 get by Id get params
func (*CmsBlockRepositoryV1GetByIDGetParams) SetDefaults ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) SetDefaults()
SetDefaults hydrates default values in the cms block repository v1 get by Id get params (not the query body).
All values with no default are reset to their zero value.
func (*CmsBlockRepositoryV1GetByIDGetParams) SetHTTPClient ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cms block repository v1 get by Id get params
func (*CmsBlockRepositoryV1GetByIDGetParams) SetTimeout ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cms block repository v1 get by Id get params
func (*CmsBlockRepositoryV1GetByIDGetParams) WithBlockID ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) WithBlockID(blockID string) *CmsBlockRepositoryV1GetByIDGetParams
WithBlockID adds the blockID to the cms block repository v1 get by Id get params
func (*CmsBlockRepositoryV1GetByIDGetParams) WithContext ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) WithContext(ctx context.Context) *CmsBlockRepositoryV1GetByIDGetParams
WithContext adds the context to the cms block repository v1 get by Id get params
func (*CmsBlockRepositoryV1GetByIDGetParams) WithDefaults ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) WithDefaults() *CmsBlockRepositoryV1GetByIDGetParams
WithDefaults hydrates default values in the cms block repository v1 get by Id get params (not the query body).
All values with no default are reset to their zero value.
func (*CmsBlockRepositoryV1GetByIDGetParams) WithHTTPClient ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) WithHTTPClient(client *http.Client) *CmsBlockRepositoryV1GetByIDGetParams
WithHTTPClient adds the HTTPClient to the cms block repository v1 get by Id get params
func (*CmsBlockRepositoryV1GetByIDGetParams) WithTimeout ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) WithTimeout(timeout time.Duration) *CmsBlockRepositoryV1GetByIDGetParams
WithTimeout adds the timeout to the cms block repository v1 get by Id get params
func (*CmsBlockRepositoryV1GetByIDGetParams) WriteToRequest ¶
func (o *CmsBlockRepositoryV1GetByIDGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CmsBlockRepositoryV1GetByIDGetReader ¶
type CmsBlockRepositoryV1GetByIDGetReader struct {
// contains filtered or unexported fields
}
CmsBlockRepositoryV1GetByIDGetReader is a Reader for the CmsBlockRepositoryV1GetByIDGet structure.
func (*CmsBlockRepositoryV1GetByIDGetReader) ReadResponse ¶
func (o *CmsBlockRepositoryV1GetByIDGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.