cms_block_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: 10 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 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

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

func (*CmsBlockRepositoryV1GetByIDGetDefault) Error

func (*CmsBlockRepositoryV1GetByIDGetDefault) GetPayload

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 (*CmsBlockRepositoryV1GetByIDGetInternalServerError) GetPayload

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 (*CmsBlockRepositoryV1GetByIDGetOK) GetPayload

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

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

WithBlockID adds the blockID to the cms block repository v1 get by Id get params

func (*CmsBlockRepositoryV1GetByIDGetParams) WithContext

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

func (*CmsBlockRepositoryV1GetByIDGetParams) WithDefaults

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

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

func (*CmsBlockRepositoryV1GetByIDGetParams) WithTimeout

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

func (*CmsBlockRepositoryV1GetByIDGetParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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