templates

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 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 templates API

func (*Client) DeleteTemplate

func (a *Client) DeleteTemplate(params *DeleteTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTemplateNoContent, error)

DeleteTemplate deletes template

Deletes the custom-branding template.

func (*Client) ExportThemeTemplates

func (a *Client) ExportThemeTemplates(params *ExportThemeTemplatesParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*ExportThemeTemplatesOK, error)

ExportThemeTemplates exports templates

Returns the theme's templates in a Zip archive.

func (*Client) GetDefaultTemplate

func (a *Client) GetDefaultTemplate(params *GetDefaultTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultTemplateOK, error)

GetDefaultTemplate gets default template

Returns the default, builtin Template and its content.

func (*Client) GetTemplate

func (a *Client) GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error)

GetTemplate gets template

Returns an Template and its content.

func (*Client) ImportThemeTemplates

func (a *Client) ImportThemeTemplates(params *ImportThemeTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportThemeTemplatesNoContent, error)

ImportThemeTemplates imports templates

Imports the theme's templates from a Zip archive.

func (*Client) ListDefaultTemplates

func (a *Client) ListDefaultTemplates(params *ListDefaultTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDefaultTemplatesOK, error)

ListDefaultTemplates lists default templates

Returns the file-system paths (fs_path) for all of the default built-in templates.

func (*Client) ListThemeTemplates

func (a *Client) ListThemeTemplates(params *ListThemeTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListThemeTemplatesOK, error)

ListThemeTemplates lists templates

This API returns the file-system paths (fs_path) for all of the templates in the theme.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpsertTemplate

func (a *Client) UpsertTemplate(params *UpsertTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpsertTemplateOK, error)

UpsertTemplate updates or insert template

Updates an existing custom branding template, or inserts a new one.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteTemplate(params *DeleteTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTemplateNoContent, error)

	ExportThemeTemplates(params *ExportThemeTemplatesParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*ExportThemeTemplatesOK, error)

	GetDefaultTemplate(params *GetDefaultTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultTemplateOK, error)

	GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error)

	ImportThemeTemplates(params *ImportThemeTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportThemeTemplatesNoContent, error)

	ListDefaultTemplates(params *ListDefaultTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDefaultTemplatesOK, error)

	ListThemeTemplates(params *ListThemeTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListThemeTemplatesOK, error)

	UpsertTemplate(params *UpsertTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpsertTemplateOK, 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 templates API client.

type DeleteTemplateForbidden

type DeleteTemplateForbidden struct {
	Payload *models.Error
}

DeleteTemplateForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteTemplateForbidden

func NewDeleteTemplateForbidden() *DeleteTemplateForbidden

NewDeleteTemplateForbidden creates a DeleteTemplateForbidden with default headers values

func (*DeleteTemplateForbidden) Code

func (o *DeleteTemplateForbidden) Code() int

Code gets the status code for the delete template forbidden response

func (*DeleteTemplateForbidden) Error

func (o *DeleteTemplateForbidden) Error() string

func (*DeleteTemplateForbidden) GetPayload

func (o *DeleteTemplateForbidden) GetPayload() *models.Error

func (*DeleteTemplateForbidden) IsClientError

func (o *DeleteTemplateForbidden) IsClientError() bool

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

func (*DeleteTemplateForbidden) IsCode

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

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

func (*DeleteTemplateForbidden) IsRedirect

func (o *DeleteTemplateForbidden) IsRedirect() bool

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

func (*DeleteTemplateForbidden) IsServerError

func (o *DeleteTemplateForbidden) IsServerError() bool

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

func (*DeleteTemplateForbidden) IsSuccess

func (o *DeleteTemplateForbidden) IsSuccess() bool

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

func (*DeleteTemplateForbidden) String

func (o *DeleteTemplateForbidden) String() string

type DeleteTemplateNoContent

type DeleteTemplateNoContent struct {
}

DeleteTemplateNoContent describes a response with status code 204, with default header values.

template has been deleted

func NewDeleteTemplateNoContent

func NewDeleteTemplateNoContent() *DeleteTemplateNoContent

NewDeleteTemplateNoContent creates a DeleteTemplateNoContent with default headers values

func (*DeleteTemplateNoContent) Code

func (o *DeleteTemplateNoContent) Code() int

Code gets the status code for the delete template no content response

func (*DeleteTemplateNoContent) Error

func (o *DeleteTemplateNoContent) Error() string

func (*DeleteTemplateNoContent) IsClientError

func (o *DeleteTemplateNoContent) IsClientError() bool

IsClientError returns true when this delete template no content response has a 4xx status code

func (*DeleteTemplateNoContent) IsCode

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

IsCode returns true when this delete template no content response a status code equal to that given

func (*DeleteTemplateNoContent) IsRedirect

func (o *DeleteTemplateNoContent) IsRedirect() bool

IsRedirect returns true when this delete template no content response has a 3xx status code

func (*DeleteTemplateNoContent) IsServerError

func (o *DeleteTemplateNoContent) IsServerError() bool

IsServerError returns true when this delete template no content response has a 5xx status code

func (*DeleteTemplateNoContent) IsSuccess

func (o *DeleteTemplateNoContent) IsSuccess() bool

IsSuccess returns true when this delete template no content response has a 2xx status code

func (*DeleteTemplateNoContent) String

func (o *DeleteTemplateNoContent) String() string

type DeleteTemplateNotFound

type DeleteTemplateNotFound struct {
	Payload *models.Error
}

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

Not found

func NewDeleteTemplateNotFound

func NewDeleteTemplateNotFound() *DeleteTemplateNotFound

NewDeleteTemplateNotFound creates a DeleteTemplateNotFound with default headers values

func (*DeleteTemplateNotFound) Code

func (o *DeleteTemplateNotFound) Code() int

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

func (*DeleteTemplateNotFound) Error

func (o *DeleteTemplateNotFound) Error() string

func (*DeleteTemplateNotFound) GetPayload

func (o *DeleteTemplateNotFound) GetPayload() *models.Error

func (*DeleteTemplateNotFound) IsClientError

func (o *DeleteTemplateNotFound) IsClientError() bool

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

func (*DeleteTemplateNotFound) IsCode

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

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

func (*DeleteTemplateNotFound) IsRedirect

func (o *DeleteTemplateNotFound) IsRedirect() bool

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

func (*DeleteTemplateNotFound) IsServerError

func (o *DeleteTemplateNotFound) IsServerError() bool

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

func (*DeleteTemplateNotFound) IsSuccess

func (o *DeleteTemplateNotFound) IsSuccess() bool

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

func (*DeleteTemplateNotFound) String

func (o *DeleteTemplateNotFound) String() string

type DeleteTemplateParams

type DeleteTemplateParams struct {

	/* FsPath.

	   File system path to the template
	*/
	FsPath string

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* ThemeID.

	   Theme ID
	*/
	ThemeID string

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

DeleteTemplateParams contains all the parameters to send to the API endpoint

for the delete template operation.

Typically these are written to a http.Request.

func NewDeleteTemplateParams

func NewDeleteTemplateParams() *DeleteTemplateParams

NewDeleteTemplateParams creates a new DeleteTemplateParams 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 NewDeleteTemplateParamsWithContext

func NewDeleteTemplateParamsWithContext(ctx context.Context) *DeleteTemplateParams

NewDeleteTemplateParamsWithContext creates a new DeleteTemplateParams object with the ability to set a context for a request.

func NewDeleteTemplateParamsWithHTTPClient

func NewDeleteTemplateParamsWithHTTPClient(client *http.Client) *DeleteTemplateParams

NewDeleteTemplateParamsWithHTTPClient creates a new DeleteTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTemplateParamsWithTimeout

func NewDeleteTemplateParamsWithTimeout(timeout time.Duration) *DeleteTemplateParams

NewDeleteTemplateParamsWithTimeout creates a new DeleteTemplateParams object with the ability to set a timeout on a request.

func (*DeleteTemplateParams) SetContext

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

SetContext adds the context to the delete template params

func (*DeleteTemplateParams) SetDefaults

func (o *DeleteTemplateParams) SetDefaults()

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

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

func (*DeleteTemplateParams) SetFsPath

func (o *DeleteTemplateParams) SetFsPath(fsPath string)

SetFsPath adds the fsPath to the delete template params

func (*DeleteTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete template params

func (*DeleteTemplateParams) SetIfMatch

func (o *DeleteTemplateParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the delete template params

func (*DeleteTemplateParams) SetThemeID

func (o *DeleteTemplateParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the delete template params

func (*DeleteTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the delete template params

func (*DeleteTemplateParams) WithContext

WithContext adds the context to the delete template params

func (*DeleteTemplateParams) WithDefaults

func (o *DeleteTemplateParams) WithDefaults() *DeleteTemplateParams

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

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

func (*DeleteTemplateParams) WithFsPath

func (o *DeleteTemplateParams) WithFsPath(fsPath string) *DeleteTemplateParams

WithFsPath adds the fsPath to the delete template params

func (*DeleteTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete template params

func (*DeleteTemplateParams) WithIfMatch

func (o *DeleteTemplateParams) WithIfMatch(ifMatch *string) *DeleteTemplateParams

WithIfMatch adds the ifMatch to the delete template params

func (*DeleteTemplateParams) WithThemeID

func (o *DeleteTemplateParams) WithThemeID(themeID string) *DeleteTemplateParams

WithThemeID adds the themeID to the delete template params

func (*DeleteTemplateParams) WithTimeout

func (o *DeleteTemplateParams) WithTimeout(timeout time.Duration) *DeleteTemplateParams

WithTimeout adds the timeout to the delete template params

func (*DeleteTemplateParams) WriteToRequest

func (o *DeleteTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteTemplateReader

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

DeleteTemplateReader is a Reader for the DeleteTemplate structure.

func (*DeleteTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTemplateTooManyRequests

type DeleteTemplateTooManyRequests struct {
	Payload *models.Error
}

DeleteTemplateTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewDeleteTemplateTooManyRequests

func NewDeleteTemplateTooManyRequests() *DeleteTemplateTooManyRequests

NewDeleteTemplateTooManyRequests creates a DeleteTemplateTooManyRequests with default headers values

func (*DeleteTemplateTooManyRequests) Code

Code gets the status code for the delete template too many requests response

func (*DeleteTemplateTooManyRequests) Error

func (*DeleteTemplateTooManyRequests) GetPayload

func (o *DeleteTemplateTooManyRequests) GetPayload() *models.Error

func (*DeleteTemplateTooManyRequests) IsClientError

func (o *DeleteTemplateTooManyRequests) IsClientError() bool

IsClientError returns true when this delete template too many requests response has a 4xx status code

func (*DeleteTemplateTooManyRequests) IsCode

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

IsCode returns true when this delete template too many requests response a status code equal to that given

func (*DeleteTemplateTooManyRequests) IsRedirect

func (o *DeleteTemplateTooManyRequests) IsRedirect() bool

IsRedirect returns true when this delete template too many requests response has a 3xx status code

func (*DeleteTemplateTooManyRequests) IsServerError

func (o *DeleteTemplateTooManyRequests) IsServerError() bool

IsServerError returns true when this delete template too many requests response has a 5xx status code

func (*DeleteTemplateTooManyRequests) IsSuccess

func (o *DeleteTemplateTooManyRequests) IsSuccess() bool

IsSuccess returns true when this delete template too many requests response has a 2xx status code

func (*DeleteTemplateTooManyRequests) String

type DeleteTemplateUnauthorized

type DeleteTemplateUnauthorized struct {
	Payload *models.Error
}

DeleteTemplateUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteTemplateUnauthorized

func NewDeleteTemplateUnauthorized() *DeleteTemplateUnauthorized

NewDeleteTemplateUnauthorized creates a DeleteTemplateUnauthorized with default headers values

func (*DeleteTemplateUnauthorized) Code

func (o *DeleteTemplateUnauthorized) Code() int

Code gets the status code for the delete template unauthorized response

func (*DeleteTemplateUnauthorized) Error

func (*DeleteTemplateUnauthorized) GetPayload

func (o *DeleteTemplateUnauthorized) GetPayload() *models.Error

func (*DeleteTemplateUnauthorized) IsClientError

func (o *DeleteTemplateUnauthorized) IsClientError() bool

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

func (*DeleteTemplateUnauthorized) IsCode

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

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

func (*DeleteTemplateUnauthorized) IsRedirect

func (o *DeleteTemplateUnauthorized) IsRedirect() bool

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

func (*DeleteTemplateUnauthorized) IsServerError

func (o *DeleteTemplateUnauthorized) IsServerError() bool

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

func (*DeleteTemplateUnauthorized) IsSuccess

func (o *DeleteTemplateUnauthorized) IsSuccess() bool

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

func (*DeleteTemplateUnauthorized) String

func (o *DeleteTemplateUnauthorized) String() string

type ExportThemeTemplatesForbidden

type ExportThemeTemplatesForbidden struct {
	Payload *models.Error
}

ExportThemeTemplatesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewExportThemeTemplatesForbidden

func NewExportThemeTemplatesForbidden() *ExportThemeTemplatesForbidden

NewExportThemeTemplatesForbidden creates a ExportThemeTemplatesForbidden with default headers values

func (*ExportThemeTemplatesForbidden) Code

Code gets the status code for the export theme templates forbidden response

func (*ExportThemeTemplatesForbidden) Error

func (*ExportThemeTemplatesForbidden) GetPayload

func (o *ExportThemeTemplatesForbidden) GetPayload() *models.Error

func (*ExportThemeTemplatesForbidden) IsClientError

func (o *ExportThemeTemplatesForbidden) IsClientError() bool

IsClientError returns true when this export theme templates forbidden response has a 4xx status code

func (*ExportThemeTemplatesForbidden) IsCode

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

IsCode returns true when this export theme templates forbidden response a status code equal to that given

func (*ExportThemeTemplatesForbidden) IsRedirect

func (o *ExportThemeTemplatesForbidden) IsRedirect() bool

IsRedirect returns true when this export theme templates forbidden response has a 3xx status code

func (*ExportThemeTemplatesForbidden) IsServerError

func (o *ExportThemeTemplatesForbidden) IsServerError() bool

IsServerError returns true when this export theme templates forbidden response has a 5xx status code

func (*ExportThemeTemplatesForbidden) IsSuccess

func (o *ExportThemeTemplatesForbidden) IsSuccess() bool

IsSuccess returns true when this export theme templates forbidden response has a 2xx status code

func (*ExportThemeTemplatesForbidden) String

type ExportThemeTemplatesNotFound

type ExportThemeTemplatesNotFound struct {
	Payload *models.Error
}

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

Not found

func NewExportThemeTemplatesNotFound

func NewExportThemeTemplatesNotFound() *ExportThemeTemplatesNotFound

NewExportThemeTemplatesNotFound creates a ExportThemeTemplatesNotFound with default headers values

func (*ExportThemeTemplatesNotFound) Code

Code gets the status code for the export theme templates not found response

func (*ExportThemeTemplatesNotFound) Error

func (*ExportThemeTemplatesNotFound) GetPayload

func (o *ExportThemeTemplatesNotFound) GetPayload() *models.Error

func (*ExportThemeTemplatesNotFound) IsClientError

func (o *ExportThemeTemplatesNotFound) IsClientError() bool

IsClientError returns true when this export theme templates not found response has a 4xx status code

func (*ExportThemeTemplatesNotFound) IsCode

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

IsCode returns true when this export theme templates not found response a status code equal to that given

func (*ExportThemeTemplatesNotFound) IsRedirect

func (o *ExportThemeTemplatesNotFound) IsRedirect() bool

IsRedirect returns true when this export theme templates not found response has a 3xx status code

func (*ExportThemeTemplatesNotFound) IsServerError

func (o *ExportThemeTemplatesNotFound) IsServerError() bool

IsServerError returns true when this export theme templates not found response has a 5xx status code

func (*ExportThemeTemplatesNotFound) IsSuccess

func (o *ExportThemeTemplatesNotFound) IsSuccess() bool

IsSuccess returns true when this export theme templates not found response has a 2xx status code

func (*ExportThemeTemplatesNotFound) String

type ExportThemeTemplatesOK

type ExportThemeTemplatesOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload io.Writer
}

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

Templates archive

func NewExportThemeTemplatesOK

func NewExportThemeTemplatesOK(writer io.Writer) *ExportThemeTemplatesOK

NewExportThemeTemplatesOK creates a ExportThemeTemplatesOK with default headers values

func (*ExportThemeTemplatesOK) Code

func (o *ExportThemeTemplatesOK) Code() int

Code gets the status code for the export theme templates o k response

func (*ExportThemeTemplatesOK) Error

func (o *ExportThemeTemplatesOK) Error() string

func (*ExportThemeTemplatesOK) GetPayload

func (o *ExportThemeTemplatesOK) GetPayload() io.Writer

func (*ExportThemeTemplatesOK) IsClientError

func (o *ExportThemeTemplatesOK) IsClientError() bool

IsClientError returns true when this export theme templates o k response has a 4xx status code

func (*ExportThemeTemplatesOK) IsCode

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

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

func (*ExportThemeTemplatesOK) IsRedirect

func (o *ExportThemeTemplatesOK) IsRedirect() bool

IsRedirect returns true when this export theme templates o k response has a 3xx status code

func (*ExportThemeTemplatesOK) IsServerError

func (o *ExportThemeTemplatesOK) IsServerError() bool

IsServerError returns true when this export theme templates o k response has a 5xx status code

func (*ExportThemeTemplatesOK) IsSuccess

func (o *ExportThemeTemplatesOK) IsSuccess() bool

IsSuccess returns true when this export theme templates o k response has a 2xx status code

func (*ExportThemeTemplatesOK) String

func (o *ExportThemeTemplatesOK) String() string

type ExportThemeTemplatesParams

type ExportThemeTemplatesParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* ThemeID.

	   Theme ID
	*/
	ThemeID string

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

ExportThemeTemplatesParams contains all the parameters to send to the API endpoint

for the export theme templates operation.

Typically these are written to a http.Request.

func NewExportThemeTemplatesParams

func NewExportThemeTemplatesParams() *ExportThemeTemplatesParams

NewExportThemeTemplatesParams creates a new ExportThemeTemplatesParams 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 NewExportThemeTemplatesParamsWithContext

func NewExportThemeTemplatesParamsWithContext(ctx context.Context) *ExportThemeTemplatesParams

NewExportThemeTemplatesParamsWithContext creates a new ExportThemeTemplatesParams object with the ability to set a context for a request.

func NewExportThemeTemplatesParamsWithHTTPClient

func NewExportThemeTemplatesParamsWithHTTPClient(client *http.Client) *ExportThemeTemplatesParams

NewExportThemeTemplatesParamsWithHTTPClient creates a new ExportThemeTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewExportThemeTemplatesParamsWithTimeout

func NewExportThemeTemplatesParamsWithTimeout(timeout time.Duration) *ExportThemeTemplatesParams

NewExportThemeTemplatesParamsWithTimeout creates a new ExportThemeTemplatesParams object with the ability to set a timeout on a request.

func (*ExportThemeTemplatesParams) SetContext

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

SetContext adds the context to the export theme templates params

func (*ExportThemeTemplatesParams) SetDefaults

func (o *ExportThemeTemplatesParams) SetDefaults()

SetDefaults hydrates default values in the export theme templates params (not the query body).

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

func (*ExportThemeTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export theme templates params

func (*ExportThemeTemplatesParams) SetIfMatch

func (o *ExportThemeTemplatesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the export theme templates params

func (*ExportThemeTemplatesParams) SetThemeID

func (o *ExportThemeTemplatesParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the export theme templates params

func (*ExportThemeTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the export theme templates params

func (*ExportThemeTemplatesParams) WithContext

WithContext adds the context to the export theme templates params

func (*ExportThemeTemplatesParams) WithDefaults

WithDefaults hydrates default values in the export theme templates params (not the query body).

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

func (*ExportThemeTemplatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the export theme templates params

func (*ExportThemeTemplatesParams) WithIfMatch

WithIfMatch adds the ifMatch to the export theme templates params

func (*ExportThemeTemplatesParams) WithThemeID

WithThemeID adds the themeID to the export theme templates params

func (*ExportThemeTemplatesParams) WithTimeout

WithTimeout adds the timeout to the export theme templates params

func (*ExportThemeTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ExportThemeTemplatesReader

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

ExportThemeTemplatesReader is a Reader for the ExportThemeTemplates structure.

func (*ExportThemeTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportThemeTemplatesTooManyRequests

type ExportThemeTemplatesTooManyRequests struct {
	Payload *models.Error
}

ExportThemeTemplatesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewExportThemeTemplatesTooManyRequests

func NewExportThemeTemplatesTooManyRequests() *ExportThemeTemplatesTooManyRequests

NewExportThemeTemplatesTooManyRequests creates a ExportThemeTemplatesTooManyRequests with default headers values

func (*ExportThemeTemplatesTooManyRequests) Code

Code gets the status code for the export theme templates too many requests response

func (*ExportThemeTemplatesTooManyRequests) Error

func (*ExportThemeTemplatesTooManyRequests) GetPayload

func (*ExportThemeTemplatesTooManyRequests) IsClientError

func (o *ExportThemeTemplatesTooManyRequests) IsClientError() bool

IsClientError returns true when this export theme templates too many requests response has a 4xx status code

func (*ExportThemeTemplatesTooManyRequests) IsCode

IsCode returns true when this export theme templates too many requests response a status code equal to that given

func (*ExportThemeTemplatesTooManyRequests) IsRedirect

func (o *ExportThemeTemplatesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this export theme templates too many requests response has a 3xx status code

func (*ExportThemeTemplatesTooManyRequests) IsServerError

func (o *ExportThemeTemplatesTooManyRequests) IsServerError() bool

IsServerError returns true when this export theme templates too many requests response has a 5xx status code

func (*ExportThemeTemplatesTooManyRequests) IsSuccess

IsSuccess returns true when this export theme templates too many requests response has a 2xx status code

func (*ExportThemeTemplatesTooManyRequests) String

type ExportThemeTemplatesUnauthorized

type ExportThemeTemplatesUnauthorized struct {
	Payload *models.Error
}

ExportThemeTemplatesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewExportThemeTemplatesUnauthorized

func NewExportThemeTemplatesUnauthorized() *ExportThemeTemplatesUnauthorized

NewExportThemeTemplatesUnauthorized creates a ExportThemeTemplatesUnauthorized with default headers values

func (*ExportThemeTemplatesUnauthorized) Code

Code gets the status code for the export theme templates unauthorized response

func (*ExportThemeTemplatesUnauthorized) Error

func (*ExportThemeTemplatesUnauthorized) GetPayload

func (*ExportThemeTemplatesUnauthorized) IsClientError

func (o *ExportThemeTemplatesUnauthorized) IsClientError() bool

IsClientError returns true when this export theme templates unauthorized response has a 4xx status code

func (*ExportThemeTemplatesUnauthorized) IsCode

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

IsCode returns true when this export theme templates unauthorized response a status code equal to that given

func (*ExportThemeTemplatesUnauthorized) IsRedirect

func (o *ExportThemeTemplatesUnauthorized) IsRedirect() bool

IsRedirect returns true when this export theme templates unauthorized response has a 3xx status code

func (*ExportThemeTemplatesUnauthorized) IsServerError

func (o *ExportThemeTemplatesUnauthorized) IsServerError() bool

IsServerError returns true when this export theme templates unauthorized response has a 5xx status code

func (*ExportThemeTemplatesUnauthorized) IsSuccess

func (o *ExportThemeTemplatesUnauthorized) IsSuccess() bool

IsSuccess returns true when this export theme templates unauthorized response has a 2xx status code

func (*ExportThemeTemplatesUnauthorized) String

type GetDefaultTemplateBadRequest

type GetDefaultTemplateBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewGetDefaultTemplateBadRequest

func NewGetDefaultTemplateBadRequest() *GetDefaultTemplateBadRequest

NewGetDefaultTemplateBadRequest creates a GetDefaultTemplateBadRequest with default headers values

func (*GetDefaultTemplateBadRequest) Code

Code gets the status code for the get default template bad request response

func (*GetDefaultTemplateBadRequest) Error

func (*GetDefaultTemplateBadRequest) GetPayload

func (o *GetDefaultTemplateBadRequest) GetPayload() *models.Error

func (*GetDefaultTemplateBadRequest) IsClientError

func (o *GetDefaultTemplateBadRequest) IsClientError() bool

IsClientError returns true when this get default template bad request response has a 4xx status code

func (*GetDefaultTemplateBadRequest) IsCode

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

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

func (*GetDefaultTemplateBadRequest) IsRedirect

func (o *GetDefaultTemplateBadRequest) IsRedirect() bool

IsRedirect returns true when this get default template bad request response has a 3xx status code

func (*GetDefaultTemplateBadRequest) IsServerError

func (o *GetDefaultTemplateBadRequest) IsServerError() bool

IsServerError returns true when this get default template bad request response has a 5xx status code

func (*GetDefaultTemplateBadRequest) IsSuccess

func (o *GetDefaultTemplateBadRequest) IsSuccess() bool

IsSuccess returns true when this get default template bad request response has a 2xx status code

func (*GetDefaultTemplateBadRequest) String

type GetDefaultTemplateForbidden

type GetDefaultTemplateForbidden struct {
	Payload *models.Error
}

GetDefaultTemplateForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetDefaultTemplateForbidden

func NewGetDefaultTemplateForbidden() *GetDefaultTemplateForbidden

NewGetDefaultTemplateForbidden creates a GetDefaultTemplateForbidden with default headers values

func (*GetDefaultTemplateForbidden) Code

func (o *GetDefaultTemplateForbidden) Code() int

Code gets the status code for the get default template forbidden response

func (*GetDefaultTemplateForbidden) Error

func (*GetDefaultTemplateForbidden) GetPayload

func (o *GetDefaultTemplateForbidden) GetPayload() *models.Error

func (*GetDefaultTemplateForbidden) IsClientError

func (o *GetDefaultTemplateForbidden) IsClientError() bool

IsClientError returns true when this get default template forbidden response has a 4xx status code

func (*GetDefaultTemplateForbidden) IsCode

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

IsCode returns true when this get default template forbidden response a status code equal to that given

func (*GetDefaultTemplateForbidden) IsRedirect

func (o *GetDefaultTemplateForbidden) IsRedirect() bool

IsRedirect returns true when this get default template forbidden response has a 3xx status code

func (*GetDefaultTemplateForbidden) IsServerError

func (o *GetDefaultTemplateForbidden) IsServerError() bool

IsServerError returns true when this get default template forbidden response has a 5xx status code

func (*GetDefaultTemplateForbidden) IsSuccess

func (o *GetDefaultTemplateForbidden) IsSuccess() bool

IsSuccess returns true when this get default template forbidden response has a 2xx status code

func (*GetDefaultTemplateForbidden) String

func (o *GetDefaultTemplateForbidden) String() string

type GetDefaultTemplateNotFound

type GetDefaultTemplateNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGetDefaultTemplateNotFound

func NewGetDefaultTemplateNotFound() *GetDefaultTemplateNotFound

NewGetDefaultTemplateNotFound creates a GetDefaultTemplateNotFound with default headers values

func (*GetDefaultTemplateNotFound) Code

func (o *GetDefaultTemplateNotFound) Code() int

Code gets the status code for the get default template not found response

func (*GetDefaultTemplateNotFound) Error

func (*GetDefaultTemplateNotFound) GetPayload

func (o *GetDefaultTemplateNotFound) GetPayload() *models.Error

func (*GetDefaultTemplateNotFound) IsClientError

func (o *GetDefaultTemplateNotFound) IsClientError() bool

IsClientError returns true when this get default template not found response has a 4xx status code

func (*GetDefaultTemplateNotFound) IsCode

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

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

func (*GetDefaultTemplateNotFound) IsRedirect

func (o *GetDefaultTemplateNotFound) IsRedirect() bool

IsRedirect returns true when this get default template not found response has a 3xx status code

func (*GetDefaultTemplateNotFound) IsServerError

func (o *GetDefaultTemplateNotFound) IsServerError() bool

IsServerError returns true when this get default template not found response has a 5xx status code

func (*GetDefaultTemplateNotFound) IsSuccess

func (o *GetDefaultTemplateNotFound) IsSuccess() bool

IsSuccess returns true when this get default template not found response has a 2xx status code

func (*GetDefaultTemplateNotFound) String

func (o *GetDefaultTemplateNotFound) String() string

type GetDefaultTemplateOK

type GetDefaultTemplateOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Template
}

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

Template

func NewGetDefaultTemplateOK

func NewGetDefaultTemplateOK() *GetDefaultTemplateOK

NewGetDefaultTemplateOK creates a GetDefaultTemplateOK with default headers values

func (*GetDefaultTemplateOK) Code

func (o *GetDefaultTemplateOK) Code() int

Code gets the status code for the get default template o k response

func (*GetDefaultTemplateOK) Error

func (o *GetDefaultTemplateOK) Error() string

func (*GetDefaultTemplateOK) GetPayload

func (o *GetDefaultTemplateOK) GetPayload() *models.Template

func (*GetDefaultTemplateOK) IsClientError

func (o *GetDefaultTemplateOK) IsClientError() bool

IsClientError returns true when this get default template o k response has a 4xx status code

func (*GetDefaultTemplateOK) IsCode

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

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

func (*GetDefaultTemplateOK) IsRedirect

func (o *GetDefaultTemplateOK) IsRedirect() bool

IsRedirect returns true when this get default template o k response has a 3xx status code

func (*GetDefaultTemplateOK) IsServerError

func (o *GetDefaultTemplateOK) IsServerError() bool

IsServerError returns true when this get default template o k response has a 5xx status code

func (*GetDefaultTemplateOK) IsSuccess

func (o *GetDefaultTemplateOK) IsSuccess() bool

IsSuccess returns true when this get default template o k response has a 2xx status code

func (*GetDefaultTemplateOK) String

func (o *GetDefaultTemplateOK) String() string

type GetDefaultTemplateParams

type GetDefaultTemplateParams struct {

	/* FsPath.

	   File system path to the template
	*/
	FsPath string

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

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

GetDefaultTemplateParams contains all the parameters to send to the API endpoint

for the get default template operation.

Typically these are written to a http.Request.

func NewGetDefaultTemplateParams

func NewGetDefaultTemplateParams() *GetDefaultTemplateParams

NewGetDefaultTemplateParams creates a new GetDefaultTemplateParams 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 NewGetDefaultTemplateParamsWithContext

func NewGetDefaultTemplateParamsWithContext(ctx context.Context) *GetDefaultTemplateParams

NewGetDefaultTemplateParamsWithContext creates a new GetDefaultTemplateParams object with the ability to set a context for a request.

func NewGetDefaultTemplateParamsWithHTTPClient

func NewGetDefaultTemplateParamsWithHTTPClient(client *http.Client) *GetDefaultTemplateParams

NewGetDefaultTemplateParamsWithHTTPClient creates a new GetDefaultTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewGetDefaultTemplateParamsWithTimeout

func NewGetDefaultTemplateParamsWithTimeout(timeout time.Duration) *GetDefaultTemplateParams

NewGetDefaultTemplateParamsWithTimeout creates a new GetDefaultTemplateParams object with the ability to set a timeout on a request.

func (*GetDefaultTemplateParams) SetContext

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

SetContext adds the context to the get default template params

func (*GetDefaultTemplateParams) SetDefaults

func (o *GetDefaultTemplateParams) SetDefaults()

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

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

func (*GetDefaultTemplateParams) SetFsPath

func (o *GetDefaultTemplateParams) SetFsPath(fsPath string)

SetFsPath adds the fsPath to the get default template params

func (*GetDefaultTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get default template params

func (*GetDefaultTemplateParams) SetIfMatch

func (o *GetDefaultTemplateParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the get default template params

func (*GetDefaultTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the get default template params

func (*GetDefaultTemplateParams) WithContext

WithContext adds the context to the get default template params

func (*GetDefaultTemplateParams) WithDefaults

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

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

func (*GetDefaultTemplateParams) WithFsPath

WithFsPath adds the fsPath to the get default template params

func (*GetDefaultTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get default template params

func (*GetDefaultTemplateParams) WithIfMatch

func (o *GetDefaultTemplateParams) WithIfMatch(ifMatch *string) *GetDefaultTemplateParams

WithIfMatch adds the ifMatch to the get default template params

func (*GetDefaultTemplateParams) WithTimeout

WithTimeout adds the timeout to the get default template params

func (*GetDefaultTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDefaultTemplateReader

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

GetDefaultTemplateReader is a Reader for the GetDefaultTemplate structure.

func (*GetDefaultTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDefaultTemplateTooManyRequests

type GetDefaultTemplateTooManyRequests struct {
	Payload *models.Error
}

GetDefaultTemplateTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetDefaultTemplateTooManyRequests

func NewGetDefaultTemplateTooManyRequests() *GetDefaultTemplateTooManyRequests

NewGetDefaultTemplateTooManyRequests creates a GetDefaultTemplateTooManyRequests with default headers values

func (*GetDefaultTemplateTooManyRequests) Code

Code gets the status code for the get default template too many requests response

func (*GetDefaultTemplateTooManyRequests) Error

func (*GetDefaultTemplateTooManyRequests) GetPayload

func (*GetDefaultTemplateTooManyRequests) IsClientError

func (o *GetDefaultTemplateTooManyRequests) IsClientError() bool

IsClientError returns true when this get default template too many requests response has a 4xx status code

func (*GetDefaultTemplateTooManyRequests) IsCode

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

IsCode returns true when this get default template too many requests response a status code equal to that given

func (*GetDefaultTemplateTooManyRequests) IsRedirect

func (o *GetDefaultTemplateTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get default template too many requests response has a 3xx status code

func (*GetDefaultTemplateTooManyRequests) IsServerError

func (o *GetDefaultTemplateTooManyRequests) IsServerError() bool

IsServerError returns true when this get default template too many requests response has a 5xx status code

func (*GetDefaultTemplateTooManyRequests) IsSuccess

func (o *GetDefaultTemplateTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get default template too many requests response has a 2xx status code

func (*GetDefaultTemplateTooManyRequests) String

type GetDefaultTemplateUnauthorized

type GetDefaultTemplateUnauthorized struct {
	Payload *models.Error
}

GetDefaultTemplateUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetDefaultTemplateUnauthorized

func NewGetDefaultTemplateUnauthorized() *GetDefaultTemplateUnauthorized

NewGetDefaultTemplateUnauthorized creates a GetDefaultTemplateUnauthorized with default headers values

func (*GetDefaultTemplateUnauthorized) Code

Code gets the status code for the get default template unauthorized response

func (*GetDefaultTemplateUnauthorized) Error

func (*GetDefaultTemplateUnauthorized) GetPayload

func (o *GetDefaultTemplateUnauthorized) GetPayload() *models.Error

func (*GetDefaultTemplateUnauthorized) IsClientError

func (o *GetDefaultTemplateUnauthorized) IsClientError() bool

IsClientError returns true when this get default template unauthorized response has a 4xx status code

func (*GetDefaultTemplateUnauthorized) IsCode

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

IsCode returns true when this get default template unauthorized response a status code equal to that given

func (*GetDefaultTemplateUnauthorized) IsRedirect

func (o *GetDefaultTemplateUnauthorized) IsRedirect() bool

IsRedirect returns true when this get default template unauthorized response has a 3xx status code

func (*GetDefaultTemplateUnauthorized) IsServerError

func (o *GetDefaultTemplateUnauthorized) IsServerError() bool

IsServerError returns true when this get default template unauthorized response has a 5xx status code

func (*GetDefaultTemplateUnauthorized) IsSuccess

func (o *GetDefaultTemplateUnauthorized) IsSuccess() bool

IsSuccess returns true when this get default template unauthorized response has a 2xx status code

func (*GetDefaultTemplateUnauthorized) String

type GetTemplateForbidden

type GetTemplateForbidden struct {
	Payload *models.Error
}

GetTemplateForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetTemplateForbidden

func NewGetTemplateForbidden() *GetTemplateForbidden

NewGetTemplateForbidden creates a GetTemplateForbidden with default headers values

func (*GetTemplateForbidden) Code

func (o *GetTemplateForbidden) Code() int

Code gets the status code for the get template forbidden response

func (*GetTemplateForbidden) Error

func (o *GetTemplateForbidden) Error() string

func (*GetTemplateForbidden) GetPayload

func (o *GetTemplateForbidden) GetPayload() *models.Error

func (*GetTemplateForbidden) IsClientError

func (o *GetTemplateForbidden) IsClientError() bool

IsClientError returns true when this get template forbidden response has a 4xx status code

func (*GetTemplateForbidden) IsCode

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

IsCode returns true when this get template forbidden response a status code equal to that given

func (*GetTemplateForbidden) IsRedirect

func (o *GetTemplateForbidden) IsRedirect() bool

IsRedirect returns true when this get template forbidden response has a 3xx status code

func (*GetTemplateForbidden) IsServerError

func (o *GetTemplateForbidden) IsServerError() bool

IsServerError returns true when this get template forbidden response has a 5xx status code

func (*GetTemplateForbidden) IsSuccess

func (o *GetTemplateForbidden) IsSuccess() bool

IsSuccess returns true when this get template forbidden response has a 2xx status code

func (*GetTemplateForbidden) String

func (o *GetTemplateForbidden) String() string

type GetTemplateNotFound

type GetTemplateNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGetTemplateNotFound

func NewGetTemplateNotFound() *GetTemplateNotFound

NewGetTemplateNotFound creates a GetTemplateNotFound with default headers values

func (*GetTemplateNotFound) Code

func (o *GetTemplateNotFound) Code() int

Code gets the status code for the get template not found response

func (*GetTemplateNotFound) Error

func (o *GetTemplateNotFound) Error() string

func (*GetTemplateNotFound) GetPayload

func (o *GetTemplateNotFound) GetPayload() *models.Error

func (*GetTemplateNotFound) IsClientError

func (o *GetTemplateNotFound) IsClientError() bool

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

func (*GetTemplateNotFound) IsCode

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

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

func (*GetTemplateNotFound) IsRedirect

func (o *GetTemplateNotFound) IsRedirect() bool

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

func (*GetTemplateNotFound) IsServerError

func (o *GetTemplateNotFound) IsServerError() bool

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

func (*GetTemplateNotFound) IsSuccess

func (o *GetTemplateNotFound) IsSuccess() bool

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

func (*GetTemplateNotFound) String

func (o *GetTemplateNotFound) String() string

type GetTemplateOK

type GetTemplateOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Template
}

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

Template

func NewGetTemplateOK

func NewGetTemplateOK() *GetTemplateOK

NewGetTemplateOK creates a GetTemplateOK with default headers values

func (*GetTemplateOK) Code

func (o *GetTemplateOK) Code() int

Code gets the status code for the get template o k response

func (*GetTemplateOK) Error

func (o *GetTemplateOK) Error() string

func (*GetTemplateOK) GetPayload

func (o *GetTemplateOK) GetPayload() *models.Template

func (*GetTemplateOK) IsClientError

func (o *GetTemplateOK) IsClientError() bool

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

func (*GetTemplateOK) IsCode

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

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

func (*GetTemplateOK) IsRedirect

func (o *GetTemplateOK) IsRedirect() bool

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

func (*GetTemplateOK) IsServerError

func (o *GetTemplateOK) IsServerError() bool

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

func (*GetTemplateOK) IsSuccess

func (o *GetTemplateOK) IsSuccess() bool

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

func (*GetTemplateOK) String

func (o *GetTemplateOK) String() string

type GetTemplateParams

type GetTemplateParams struct {

	/* FsPath.

	   File system path to the template
	*/
	FsPath string

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* ThemeID.

	   Theme ID
	*/
	ThemeID string

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

GetTemplateParams contains all the parameters to send to the API endpoint

for the get template operation.

Typically these are written to a http.Request.

func NewGetTemplateParams

func NewGetTemplateParams() *GetTemplateParams

NewGetTemplateParams creates a new GetTemplateParams 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 NewGetTemplateParamsWithContext

func NewGetTemplateParamsWithContext(ctx context.Context) *GetTemplateParams

NewGetTemplateParamsWithContext creates a new GetTemplateParams object with the ability to set a context for a request.

func NewGetTemplateParamsWithHTTPClient

func NewGetTemplateParamsWithHTTPClient(client *http.Client) *GetTemplateParams

NewGetTemplateParamsWithHTTPClient creates a new GetTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewGetTemplateParamsWithTimeout

func NewGetTemplateParamsWithTimeout(timeout time.Duration) *GetTemplateParams

NewGetTemplateParamsWithTimeout creates a new GetTemplateParams object with the ability to set a timeout on a request.

func (*GetTemplateParams) SetContext

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

SetContext adds the context to the get template params

func (*GetTemplateParams) SetDefaults

func (o *GetTemplateParams) SetDefaults()

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

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

func (*GetTemplateParams) SetFsPath

func (o *GetTemplateParams) SetFsPath(fsPath string)

SetFsPath adds the fsPath to the get template params

func (*GetTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get template params

func (*GetTemplateParams) SetIfMatch

func (o *GetTemplateParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the get template params

func (*GetTemplateParams) SetThemeID

func (o *GetTemplateParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the get template params

func (*GetTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the get template params

func (*GetTemplateParams) WithContext

func (o *GetTemplateParams) WithContext(ctx context.Context) *GetTemplateParams

WithContext adds the context to the get template params

func (*GetTemplateParams) WithDefaults

func (o *GetTemplateParams) WithDefaults() *GetTemplateParams

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

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

func (*GetTemplateParams) WithFsPath

func (o *GetTemplateParams) WithFsPath(fsPath string) *GetTemplateParams

WithFsPath adds the fsPath to the get template params

func (*GetTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get template params

func (*GetTemplateParams) WithIfMatch

func (o *GetTemplateParams) WithIfMatch(ifMatch *string) *GetTemplateParams

WithIfMatch adds the ifMatch to the get template params

func (*GetTemplateParams) WithThemeID

func (o *GetTemplateParams) WithThemeID(themeID string) *GetTemplateParams

WithThemeID adds the themeID to the get template params

func (*GetTemplateParams) WithTimeout

func (o *GetTemplateParams) WithTimeout(timeout time.Duration) *GetTemplateParams

WithTimeout adds the timeout to the get template params

func (*GetTemplateParams) WriteToRequest

func (o *GetTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTemplateReader

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

GetTemplateReader is a Reader for the GetTemplate structure.

func (*GetTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTemplateTooManyRequests

type GetTemplateTooManyRequests struct {
	Payload *models.Error
}

GetTemplateTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetTemplateTooManyRequests

func NewGetTemplateTooManyRequests() *GetTemplateTooManyRequests

NewGetTemplateTooManyRequests creates a GetTemplateTooManyRequests with default headers values

func (*GetTemplateTooManyRequests) Code

func (o *GetTemplateTooManyRequests) Code() int

Code gets the status code for the get template too many requests response

func (*GetTemplateTooManyRequests) Error

func (*GetTemplateTooManyRequests) GetPayload

func (o *GetTemplateTooManyRequests) GetPayload() *models.Error

func (*GetTemplateTooManyRequests) IsClientError

func (o *GetTemplateTooManyRequests) IsClientError() bool

IsClientError returns true when this get template too many requests response has a 4xx status code

func (*GetTemplateTooManyRequests) IsCode

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

IsCode returns true when this get template too many requests response a status code equal to that given

func (*GetTemplateTooManyRequests) IsRedirect

func (o *GetTemplateTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get template too many requests response has a 3xx status code

func (*GetTemplateTooManyRequests) IsServerError

func (o *GetTemplateTooManyRequests) IsServerError() bool

IsServerError returns true when this get template too many requests response has a 5xx status code

func (*GetTemplateTooManyRequests) IsSuccess

func (o *GetTemplateTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get template too many requests response has a 2xx status code

func (*GetTemplateTooManyRequests) String

func (o *GetTemplateTooManyRequests) String() string

type GetTemplateUnauthorized

type GetTemplateUnauthorized struct {
	Payload *models.Error
}

GetTemplateUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetTemplateUnauthorized

func NewGetTemplateUnauthorized() *GetTemplateUnauthorized

NewGetTemplateUnauthorized creates a GetTemplateUnauthorized with default headers values

func (*GetTemplateUnauthorized) Code

func (o *GetTemplateUnauthorized) Code() int

Code gets the status code for the get template unauthorized response

func (*GetTemplateUnauthorized) Error

func (o *GetTemplateUnauthorized) Error() string

func (*GetTemplateUnauthorized) GetPayload

func (o *GetTemplateUnauthorized) GetPayload() *models.Error

func (*GetTemplateUnauthorized) IsClientError

func (o *GetTemplateUnauthorized) IsClientError() bool

IsClientError returns true when this get template unauthorized response has a 4xx status code

func (*GetTemplateUnauthorized) IsCode

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

IsCode returns true when this get template unauthorized response a status code equal to that given

func (*GetTemplateUnauthorized) IsRedirect

func (o *GetTemplateUnauthorized) IsRedirect() bool

IsRedirect returns true when this get template unauthorized response has a 3xx status code

func (*GetTemplateUnauthorized) IsServerError

func (o *GetTemplateUnauthorized) IsServerError() bool

IsServerError returns true when this get template unauthorized response has a 5xx status code

func (*GetTemplateUnauthorized) IsSuccess

func (o *GetTemplateUnauthorized) IsSuccess() bool

IsSuccess returns true when this get template unauthorized response has a 2xx status code

func (*GetTemplateUnauthorized) String

func (o *GetTemplateUnauthorized) String() string

type ImportThemeTemplatesForbidden

type ImportThemeTemplatesForbidden struct {
	Payload *models.Error
}

ImportThemeTemplatesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewImportThemeTemplatesForbidden

func NewImportThemeTemplatesForbidden() *ImportThemeTemplatesForbidden

NewImportThemeTemplatesForbidden creates a ImportThemeTemplatesForbidden with default headers values

func (*ImportThemeTemplatesForbidden) Code

Code gets the status code for the import theme templates forbidden response

func (*ImportThemeTemplatesForbidden) Error

func (*ImportThemeTemplatesForbidden) GetPayload

func (o *ImportThemeTemplatesForbidden) GetPayload() *models.Error

func (*ImportThemeTemplatesForbidden) IsClientError

func (o *ImportThemeTemplatesForbidden) IsClientError() bool

IsClientError returns true when this import theme templates forbidden response has a 4xx status code

func (*ImportThemeTemplatesForbidden) IsCode

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

IsCode returns true when this import theme templates forbidden response a status code equal to that given

func (*ImportThemeTemplatesForbidden) IsRedirect

func (o *ImportThemeTemplatesForbidden) IsRedirect() bool

IsRedirect returns true when this import theme templates forbidden response has a 3xx status code

func (*ImportThemeTemplatesForbidden) IsServerError

func (o *ImportThemeTemplatesForbidden) IsServerError() bool

IsServerError returns true when this import theme templates forbidden response has a 5xx status code

func (*ImportThemeTemplatesForbidden) IsSuccess

func (o *ImportThemeTemplatesForbidden) IsSuccess() bool

IsSuccess returns true when this import theme templates forbidden response has a 2xx status code

func (*ImportThemeTemplatesForbidden) String

type ImportThemeTemplatesNoContent

type ImportThemeTemplatesNoContent struct {
}

ImportThemeTemplatesNoContent describes a response with status code 204, with default header values.

Theme templates have been inserted or updated

func NewImportThemeTemplatesNoContent

func NewImportThemeTemplatesNoContent() *ImportThemeTemplatesNoContent

NewImportThemeTemplatesNoContent creates a ImportThemeTemplatesNoContent with default headers values

func (*ImportThemeTemplatesNoContent) Code

Code gets the status code for the import theme templates no content response

func (*ImportThemeTemplatesNoContent) Error

func (*ImportThemeTemplatesNoContent) IsClientError

func (o *ImportThemeTemplatesNoContent) IsClientError() bool

IsClientError returns true when this import theme templates no content response has a 4xx status code

func (*ImportThemeTemplatesNoContent) IsCode

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

IsCode returns true when this import theme templates no content response a status code equal to that given

func (*ImportThemeTemplatesNoContent) IsRedirect

func (o *ImportThemeTemplatesNoContent) IsRedirect() bool

IsRedirect returns true when this import theme templates no content response has a 3xx status code

func (*ImportThemeTemplatesNoContent) IsServerError

func (o *ImportThemeTemplatesNoContent) IsServerError() bool

IsServerError returns true when this import theme templates no content response has a 5xx status code

func (*ImportThemeTemplatesNoContent) IsSuccess

func (o *ImportThemeTemplatesNoContent) IsSuccess() bool

IsSuccess returns true when this import theme templates no content response has a 2xx status code

func (*ImportThemeTemplatesNoContent) String

type ImportThemeTemplatesNotFound

type ImportThemeTemplatesNotFound struct {
	Payload *models.Error
}

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

Not found

func NewImportThemeTemplatesNotFound

func NewImportThemeTemplatesNotFound() *ImportThemeTemplatesNotFound

NewImportThemeTemplatesNotFound creates a ImportThemeTemplatesNotFound with default headers values

func (*ImportThemeTemplatesNotFound) Code

Code gets the status code for the import theme templates not found response

func (*ImportThemeTemplatesNotFound) Error

func (*ImportThemeTemplatesNotFound) GetPayload

func (o *ImportThemeTemplatesNotFound) GetPayload() *models.Error

func (*ImportThemeTemplatesNotFound) IsClientError

func (o *ImportThemeTemplatesNotFound) IsClientError() bool

IsClientError returns true when this import theme templates not found response has a 4xx status code

func (*ImportThemeTemplatesNotFound) IsCode

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

IsCode returns true when this import theme templates not found response a status code equal to that given

func (*ImportThemeTemplatesNotFound) IsRedirect

func (o *ImportThemeTemplatesNotFound) IsRedirect() bool

IsRedirect returns true when this import theme templates not found response has a 3xx status code

func (*ImportThemeTemplatesNotFound) IsServerError

func (o *ImportThemeTemplatesNotFound) IsServerError() bool

IsServerError returns true when this import theme templates not found response has a 5xx status code

func (*ImportThemeTemplatesNotFound) IsSuccess

func (o *ImportThemeTemplatesNotFound) IsSuccess() bool

IsSuccess returns true when this import theme templates not found response has a 2xx status code

func (*ImportThemeTemplatesNotFound) String

type ImportThemeTemplatesParams

type ImportThemeTemplatesParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* ThemeID.

	   Theme ID
	*/
	ThemeID string

	// ZipFile.
	ZipFile string

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

ImportThemeTemplatesParams contains all the parameters to send to the API endpoint

for the import theme templates operation.

Typically these are written to a http.Request.

func NewImportThemeTemplatesParams

func NewImportThemeTemplatesParams() *ImportThemeTemplatesParams

NewImportThemeTemplatesParams creates a new ImportThemeTemplatesParams 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 NewImportThemeTemplatesParamsWithContext

func NewImportThemeTemplatesParamsWithContext(ctx context.Context) *ImportThemeTemplatesParams

NewImportThemeTemplatesParamsWithContext creates a new ImportThemeTemplatesParams object with the ability to set a context for a request.

func NewImportThemeTemplatesParamsWithHTTPClient

func NewImportThemeTemplatesParamsWithHTTPClient(client *http.Client) *ImportThemeTemplatesParams

NewImportThemeTemplatesParamsWithHTTPClient creates a new ImportThemeTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewImportThemeTemplatesParamsWithTimeout

func NewImportThemeTemplatesParamsWithTimeout(timeout time.Duration) *ImportThemeTemplatesParams

NewImportThemeTemplatesParamsWithTimeout creates a new ImportThemeTemplatesParams object with the ability to set a timeout on a request.

func (*ImportThemeTemplatesParams) SetContext

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

SetContext adds the context to the import theme templates params

func (*ImportThemeTemplatesParams) SetDefaults

func (o *ImportThemeTemplatesParams) SetDefaults()

SetDefaults hydrates default values in the import theme templates params (not the query body).

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

func (*ImportThemeTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the import theme templates params

func (*ImportThemeTemplatesParams) SetIfMatch

func (o *ImportThemeTemplatesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the import theme templates params

func (*ImportThemeTemplatesParams) SetThemeID

func (o *ImportThemeTemplatesParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the import theme templates params

func (*ImportThemeTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the import theme templates params

func (*ImportThemeTemplatesParams) SetZipFile

func (o *ImportThemeTemplatesParams) SetZipFile(zipFile string)

SetZipFile adds the zipFile to the import theme templates params

func (*ImportThemeTemplatesParams) WithContext

WithContext adds the context to the import theme templates params

func (*ImportThemeTemplatesParams) WithDefaults

WithDefaults hydrates default values in the import theme templates params (not the query body).

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

func (*ImportThemeTemplatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the import theme templates params

func (*ImportThemeTemplatesParams) WithIfMatch

WithIfMatch adds the ifMatch to the import theme templates params

func (*ImportThemeTemplatesParams) WithThemeID

WithThemeID adds the themeID to the import theme templates params

func (*ImportThemeTemplatesParams) WithTimeout

WithTimeout adds the timeout to the import theme templates params

func (*ImportThemeTemplatesParams) WithZipFile

WithZipFile adds the zipFile to the import theme templates params

func (*ImportThemeTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ImportThemeTemplatesReader

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

ImportThemeTemplatesReader is a Reader for the ImportThemeTemplates structure.

func (*ImportThemeTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ImportThemeTemplatesTooManyRequests

type ImportThemeTemplatesTooManyRequests struct {
	Payload *models.Error
}

ImportThemeTemplatesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewImportThemeTemplatesTooManyRequests

func NewImportThemeTemplatesTooManyRequests() *ImportThemeTemplatesTooManyRequests

NewImportThemeTemplatesTooManyRequests creates a ImportThemeTemplatesTooManyRequests with default headers values

func (*ImportThemeTemplatesTooManyRequests) Code

Code gets the status code for the import theme templates too many requests response

func (*ImportThemeTemplatesTooManyRequests) Error

func (*ImportThemeTemplatesTooManyRequests) GetPayload

func (*ImportThemeTemplatesTooManyRequests) IsClientError

func (o *ImportThemeTemplatesTooManyRequests) IsClientError() bool

IsClientError returns true when this import theme templates too many requests response has a 4xx status code

func (*ImportThemeTemplatesTooManyRequests) IsCode

IsCode returns true when this import theme templates too many requests response a status code equal to that given

func (*ImportThemeTemplatesTooManyRequests) IsRedirect

func (o *ImportThemeTemplatesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this import theme templates too many requests response has a 3xx status code

func (*ImportThemeTemplatesTooManyRequests) IsServerError

func (o *ImportThemeTemplatesTooManyRequests) IsServerError() bool

IsServerError returns true when this import theme templates too many requests response has a 5xx status code

func (*ImportThemeTemplatesTooManyRequests) IsSuccess

IsSuccess returns true when this import theme templates too many requests response has a 2xx status code

func (*ImportThemeTemplatesTooManyRequests) String

type ImportThemeTemplatesUnauthorized

type ImportThemeTemplatesUnauthorized struct {
	Payload *models.Error
}

ImportThemeTemplatesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewImportThemeTemplatesUnauthorized

func NewImportThemeTemplatesUnauthorized() *ImportThemeTemplatesUnauthorized

NewImportThemeTemplatesUnauthorized creates a ImportThemeTemplatesUnauthorized with default headers values

func (*ImportThemeTemplatesUnauthorized) Code

Code gets the status code for the import theme templates unauthorized response

func (*ImportThemeTemplatesUnauthorized) Error

func (*ImportThemeTemplatesUnauthorized) GetPayload

func (*ImportThemeTemplatesUnauthorized) IsClientError

func (o *ImportThemeTemplatesUnauthorized) IsClientError() bool

IsClientError returns true when this import theme templates unauthorized response has a 4xx status code

func (*ImportThemeTemplatesUnauthorized) IsCode

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

IsCode returns true when this import theme templates unauthorized response a status code equal to that given

func (*ImportThemeTemplatesUnauthorized) IsRedirect

func (o *ImportThemeTemplatesUnauthorized) IsRedirect() bool

IsRedirect returns true when this import theme templates unauthorized response has a 3xx status code

func (*ImportThemeTemplatesUnauthorized) IsServerError

func (o *ImportThemeTemplatesUnauthorized) IsServerError() bool

IsServerError returns true when this import theme templates unauthorized response has a 5xx status code

func (*ImportThemeTemplatesUnauthorized) IsSuccess

func (o *ImportThemeTemplatesUnauthorized) IsSuccess() bool

IsSuccess returns true when this import theme templates unauthorized response has a 2xx status code

func (*ImportThemeTemplatesUnauthorized) String

type ListDefaultTemplatesForbidden

type ListDefaultTemplatesForbidden struct {
	Payload *models.Error
}

ListDefaultTemplatesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListDefaultTemplatesForbidden

func NewListDefaultTemplatesForbidden() *ListDefaultTemplatesForbidden

NewListDefaultTemplatesForbidden creates a ListDefaultTemplatesForbidden with default headers values

func (*ListDefaultTemplatesForbidden) Code

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

func (*ListDefaultTemplatesForbidden) Error

func (*ListDefaultTemplatesForbidden) GetPayload

func (o *ListDefaultTemplatesForbidden) GetPayload() *models.Error

func (*ListDefaultTemplatesForbidden) IsClientError

func (o *ListDefaultTemplatesForbidden) IsClientError() bool

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

func (*ListDefaultTemplatesForbidden) IsCode

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

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

func (*ListDefaultTemplatesForbidden) IsRedirect

func (o *ListDefaultTemplatesForbidden) IsRedirect() bool

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

func (*ListDefaultTemplatesForbidden) IsServerError

func (o *ListDefaultTemplatesForbidden) IsServerError() bool

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

func (*ListDefaultTemplatesForbidden) IsSuccess

func (o *ListDefaultTemplatesForbidden) IsSuccess() bool

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

func (*ListDefaultTemplatesForbidden) String

type ListDefaultTemplatesOK

type ListDefaultTemplatesOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.TemplatePaths
}

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

TemplatePaths

func NewListDefaultTemplatesOK

func NewListDefaultTemplatesOK() *ListDefaultTemplatesOK

NewListDefaultTemplatesOK creates a ListDefaultTemplatesOK with default headers values

func (*ListDefaultTemplatesOK) Code

func (o *ListDefaultTemplatesOK) Code() int

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

func (*ListDefaultTemplatesOK) Error

func (o *ListDefaultTemplatesOK) Error() string

func (*ListDefaultTemplatesOK) GetPayload

func (o *ListDefaultTemplatesOK) GetPayload() *models.TemplatePaths

func (*ListDefaultTemplatesOK) IsClientError

func (o *ListDefaultTemplatesOK) IsClientError() bool

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

func (*ListDefaultTemplatesOK) IsCode

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

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

func (*ListDefaultTemplatesOK) IsRedirect

func (o *ListDefaultTemplatesOK) IsRedirect() bool

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

func (*ListDefaultTemplatesOK) IsServerError

func (o *ListDefaultTemplatesOK) IsServerError() bool

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

func (*ListDefaultTemplatesOK) IsSuccess

func (o *ListDefaultTemplatesOK) IsSuccess() bool

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

func (*ListDefaultTemplatesOK) String

func (o *ListDefaultTemplatesOK) String() string

type ListDefaultTemplatesParams

type ListDefaultTemplatesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListDefaultTemplatesParams contains all the parameters to send to the API endpoint

for the list default templates operation.

Typically these are written to a http.Request.

func NewListDefaultTemplatesParams

func NewListDefaultTemplatesParams() *ListDefaultTemplatesParams

NewListDefaultTemplatesParams creates a new ListDefaultTemplatesParams 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 NewListDefaultTemplatesParamsWithContext

func NewListDefaultTemplatesParamsWithContext(ctx context.Context) *ListDefaultTemplatesParams

NewListDefaultTemplatesParamsWithContext creates a new ListDefaultTemplatesParams object with the ability to set a context for a request.

func NewListDefaultTemplatesParamsWithHTTPClient

func NewListDefaultTemplatesParamsWithHTTPClient(client *http.Client) *ListDefaultTemplatesParams

NewListDefaultTemplatesParamsWithHTTPClient creates a new ListDefaultTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewListDefaultTemplatesParamsWithTimeout

func NewListDefaultTemplatesParamsWithTimeout(timeout time.Duration) *ListDefaultTemplatesParams

NewListDefaultTemplatesParamsWithTimeout creates a new ListDefaultTemplatesParams object with the ability to set a timeout on a request.

func (*ListDefaultTemplatesParams) SetContext

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

SetContext adds the context to the list default templates params

func (*ListDefaultTemplatesParams) SetDefaults

func (o *ListDefaultTemplatesParams) SetDefaults()

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

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

func (*ListDefaultTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list default templates params

func (*ListDefaultTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the list default templates params

func (*ListDefaultTemplatesParams) WithContext

WithContext adds the context to the list default templates params

func (*ListDefaultTemplatesParams) WithDefaults

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

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

func (*ListDefaultTemplatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list default templates params

func (*ListDefaultTemplatesParams) WithTimeout

WithTimeout adds the timeout to the list default templates params

func (*ListDefaultTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListDefaultTemplatesReader

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

ListDefaultTemplatesReader is a Reader for the ListDefaultTemplates structure.

func (*ListDefaultTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDefaultTemplatesTooManyRequests

type ListDefaultTemplatesTooManyRequests struct {
	Payload *models.Error
}

ListDefaultTemplatesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListDefaultTemplatesTooManyRequests

func NewListDefaultTemplatesTooManyRequests() *ListDefaultTemplatesTooManyRequests

NewListDefaultTemplatesTooManyRequests creates a ListDefaultTemplatesTooManyRequests with default headers values

func (*ListDefaultTemplatesTooManyRequests) Code

Code gets the status code for the list default templates too many requests response

func (*ListDefaultTemplatesTooManyRequests) Error

func (*ListDefaultTemplatesTooManyRequests) GetPayload

func (*ListDefaultTemplatesTooManyRequests) IsClientError

func (o *ListDefaultTemplatesTooManyRequests) IsClientError() bool

IsClientError returns true when this list default templates too many requests response has a 4xx status code

func (*ListDefaultTemplatesTooManyRequests) IsCode

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

func (*ListDefaultTemplatesTooManyRequests) IsRedirect

func (o *ListDefaultTemplatesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list default templates too many requests response has a 3xx status code

func (*ListDefaultTemplatesTooManyRequests) IsServerError

func (o *ListDefaultTemplatesTooManyRequests) IsServerError() bool

IsServerError returns true when this list default templates too many requests response has a 5xx status code

func (*ListDefaultTemplatesTooManyRequests) IsSuccess

IsSuccess returns true when this list default templates too many requests response has a 2xx status code

func (*ListDefaultTemplatesTooManyRequests) String

type ListDefaultTemplatesUnauthorized

type ListDefaultTemplatesUnauthorized struct {
	Payload *models.Error
}

ListDefaultTemplatesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListDefaultTemplatesUnauthorized

func NewListDefaultTemplatesUnauthorized() *ListDefaultTemplatesUnauthorized

NewListDefaultTemplatesUnauthorized creates a ListDefaultTemplatesUnauthorized with default headers values

func (*ListDefaultTemplatesUnauthorized) Code

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

func (*ListDefaultTemplatesUnauthorized) Error

func (*ListDefaultTemplatesUnauthorized) GetPayload

func (*ListDefaultTemplatesUnauthorized) IsClientError

func (o *ListDefaultTemplatesUnauthorized) IsClientError() bool

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

func (*ListDefaultTemplatesUnauthorized) IsCode

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

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

func (*ListDefaultTemplatesUnauthorized) IsRedirect

func (o *ListDefaultTemplatesUnauthorized) IsRedirect() bool

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

func (*ListDefaultTemplatesUnauthorized) IsServerError

func (o *ListDefaultTemplatesUnauthorized) IsServerError() bool

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

func (*ListDefaultTemplatesUnauthorized) IsSuccess

func (o *ListDefaultTemplatesUnauthorized) IsSuccess() bool

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

func (*ListDefaultTemplatesUnauthorized) String

type ListThemeTemplatesForbidden

type ListThemeTemplatesForbidden struct {
	Payload *models.Error
}

ListThemeTemplatesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListThemeTemplatesForbidden

func NewListThemeTemplatesForbidden() *ListThemeTemplatesForbidden

NewListThemeTemplatesForbidden creates a ListThemeTemplatesForbidden with default headers values

func (*ListThemeTemplatesForbidden) Code

func (o *ListThemeTemplatesForbidden) Code() int

Code gets the status code for the list theme templates forbidden response

func (*ListThemeTemplatesForbidden) Error

func (*ListThemeTemplatesForbidden) GetPayload

func (o *ListThemeTemplatesForbidden) GetPayload() *models.Error

func (*ListThemeTemplatesForbidden) IsClientError

func (o *ListThemeTemplatesForbidden) IsClientError() bool

IsClientError returns true when this list theme templates forbidden response has a 4xx status code

func (*ListThemeTemplatesForbidden) IsCode

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

IsCode returns true when this list theme templates forbidden response a status code equal to that given

func (*ListThemeTemplatesForbidden) IsRedirect

func (o *ListThemeTemplatesForbidden) IsRedirect() bool

IsRedirect returns true when this list theme templates forbidden response has a 3xx status code

func (*ListThemeTemplatesForbidden) IsServerError

func (o *ListThemeTemplatesForbidden) IsServerError() bool

IsServerError returns true when this list theme templates forbidden response has a 5xx status code

func (*ListThemeTemplatesForbidden) IsSuccess

func (o *ListThemeTemplatesForbidden) IsSuccess() bool

IsSuccess returns true when this list theme templates forbidden response has a 2xx status code

func (*ListThemeTemplatesForbidden) String

func (o *ListThemeTemplatesForbidden) String() string

type ListThemeTemplatesOK

type ListThemeTemplatesOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.TemplatePaths
}

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

TemplatePaths

func NewListThemeTemplatesOK

func NewListThemeTemplatesOK() *ListThemeTemplatesOK

NewListThemeTemplatesOK creates a ListThemeTemplatesOK with default headers values

func (*ListThemeTemplatesOK) Code

func (o *ListThemeTemplatesOK) Code() int

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

func (*ListThemeTemplatesOK) Error

func (o *ListThemeTemplatesOK) Error() string

func (*ListThemeTemplatesOK) GetPayload

func (o *ListThemeTemplatesOK) GetPayload() *models.TemplatePaths

func (*ListThemeTemplatesOK) IsClientError

func (o *ListThemeTemplatesOK) IsClientError() bool

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

func (*ListThemeTemplatesOK) IsCode

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

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

func (*ListThemeTemplatesOK) IsRedirect

func (o *ListThemeTemplatesOK) IsRedirect() bool

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

func (*ListThemeTemplatesOK) IsServerError

func (o *ListThemeTemplatesOK) IsServerError() bool

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

func (*ListThemeTemplatesOK) IsSuccess

func (o *ListThemeTemplatesOK) IsSuccess() bool

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

func (*ListThemeTemplatesOK) String

func (o *ListThemeTemplatesOK) String() string

type ListThemeTemplatesParams

type ListThemeTemplatesParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* ThemeID.

	   Theme ID
	*/
	ThemeID string

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

ListThemeTemplatesParams contains all the parameters to send to the API endpoint

for the list theme templates operation.

Typically these are written to a http.Request.

func NewListThemeTemplatesParams

func NewListThemeTemplatesParams() *ListThemeTemplatesParams

NewListThemeTemplatesParams creates a new ListThemeTemplatesParams 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 NewListThemeTemplatesParamsWithContext

func NewListThemeTemplatesParamsWithContext(ctx context.Context) *ListThemeTemplatesParams

NewListThemeTemplatesParamsWithContext creates a new ListThemeTemplatesParams object with the ability to set a context for a request.

func NewListThemeTemplatesParamsWithHTTPClient

func NewListThemeTemplatesParamsWithHTTPClient(client *http.Client) *ListThemeTemplatesParams

NewListThemeTemplatesParamsWithHTTPClient creates a new ListThemeTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewListThemeTemplatesParamsWithTimeout

func NewListThemeTemplatesParamsWithTimeout(timeout time.Duration) *ListThemeTemplatesParams

NewListThemeTemplatesParamsWithTimeout creates a new ListThemeTemplatesParams object with the ability to set a timeout on a request.

func (*ListThemeTemplatesParams) SetContext

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

SetContext adds the context to the list theme templates params

func (*ListThemeTemplatesParams) SetDefaults

func (o *ListThemeTemplatesParams) SetDefaults()

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

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

func (*ListThemeTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list theme templates params

func (*ListThemeTemplatesParams) SetIfMatch

func (o *ListThemeTemplatesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list theme templates params

func (*ListThemeTemplatesParams) SetThemeID

func (o *ListThemeTemplatesParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the list theme templates params

func (*ListThemeTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the list theme templates params

func (*ListThemeTemplatesParams) WithContext

WithContext adds the context to the list theme templates params

func (*ListThemeTemplatesParams) WithDefaults

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

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

func (*ListThemeTemplatesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list theme templates params

func (*ListThemeTemplatesParams) WithIfMatch

func (o *ListThemeTemplatesParams) WithIfMatch(ifMatch *string) *ListThemeTemplatesParams

WithIfMatch adds the ifMatch to the list theme templates params

func (*ListThemeTemplatesParams) WithThemeID

func (o *ListThemeTemplatesParams) WithThemeID(themeID string) *ListThemeTemplatesParams

WithThemeID adds the themeID to the list theme templates params

func (*ListThemeTemplatesParams) WithTimeout

WithTimeout adds the timeout to the list theme templates params

func (*ListThemeTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListThemeTemplatesReader

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

ListThemeTemplatesReader is a Reader for the ListThemeTemplates structure.

func (*ListThemeTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListThemeTemplatesTooManyRequests

type ListThemeTemplatesTooManyRequests struct {
	Payload *models.Error
}

ListThemeTemplatesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListThemeTemplatesTooManyRequests

func NewListThemeTemplatesTooManyRequests() *ListThemeTemplatesTooManyRequests

NewListThemeTemplatesTooManyRequests creates a ListThemeTemplatesTooManyRequests with default headers values

func (*ListThemeTemplatesTooManyRequests) Code

Code gets the status code for the list theme templates too many requests response

func (*ListThemeTemplatesTooManyRequests) Error

func (*ListThemeTemplatesTooManyRequests) GetPayload

func (*ListThemeTemplatesTooManyRequests) IsClientError

func (o *ListThemeTemplatesTooManyRequests) IsClientError() bool

IsClientError returns true when this list theme templates too many requests response has a 4xx status code

func (*ListThemeTemplatesTooManyRequests) IsCode

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

IsCode returns true when this list theme templates too many requests response a status code equal to that given

func (*ListThemeTemplatesTooManyRequests) IsRedirect

func (o *ListThemeTemplatesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list theme templates too many requests response has a 3xx status code

func (*ListThemeTemplatesTooManyRequests) IsServerError

func (o *ListThemeTemplatesTooManyRequests) IsServerError() bool

IsServerError returns true when this list theme templates too many requests response has a 5xx status code

func (*ListThemeTemplatesTooManyRequests) IsSuccess

func (o *ListThemeTemplatesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list theme templates too many requests response has a 2xx status code

func (*ListThemeTemplatesTooManyRequests) String

type ListThemeTemplatesUnauthorized

type ListThemeTemplatesUnauthorized struct {
	Payload *models.Error
}

ListThemeTemplatesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListThemeTemplatesUnauthorized

func NewListThemeTemplatesUnauthorized() *ListThemeTemplatesUnauthorized

NewListThemeTemplatesUnauthorized creates a ListThemeTemplatesUnauthorized with default headers values

func (*ListThemeTemplatesUnauthorized) Code

Code gets the status code for the list theme templates unauthorized response

func (*ListThemeTemplatesUnauthorized) Error

func (*ListThemeTemplatesUnauthorized) GetPayload

func (o *ListThemeTemplatesUnauthorized) GetPayload() *models.Error

func (*ListThemeTemplatesUnauthorized) IsClientError

func (o *ListThemeTemplatesUnauthorized) IsClientError() bool

IsClientError returns true when this list theme templates unauthorized response has a 4xx status code

func (*ListThemeTemplatesUnauthorized) IsCode

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

IsCode returns true when this list theme templates unauthorized response a status code equal to that given

func (*ListThemeTemplatesUnauthorized) IsRedirect

func (o *ListThemeTemplatesUnauthorized) IsRedirect() bool

IsRedirect returns true when this list theme templates unauthorized response has a 3xx status code

func (*ListThemeTemplatesUnauthorized) IsServerError

func (o *ListThemeTemplatesUnauthorized) IsServerError() bool

IsServerError returns true when this list theme templates unauthorized response has a 5xx status code

func (*ListThemeTemplatesUnauthorized) IsSuccess

func (o *ListThemeTemplatesUnauthorized) IsSuccess() bool

IsSuccess returns true when this list theme templates unauthorized response has a 2xx status code

func (*ListThemeTemplatesUnauthorized) String

type UpsertTemplateBadRequest

type UpsertTemplateBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewUpsertTemplateBadRequest

func NewUpsertTemplateBadRequest() *UpsertTemplateBadRequest

NewUpsertTemplateBadRequest creates a UpsertTemplateBadRequest with default headers values

func (*UpsertTemplateBadRequest) Code

func (o *UpsertTemplateBadRequest) Code() int

Code gets the status code for the upsert template bad request response

func (*UpsertTemplateBadRequest) Error

func (o *UpsertTemplateBadRequest) Error() string

func (*UpsertTemplateBadRequest) GetPayload

func (o *UpsertTemplateBadRequest) GetPayload() *models.Error

func (*UpsertTemplateBadRequest) IsClientError

func (o *UpsertTemplateBadRequest) IsClientError() bool

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

func (*UpsertTemplateBadRequest) IsCode

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

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

func (*UpsertTemplateBadRequest) IsRedirect

func (o *UpsertTemplateBadRequest) IsRedirect() bool

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

func (*UpsertTemplateBadRequest) IsServerError

func (o *UpsertTemplateBadRequest) IsServerError() bool

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

func (*UpsertTemplateBadRequest) IsSuccess

func (o *UpsertTemplateBadRequest) IsSuccess() bool

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

func (*UpsertTemplateBadRequest) String

func (o *UpsertTemplateBadRequest) String() string

type UpsertTemplateForbidden

type UpsertTemplateForbidden struct {
	Payload *models.Error
}

UpsertTemplateForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpsertTemplateForbidden

func NewUpsertTemplateForbidden() *UpsertTemplateForbidden

NewUpsertTemplateForbidden creates a UpsertTemplateForbidden with default headers values

func (*UpsertTemplateForbidden) Code

func (o *UpsertTemplateForbidden) Code() int

Code gets the status code for the upsert template forbidden response

func (*UpsertTemplateForbidden) Error

func (o *UpsertTemplateForbidden) Error() string

func (*UpsertTemplateForbidden) GetPayload

func (o *UpsertTemplateForbidden) GetPayload() *models.Error

func (*UpsertTemplateForbidden) IsClientError

func (o *UpsertTemplateForbidden) IsClientError() bool

IsClientError returns true when this upsert template forbidden response has a 4xx status code

func (*UpsertTemplateForbidden) IsCode

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

IsCode returns true when this upsert template forbidden response a status code equal to that given

func (*UpsertTemplateForbidden) IsRedirect

func (o *UpsertTemplateForbidden) IsRedirect() bool

IsRedirect returns true when this upsert template forbidden response has a 3xx status code

func (*UpsertTemplateForbidden) IsServerError

func (o *UpsertTemplateForbidden) IsServerError() bool

IsServerError returns true when this upsert template forbidden response has a 5xx status code

func (*UpsertTemplateForbidden) IsSuccess

func (o *UpsertTemplateForbidden) IsSuccess() bool

IsSuccess returns true when this upsert template forbidden response has a 2xx status code

func (*UpsertTemplateForbidden) String

func (o *UpsertTemplateForbidden) String() string

type UpsertTemplateNotFound

type UpsertTemplateNotFound struct {
	Payload *models.Error
}

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

Not found

func NewUpsertTemplateNotFound

func NewUpsertTemplateNotFound() *UpsertTemplateNotFound

NewUpsertTemplateNotFound creates a UpsertTemplateNotFound with default headers values

func (*UpsertTemplateNotFound) Code

func (o *UpsertTemplateNotFound) Code() int

Code gets the status code for the upsert template not found response

func (*UpsertTemplateNotFound) Error

func (o *UpsertTemplateNotFound) Error() string

func (*UpsertTemplateNotFound) GetPayload

func (o *UpsertTemplateNotFound) GetPayload() *models.Error

func (*UpsertTemplateNotFound) IsClientError

func (o *UpsertTemplateNotFound) IsClientError() bool

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

func (*UpsertTemplateNotFound) IsCode

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

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

func (*UpsertTemplateNotFound) IsRedirect

func (o *UpsertTemplateNotFound) IsRedirect() bool

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

func (*UpsertTemplateNotFound) IsServerError

func (o *UpsertTemplateNotFound) IsServerError() bool

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

func (*UpsertTemplateNotFound) IsSuccess

func (o *UpsertTemplateNotFound) IsSuccess() bool

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

func (*UpsertTemplateNotFound) String

func (o *UpsertTemplateNotFound) String() string

type UpsertTemplateOK

type UpsertTemplateOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Template
}

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

Template

func NewUpsertTemplateOK

func NewUpsertTemplateOK() *UpsertTemplateOK

NewUpsertTemplateOK creates a UpsertTemplateOK with default headers values

func (*UpsertTemplateOK) Code

func (o *UpsertTemplateOK) Code() int

Code gets the status code for the upsert template o k response

func (*UpsertTemplateOK) Error

func (o *UpsertTemplateOK) Error() string

func (*UpsertTemplateOK) GetPayload

func (o *UpsertTemplateOK) GetPayload() *models.Template

func (*UpsertTemplateOK) IsClientError

func (o *UpsertTemplateOK) IsClientError() bool

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

func (*UpsertTemplateOK) IsCode

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

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

func (*UpsertTemplateOK) IsRedirect

func (o *UpsertTemplateOK) IsRedirect() bool

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

func (*UpsertTemplateOK) IsServerError

func (o *UpsertTemplateOK) IsServerError() bool

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

func (*UpsertTemplateOK) IsSuccess

func (o *UpsertTemplateOK) IsSuccess() bool

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

func (*UpsertTemplateOK) String

func (o *UpsertTemplateOK) String() string

type UpsertTemplateParams

type UpsertTemplateParams struct {

	// Template.
	Template *models.Template

	/* FsPath.

	   File system path to the template
	*/
	FsPath string

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* ThemeID.

	   Theme ID
	*/
	ThemeID string

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

UpsertTemplateParams contains all the parameters to send to the API endpoint

for the upsert template operation.

Typically these are written to a http.Request.

func NewUpsertTemplateParams

func NewUpsertTemplateParams() *UpsertTemplateParams

NewUpsertTemplateParams creates a new UpsertTemplateParams 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 NewUpsertTemplateParamsWithContext

func NewUpsertTemplateParamsWithContext(ctx context.Context) *UpsertTemplateParams

NewUpsertTemplateParamsWithContext creates a new UpsertTemplateParams object with the ability to set a context for a request.

func NewUpsertTemplateParamsWithHTTPClient

func NewUpsertTemplateParamsWithHTTPClient(client *http.Client) *UpsertTemplateParams

NewUpsertTemplateParamsWithHTTPClient creates a new UpsertTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewUpsertTemplateParamsWithTimeout

func NewUpsertTemplateParamsWithTimeout(timeout time.Duration) *UpsertTemplateParams

NewUpsertTemplateParamsWithTimeout creates a new UpsertTemplateParams object with the ability to set a timeout on a request.

func (*UpsertTemplateParams) SetContext

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

SetContext adds the context to the upsert template params

func (*UpsertTemplateParams) SetDefaults

func (o *UpsertTemplateParams) SetDefaults()

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

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

func (*UpsertTemplateParams) SetFsPath

func (o *UpsertTemplateParams) SetFsPath(fsPath string)

SetFsPath adds the fsPath to the upsert template params

func (*UpsertTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upsert template params

func (*UpsertTemplateParams) SetIfMatch

func (o *UpsertTemplateParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the upsert template params

func (*UpsertTemplateParams) SetTemplate

func (o *UpsertTemplateParams) SetTemplate(template *models.Template)

SetTemplate adds the template to the upsert template params

func (*UpsertTemplateParams) SetThemeID

func (o *UpsertTemplateParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the upsert template params

func (*UpsertTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the upsert template params

func (*UpsertTemplateParams) WithContext

WithContext adds the context to the upsert template params

func (*UpsertTemplateParams) WithDefaults

func (o *UpsertTemplateParams) WithDefaults() *UpsertTemplateParams

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

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

func (*UpsertTemplateParams) WithFsPath

func (o *UpsertTemplateParams) WithFsPath(fsPath string) *UpsertTemplateParams

WithFsPath adds the fsPath to the upsert template params

func (*UpsertTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upsert template params

func (*UpsertTemplateParams) WithIfMatch

func (o *UpsertTemplateParams) WithIfMatch(ifMatch *string) *UpsertTemplateParams

WithIfMatch adds the ifMatch to the upsert template params

func (*UpsertTemplateParams) WithTemplate

func (o *UpsertTemplateParams) WithTemplate(template *models.Template) *UpsertTemplateParams

WithTemplate adds the template to the upsert template params

func (*UpsertTemplateParams) WithThemeID

func (o *UpsertTemplateParams) WithThemeID(themeID string) *UpsertTemplateParams

WithThemeID adds the themeID to the upsert template params

func (*UpsertTemplateParams) WithTimeout

func (o *UpsertTemplateParams) WithTimeout(timeout time.Duration) *UpsertTemplateParams

WithTimeout adds the timeout to the upsert template params

func (*UpsertTemplateParams) WriteToRequest

func (o *UpsertTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpsertTemplateReader

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

UpsertTemplateReader is a Reader for the UpsertTemplate structure.

func (*UpsertTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpsertTemplateTooManyRequests

type UpsertTemplateTooManyRequests struct {
	Payload *models.Error
}

UpsertTemplateTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewUpsertTemplateTooManyRequests

func NewUpsertTemplateTooManyRequests() *UpsertTemplateTooManyRequests

NewUpsertTemplateTooManyRequests creates a UpsertTemplateTooManyRequests with default headers values

func (*UpsertTemplateTooManyRequests) Code

Code gets the status code for the upsert template too many requests response

func (*UpsertTemplateTooManyRequests) Error

func (*UpsertTemplateTooManyRequests) GetPayload

func (o *UpsertTemplateTooManyRequests) GetPayload() *models.Error

func (*UpsertTemplateTooManyRequests) IsClientError

func (o *UpsertTemplateTooManyRequests) IsClientError() bool

IsClientError returns true when this upsert template too many requests response has a 4xx status code

func (*UpsertTemplateTooManyRequests) IsCode

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

IsCode returns true when this upsert template too many requests response a status code equal to that given

func (*UpsertTemplateTooManyRequests) IsRedirect

func (o *UpsertTemplateTooManyRequests) IsRedirect() bool

IsRedirect returns true when this upsert template too many requests response has a 3xx status code

func (*UpsertTemplateTooManyRequests) IsServerError

func (o *UpsertTemplateTooManyRequests) IsServerError() bool

IsServerError returns true when this upsert template too many requests response has a 5xx status code

func (*UpsertTemplateTooManyRequests) IsSuccess

func (o *UpsertTemplateTooManyRequests) IsSuccess() bool

IsSuccess returns true when this upsert template too many requests response has a 2xx status code

func (*UpsertTemplateTooManyRequests) String

type UpsertTemplateUnauthorized

type UpsertTemplateUnauthorized struct {
	Payload *models.Error
}

UpsertTemplateUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpsertTemplateUnauthorized

func NewUpsertTemplateUnauthorized() *UpsertTemplateUnauthorized

NewUpsertTemplateUnauthorized creates a UpsertTemplateUnauthorized with default headers values

func (*UpsertTemplateUnauthorized) Code

func (o *UpsertTemplateUnauthorized) Code() int

Code gets the status code for the upsert template unauthorized response

func (*UpsertTemplateUnauthorized) Error

func (*UpsertTemplateUnauthorized) GetPayload

func (o *UpsertTemplateUnauthorized) GetPayload() *models.Error

func (*UpsertTemplateUnauthorized) IsClientError

func (o *UpsertTemplateUnauthorized) IsClientError() bool

IsClientError returns true when this upsert template unauthorized response has a 4xx status code

func (*UpsertTemplateUnauthorized) IsCode

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

IsCode returns true when this upsert template unauthorized response a status code equal to that given

func (*UpsertTemplateUnauthorized) IsRedirect

func (o *UpsertTemplateUnauthorized) IsRedirect() bool

IsRedirect returns true when this upsert template unauthorized response has a 3xx status code

func (*UpsertTemplateUnauthorized) IsServerError

func (o *UpsertTemplateUnauthorized) IsServerError() bool

IsServerError returns true when this upsert template unauthorized response has a 5xx status code

func (*UpsertTemplateUnauthorized) IsSuccess

func (o *UpsertTemplateUnauthorized) IsSuccess() bool

IsSuccess returns true when this upsert template unauthorized response has a 2xx status code

func (*UpsertTemplateUnauthorized) String

func (o *UpsertTemplateUnauthorized) String() string

type UpsertTemplateUnprocessableEntity

type UpsertTemplateUnprocessableEntity struct {
	Payload *models.Error
}

UpsertTemplateUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewUpsertTemplateUnprocessableEntity

func NewUpsertTemplateUnprocessableEntity() *UpsertTemplateUnprocessableEntity

NewUpsertTemplateUnprocessableEntity creates a UpsertTemplateUnprocessableEntity with default headers values

func (*UpsertTemplateUnprocessableEntity) Code

Code gets the status code for the upsert template unprocessable entity response

func (*UpsertTemplateUnprocessableEntity) Error

func (*UpsertTemplateUnprocessableEntity) GetPayload

func (*UpsertTemplateUnprocessableEntity) IsClientError

func (o *UpsertTemplateUnprocessableEntity) IsClientError() bool

IsClientError returns true when this upsert template unprocessable entity response has a 4xx status code

func (*UpsertTemplateUnprocessableEntity) IsCode

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

IsCode returns true when this upsert template unprocessable entity response a status code equal to that given

func (*UpsertTemplateUnprocessableEntity) IsRedirect

func (o *UpsertTemplateUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this upsert template unprocessable entity response has a 3xx status code

func (*UpsertTemplateUnprocessableEntity) IsServerError

func (o *UpsertTemplateUnprocessableEntity) IsServerError() bool

IsServerError returns true when this upsert template unprocessable entity response has a 5xx status code

func (*UpsertTemplateUnprocessableEntity) IsSuccess

func (o *UpsertTemplateUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this upsert template unprocessable entity response has a 2xx status code

func (*UpsertTemplateUnprocessableEntity) String

Jump to

Keyboard shortcuts

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