link_template

package
v0.0.0-...-4232bc2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 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 link template API

func (*Client) CreateLinkTemplate

func (a *Client) CreateLinkTemplate(params *CreateLinkTemplateParams, opts ...ClientOption) (*CreateLinkTemplateOK, error)

CreateLinkTemplate create link template API

func (*Client) DeleteLinkTemplate

func (a *Client) DeleteLinkTemplate(params *DeleteLinkTemplateParams, opts ...ClientOption) (*DeleteLinkTemplateOK, error)

DeleteLinkTemplate delete link template API

func (*Client) ListLinkTemplates

func (a *Client) ListLinkTemplates(params *ListLinkTemplatesParams, opts ...ClientOption) (*ListLinkTemplatesOK, error)

ListLinkTemplates list link templates API

func (*Client) ReadLinkTemplate

func (a *Client) ReadLinkTemplate(params *ReadLinkTemplateParams, opts ...ClientOption) (*ReadLinkTemplateOK, error)

ReadLinkTemplate read link template API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateLinkTemplate

func (a *Client) UpdateLinkTemplate(params *UpdateLinkTemplateParams, opts ...ClientOption) (*UpdateLinkTemplateOK, error)

UpdateLinkTemplate update link template API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateLinkTemplate(params *CreateLinkTemplateParams, opts ...ClientOption) (*CreateLinkTemplateOK, error)

	DeleteLinkTemplate(params *DeleteLinkTemplateParams, opts ...ClientOption) (*DeleteLinkTemplateOK, error)

	ListLinkTemplates(params *ListLinkTemplatesParams, opts ...ClientOption) (*ListLinkTemplatesOK, error)

	ReadLinkTemplate(params *ReadLinkTemplateParams, opts ...ClientOption) (*ReadLinkTemplateOK, error)

	UpdateLinkTemplate(params *UpdateLinkTemplateParams, opts ...ClientOption) (*UpdateLinkTemplateOK, 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 link template API client.

type CreateLinkTemplateBadRequest

type CreateLinkTemplateBadRequest struct {
	Payload *models.APIError
}

CreateLinkTemplateBadRequest describes a response with status code 400, with default header values.

Cannot create the LinkTemplate because the request is invalid.

func NewCreateLinkTemplateBadRequest

func NewCreateLinkTemplateBadRequest() *CreateLinkTemplateBadRequest

NewCreateLinkTemplateBadRequest creates a CreateLinkTemplateBadRequest with default headers values

func (*CreateLinkTemplateBadRequest) Code

Code gets the status code for the create link template bad request response

func (*CreateLinkTemplateBadRequest) Error

func (*CreateLinkTemplateBadRequest) GetPayload

func (o *CreateLinkTemplateBadRequest) GetPayload() *models.APIError

func (*CreateLinkTemplateBadRequest) IsClientError

func (o *CreateLinkTemplateBadRequest) IsClientError() bool

IsClientError returns true when this create link template bad request response has a 4xx status code

func (*CreateLinkTemplateBadRequest) IsCode

func (o *CreateLinkTemplateBadRequest) IsCode(code int) bool

IsCode returns true when this create link template bad request response a status code equal to that given

func (*CreateLinkTemplateBadRequest) IsRedirect

func (o *CreateLinkTemplateBadRequest) IsRedirect() bool

IsRedirect returns true when this create link template bad request response has a 3xx status code

func (*CreateLinkTemplateBadRequest) IsServerError

func (o *CreateLinkTemplateBadRequest) IsServerError() bool

IsServerError returns true when this create link template bad request response has a 5xx status code

func (*CreateLinkTemplateBadRequest) IsSuccess

func (o *CreateLinkTemplateBadRequest) IsSuccess() bool

IsSuccess returns true when this create link template bad request response has a 2xx status code

func (*CreateLinkTemplateBadRequest) String

type CreateLinkTemplateConflict

type CreateLinkTemplateConflict struct {
	Payload *models.APIError
}

CreateLinkTemplateConflict describes a response with status code 409, with default header values.

Cannot create the LinkTemplate because there is a conflict with an existing LinkTemplate.

func NewCreateLinkTemplateConflict

func NewCreateLinkTemplateConflict() *CreateLinkTemplateConflict

NewCreateLinkTemplateConflict creates a CreateLinkTemplateConflict with default headers values

func (*CreateLinkTemplateConflict) Code

func (o *CreateLinkTemplateConflict) Code() int

Code gets the status code for the create link template conflict response

func (*CreateLinkTemplateConflict) Error

func (*CreateLinkTemplateConflict) GetPayload

func (o *CreateLinkTemplateConflict) GetPayload() *models.APIError

func (*CreateLinkTemplateConflict) IsClientError

func (o *CreateLinkTemplateConflict) IsClientError() bool

IsClientError returns true when this create link template conflict response has a 4xx status code

func (*CreateLinkTemplateConflict) IsCode

func (o *CreateLinkTemplateConflict) IsCode(code int) bool

IsCode returns true when this create link template conflict response a status code equal to that given

func (*CreateLinkTemplateConflict) IsRedirect

func (o *CreateLinkTemplateConflict) IsRedirect() bool

IsRedirect returns true when this create link template conflict response has a 3xx status code

func (*CreateLinkTemplateConflict) IsServerError

func (o *CreateLinkTemplateConflict) IsServerError() bool

IsServerError returns true when this create link template conflict response has a 5xx status code

func (*CreateLinkTemplateConflict) IsSuccess

func (o *CreateLinkTemplateConflict) IsSuccess() bool

IsSuccess returns true when this create link template conflict response has a 2xx status code

func (*CreateLinkTemplateConflict) String

func (o *CreateLinkTemplateConflict) String() string

type CreateLinkTemplateDefault

type CreateLinkTemplateDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateLinkTemplateDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateLinkTemplateDefault

func NewCreateLinkTemplateDefault(code int) *CreateLinkTemplateDefault

NewCreateLinkTemplateDefault creates a CreateLinkTemplateDefault with default headers values

func (*CreateLinkTemplateDefault) Code

func (o *CreateLinkTemplateDefault) Code() int

Code gets the status code for the create link template default response

func (*CreateLinkTemplateDefault) Error

func (o *CreateLinkTemplateDefault) Error() string

func (*CreateLinkTemplateDefault) GetPayload

func (*CreateLinkTemplateDefault) IsClientError

func (o *CreateLinkTemplateDefault) IsClientError() bool

IsClientError returns true when this create link template default response has a 4xx status code

func (*CreateLinkTemplateDefault) IsCode

func (o *CreateLinkTemplateDefault) IsCode(code int) bool

IsCode returns true when this create link template default response a status code equal to that given

func (*CreateLinkTemplateDefault) IsRedirect

func (o *CreateLinkTemplateDefault) IsRedirect() bool

IsRedirect returns true when this create link template default response has a 3xx status code

func (*CreateLinkTemplateDefault) IsServerError

func (o *CreateLinkTemplateDefault) IsServerError() bool

IsServerError returns true when this create link template default response has a 5xx status code

func (*CreateLinkTemplateDefault) IsSuccess

func (o *CreateLinkTemplateDefault) IsSuccess() bool

IsSuccess returns true when this create link template default response has a 2xx status code

func (*CreateLinkTemplateDefault) String

func (o *CreateLinkTemplateDefault) String() string

type CreateLinkTemplateInternalServerError

type CreateLinkTemplateInternalServerError struct {
	Payload *models.APIError
}

CreateLinkTemplateInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateLinkTemplateInternalServerError

func NewCreateLinkTemplateInternalServerError() *CreateLinkTemplateInternalServerError

NewCreateLinkTemplateInternalServerError creates a CreateLinkTemplateInternalServerError with default headers values

func (*CreateLinkTemplateInternalServerError) Code

Code gets the status code for the create link template internal server error response

func (*CreateLinkTemplateInternalServerError) Error

func (*CreateLinkTemplateInternalServerError) GetPayload

func (*CreateLinkTemplateInternalServerError) IsClientError

func (o *CreateLinkTemplateInternalServerError) IsClientError() bool

IsClientError returns true when this create link template internal server error response has a 4xx status code

func (*CreateLinkTemplateInternalServerError) IsCode

IsCode returns true when this create link template internal server error response a status code equal to that given

func (*CreateLinkTemplateInternalServerError) IsRedirect

IsRedirect returns true when this create link template internal server error response has a 3xx status code

func (*CreateLinkTemplateInternalServerError) IsServerError

func (o *CreateLinkTemplateInternalServerError) IsServerError() bool

IsServerError returns true when this create link template internal server error response has a 5xx status code

func (*CreateLinkTemplateInternalServerError) IsSuccess

IsSuccess returns true when this create link template internal server error response has a 2xx status code

func (*CreateLinkTemplateInternalServerError) String

type CreateLinkTemplateOK

type CreateLinkTemplateOK struct {
	Payload *models.ConfigunstableCreateLinkTemplateResponse
}

CreateLinkTemplateOK describes a response with status code 200, with default header values.

A successful response containing the created LinkTemplate.

func NewCreateLinkTemplateOK

func NewCreateLinkTemplateOK() *CreateLinkTemplateOK

NewCreateLinkTemplateOK creates a CreateLinkTemplateOK with default headers values

func (*CreateLinkTemplateOK) Code

func (o *CreateLinkTemplateOK) Code() int

Code gets the status code for the create link template o k response

func (*CreateLinkTemplateOK) Error

func (o *CreateLinkTemplateOK) Error() string

func (*CreateLinkTemplateOK) GetPayload

func (*CreateLinkTemplateOK) IsClientError

func (o *CreateLinkTemplateOK) IsClientError() bool

IsClientError returns true when this create link template o k response has a 4xx status code

func (*CreateLinkTemplateOK) IsCode

func (o *CreateLinkTemplateOK) IsCode(code int) bool

IsCode returns true when this create link template o k response a status code equal to that given

func (*CreateLinkTemplateOK) IsRedirect

func (o *CreateLinkTemplateOK) IsRedirect() bool

IsRedirect returns true when this create link template o k response has a 3xx status code

func (*CreateLinkTemplateOK) IsServerError

func (o *CreateLinkTemplateOK) IsServerError() bool

IsServerError returns true when this create link template o k response has a 5xx status code

func (*CreateLinkTemplateOK) IsSuccess

func (o *CreateLinkTemplateOK) IsSuccess() bool

IsSuccess returns true when this create link template o k response has a 2xx status code

func (*CreateLinkTemplateOK) String

func (o *CreateLinkTemplateOK) String() string

type CreateLinkTemplateParams

type CreateLinkTemplateParams struct {

	// Body.
	Body *models.ConfigunstableCreateLinkTemplateRequest

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

CreateLinkTemplateParams contains all the parameters to send to the API endpoint

for the create link template operation.

Typically these are written to a http.Request.

func NewCreateLinkTemplateParams

func NewCreateLinkTemplateParams() *CreateLinkTemplateParams

NewCreateLinkTemplateParams creates a new CreateLinkTemplateParams 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 NewCreateLinkTemplateParamsWithContext

func NewCreateLinkTemplateParamsWithContext(ctx context.Context) *CreateLinkTemplateParams

NewCreateLinkTemplateParamsWithContext creates a new CreateLinkTemplateParams object with the ability to set a context for a request.

func NewCreateLinkTemplateParamsWithHTTPClient

func NewCreateLinkTemplateParamsWithHTTPClient(client *http.Client) *CreateLinkTemplateParams

NewCreateLinkTemplateParamsWithHTTPClient creates a new CreateLinkTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewCreateLinkTemplateParamsWithTimeout

func NewCreateLinkTemplateParamsWithTimeout(timeout time.Duration) *CreateLinkTemplateParams

NewCreateLinkTemplateParamsWithTimeout creates a new CreateLinkTemplateParams object with the ability to set a timeout on a request.

func (*CreateLinkTemplateParams) SetBody

SetBody adds the body to the create link template params

func (*CreateLinkTemplateParams) SetContext

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

SetContext adds the context to the create link template params

func (*CreateLinkTemplateParams) SetDefaults

func (o *CreateLinkTemplateParams) SetDefaults()

SetDefaults hydrates default values in the create link template params (not the query body).

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

func (*CreateLinkTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create link template params

func (*CreateLinkTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the create link template params

func (*CreateLinkTemplateParams) WithBody

WithBody adds the body to the create link template params

func (*CreateLinkTemplateParams) WithContext

WithContext adds the context to the create link template params

func (*CreateLinkTemplateParams) WithDefaults

WithDefaults hydrates default values in the create link template params (not the query body).

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

func (*CreateLinkTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create link template params

func (*CreateLinkTemplateParams) WithTimeout

WithTimeout adds the timeout to the create link template params

func (*CreateLinkTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateLinkTemplateReader

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

CreateLinkTemplateReader is a Reader for the CreateLinkTemplate structure.

func (*CreateLinkTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLinkTemplateBadRequest

type DeleteLinkTemplateBadRequest struct {
	Payload *models.APIError
}

DeleteLinkTemplateBadRequest describes a response with status code 400, with default header values.

Cannot delete the LinkTemplate because it is in use.

func NewDeleteLinkTemplateBadRequest

func NewDeleteLinkTemplateBadRequest() *DeleteLinkTemplateBadRequest

NewDeleteLinkTemplateBadRequest creates a DeleteLinkTemplateBadRequest with default headers values

func (*DeleteLinkTemplateBadRequest) Code

Code gets the status code for the delete link template bad request response

func (*DeleteLinkTemplateBadRequest) Error

func (*DeleteLinkTemplateBadRequest) GetPayload

func (o *DeleteLinkTemplateBadRequest) GetPayload() *models.APIError

func (*DeleteLinkTemplateBadRequest) IsClientError

func (o *DeleteLinkTemplateBadRequest) IsClientError() bool

IsClientError returns true when this delete link template bad request response has a 4xx status code

func (*DeleteLinkTemplateBadRequest) IsCode

func (o *DeleteLinkTemplateBadRequest) IsCode(code int) bool

IsCode returns true when this delete link template bad request response a status code equal to that given

func (*DeleteLinkTemplateBadRequest) IsRedirect

func (o *DeleteLinkTemplateBadRequest) IsRedirect() bool

IsRedirect returns true when this delete link template bad request response has a 3xx status code

func (*DeleteLinkTemplateBadRequest) IsServerError

func (o *DeleteLinkTemplateBadRequest) IsServerError() bool

IsServerError returns true when this delete link template bad request response has a 5xx status code

func (*DeleteLinkTemplateBadRequest) IsSuccess

func (o *DeleteLinkTemplateBadRequest) IsSuccess() bool

IsSuccess returns true when this delete link template bad request response has a 2xx status code

func (*DeleteLinkTemplateBadRequest) String

type DeleteLinkTemplateDefault

type DeleteLinkTemplateDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteLinkTemplateDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteLinkTemplateDefault

func NewDeleteLinkTemplateDefault(code int) *DeleteLinkTemplateDefault

NewDeleteLinkTemplateDefault creates a DeleteLinkTemplateDefault with default headers values

func (*DeleteLinkTemplateDefault) Code

func (o *DeleteLinkTemplateDefault) Code() int

Code gets the status code for the delete link template default response

func (*DeleteLinkTemplateDefault) Error

func (o *DeleteLinkTemplateDefault) Error() string

func (*DeleteLinkTemplateDefault) GetPayload

func (*DeleteLinkTemplateDefault) IsClientError

func (o *DeleteLinkTemplateDefault) IsClientError() bool

IsClientError returns true when this delete link template default response has a 4xx status code

func (*DeleteLinkTemplateDefault) IsCode

func (o *DeleteLinkTemplateDefault) IsCode(code int) bool

IsCode returns true when this delete link template default response a status code equal to that given

func (*DeleteLinkTemplateDefault) IsRedirect

func (o *DeleteLinkTemplateDefault) IsRedirect() bool

IsRedirect returns true when this delete link template default response has a 3xx status code

func (*DeleteLinkTemplateDefault) IsServerError

func (o *DeleteLinkTemplateDefault) IsServerError() bool

IsServerError returns true when this delete link template default response has a 5xx status code

func (*DeleteLinkTemplateDefault) IsSuccess

func (o *DeleteLinkTemplateDefault) IsSuccess() bool

IsSuccess returns true when this delete link template default response has a 2xx status code

func (*DeleteLinkTemplateDefault) String

func (o *DeleteLinkTemplateDefault) String() string

type DeleteLinkTemplateInternalServerError

type DeleteLinkTemplateInternalServerError struct {
	Payload *models.APIError
}

DeleteLinkTemplateInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteLinkTemplateInternalServerError

func NewDeleteLinkTemplateInternalServerError() *DeleteLinkTemplateInternalServerError

NewDeleteLinkTemplateInternalServerError creates a DeleteLinkTemplateInternalServerError with default headers values

func (*DeleteLinkTemplateInternalServerError) Code

Code gets the status code for the delete link template internal server error response

func (*DeleteLinkTemplateInternalServerError) Error

func (*DeleteLinkTemplateInternalServerError) GetPayload

func (*DeleteLinkTemplateInternalServerError) IsClientError

func (o *DeleteLinkTemplateInternalServerError) IsClientError() bool

IsClientError returns true when this delete link template internal server error response has a 4xx status code

func (*DeleteLinkTemplateInternalServerError) IsCode

IsCode returns true when this delete link template internal server error response a status code equal to that given

func (*DeleteLinkTemplateInternalServerError) IsRedirect

IsRedirect returns true when this delete link template internal server error response has a 3xx status code

func (*DeleteLinkTemplateInternalServerError) IsServerError

func (o *DeleteLinkTemplateInternalServerError) IsServerError() bool

IsServerError returns true when this delete link template internal server error response has a 5xx status code

func (*DeleteLinkTemplateInternalServerError) IsSuccess

IsSuccess returns true when this delete link template internal server error response has a 2xx status code

func (*DeleteLinkTemplateInternalServerError) String

type DeleteLinkTemplateNotFound

type DeleteLinkTemplateNotFound struct {
	Payload *models.APIError
}

DeleteLinkTemplateNotFound describes a response with status code 404, with default header values.

Cannot delete the LinkTemplate because the slug does not exist.

func NewDeleteLinkTemplateNotFound

func NewDeleteLinkTemplateNotFound() *DeleteLinkTemplateNotFound

NewDeleteLinkTemplateNotFound creates a DeleteLinkTemplateNotFound with default headers values

func (*DeleteLinkTemplateNotFound) Code

func (o *DeleteLinkTemplateNotFound) Code() int

Code gets the status code for the delete link template not found response

func (*DeleteLinkTemplateNotFound) Error

func (*DeleteLinkTemplateNotFound) GetPayload

func (o *DeleteLinkTemplateNotFound) GetPayload() *models.APIError

func (*DeleteLinkTemplateNotFound) IsClientError

func (o *DeleteLinkTemplateNotFound) IsClientError() bool

IsClientError returns true when this delete link template not found response has a 4xx status code

func (*DeleteLinkTemplateNotFound) IsCode

func (o *DeleteLinkTemplateNotFound) IsCode(code int) bool

IsCode returns true when this delete link template not found response a status code equal to that given

func (*DeleteLinkTemplateNotFound) IsRedirect

func (o *DeleteLinkTemplateNotFound) IsRedirect() bool

IsRedirect returns true when this delete link template not found response has a 3xx status code

func (*DeleteLinkTemplateNotFound) IsServerError

func (o *DeleteLinkTemplateNotFound) IsServerError() bool

IsServerError returns true when this delete link template not found response has a 5xx status code

func (*DeleteLinkTemplateNotFound) IsSuccess

func (o *DeleteLinkTemplateNotFound) IsSuccess() bool

IsSuccess returns true when this delete link template not found response has a 2xx status code

func (*DeleteLinkTemplateNotFound) String

func (o *DeleteLinkTemplateNotFound) String() string

type DeleteLinkTemplateOK

type DeleteLinkTemplateOK struct {
	Payload models.ConfigunstableDeleteLinkTemplateResponse
}

DeleteLinkTemplateOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteLinkTemplateOK

func NewDeleteLinkTemplateOK() *DeleteLinkTemplateOK

NewDeleteLinkTemplateOK creates a DeleteLinkTemplateOK with default headers values

func (*DeleteLinkTemplateOK) Code

func (o *DeleteLinkTemplateOK) Code() int

Code gets the status code for the delete link template o k response

func (*DeleteLinkTemplateOK) Error

func (o *DeleteLinkTemplateOK) Error() string

func (*DeleteLinkTemplateOK) GetPayload

func (*DeleteLinkTemplateOK) IsClientError

func (o *DeleteLinkTemplateOK) IsClientError() bool

IsClientError returns true when this delete link template o k response has a 4xx status code

func (*DeleteLinkTemplateOK) IsCode

func (o *DeleteLinkTemplateOK) IsCode(code int) bool

IsCode returns true when this delete link template o k response a status code equal to that given

func (*DeleteLinkTemplateOK) IsRedirect

func (o *DeleteLinkTemplateOK) IsRedirect() bool

IsRedirect returns true when this delete link template o k response has a 3xx status code

func (*DeleteLinkTemplateOK) IsServerError

func (o *DeleteLinkTemplateOK) IsServerError() bool

IsServerError returns true when this delete link template o k response has a 5xx status code

func (*DeleteLinkTemplateOK) IsSuccess

func (o *DeleteLinkTemplateOK) IsSuccess() bool

IsSuccess returns true when this delete link template o k response has a 2xx status code

func (*DeleteLinkTemplateOK) String

func (o *DeleteLinkTemplateOK) String() string

type DeleteLinkTemplateParams

type DeleteLinkTemplateParams struct {

	// Slug.
	Slug string

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

DeleteLinkTemplateParams contains all the parameters to send to the API endpoint

for the delete link template operation.

Typically these are written to a http.Request.

func NewDeleteLinkTemplateParams

func NewDeleteLinkTemplateParams() *DeleteLinkTemplateParams

NewDeleteLinkTemplateParams creates a new DeleteLinkTemplateParams 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 NewDeleteLinkTemplateParamsWithContext

func NewDeleteLinkTemplateParamsWithContext(ctx context.Context) *DeleteLinkTemplateParams

NewDeleteLinkTemplateParamsWithContext creates a new DeleteLinkTemplateParams object with the ability to set a context for a request.

func NewDeleteLinkTemplateParamsWithHTTPClient

func NewDeleteLinkTemplateParamsWithHTTPClient(client *http.Client) *DeleteLinkTemplateParams

NewDeleteLinkTemplateParamsWithHTTPClient creates a new DeleteLinkTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLinkTemplateParamsWithTimeout

func NewDeleteLinkTemplateParamsWithTimeout(timeout time.Duration) *DeleteLinkTemplateParams

NewDeleteLinkTemplateParamsWithTimeout creates a new DeleteLinkTemplateParams object with the ability to set a timeout on a request.

func (*DeleteLinkTemplateParams) SetContext

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

SetContext adds the context to the delete link template params

func (*DeleteLinkTemplateParams) SetDefaults

func (o *DeleteLinkTemplateParams) SetDefaults()

SetDefaults hydrates default values in the delete link template params (not the query body).

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

func (*DeleteLinkTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete link template params

func (*DeleteLinkTemplateParams) SetSlug

func (o *DeleteLinkTemplateParams) SetSlug(slug string)

SetSlug adds the slug to the delete link template params

func (*DeleteLinkTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the delete link template params

func (*DeleteLinkTemplateParams) WithContext

WithContext adds the context to the delete link template params

func (*DeleteLinkTemplateParams) WithDefaults

WithDefaults hydrates default values in the delete link template params (not the query body).

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

func (*DeleteLinkTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete link template params

func (*DeleteLinkTemplateParams) WithSlug

WithSlug adds the slug to the delete link template params

func (*DeleteLinkTemplateParams) WithTimeout

WithTimeout adds the timeout to the delete link template params

func (*DeleteLinkTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteLinkTemplateReader

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

DeleteLinkTemplateReader is a Reader for the DeleteLinkTemplate structure.

func (*DeleteLinkTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListLinkTemplatesDefault

type ListLinkTemplatesDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListLinkTemplatesDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListLinkTemplatesDefault

func NewListLinkTemplatesDefault(code int) *ListLinkTemplatesDefault

NewListLinkTemplatesDefault creates a ListLinkTemplatesDefault with default headers values

func (*ListLinkTemplatesDefault) Code

func (o *ListLinkTemplatesDefault) Code() int

Code gets the status code for the list link templates default response

func (*ListLinkTemplatesDefault) Error

func (o *ListLinkTemplatesDefault) Error() string

func (*ListLinkTemplatesDefault) GetPayload

func (*ListLinkTemplatesDefault) IsClientError

func (o *ListLinkTemplatesDefault) IsClientError() bool

IsClientError returns true when this list link templates default response has a 4xx status code

func (*ListLinkTemplatesDefault) IsCode

func (o *ListLinkTemplatesDefault) IsCode(code int) bool

IsCode returns true when this list link templates default response a status code equal to that given

func (*ListLinkTemplatesDefault) IsRedirect

func (o *ListLinkTemplatesDefault) IsRedirect() bool

IsRedirect returns true when this list link templates default response has a 3xx status code

func (*ListLinkTemplatesDefault) IsServerError

func (o *ListLinkTemplatesDefault) IsServerError() bool

IsServerError returns true when this list link templates default response has a 5xx status code

func (*ListLinkTemplatesDefault) IsSuccess

func (o *ListLinkTemplatesDefault) IsSuccess() bool

IsSuccess returns true when this list link templates default response has a 2xx status code

func (*ListLinkTemplatesDefault) String

func (o *ListLinkTemplatesDefault) String() string

type ListLinkTemplatesInternalServerError

type ListLinkTemplatesInternalServerError struct {
	Payload *models.APIError
}

ListLinkTemplatesInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListLinkTemplatesInternalServerError

func NewListLinkTemplatesInternalServerError() *ListLinkTemplatesInternalServerError

NewListLinkTemplatesInternalServerError creates a ListLinkTemplatesInternalServerError with default headers values

func (*ListLinkTemplatesInternalServerError) Code

Code gets the status code for the list link templates internal server error response

func (*ListLinkTemplatesInternalServerError) Error

func (*ListLinkTemplatesInternalServerError) GetPayload

func (*ListLinkTemplatesInternalServerError) IsClientError

func (o *ListLinkTemplatesInternalServerError) IsClientError() bool

IsClientError returns true when this list link templates internal server error response has a 4xx status code

func (*ListLinkTemplatesInternalServerError) IsCode

IsCode returns true when this list link templates internal server error response a status code equal to that given

func (*ListLinkTemplatesInternalServerError) IsRedirect

IsRedirect returns true when this list link templates internal server error response has a 3xx status code

func (*ListLinkTemplatesInternalServerError) IsServerError

func (o *ListLinkTemplatesInternalServerError) IsServerError() bool

IsServerError returns true when this list link templates internal server error response has a 5xx status code

func (*ListLinkTemplatesInternalServerError) IsSuccess

IsSuccess returns true when this list link templates internal server error response has a 2xx status code

func (*ListLinkTemplatesInternalServerError) String

type ListLinkTemplatesOK

type ListLinkTemplatesOK struct {
	Payload *models.ConfigunstableListLinkTemplatesResponse
}

ListLinkTemplatesOK describes a response with status code 200, with default header values.

A successful response.

func NewListLinkTemplatesOK

func NewListLinkTemplatesOK() *ListLinkTemplatesOK

NewListLinkTemplatesOK creates a ListLinkTemplatesOK with default headers values

func (*ListLinkTemplatesOK) Code

func (o *ListLinkTemplatesOK) Code() int

Code gets the status code for the list link templates o k response

func (*ListLinkTemplatesOK) Error

func (o *ListLinkTemplatesOK) Error() string

func (*ListLinkTemplatesOK) GetPayload

func (*ListLinkTemplatesOK) IsClientError

func (o *ListLinkTemplatesOK) IsClientError() bool

IsClientError returns true when this list link templates o k response has a 4xx status code

func (*ListLinkTemplatesOK) IsCode

func (o *ListLinkTemplatesOK) IsCode(code int) bool

IsCode returns true when this list link templates o k response a status code equal to that given

func (*ListLinkTemplatesOK) IsRedirect

func (o *ListLinkTemplatesOK) IsRedirect() bool

IsRedirect returns true when this list link templates o k response has a 3xx status code

func (*ListLinkTemplatesOK) IsServerError

func (o *ListLinkTemplatesOK) IsServerError() bool

IsServerError returns true when this list link templates o k response has a 5xx status code

func (*ListLinkTemplatesOK) IsSuccess

func (o *ListLinkTemplatesOK) IsSuccess() bool

IsSuccess returns true when this list link templates o k response has a 2xx status code

func (*ListLinkTemplatesOK) String

func (o *ListLinkTemplatesOK) String() string

type ListLinkTemplatesParams

type ListLinkTemplatesParams struct {

	/* Names.

	   Filters results by name, where any LinkTemplate with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any LinkTemplate with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

	/* UIComponents.

	   Filters results by ui_component, where any LinkTemplate with a matching ui_component in the given list (and matches all other filters) is returned.
	*/
	UIComponents []string

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

ListLinkTemplatesParams contains all the parameters to send to the API endpoint

for the list link templates operation.

Typically these are written to a http.Request.

func NewListLinkTemplatesParams

func NewListLinkTemplatesParams() *ListLinkTemplatesParams

NewListLinkTemplatesParams creates a new ListLinkTemplatesParams 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 NewListLinkTemplatesParamsWithContext

func NewListLinkTemplatesParamsWithContext(ctx context.Context) *ListLinkTemplatesParams

NewListLinkTemplatesParamsWithContext creates a new ListLinkTemplatesParams object with the ability to set a context for a request.

func NewListLinkTemplatesParamsWithHTTPClient

func NewListLinkTemplatesParamsWithHTTPClient(client *http.Client) *ListLinkTemplatesParams

NewListLinkTemplatesParamsWithHTTPClient creates a new ListLinkTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewListLinkTemplatesParamsWithTimeout

func NewListLinkTemplatesParamsWithTimeout(timeout time.Duration) *ListLinkTemplatesParams

NewListLinkTemplatesParamsWithTimeout creates a new ListLinkTemplatesParams object with the ability to set a timeout on a request.

func (*ListLinkTemplatesParams) SetContext

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

SetContext adds the context to the list link templates params

func (*ListLinkTemplatesParams) SetDefaults

func (o *ListLinkTemplatesParams) SetDefaults()

SetDefaults hydrates default values in the list link templates params (not the query body).

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

func (*ListLinkTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list link templates params

func (*ListLinkTemplatesParams) SetNames

func (o *ListLinkTemplatesParams) SetNames(names []string)

SetNames adds the names to the list link templates params

func (*ListLinkTemplatesParams) SetPageMaxSize

func (o *ListLinkTemplatesParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list link templates params

func (*ListLinkTemplatesParams) SetPageToken

func (o *ListLinkTemplatesParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list link templates params

func (*ListLinkTemplatesParams) SetSlugs

func (o *ListLinkTemplatesParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list link templates params

func (*ListLinkTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the list link templates params

func (*ListLinkTemplatesParams) SetUIComponents

func (o *ListLinkTemplatesParams) SetUIComponents(uIComponents []string)

SetUIComponents adds the uiComponents to the list link templates params

func (*ListLinkTemplatesParams) WithContext

WithContext adds the context to the list link templates params

func (*ListLinkTemplatesParams) WithDefaults

WithDefaults hydrates default values in the list link templates params (not the query body).

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

func (*ListLinkTemplatesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list link templates params

func (*ListLinkTemplatesParams) WithNames

WithNames adds the names to the list link templates params

func (*ListLinkTemplatesParams) WithPageMaxSize

func (o *ListLinkTemplatesParams) WithPageMaxSize(pageMaxSize *int64) *ListLinkTemplatesParams

WithPageMaxSize adds the pageMaxSize to the list link templates params

func (*ListLinkTemplatesParams) WithPageToken

func (o *ListLinkTemplatesParams) WithPageToken(pageToken *string) *ListLinkTemplatesParams

WithPageToken adds the pageToken to the list link templates params

func (*ListLinkTemplatesParams) WithSlugs

WithSlugs adds the slugs to the list link templates params

func (*ListLinkTemplatesParams) WithTimeout

WithTimeout adds the timeout to the list link templates params

func (*ListLinkTemplatesParams) WithUIComponents

func (o *ListLinkTemplatesParams) WithUIComponents(uIComponents []string) *ListLinkTemplatesParams

WithUIComponents adds the uIComponents to the list link templates params

func (*ListLinkTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListLinkTemplatesReader

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

ListLinkTemplatesReader is a Reader for the ListLinkTemplates structure.

func (*ListLinkTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadLinkTemplateDefault

type ReadLinkTemplateDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadLinkTemplateDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadLinkTemplateDefault

func NewReadLinkTemplateDefault(code int) *ReadLinkTemplateDefault

NewReadLinkTemplateDefault creates a ReadLinkTemplateDefault with default headers values

func (*ReadLinkTemplateDefault) Code

func (o *ReadLinkTemplateDefault) Code() int

Code gets the status code for the read link template default response

func (*ReadLinkTemplateDefault) Error

func (o *ReadLinkTemplateDefault) Error() string

func (*ReadLinkTemplateDefault) GetPayload

func (*ReadLinkTemplateDefault) IsClientError

func (o *ReadLinkTemplateDefault) IsClientError() bool

IsClientError returns true when this read link template default response has a 4xx status code

func (*ReadLinkTemplateDefault) IsCode

func (o *ReadLinkTemplateDefault) IsCode(code int) bool

IsCode returns true when this read link template default response a status code equal to that given

func (*ReadLinkTemplateDefault) IsRedirect

func (o *ReadLinkTemplateDefault) IsRedirect() bool

IsRedirect returns true when this read link template default response has a 3xx status code

func (*ReadLinkTemplateDefault) IsServerError

func (o *ReadLinkTemplateDefault) IsServerError() bool

IsServerError returns true when this read link template default response has a 5xx status code

func (*ReadLinkTemplateDefault) IsSuccess

func (o *ReadLinkTemplateDefault) IsSuccess() bool

IsSuccess returns true when this read link template default response has a 2xx status code

func (*ReadLinkTemplateDefault) String

func (o *ReadLinkTemplateDefault) String() string

type ReadLinkTemplateInternalServerError

type ReadLinkTemplateInternalServerError struct {
	Payload *models.APIError
}

ReadLinkTemplateInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadLinkTemplateInternalServerError

func NewReadLinkTemplateInternalServerError() *ReadLinkTemplateInternalServerError

NewReadLinkTemplateInternalServerError creates a ReadLinkTemplateInternalServerError with default headers values

func (*ReadLinkTemplateInternalServerError) Code

Code gets the status code for the read link template internal server error response

func (*ReadLinkTemplateInternalServerError) Error

func (*ReadLinkTemplateInternalServerError) GetPayload

func (*ReadLinkTemplateInternalServerError) IsClientError

func (o *ReadLinkTemplateInternalServerError) IsClientError() bool

IsClientError returns true when this read link template internal server error response has a 4xx status code

func (*ReadLinkTemplateInternalServerError) IsCode

IsCode returns true when this read link template internal server error response a status code equal to that given

func (*ReadLinkTemplateInternalServerError) IsRedirect

func (o *ReadLinkTemplateInternalServerError) IsRedirect() bool

IsRedirect returns true when this read link template internal server error response has a 3xx status code

func (*ReadLinkTemplateInternalServerError) IsServerError

func (o *ReadLinkTemplateInternalServerError) IsServerError() bool

IsServerError returns true when this read link template internal server error response has a 5xx status code

func (*ReadLinkTemplateInternalServerError) IsSuccess

IsSuccess returns true when this read link template internal server error response has a 2xx status code

func (*ReadLinkTemplateInternalServerError) String

type ReadLinkTemplateNotFound

type ReadLinkTemplateNotFound struct {
	Payload *models.APIError
}

ReadLinkTemplateNotFound describes a response with status code 404, with default header values.

Cannot read the LinkTemplate because the slug does not exist.

func NewReadLinkTemplateNotFound

func NewReadLinkTemplateNotFound() *ReadLinkTemplateNotFound

NewReadLinkTemplateNotFound creates a ReadLinkTemplateNotFound with default headers values

func (*ReadLinkTemplateNotFound) Code

func (o *ReadLinkTemplateNotFound) Code() int

Code gets the status code for the read link template not found response

func (*ReadLinkTemplateNotFound) Error

func (o *ReadLinkTemplateNotFound) Error() string

func (*ReadLinkTemplateNotFound) GetPayload

func (o *ReadLinkTemplateNotFound) GetPayload() *models.APIError

func (*ReadLinkTemplateNotFound) IsClientError

func (o *ReadLinkTemplateNotFound) IsClientError() bool

IsClientError returns true when this read link template not found response has a 4xx status code

func (*ReadLinkTemplateNotFound) IsCode

func (o *ReadLinkTemplateNotFound) IsCode(code int) bool

IsCode returns true when this read link template not found response a status code equal to that given

func (*ReadLinkTemplateNotFound) IsRedirect

func (o *ReadLinkTemplateNotFound) IsRedirect() bool

IsRedirect returns true when this read link template not found response has a 3xx status code

func (*ReadLinkTemplateNotFound) IsServerError

func (o *ReadLinkTemplateNotFound) IsServerError() bool

IsServerError returns true when this read link template not found response has a 5xx status code

func (*ReadLinkTemplateNotFound) IsSuccess

func (o *ReadLinkTemplateNotFound) IsSuccess() bool

IsSuccess returns true when this read link template not found response has a 2xx status code

func (*ReadLinkTemplateNotFound) String

func (o *ReadLinkTemplateNotFound) String() string

type ReadLinkTemplateOK

type ReadLinkTemplateOK struct {
	Payload *models.ConfigunstableReadLinkTemplateResponse
}

ReadLinkTemplateOK describes a response with status code 200, with default header values.

A successful response.

func NewReadLinkTemplateOK

func NewReadLinkTemplateOK() *ReadLinkTemplateOK

NewReadLinkTemplateOK creates a ReadLinkTemplateOK with default headers values

func (*ReadLinkTemplateOK) Code

func (o *ReadLinkTemplateOK) Code() int

Code gets the status code for the read link template o k response

func (*ReadLinkTemplateOK) Error

func (o *ReadLinkTemplateOK) Error() string

func (*ReadLinkTemplateOK) GetPayload

func (*ReadLinkTemplateOK) IsClientError

func (o *ReadLinkTemplateOK) IsClientError() bool

IsClientError returns true when this read link template o k response has a 4xx status code

func (*ReadLinkTemplateOK) IsCode

func (o *ReadLinkTemplateOK) IsCode(code int) bool

IsCode returns true when this read link template o k response a status code equal to that given

func (*ReadLinkTemplateOK) IsRedirect

func (o *ReadLinkTemplateOK) IsRedirect() bool

IsRedirect returns true when this read link template o k response has a 3xx status code

func (*ReadLinkTemplateOK) IsServerError

func (o *ReadLinkTemplateOK) IsServerError() bool

IsServerError returns true when this read link template o k response has a 5xx status code

func (*ReadLinkTemplateOK) IsSuccess

func (o *ReadLinkTemplateOK) IsSuccess() bool

IsSuccess returns true when this read link template o k response has a 2xx status code

func (*ReadLinkTemplateOK) String

func (o *ReadLinkTemplateOK) String() string

type ReadLinkTemplateParams

type ReadLinkTemplateParams struct {

	// Slug.
	Slug string

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

ReadLinkTemplateParams contains all the parameters to send to the API endpoint

for the read link template operation.

Typically these are written to a http.Request.

func NewReadLinkTemplateParams

func NewReadLinkTemplateParams() *ReadLinkTemplateParams

NewReadLinkTemplateParams creates a new ReadLinkTemplateParams 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 NewReadLinkTemplateParamsWithContext

func NewReadLinkTemplateParamsWithContext(ctx context.Context) *ReadLinkTemplateParams

NewReadLinkTemplateParamsWithContext creates a new ReadLinkTemplateParams object with the ability to set a context for a request.

func NewReadLinkTemplateParamsWithHTTPClient

func NewReadLinkTemplateParamsWithHTTPClient(client *http.Client) *ReadLinkTemplateParams

NewReadLinkTemplateParamsWithHTTPClient creates a new ReadLinkTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewReadLinkTemplateParamsWithTimeout

func NewReadLinkTemplateParamsWithTimeout(timeout time.Duration) *ReadLinkTemplateParams

NewReadLinkTemplateParamsWithTimeout creates a new ReadLinkTemplateParams object with the ability to set a timeout on a request.

func (*ReadLinkTemplateParams) SetContext

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

SetContext adds the context to the read link template params

func (*ReadLinkTemplateParams) SetDefaults

func (o *ReadLinkTemplateParams) SetDefaults()

SetDefaults hydrates default values in the read link template params (not the query body).

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

func (*ReadLinkTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read link template params

func (*ReadLinkTemplateParams) SetSlug

func (o *ReadLinkTemplateParams) SetSlug(slug string)

SetSlug adds the slug to the read link template params

func (*ReadLinkTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the read link template params

func (*ReadLinkTemplateParams) WithContext

WithContext adds the context to the read link template params

func (*ReadLinkTemplateParams) WithDefaults

WithDefaults hydrates default values in the read link template params (not the query body).

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

func (*ReadLinkTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read link template params

func (*ReadLinkTemplateParams) WithSlug

WithSlug adds the slug to the read link template params

func (*ReadLinkTemplateParams) WithTimeout

WithTimeout adds the timeout to the read link template params

func (*ReadLinkTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadLinkTemplateReader

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

ReadLinkTemplateReader is a Reader for the ReadLinkTemplate structure.

func (*ReadLinkTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLinkTemplateBadRequest

type UpdateLinkTemplateBadRequest struct {
	Payload *models.APIError
}

UpdateLinkTemplateBadRequest describes a response with status code 400, with default header values.

Cannot update the LinkTemplate because the request is invalid.

func NewUpdateLinkTemplateBadRequest

func NewUpdateLinkTemplateBadRequest() *UpdateLinkTemplateBadRequest

NewUpdateLinkTemplateBadRequest creates a UpdateLinkTemplateBadRequest with default headers values

func (*UpdateLinkTemplateBadRequest) Code

Code gets the status code for the update link template bad request response

func (*UpdateLinkTemplateBadRequest) Error

func (*UpdateLinkTemplateBadRequest) GetPayload

func (o *UpdateLinkTemplateBadRequest) GetPayload() *models.APIError

func (*UpdateLinkTemplateBadRequest) IsClientError

func (o *UpdateLinkTemplateBadRequest) IsClientError() bool

IsClientError returns true when this update link template bad request response has a 4xx status code

func (*UpdateLinkTemplateBadRequest) IsCode

func (o *UpdateLinkTemplateBadRequest) IsCode(code int) bool

IsCode returns true when this update link template bad request response a status code equal to that given

func (*UpdateLinkTemplateBadRequest) IsRedirect

func (o *UpdateLinkTemplateBadRequest) IsRedirect() bool

IsRedirect returns true when this update link template bad request response has a 3xx status code

func (*UpdateLinkTemplateBadRequest) IsServerError

func (o *UpdateLinkTemplateBadRequest) IsServerError() bool

IsServerError returns true when this update link template bad request response has a 5xx status code

func (*UpdateLinkTemplateBadRequest) IsSuccess

func (o *UpdateLinkTemplateBadRequest) IsSuccess() bool

IsSuccess returns true when this update link template bad request response has a 2xx status code

func (*UpdateLinkTemplateBadRequest) String

type UpdateLinkTemplateBody

type UpdateLinkTemplateBody struct {

	// If true, the LinkTemplate will be created if it does not already exist, identified by slug. If false, an error will be returned if the LinkTemplate does not already exist.
	CreateIfMissing bool `json:"create_if_missing,omitempty"`

	// If true, the LinkTemplate will not be created nor updated, and no response LinkTemplate will be returned. The response will return an error if the given LinkTemplate is invalid.
	DryRun bool `json:"dry_run,omitempty"`

	// link template
	LinkTemplate *models.ConfigunstableLinkTemplate `json:"link_template,omitempty"`
}

UpdateLinkTemplateBody update link template body swagger:model UpdateLinkTemplateBody

func (*UpdateLinkTemplateBody) ContextValidate

func (o *UpdateLinkTemplateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update link template body based on the context it is used

func (*UpdateLinkTemplateBody) MarshalBinary

func (o *UpdateLinkTemplateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateLinkTemplateBody) UnmarshalBinary

func (o *UpdateLinkTemplateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateLinkTemplateBody) Validate

func (o *UpdateLinkTemplateBody) Validate(formats strfmt.Registry) error

Validate validates this update link template body

type UpdateLinkTemplateConflict

type UpdateLinkTemplateConflict struct {
	Payload *models.APIError
}

UpdateLinkTemplateConflict describes a response with status code 409, with default header values.

Cannot update the LinkTemplate because there is a conflict with an existing LinkTemplate.

func NewUpdateLinkTemplateConflict

func NewUpdateLinkTemplateConflict() *UpdateLinkTemplateConflict

NewUpdateLinkTemplateConflict creates a UpdateLinkTemplateConflict with default headers values

func (*UpdateLinkTemplateConflict) Code

func (o *UpdateLinkTemplateConflict) Code() int

Code gets the status code for the update link template conflict response

func (*UpdateLinkTemplateConflict) Error

func (*UpdateLinkTemplateConflict) GetPayload

func (o *UpdateLinkTemplateConflict) GetPayload() *models.APIError

func (*UpdateLinkTemplateConflict) IsClientError

func (o *UpdateLinkTemplateConflict) IsClientError() bool

IsClientError returns true when this update link template conflict response has a 4xx status code

func (*UpdateLinkTemplateConflict) IsCode

func (o *UpdateLinkTemplateConflict) IsCode(code int) bool

IsCode returns true when this update link template conflict response a status code equal to that given

func (*UpdateLinkTemplateConflict) IsRedirect

func (o *UpdateLinkTemplateConflict) IsRedirect() bool

IsRedirect returns true when this update link template conflict response has a 3xx status code

func (*UpdateLinkTemplateConflict) IsServerError

func (o *UpdateLinkTemplateConflict) IsServerError() bool

IsServerError returns true when this update link template conflict response has a 5xx status code

func (*UpdateLinkTemplateConflict) IsSuccess

func (o *UpdateLinkTemplateConflict) IsSuccess() bool

IsSuccess returns true when this update link template conflict response has a 2xx status code

func (*UpdateLinkTemplateConflict) String

func (o *UpdateLinkTemplateConflict) String() string

type UpdateLinkTemplateDefault

type UpdateLinkTemplateDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateLinkTemplateDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateLinkTemplateDefault

func NewUpdateLinkTemplateDefault(code int) *UpdateLinkTemplateDefault

NewUpdateLinkTemplateDefault creates a UpdateLinkTemplateDefault with default headers values

func (*UpdateLinkTemplateDefault) Code

func (o *UpdateLinkTemplateDefault) Code() int

Code gets the status code for the update link template default response

func (*UpdateLinkTemplateDefault) Error

func (o *UpdateLinkTemplateDefault) Error() string

func (*UpdateLinkTemplateDefault) GetPayload

func (*UpdateLinkTemplateDefault) IsClientError

func (o *UpdateLinkTemplateDefault) IsClientError() bool

IsClientError returns true when this update link template default response has a 4xx status code

func (*UpdateLinkTemplateDefault) IsCode

func (o *UpdateLinkTemplateDefault) IsCode(code int) bool

IsCode returns true when this update link template default response a status code equal to that given

func (*UpdateLinkTemplateDefault) IsRedirect

func (o *UpdateLinkTemplateDefault) IsRedirect() bool

IsRedirect returns true when this update link template default response has a 3xx status code

func (*UpdateLinkTemplateDefault) IsServerError

func (o *UpdateLinkTemplateDefault) IsServerError() bool

IsServerError returns true when this update link template default response has a 5xx status code

func (*UpdateLinkTemplateDefault) IsSuccess

func (o *UpdateLinkTemplateDefault) IsSuccess() bool

IsSuccess returns true when this update link template default response has a 2xx status code

func (*UpdateLinkTemplateDefault) String

func (o *UpdateLinkTemplateDefault) String() string

type UpdateLinkTemplateInternalServerError

type UpdateLinkTemplateInternalServerError struct {
	Payload *models.APIError
}

UpdateLinkTemplateInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateLinkTemplateInternalServerError

func NewUpdateLinkTemplateInternalServerError() *UpdateLinkTemplateInternalServerError

NewUpdateLinkTemplateInternalServerError creates a UpdateLinkTemplateInternalServerError with default headers values

func (*UpdateLinkTemplateInternalServerError) Code

Code gets the status code for the update link template internal server error response

func (*UpdateLinkTemplateInternalServerError) Error

func (*UpdateLinkTemplateInternalServerError) GetPayload

func (*UpdateLinkTemplateInternalServerError) IsClientError

func (o *UpdateLinkTemplateInternalServerError) IsClientError() bool

IsClientError returns true when this update link template internal server error response has a 4xx status code

func (*UpdateLinkTemplateInternalServerError) IsCode

IsCode returns true when this update link template internal server error response a status code equal to that given

func (*UpdateLinkTemplateInternalServerError) IsRedirect

IsRedirect returns true when this update link template internal server error response has a 3xx status code

func (*UpdateLinkTemplateInternalServerError) IsServerError

func (o *UpdateLinkTemplateInternalServerError) IsServerError() bool

IsServerError returns true when this update link template internal server error response has a 5xx status code

func (*UpdateLinkTemplateInternalServerError) IsSuccess

IsSuccess returns true when this update link template internal server error response has a 2xx status code

func (*UpdateLinkTemplateInternalServerError) String

type UpdateLinkTemplateNotFound

type UpdateLinkTemplateNotFound struct {
	Payload *models.APIError
}

UpdateLinkTemplateNotFound describes a response with status code 404, with default header values.

Cannot update the LinkTemplate because the slug does not exist.

func NewUpdateLinkTemplateNotFound

func NewUpdateLinkTemplateNotFound() *UpdateLinkTemplateNotFound

NewUpdateLinkTemplateNotFound creates a UpdateLinkTemplateNotFound with default headers values

func (*UpdateLinkTemplateNotFound) Code

func (o *UpdateLinkTemplateNotFound) Code() int

Code gets the status code for the update link template not found response

func (*UpdateLinkTemplateNotFound) Error

func (*UpdateLinkTemplateNotFound) GetPayload

func (o *UpdateLinkTemplateNotFound) GetPayload() *models.APIError

func (*UpdateLinkTemplateNotFound) IsClientError

func (o *UpdateLinkTemplateNotFound) IsClientError() bool

IsClientError returns true when this update link template not found response has a 4xx status code

func (*UpdateLinkTemplateNotFound) IsCode

func (o *UpdateLinkTemplateNotFound) IsCode(code int) bool

IsCode returns true when this update link template not found response a status code equal to that given

func (*UpdateLinkTemplateNotFound) IsRedirect

func (o *UpdateLinkTemplateNotFound) IsRedirect() bool

IsRedirect returns true when this update link template not found response has a 3xx status code

func (*UpdateLinkTemplateNotFound) IsServerError

func (o *UpdateLinkTemplateNotFound) IsServerError() bool

IsServerError returns true when this update link template not found response has a 5xx status code

func (*UpdateLinkTemplateNotFound) IsSuccess

func (o *UpdateLinkTemplateNotFound) IsSuccess() bool

IsSuccess returns true when this update link template not found response has a 2xx status code

func (*UpdateLinkTemplateNotFound) String

func (o *UpdateLinkTemplateNotFound) String() string

type UpdateLinkTemplateOK

type UpdateLinkTemplateOK struct {
	Payload *models.ConfigunstableUpdateLinkTemplateResponse
}

UpdateLinkTemplateOK describes a response with status code 200, with default header values.

A successful response containing the updated LinkTemplate.

func NewUpdateLinkTemplateOK

func NewUpdateLinkTemplateOK() *UpdateLinkTemplateOK

NewUpdateLinkTemplateOK creates a UpdateLinkTemplateOK with default headers values

func (*UpdateLinkTemplateOK) Code

func (o *UpdateLinkTemplateOK) Code() int

Code gets the status code for the update link template o k response

func (*UpdateLinkTemplateOK) Error

func (o *UpdateLinkTemplateOK) Error() string

func (*UpdateLinkTemplateOK) GetPayload

func (*UpdateLinkTemplateOK) IsClientError

func (o *UpdateLinkTemplateOK) IsClientError() bool

IsClientError returns true when this update link template o k response has a 4xx status code

func (*UpdateLinkTemplateOK) IsCode

func (o *UpdateLinkTemplateOK) IsCode(code int) bool

IsCode returns true when this update link template o k response a status code equal to that given

func (*UpdateLinkTemplateOK) IsRedirect

func (o *UpdateLinkTemplateOK) IsRedirect() bool

IsRedirect returns true when this update link template o k response has a 3xx status code

func (*UpdateLinkTemplateOK) IsServerError

func (o *UpdateLinkTemplateOK) IsServerError() bool

IsServerError returns true when this update link template o k response has a 5xx status code

func (*UpdateLinkTemplateOK) IsSuccess

func (o *UpdateLinkTemplateOK) IsSuccess() bool

IsSuccess returns true when this update link template o k response has a 2xx status code

func (*UpdateLinkTemplateOK) String

func (o *UpdateLinkTemplateOK) String() string

type UpdateLinkTemplateParams

type UpdateLinkTemplateParams struct {

	// Body.
	Body UpdateLinkTemplateBody

	// Slug.
	Slug string

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

UpdateLinkTemplateParams contains all the parameters to send to the API endpoint

for the update link template operation.

Typically these are written to a http.Request.

func NewUpdateLinkTemplateParams

func NewUpdateLinkTemplateParams() *UpdateLinkTemplateParams

NewUpdateLinkTemplateParams creates a new UpdateLinkTemplateParams 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 NewUpdateLinkTemplateParamsWithContext

func NewUpdateLinkTemplateParamsWithContext(ctx context.Context) *UpdateLinkTemplateParams

NewUpdateLinkTemplateParamsWithContext creates a new UpdateLinkTemplateParams object with the ability to set a context for a request.

func NewUpdateLinkTemplateParamsWithHTTPClient

func NewUpdateLinkTemplateParamsWithHTTPClient(client *http.Client) *UpdateLinkTemplateParams

NewUpdateLinkTemplateParamsWithHTTPClient creates a new UpdateLinkTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateLinkTemplateParamsWithTimeout

func NewUpdateLinkTemplateParamsWithTimeout(timeout time.Duration) *UpdateLinkTemplateParams

NewUpdateLinkTemplateParamsWithTimeout creates a new UpdateLinkTemplateParams object with the ability to set a timeout on a request.

func (*UpdateLinkTemplateParams) SetBody

SetBody adds the body to the update link template params

func (*UpdateLinkTemplateParams) SetContext

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

SetContext adds the context to the update link template params

func (*UpdateLinkTemplateParams) SetDefaults

func (o *UpdateLinkTemplateParams) SetDefaults()

SetDefaults hydrates default values in the update link template params (not the query body).

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

func (*UpdateLinkTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update link template params

func (*UpdateLinkTemplateParams) SetSlug

func (o *UpdateLinkTemplateParams) SetSlug(slug string)

SetSlug adds the slug to the update link template params

func (*UpdateLinkTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the update link template params

func (*UpdateLinkTemplateParams) WithBody

WithBody adds the body to the update link template params

func (*UpdateLinkTemplateParams) WithContext

WithContext adds the context to the update link template params

func (*UpdateLinkTemplateParams) WithDefaults

WithDefaults hydrates default values in the update link template params (not the query body).

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

func (*UpdateLinkTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update link template params

func (*UpdateLinkTemplateParams) WithSlug

WithSlug adds the slug to the update link template params

func (*UpdateLinkTemplateParams) WithTimeout

WithTimeout adds the timeout to the update link template params

func (*UpdateLinkTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateLinkTemplateReader

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

UpdateLinkTemplateReader is a Reader for the UpdateLinkTemplate structure.

func (*UpdateLinkTemplateReader) ReadResponse

func (o *UpdateLinkTemplateReader) 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