themes

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 themes API

func (*Client) CreateTheme

func (a *Client) CreateTheme(params *CreateThemeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateThemeCreated, error)

CreateTheme creates theme

Creates a new Custom-Branding Theme

func (*Client) DeleteTheme

func (a *Client) DeleteTheme(params *DeleteThemeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteThemeNoContent, error)

DeleteTheme deletes theme

Deletes the custom-branding theme.

func (*Client) GetTheme

func (a *Client) GetTheme(params *GetThemeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetThemeOK, error)

GetTheme gets theme

Returns an Theme and its content.

func (*Client) ListThemes

func (a *Client) ListThemes(params *ListThemesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListThemesOK, error)

ListThemes lists themes

List themes for this tenant.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateTheme

func (a *Client) UpdateTheme(params *UpdateThemeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateThemeOK, error)

UpdateTheme updates theme

Updates the custom-branding theme

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateTheme(params *CreateThemeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateThemeCreated, error)

	DeleteTheme(params *DeleteThemeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteThemeNoContent, error)

	GetTheme(params *GetThemeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetThemeOK, error)

	ListThemes(params *ListThemesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListThemesOK, error)

	UpdateTheme(params *UpdateThemeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateThemeOK, 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 themes API client.

type CreateThemeBadRequest

type CreateThemeBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewCreateThemeBadRequest

func NewCreateThemeBadRequest() *CreateThemeBadRequest

NewCreateThemeBadRequest creates a CreateThemeBadRequest with default headers values

func (*CreateThemeBadRequest) Code

func (o *CreateThemeBadRequest) Code() int

Code gets the status code for the create theme bad request response

func (*CreateThemeBadRequest) Error

func (o *CreateThemeBadRequest) Error() string

func (*CreateThemeBadRequest) GetPayload

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

func (*CreateThemeBadRequest) IsClientError

func (o *CreateThemeBadRequest) IsClientError() bool

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

func (*CreateThemeBadRequest) IsCode

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

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

func (*CreateThemeBadRequest) IsRedirect

func (o *CreateThemeBadRequest) IsRedirect() bool

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

func (*CreateThemeBadRequest) IsServerError

func (o *CreateThemeBadRequest) IsServerError() bool

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

func (*CreateThemeBadRequest) IsSuccess

func (o *CreateThemeBadRequest) IsSuccess() bool

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

func (*CreateThemeBadRequest) String

func (o *CreateThemeBadRequest) String() string

type CreateThemeCreated

type CreateThemeCreated struct {

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

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Theme
}

CreateThemeCreated describes a response with status code 201, with default header values.

Theme

func NewCreateThemeCreated

func NewCreateThemeCreated() *CreateThemeCreated

NewCreateThemeCreated creates a CreateThemeCreated with default headers values

func (*CreateThemeCreated) Code

func (o *CreateThemeCreated) Code() int

Code gets the status code for the create theme created response

func (*CreateThemeCreated) Error

func (o *CreateThemeCreated) Error() string

func (*CreateThemeCreated) GetPayload

func (o *CreateThemeCreated) GetPayload() *models.Theme

func (*CreateThemeCreated) IsClientError

func (o *CreateThemeCreated) IsClientError() bool

IsClientError returns true when this create theme created response has a 4xx status code

func (*CreateThemeCreated) IsCode

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

IsCode returns true when this create theme created response a status code equal to that given

func (*CreateThemeCreated) IsRedirect

func (o *CreateThemeCreated) IsRedirect() bool

IsRedirect returns true when this create theme created response has a 3xx status code

func (*CreateThemeCreated) IsServerError

func (o *CreateThemeCreated) IsServerError() bool

IsServerError returns true when this create theme created response has a 5xx status code

func (*CreateThemeCreated) IsSuccess

func (o *CreateThemeCreated) IsSuccess() bool

IsSuccess returns true when this create theme created response has a 2xx status code

func (*CreateThemeCreated) String

func (o *CreateThemeCreated) String() string

type CreateThemeForbidden

type CreateThemeForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewCreateThemeForbidden

func NewCreateThemeForbidden() *CreateThemeForbidden

NewCreateThemeForbidden creates a CreateThemeForbidden with default headers values

func (*CreateThemeForbidden) Code

func (o *CreateThemeForbidden) Code() int

Code gets the status code for the create theme forbidden response

func (*CreateThemeForbidden) Error

func (o *CreateThemeForbidden) Error() string

func (*CreateThemeForbidden) GetPayload

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

func (*CreateThemeForbidden) IsClientError

func (o *CreateThemeForbidden) IsClientError() bool

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

func (*CreateThemeForbidden) IsCode

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

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

func (*CreateThemeForbidden) IsRedirect

func (o *CreateThemeForbidden) IsRedirect() bool

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

func (*CreateThemeForbidden) IsServerError

func (o *CreateThemeForbidden) IsServerError() bool

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

func (*CreateThemeForbidden) IsSuccess

func (o *CreateThemeForbidden) IsSuccess() bool

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

func (*CreateThemeForbidden) String

func (o *CreateThemeForbidden) String() string

type CreateThemeParams

type CreateThemeParams struct {

	// Theme.
	Theme *models.Theme

	/* IfMatch.

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

	   Format: etag
	*/
	IfMatch *string

	/* SourceThemeID.

	   Optional source theme ID. The new theme will copy the source theme's templates.

	   Format: themeID
	*/
	SourceThemeID *string

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

CreateThemeParams contains all the parameters to send to the API endpoint

for the create theme operation.

Typically these are written to a http.Request.

func NewCreateThemeParams

func NewCreateThemeParams() *CreateThemeParams

NewCreateThemeParams creates a new CreateThemeParams 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 NewCreateThemeParamsWithContext

func NewCreateThemeParamsWithContext(ctx context.Context) *CreateThemeParams

NewCreateThemeParamsWithContext creates a new CreateThemeParams object with the ability to set a context for a request.

func NewCreateThemeParamsWithHTTPClient

func NewCreateThemeParamsWithHTTPClient(client *http.Client) *CreateThemeParams

NewCreateThemeParamsWithHTTPClient creates a new CreateThemeParams object with the ability to set a custom HTTPClient for a request.

func NewCreateThemeParamsWithTimeout

func NewCreateThemeParamsWithTimeout(timeout time.Duration) *CreateThemeParams

NewCreateThemeParamsWithTimeout creates a new CreateThemeParams object with the ability to set a timeout on a request.

func (*CreateThemeParams) SetContext

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

SetContext adds the context to the create theme params

func (*CreateThemeParams) SetDefaults

func (o *CreateThemeParams) SetDefaults()

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

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

func (*CreateThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create theme params

func (*CreateThemeParams) SetIfMatch

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

SetIfMatch adds the ifMatch to the create theme params

func (*CreateThemeParams) SetSourceThemeID

func (o *CreateThemeParams) SetSourceThemeID(sourceThemeID *string)

SetSourceThemeID adds the sourceThemeId to the create theme params

func (*CreateThemeParams) SetTheme

func (o *CreateThemeParams) SetTheme(theme *models.Theme)

SetTheme adds the theme to the create theme params

func (*CreateThemeParams) SetTimeout

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

SetTimeout adds the timeout to the create theme params

func (*CreateThemeParams) WithContext

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

WithContext adds the context to the create theme params

func (*CreateThemeParams) WithDefaults

func (o *CreateThemeParams) WithDefaults() *CreateThemeParams

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

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

func (*CreateThemeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create theme params

func (*CreateThemeParams) WithIfMatch

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

WithIfMatch adds the ifMatch to the create theme params

func (*CreateThemeParams) WithSourceThemeID

func (o *CreateThemeParams) WithSourceThemeID(sourceThemeID *string) *CreateThemeParams

WithSourceThemeID adds the sourceThemeID to the create theme params

func (*CreateThemeParams) WithTheme

func (o *CreateThemeParams) WithTheme(theme *models.Theme) *CreateThemeParams

WithTheme adds the theme to the create theme params

func (*CreateThemeParams) WithTimeout

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

WithTimeout adds the timeout to the create theme params

func (*CreateThemeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateThemeReader

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

CreateThemeReader is a Reader for the CreateTheme structure.

func (*CreateThemeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateThemeTooManyRequests

type CreateThemeTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewCreateThemeTooManyRequests

func NewCreateThemeTooManyRequests() *CreateThemeTooManyRequests

NewCreateThemeTooManyRequests creates a CreateThemeTooManyRequests with default headers values

func (*CreateThemeTooManyRequests) Code

func (o *CreateThemeTooManyRequests) Code() int

Code gets the status code for the create theme too many requests response

func (*CreateThemeTooManyRequests) Error

func (*CreateThemeTooManyRequests) GetPayload

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

func (*CreateThemeTooManyRequests) IsClientError

func (o *CreateThemeTooManyRequests) IsClientError() bool

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

func (*CreateThemeTooManyRequests) IsCode

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

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

func (*CreateThemeTooManyRequests) IsRedirect

func (o *CreateThemeTooManyRequests) IsRedirect() bool

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

func (*CreateThemeTooManyRequests) IsServerError

func (o *CreateThemeTooManyRequests) IsServerError() bool

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

func (*CreateThemeTooManyRequests) IsSuccess

func (o *CreateThemeTooManyRequests) IsSuccess() bool

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

func (*CreateThemeTooManyRequests) String

func (o *CreateThemeTooManyRequests) String() string

type CreateThemeUnauthorized

type CreateThemeUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewCreateThemeUnauthorized

func NewCreateThemeUnauthorized() *CreateThemeUnauthorized

NewCreateThemeUnauthorized creates a CreateThemeUnauthorized with default headers values

func (*CreateThemeUnauthorized) Code

func (o *CreateThemeUnauthorized) Code() int

Code gets the status code for the create theme unauthorized response

func (*CreateThemeUnauthorized) Error

func (o *CreateThemeUnauthorized) Error() string

func (*CreateThemeUnauthorized) GetPayload

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

func (*CreateThemeUnauthorized) IsClientError

func (o *CreateThemeUnauthorized) IsClientError() bool

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

func (*CreateThemeUnauthorized) IsCode

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

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

func (*CreateThemeUnauthorized) IsRedirect

func (o *CreateThemeUnauthorized) IsRedirect() bool

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

func (*CreateThemeUnauthorized) IsServerError

func (o *CreateThemeUnauthorized) IsServerError() bool

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

func (*CreateThemeUnauthorized) IsSuccess

func (o *CreateThemeUnauthorized) IsSuccess() bool

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

func (*CreateThemeUnauthorized) String

func (o *CreateThemeUnauthorized) String() string

type CreateThemeUnprocessableEntity

type CreateThemeUnprocessableEntity struct {
	Payload *models.Error
}

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

Unprocessable entity

func NewCreateThemeUnprocessableEntity

func NewCreateThemeUnprocessableEntity() *CreateThemeUnprocessableEntity

NewCreateThemeUnprocessableEntity creates a CreateThemeUnprocessableEntity with default headers values

func (*CreateThemeUnprocessableEntity) Code

Code gets the status code for the create theme unprocessable entity response

func (*CreateThemeUnprocessableEntity) Error

func (*CreateThemeUnprocessableEntity) GetPayload

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

func (*CreateThemeUnprocessableEntity) IsClientError

func (o *CreateThemeUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create theme unprocessable entity response has a 4xx status code

func (*CreateThemeUnprocessableEntity) IsCode

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

IsCode returns true when this create theme unprocessable entity response a status code equal to that given

func (*CreateThemeUnprocessableEntity) IsRedirect

func (o *CreateThemeUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this create theme unprocessable entity response has a 3xx status code

func (*CreateThemeUnprocessableEntity) IsServerError

func (o *CreateThemeUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create theme unprocessable entity response has a 5xx status code

func (*CreateThemeUnprocessableEntity) IsSuccess

func (o *CreateThemeUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this create theme unprocessable entity response has a 2xx status code

func (*CreateThemeUnprocessableEntity) String

type DeleteThemeForbidden

type DeleteThemeForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewDeleteThemeForbidden

func NewDeleteThemeForbidden() *DeleteThemeForbidden

NewDeleteThemeForbidden creates a DeleteThemeForbidden with default headers values

func (*DeleteThemeForbidden) Code

func (o *DeleteThemeForbidden) Code() int

Code gets the status code for the delete theme forbidden response

func (*DeleteThemeForbidden) Error

func (o *DeleteThemeForbidden) Error() string

func (*DeleteThemeForbidden) GetPayload

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

func (*DeleteThemeForbidden) IsClientError

func (o *DeleteThemeForbidden) IsClientError() bool

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

func (*DeleteThemeForbidden) IsCode

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

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

func (*DeleteThemeForbidden) IsRedirect

func (o *DeleteThemeForbidden) IsRedirect() bool

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

func (*DeleteThemeForbidden) IsServerError

func (o *DeleteThemeForbidden) IsServerError() bool

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

func (*DeleteThemeForbidden) IsSuccess

func (o *DeleteThemeForbidden) IsSuccess() bool

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

func (*DeleteThemeForbidden) String

func (o *DeleteThemeForbidden) String() string

type DeleteThemeNoContent

type DeleteThemeNoContent struct {
}

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

HTML template has been deleted

func NewDeleteThemeNoContent

func NewDeleteThemeNoContent() *DeleteThemeNoContent

NewDeleteThemeNoContent creates a DeleteThemeNoContent with default headers values

func (*DeleteThemeNoContent) Code

func (o *DeleteThemeNoContent) Code() int

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

func (*DeleteThemeNoContent) Error

func (o *DeleteThemeNoContent) Error() string

func (*DeleteThemeNoContent) IsClientError

func (o *DeleteThemeNoContent) IsClientError() bool

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

func (*DeleteThemeNoContent) IsCode

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

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

func (*DeleteThemeNoContent) IsRedirect

func (o *DeleteThemeNoContent) IsRedirect() bool

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

func (*DeleteThemeNoContent) IsServerError

func (o *DeleteThemeNoContent) IsServerError() bool

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

func (*DeleteThemeNoContent) IsSuccess

func (o *DeleteThemeNoContent) IsSuccess() bool

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

func (*DeleteThemeNoContent) String

func (o *DeleteThemeNoContent) String() string

type DeleteThemeNotFound

type DeleteThemeNotFound struct {
	Payload *models.Error
}

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

Not found

func NewDeleteThemeNotFound

func NewDeleteThemeNotFound() *DeleteThemeNotFound

NewDeleteThemeNotFound creates a DeleteThemeNotFound with default headers values

func (*DeleteThemeNotFound) Code

func (o *DeleteThemeNotFound) Code() int

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

func (*DeleteThemeNotFound) Error

func (o *DeleteThemeNotFound) Error() string

func (*DeleteThemeNotFound) GetPayload

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

func (*DeleteThemeNotFound) IsClientError

func (o *DeleteThemeNotFound) IsClientError() bool

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

func (*DeleteThemeNotFound) IsCode

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

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

func (*DeleteThemeNotFound) IsRedirect

func (o *DeleteThemeNotFound) IsRedirect() bool

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

func (*DeleteThemeNotFound) IsServerError

func (o *DeleteThemeNotFound) IsServerError() bool

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

func (*DeleteThemeNotFound) IsSuccess

func (o *DeleteThemeNotFound) IsSuccess() bool

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

func (*DeleteThemeNotFound) String

func (o *DeleteThemeNotFound) String() string

type DeleteThemeParams

type DeleteThemeParams 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
}

DeleteThemeParams contains all the parameters to send to the API endpoint

for the delete theme operation.

Typically these are written to a http.Request.

func NewDeleteThemeParams

func NewDeleteThemeParams() *DeleteThemeParams

NewDeleteThemeParams creates a new DeleteThemeParams 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 NewDeleteThemeParamsWithContext

func NewDeleteThemeParamsWithContext(ctx context.Context) *DeleteThemeParams

NewDeleteThemeParamsWithContext creates a new DeleteThemeParams object with the ability to set a context for a request.

func NewDeleteThemeParamsWithHTTPClient

func NewDeleteThemeParamsWithHTTPClient(client *http.Client) *DeleteThemeParams

NewDeleteThemeParamsWithHTTPClient creates a new DeleteThemeParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteThemeParamsWithTimeout

func NewDeleteThemeParamsWithTimeout(timeout time.Duration) *DeleteThemeParams

NewDeleteThemeParamsWithTimeout creates a new DeleteThemeParams object with the ability to set a timeout on a request.

func (*DeleteThemeParams) SetContext

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

SetContext adds the context to the delete theme params

func (*DeleteThemeParams) SetDefaults

func (o *DeleteThemeParams) SetDefaults()

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

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

func (*DeleteThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete theme params

func (*DeleteThemeParams) SetIfMatch

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

SetIfMatch adds the ifMatch to the delete theme params

func (*DeleteThemeParams) SetThemeID

func (o *DeleteThemeParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the delete theme params

func (*DeleteThemeParams) SetTimeout

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

SetTimeout adds the timeout to the delete theme params

func (*DeleteThemeParams) WithContext

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

WithContext adds the context to the delete theme params

func (*DeleteThemeParams) WithDefaults

func (o *DeleteThemeParams) WithDefaults() *DeleteThemeParams

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

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

func (*DeleteThemeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete theme params

func (*DeleteThemeParams) WithIfMatch

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

WithIfMatch adds the ifMatch to the delete theme params

func (*DeleteThemeParams) WithThemeID

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

WithThemeID adds the themeID to the delete theme params

func (*DeleteThemeParams) WithTimeout

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

WithTimeout adds the timeout to the delete theme params

func (*DeleteThemeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteThemeReader

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

DeleteThemeReader is a Reader for the DeleteTheme structure.

func (*DeleteThemeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteThemeTooManyRequests

type DeleteThemeTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewDeleteThemeTooManyRequests

func NewDeleteThemeTooManyRequests() *DeleteThemeTooManyRequests

NewDeleteThemeTooManyRequests creates a DeleteThemeTooManyRequests with default headers values

func (*DeleteThemeTooManyRequests) Code

func (o *DeleteThemeTooManyRequests) Code() int

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

func (*DeleteThemeTooManyRequests) Error

func (*DeleteThemeTooManyRequests) GetPayload

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

func (*DeleteThemeTooManyRequests) IsClientError

func (o *DeleteThemeTooManyRequests) IsClientError() bool

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

func (*DeleteThemeTooManyRequests) IsCode

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

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

func (*DeleteThemeTooManyRequests) IsRedirect

func (o *DeleteThemeTooManyRequests) IsRedirect() bool

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

func (*DeleteThemeTooManyRequests) IsServerError

func (o *DeleteThemeTooManyRequests) IsServerError() bool

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

func (*DeleteThemeTooManyRequests) IsSuccess

func (o *DeleteThemeTooManyRequests) IsSuccess() bool

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

func (*DeleteThemeTooManyRequests) String

func (o *DeleteThemeTooManyRequests) String() string

type DeleteThemeUnauthorized

type DeleteThemeUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewDeleteThemeUnauthorized

func NewDeleteThemeUnauthorized() *DeleteThemeUnauthorized

NewDeleteThemeUnauthorized creates a DeleteThemeUnauthorized with default headers values

func (*DeleteThemeUnauthorized) Code

func (o *DeleteThemeUnauthorized) Code() int

Code gets the status code for the delete theme unauthorized response

func (*DeleteThemeUnauthorized) Error

func (o *DeleteThemeUnauthorized) Error() string

func (*DeleteThemeUnauthorized) GetPayload

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

func (*DeleteThemeUnauthorized) IsClientError

func (o *DeleteThemeUnauthorized) IsClientError() bool

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

func (*DeleteThemeUnauthorized) IsCode

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

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

func (*DeleteThemeUnauthorized) IsRedirect

func (o *DeleteThemeUnauthorized) IsRedirect() bool

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

func (*DeleteThemeUnauthorized) IsServerError

func (o *DeleteThemeUnauthorized) IsServerError() bool

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

func (*DeleteThemeUnauthorized) IsSuccess

func (o *DeleteThemeUnauthorized) IsSuccess() bool

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

func (*DeleteThemeUnauthorized) String

func (o *DeleteThemeUnauthorized) String() string

type GetThemeForbidden

type GetThemeForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewGetThemeForbidden

func NewGetThemeForbidden() *GetThemeForbidden

NewGetThemeForbidden creates a GetThemeForbidden with default headers values

func (*GetThemeForbidden) Code

func (o *GetThemeForbidden) Code() int

Code gets the status code for the get theme forbidden response

func (*GetThemeForbidden) Error

func (o *GetThemeForbidden) Error() string

func (*GetThemeForbidden) GetPayload

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

func (*GetThemeForbidden) IsClientError

func (o *GetThemeForbidden) IsClientError() bool

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

func (*GetThemeForbidden) IsCode

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

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

func (*GetThemeForbidden) IsRedirect

func (o *GetThemeForbidden) IsRedirect() bool

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

func (*GetThemeForbidden) IsServerError

func (o *GetThemeForbidden) IsServerError() bool

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

func (*GetThemeForbidden) IsSuccess

func (o *GetThemeForbidden) IsSuccess() bool

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

func (*GetThemeForbidden) String

func (o *GetThemeForbidden) String() string

type GetThemeNotFound

type GetThemeNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGetThemeNotFound

func NewGetThemeNotFound() *GetThemeNotFound

NewGetThemeNotFound creates a GetThemeNotFound with default headers values

func (*GetThemeNotFound) Code

func (o *GetThemeNotFound) Code() int

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

func (*GetThemeNotFound) Error

func (o *GetThemeNotFound) Error() string

func (*GetThemeNotFound) GetPayload

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

func (*GetThemeNotFound) IsClientError

func (o *GetThemeNotFound) IsClientError() bool

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

func (*GetThemeNotFound) IsCode

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

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

func (*GetThemeNotFound) IsRedirect

func (o *GetThemeNotFound) IsRedirect() bool

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

func (*GetThemeNotFound) IsServerError

func (o *GetThemeNotFound) IsServerError() bool

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

func (*GetThemeNotFound) IsSuccess

func (o *GetThemeNotFound) IsSuccess() bool

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

func (*GetThemeNotFound) String

func (o *GetThemeNotFound) String() string

type GetThemeOK

type GetThemeOK struct {

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

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Theme
}

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

Theme

func NewGetThemeOK

func NewGetThemeOK() *GetThemeOK

NewGetThemeOK creates a GetThemeOK with default headers values

func (*GetThemeOK) Code

func (o *GetThemeOK) Code() int

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

func (*GetThemeOK) Error

func (o *GetThemeOK) Error() string

func (*GetThemeOK) GetPayload

func (o *GetThemeOK) GetPayload() *models.Theme

func (*GetThemeOK) IsClientError

func (o *GetThemeOK) IsClientError() bool

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

func (*GetThemeOK) IsCode

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

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

func (*GetThemeOK) IsRedirect

func (o *GetThemeOK) IsRedirect() bool

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

func (*GetThemeOK) IsServerError

func (o *GetThemeOK) IsServerError() bool

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

func (*GetThemeOK) IsSuccess

func (o *GetThemeOK) IsSuccess() bool

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

func (*GetThemeOK) String

func (o *GetThemeOK) String() string

type GetThemeParams

type GetThemeParams 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
}

GetThemeParams contains all the parameters to send to the API endpoint

for the get theme operation.

Typically these are written to a http.Request.

func NewGetThemeParams

func NewGetThemeParams() *GetThemeParams

NewGetThemeParams creates a new GetThemeParams 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 NewGetThemeParamsWithContext

func NewGetThemeParamsWithContext(ctx context.Context) *GetThemeParams

NewGetThemeParamsWithContext creates a new GetThemeParams object with the ability to set a context for a request.

func NewGetThemeParamsWithHTTPClient

func NewGetThemeParamsWithHTTPClient(client *http.Client) *GetThemeParams

NewGetThemeParamsWithHTTPClient creates a new GetThemeParams object with the ability to set a custom HTTPClient for a request.

func NewGetThemeParamsWithTimeout

func NewGetThemeParamsWithTimeout(timeout time.Duration) *GetThemeParams

NewGetThemeParamsWithTimeout creates a new GetThemeParams object with the ability to set a timeout on a request.

func (*GetThemeParams) SetContext

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

SetContext adds the context to the get theme params

func (*GetThemeParams) SetDefaults

func (o *GetThemeParams) SetDefaults()

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

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

func (*GetThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get theme params

func (*GetThemeParams) SetIfMatch

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

SetIfMatch adds the ifMatch to the get theme params

func (*GetThemeParams) SetThemeID

func (o *GetThemeParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the get theme params

func (*GetThemeParams) SetTimeout

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

SetTimeout adds the timeout to the get theme params

func (*GetThemeParams) WithContext

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

WithContext adds the context to the get theme params

func (*GetThemeParams) WithDefaults

func (o *GetThemeParams) WithDefaults() *GetThemeParams

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

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

func (*GetThemeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get theme params

func (*GetThemeParams) WithIfMatch

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

WithIfMatch adds the ifMatch to the get theme params

func (*GetThemeParams) WithThemeID

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

WithThemeID adds the themeID to the get theme params

func (*GetThemeParams) WithTimeout

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

WithTimeout adds the timeout to the get theme params

func (*GetThemeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetThemeReader

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

GetThemeReader is a Reader for the GetTheme structure.

func (*GetThemeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetThemeTooManyRequests

type GetThemeTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewGetThemeTooManyRequests

func NewGetThemeTooManyRequests() *GetThemeTooManyRequests

NewGetThemeTooManyRequests creates a GetThemeTooManyRequests with default headers values

func (*GetThemeTooManyRequests) Code

func (o *GetThemeTooManyRequests) Code() int

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

func (*GetThemeTooManyRequests) Error

func (o *GetThemeTooManyRequests) Error() string

func (*GetThemeTooManyRequests) GetPayload

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

func (*GetThemeTooManyRequests) IsClientError

func (o *GetThemeTooManyRequests) IsClientError() bool

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

func (*GetThemeTooManyRequests) IsCode

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

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

func (*GetThemeTooManyRequests) IsRedirect

func (o *GetThemeTooManyRequests) IsRedirect() bool

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

func (*GetThemeTooManyRequests) IsServerError

func (o *GetThemeTooManyRequests) IsServerError() bool

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

func (*GetThemeTooManyRequests) IsSuccess

func (o *GetThemeTooManyRequests) IsSuccess() bool

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

func (*GetThemeTooManyRequests) String

func (o *GetThemeTooManyRequests) String() string

type GetThemeUnauthorized

type GetThemeUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetThemeUnauthorized

func NewGetThemeUnauthorized() *GetThemeUnauthorized

NewGetThemeUnauthorized creates a GetThemeUnauthorized with default headers values

func (*GetThemeUnauthorized) Code

func (o *GetThemeUnauthorized) Code() int

Code gets the status code for the get theme unauthorized response

func (*GetThemeUnauthorized) Error

func (o *GetThemeUnauthorized) Error() string

func (*GetThemeUnauthorized) GetPayload

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

func (*GetThemeUnauthorized) IsClientError

func (o *GetThemeUnauthorized) IsClientError() bool

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

func (*GetThemeUnauthorized) IsCode

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

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

func (*GetThemeUnauthorized) IsRedirect

func (o *GetThemeUnauthorized) IsRedirect() bool

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

func (*GetThemeUnauthorized) IsServerError

func (o *GetThemeUnauthorized) IsServerError() bool

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

func (*GetThemeUnauthorized) IsSuccess

func (o *GetThemeUnauthorized) IsSuccess() bool

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

func (*GetThemeUnauthorized) String

func (o *GetThemeUnauthorized) String() string

type ListThemesForbidden

type ListThemesForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewListThemesForbidden

func NewListThemesForbidden() *ListThemesForbidden

NewListThemesForbidden creates a ListThemesForbidden with default headers values

func (*ListThemesForbidden) Code

func (o *ListThemesForbidden) Code() int

Code gets the status code for the list themes forbidden response

func (*ListThemesForbidden) Error

func (o *ListThemesForbidden) Error() string

func (*ListThemesForbidden) GetPayload

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

func (*ListThemesForbidden) IsClientError

func (o *ListThemesForbidden) IsClientError() bool

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

func (*ListThemesForbidden) IsCode

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

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

func (*ListThemesForbidden) IsRedirect

func (o *ListThemesForbidden) IsRedirect() bool

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

func (*ListThemesForbidden) IsServerError

func (o *ListThemesForbidden) IsServerError() bool

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

func (*ListThemesForbidden) IsSuccess

func (o *ListThemesForbidden) IsSuccess() bool

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

func (*ListThemesForbidden) String

func (o *ListThemesForbidden) String() string

type ListThemesOK

type ListThemesOK struct {

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

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Themes
}

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

Themes

func NewListThemesOK

func NewListThemesOK() *ListThemesOK

NewListThemesOK creates a ListThemesOK with default headers values

func (*ListThemesOK) Code

func (o *ListThemesOK) Code() int

Code gets the status code for the list themes o k response

func (*ListThemesOK) Error

func (o *ListThemesOK) Error() string

func (*ListThemesOK) GetPayload

func (o *ListThemesOK) GetPayload() *models.Themes

func (*ListThemesOK) IsClientError

func (o *ListThemesOK) IsClientError() bool

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

func (*ListThemesOK) IsCode

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

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

func (*ListThemesOK) IsRedirect

func (o *ListThemesOK) IsRedirect() bool

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

func (*ListThemesOK) IsServerError

func (o *ListThemesOK) IsServerError() bool

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

func (*ListThemesOK) IsSuccess

func (o *ListThemesOK) IsSuccess() bool

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

func (*ListThemesOK) String

func (o *ListThemesOK) String() string

type ListThemesParams

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

ListThemesParams contains all the parameters to send to the API endpoint

for the list themes operation.

Typically these are written to a http.Request.

func NewListThemesParams

func NewListThemesParams() *ListThemesParams

NewListThemesParams creates a new ListThemesParams 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 NewListThemesParamsWithContext

func NewListThemesParamsWithContext(ctx context.Context) *ListThemesParams

NewListThemesParamsWithContext creates a new ListThemesParams object with the ability to set a context for a request.

func NewListThemesParamsWithHTTPClient

func NewListThemesParamsWithHTTPClient(client *http.Client) *ListThemesParams

NewListThemesParamsWithHTTPClient creates a new ListThemesParams object with the ability to set a custom HTTPClient for a request.

func NewListThemesParamsWithTimeout

func NewListThemesParamsWithTimeout(timeout time.Duration) *ListThemesParams

NewListThemesParamsWithTimeout creates a new ListThemesParams object with the ability to set a timeout on a request.

func (*ListThemesParams) SetContext

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

SetContext adds the context to the list themes params

func (*ListThemesParams) SetDefaults

func (o *ListThemesParams) SetDefaults()

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

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

func (*ListThemesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list themes params

func (*ListThemesParams) SetTimeout

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

SetTimeout adds the timeout to the list themes params

func (*ListThemesParams) WithContext

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

WithContext adds the context to the list themes params

func (*ListThemesParams) WithDefaults

func (o *ListThemesParams) WithDefaults() *ListThemesParams

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

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

func (*ListThemesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list themes params

func (*ListThemesParams) WithTimeout

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

WithTimeout adds the timeout to the list themes params

func (*ListThemesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListThemesReader

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

ListThemesReader is a Reader for the ListThemes structure.

func (*ListThemesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListThemesTooManyRequests

type ListThemesTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewListThemesTooManyRequests

func NewListThemesTooManyRequests() *ListThemesTooManyRequests

NewListThemesTooManyRequests creates a ListThemesTooManyRequests with default headers values

func (*ListThemesTooManyRequests) Code

func (o *ListThemesTooManyRequests) Code() int

Code gets the status code for the list themes too many requests response

func (*ListThemesTooManyRequests) Error

func (o *ListThemesTooManyRequests) Error() string

func (*ListThemesTooManyRequests) GetPayload

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

func (*ListThemesTooManyRequests) IsClientError

func (o *ListThemesTooManyRequests) IsClientError() bool

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

func (*ListThemesTooManyRequests) IsCode

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

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

func (*ListThemesTooManyRequests) IsRedirect

func (o *ListThemesTooManyRequests) IsRedirect() bool

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

func (*ListThemesTooManyRequests) IsServerError

func (o *ListThemesTooManyRequests) IsServerError() bool

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

func (*ListThemesTooManyRequests) IsSuccess

func (o *ListThemesTooManyRequests) IsSuccess() bool

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

func (*ListThemesTooManyRequests) String

func (o *ListThemesTooManyRequests) String() string

type ListThemesUnauthorized

type ListThemesUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListThemesUnauthorized

func NewListThemesUnauthorized() *ListThemesUnauthorized

NewListThemesUnauthorized creates a ListThemesUnauthorized with default headers values

func (*ListThemesUnauthorized) Code

func (o *ListThemesUnauthorized) Code() int

Code gets the status code for the list themes unauthorized response

func (*ListThemesUnauthorized) Error

func (o *ListThemesUnauthorized) Error() string

func (*ListThemesUnauthorized) GetPayload

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

func (*ListThemesUnauthorized) IsClientError

func (o *ListThemesUnauthorized) IsClientError() bool

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

func (*ListThemesUnauthorized) IsCode

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

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

func (*ListThemesUnauthorized) IsRedirect

func (o *ListThemesUnauthorized) IsRedirect() bool

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

func (*ListThemesUnauthorized) IsServerError

func (o *ListThemesUnauthorized) IsServerError() bool

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

func (*ListThemesUnauthorized) IsSuccess

func (o *ListThemesUnauthorized) IsSuccess() bool

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

func (*ListThemesUnauthorized) String

func (o *ListThemesUnauthorized) String() string

type UpdateThemeBadRequest

type UpdateThemeBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewUpdateThemeBadRequest

func NewUpdateThemeBadRequest() *UpdateThemeBadRequest

NewUpdateThemeBadRequest creates a UpdateThemeBadRequest with default headers values

func (*UpdateThemeBadRequest) Code

func (o *UpdateThemeBadRequest) Code() int

Code gets the status code for the update theme bad request response

func (*UpdateThemeBadRequest) Error

func (o *UpdateThemeBadRequest) Error() string

func (*UpdateThemeBadRequest) GetPayload

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

func (*UpdateThemeBadRequest) IsClientError

func (o *UpdateThemeBadRequest) IsClientError() bool

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

func (*UpdateThemeBadRequest) IsCode

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

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

func (*UpdateThemeBadRequest) IsRedirect

func (o *UpdateThemeBadRequest) IsRedirect() bool

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

func (*UpdateThemeBadRequest) IsServerError

func (o *UpdateThemeBadRequest) IsServerError() bool

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

func (*UpdateThemeBadRequest) IsSuccess

func (o *UpdateThemeBadRequest) IsSuccess() bool

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

func (*UpdateThemeBadRequest) String

func (o *UpdateThemeBadRequest) String() string

type UpdateThemeForbidden

type UpdateThemeForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewUpdateThemeForbidden

func NewUpdateThemeForbidden() *UpdateThemeForbidden

NewUpdateThemeForbidden creates a UpdateThemeForbidden with default headers values

func (*UpdateThemeForbidden) Code

func (o *UpdateThemeForbidden) Code() int

Code gets the status code for the update theme forbidden response

func (*UpdateThemeForbidden) Error

func (o *UpdateThemeForbidden) Error() string

func (*UpdateThemeForbidden) GetPayload

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

func (*UpdateThemeForbidden) IsClientError

func (o *UpdateThemeForbidden) IsClientError() bool

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

func (*UpdateThemeForbidden) IsCode

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

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

func (*UpdateThemeForbidden) IsRedirect

func (o *UpdateThemeForbidden) IsRedirect() bool

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

func (*UpdateThemeForbidden) IsServerError

func (o *UpdateThemeForbidden) IsServerError() bool

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

func (*UpdateThemeForbidden) IsSuccess

func (o *UpdateThemeForbidden) IsSuccess() bool

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

func (*UpdateThemeForbidden) String

func (o *UpdateThemeForbidden) String() string

type UpdateThemeOK

type UpdateThemeOK struct {

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

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Theme
}

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

Theme

func NewUpdateThemeOK

func NewUpdateThemeOK() *UpdateThemeOK

NewUpdateThemeOK creates a UpdateThemeOK with default headers values

func (*UpdateThemeOK) Code

func (o *UpdateThemeOK) Code() int

Code gets the status code for the update theme o k response

func (*UpdateThemeOK) Error

func (o *UpdateThemeOK) Error() string

func (*UpdateThemeOK) GetPayload

func (o *UpdateThemeOK) GetPayload() *models.Theme

func (*UpdateThemeOK) IsClientError

func (o *UpdateThemeOK) IsClientError() bool

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

func (*UpdateThemeOK) IsCode

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

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

func (*UpdateThemeOK) IsRedirect

func (o *UpdateThemeOK) IsRedirect() bool

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

func (*UpdateThemeOK) IsServerError

func (o *UpdateThemeOK) IsServerError() bool

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

func (*UpdateThemeOK) IsSuccess

func (o *UpdateThemeOK) IsSuccess() bool

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

func (*UpdateThemeOK) String

func (o *UpdateThemeOK) String() string

type UpdateThemeParams

type UpdateThemeParams struct {

	// Theme.
	Theme *models.Theme

	/* 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
}

UpdateThemeParams contains all the parameters to send to the API endpoint

for the update theme operation.

Typically these are written to a http.Request.

func NewUpdateThemeParams

func NewUpdateThemeParams() *UpdateThemeParams

NewUpdateThemeParams creates a new UpdateThemeParams 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 NewUpdateThemeParamsWithContext

func NewUpdateThemeParamsWithContext(ctx context.Context) *UpdateThemeParams

NewUpdateThemeParamsWithContext creates a new UpdateThemeParams object with the ability to set a context for a request.

func NewUpdateThemeParamsWithHTTPClient

func NewUpdateThemeParamsWithHTTPClient(client *http.Client) *UpdateThemeParams

NewUpdateThemeParamsWithHTTPClient creates a new UpdateThemeParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateThemeParamsWithTimeout

func NewUpdateThemeParamsWithTimeout(timeout time.Duration) *UpdateThemeParams

NewUpdateThemeParamsWithTimeout creates a new UpdateThemeParams object with the ability to set a timeout on a request.

func (*UpdateThemeParams) SetContext

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

SetContext adds the context to the update theme params

func (*UpdateThemeParams) SetDefaults

func (o *UpdateThemeParams) SetDefaults()

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

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

func (*UpdateThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update theme params

func (*UpdateThemeParams) SetIfMatch

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

SetIfMatch adds the ifMatch to the update theme params

func (*UpdateThemeParams) SetTheme

func (o *UpdateThemeParams) SetTheme(theme *models.Theme)

SetTheme adds the theme to the update theme params

func (*UpdateThemeParams) SetThemeID

func (o *UpdateThemeParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the update theme params

func (*UpdateThemeParams) SetTimeout

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

SetTimeout adds the timeout to the update theme params

func (*UpdateThemeParams) WithContext

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

WithContext adds the context to the update theme params

func (*UpdateThemeParams) WithDefaults

func (o *UpdateThemeParams) WithDefaults() *UpdateThemeParams

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

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

func (*UpdateThemeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update theme params

func (*UpdateThemeParams) WithIfMatch

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

WithIfMatch adds the ifMatch to the update theme params

func (*UpdateThemeParams) WithTheme

func (o *UpdateThemeParams) WithTheme(theme *models.Theme) *UpdateThemeParams

WithTheme adds the theme to the update theme params

func (*UpdateThemeParams) WithThemeID

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

WithThemeID adds the themeID to the update theme params

func (*UpdateThemeParams) WithTimeout

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

WithTimeout adds the timeout to the update theme params

func (*UpdateThemeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateThemeReader

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

UpdateThemeReader is a Reader for the UpdateTheme structure.

func (*UpdateThemeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateThemeTooManyRequests

type UpdateThemeTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewUpdateThemeTooManyRequests

func NewUpdateThemeTooManyRequests() *UpdateThemeTooManyRequests

NewUpdateThemeTooManyRequests creates a UpdateThemeTooManyRequests with default headers values

func (*UpdateThemeTooManyRequests) Code

func (o *UpdateThemeTooManyRequests) Code() int

Code gets the status code for the update theme too many requests response

func (*UpdateThemeTooManyRequests) Error

func (*UpdateThemeTooManyRequests) GetPayload

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

func (*UpdateThemeTooManyRequests) IsClientError

func (o *UpdateThemeTooManyRequests) IsClientError() bool

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

func (*UpdateThemeTooManyRequests) IsCode

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

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

func (*UpdateThemeTooManyRequests) IsRedirect

func (o *UpdateThemeTooManyRequests) IsRedirect() bool

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

func (*UpdateThemeTooManyRequests) IsServerError

func (o *UpdateThemeTooManyRequests) IsServerError() bool

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

func (*UpdateThemeTooManyRequests) IsSuccess

func (o *UpdateThemeTooManyRequests) IsSuccess() bool

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

func (*UpdateThemeTooManyRequests) String

func (o *UpdateThemeTooManyRequests) String() string

type UpdateThemeUnauthorized

type UpdateThemeUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewUpdateThemeUnauthorized

func NewUpdateThemeUnauthorized() *UpdateThemeUnauthorized

NewUpdateThemeUnauthorized creates a UpdateThemeUnauthorized with default headers values

func (*UpdateThemeUnauthorized) Code

func (o *UpdateThemeUnauthorized) Code() int

Code gets the status code for the update theme unauthorized response

func (*UpdateThemeUnauthorized) Error

func (o *UpdateThemeUnauthorized) Error() string

func (*UpdateThemeUnauthorized) GetPayload

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

func (*UpdateThemeUnauthorized) IsClientError

func (o *UpdateThemeUnauthorized) IsClientError() bool

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

func (*UpdateThemeUnauthorized) IsCode

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

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

func (*UpdateThemeUnauthorized) IsRedirect

func (o *UpdateThemeUnauthorized) IsRedirect() bool

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

func (*UpdateThemeUnauthorized) IsServerError

func (o *UpdateThemeUnauthorized) IsServerError() bool

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

func (*UpdateThemeUnauthorized) IsSuccess

func (o *UpdateThemeUnauthorized) IsSuccess() bool

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

func (*UpdateThemeUnauthorized) String

func (o *UpdateThemeUnauthorized) String() string

type UpdateThemeUnprocessableEntity

type UpdateThemeUnprocessableEntity struct {
	Payload *models.Error
}

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

Unprocessable entity

func NewUpdateThemeUnprocessableEntity

func NewUpdateThemeUnprocessableEntity() *UpdateThemeUnprocessableEntity

NewUpdateThemeUnprocessableEntity creates a UpdateThemeUnprocessableEntity with default headers values

func (*UpdateThemeUnprocessableEntity) Code

Code gets the status code for the update theme unprocessable entity response

func (*UpdateThemeUnprocessableEntity) Error

func (*UpdateThemeUnprocessableEntity) GetPayload

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

func (*UpdateThemeUnprocessableEntity) IsClientError

func (o *UpdateThemeUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update theme unprocessable entity response has a 4xx status code

func (*UpdateThemeUnprocessableEntity) IsCode

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

IsCode returns true when this update theme unprocessable entity response a status code equal to that given

func (*UpdateThemeUnprocessableEntity) IsRedirect

func (o *UpdateThemeUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this update theme unprocessable entity response has a 3xx status code

func (*UpdateThemeUnprocessableEntity) IsServerError

func (o *UpdateThemeUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update theme unprocessable entity response has a 5xx status code

func (*UpdateThemeUnprocessableEntity) IsSuccess

func (o *UpdateThemeUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this update theme unprocessable entity response has a 2xx status code

func (*UpdateThemeUnprocessableEntity) String

Jump to

Keyboard shortcuts

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