theme

package
v0.0.0-...-9dad3f6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveThemesBadRequest

type ActiveThemesBadRequest struct {
	Payload *models.Error
}

ActiveThemesBadRequest handles this case with default header values.

Bad Request

func NewActiveThemesBadRequest

func NewActiveThemesBadRequest() *ActiveThemesBadRequest

NewActiveThemesBadRequest creates a ActiveThemesBadRequest with default headers values

func (*ActiveThemesBadRequest) Error

func (o *ActiveThemesBadRequest) Error() string

func (*ActiveThemesBadRequest) GetPayload

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

type ActiveThemesNotFound

type ActiveThemesNotFound struct {
	Payload *models.Error
}

ActiveThemesNotFound handles this case with default header values.

Not Found

func NewActiveThemesNotFound

func NewActiveThemesNotFound() *ActiveThemesNotFound

NewActiveThemesNotFound creates a ActiveThemesNotFound with default headers values

func (*ActiveThemesNotFound) Error

func (o *ActiveThemesNotFound) Error() string

func (*ActiveThemesNotFound) GetPayload

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

type ActiveThemesOK

type ActiveThemesOK struct {
	Payload []*models.Theme
}

ActiveThemesOK handles this case with default header values.

Themes

func NewActiveThemesOK

func NewActiveThemesOK() *ActiveThemesOK

NewActiveThemesOK creates a ActiveThemesOK with default headers values

func (*ActiveThemesOK) Error

func (o *ActiveThemesOK) Error() string

func (*ActiveThemesOK) GetPayload

func (o *ActiveThemesOK) GetPayload() []*models.Theme

type ActiveThemesParams

type ActiveThemesParams struct {

	/*Fields
	  Requested fields.

	*/
	Fields *string
	/*Name
	  Name of theme

	*/
	Name *string
	/*Ts
	  Timestamp representing the target datetime for the active period. Defaults to 'now'

	*/
	Ts *strfmt.DateTime

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

ActiveThemesParams contains all the parameters to send to the API endpoint for the active themes operation typically these are written to a http.Request

func NewActiveThemesParams

func NewActiveThemesParams() *ActiveThemesParams

NewActiveThemesParams creates a new ActiveThemesParams object with the default values initialized.

func NewActiveThemesParamsWithContext

func NewActiveThemesParamsWithContext(ctx context.Context) *ActiveThemesParams

NewActiveThemesParamsWithContext creates a new ActiveThemesParams object with the default values initialized, and the ability to set a context for a request

func NewActiveThemesParamsWithHTTPClient

func NewActiveThemesParamsWithHTTPClient(client *http.Client) *ActiveThemesParams

NewActiveThemesParamsWithHTTPClient creates a new ActiveThemesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewActiveThemesParamsWithTimeout

func NewActiveThemesParamsWithTimeout(timeout time.Duration) *ActiveThemesParams

NewActiveThemesParamsWithTimeout creates a new ActiveThemesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ActiveThemesParams) SetContext

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

SetContext adds the context to the active themes params

func (*ActiveThemesParams) SetFields

func (o *ActiveThemesParams) SetFields(fields *string)

SetFields adds the fields to the active themes params

func (*ActiveThemesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the active themes params

func (*ActiveThemesParams) SetName

func (o *ActiveThemesParams) SetName(name *string)

SetName adds the name to the active themes params

func (*ActiveThemesParams) SetTimeout

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

SetTimeout adds the timeout to the active themes params

func (*ActiveThemesParams) SetTs

func (o *ActiveThemesParams) SetTs(ts *strfmt.DateTime)

SetTs adds the ts to the active themes params

func (*ActiveThemesParams) WithContext

WithContext adds the context to the active themes params

func (*ActiveThemesParams) WithFields

func (o *ActiveThemesParams) WithFields(fields *string) *ActiveThemesParams

WithFields adds the fields to the active themes params

func (*ActiveThemesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the active themes params

func (*ActiveThemesParams) WithName

func (o *ActiveThemesParams) WithName(name *string) *ActiveThemesParams

WithName adds the name to the active themes params

func (*ActiveThemesParams) WithTimeout

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

WithTimeout adds the timeout to the active themes params

func (*ActiveThemesParams) WithTs

WithTs adds the ts to the active themes params

func (*ActiveThemesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ActiveThemesReader

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

ActiveThemesReader is a Reader for the ActiveThemes structure.

func (*ActiveThemesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AllThemesBadRequest

type AllThemesBadRequest struct {
	Payload *models.Error
}

AllThemesBadRequest handles this case with default header values.

Bad Request

func NewAllThemesBadRequest

func NewAllThemesBadRequest() *AllThemesBadRequest

NewAllThemesBadRequest creates a AllThemesBadRequest with default headers values

func (*AllThemesBadRequest) Error

func (o *AllThemesBadRequest) Error() string

func (*AllThemesBadRequest) GetPayload

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

type AllThemesNotFound

type AllThemesNotFound struct {
	Payload *models.Error
}

AllThemesNotFound handles this case with default header values.

Not Found

func NewAllThemesNotFound

func NewAllThemesNotFound() *AllThemesNotFound

NewAllThemesNotFound creates a AllThemesNotFound with default headers values

func (*AllThemesNotFound) Error

func (o *AllThemesNotFound) Error() string

func (*AllThemesNotFound) GetPayload

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

type AllThemesOK

type AllThemesOK struct {
	Payload []*models.Theme
}

AllThemesOK handles this case with default header values.

Themes

func NewAllThemesOK

func NewAllThemesOK() *AllThemesOK

NewAllThemesOK creates a AllThemesOK with default headers values

func (*AllThemesOK) Error

func (o *AllThemesOK) Error() string

func (*AllThemesOK) GetPayload

func (o *AllThemesOK) GetPayload() []*models.Theme

type AllThemesParams

type AllThemesParams struct {

	/*Fields
	  Requested fields.

	*/
	Fields *string

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

AllThemesParams contains all the parameters to send to the API endpoint for the all themes operation typically these are written to a http.Request

func NewAllThemesParams

func NewAllThemesParams() *AllThemesParams

NewAllThemesParams creates a new AllThemesParams object with the default values initialized.

func NewAllThemesParamsWithContext

func NewAllThemesParamsWithContext(ctx context.Context) *AllThemesParams

NewAllThemesParamsWithContext creates a new AllThemesParams object with the default values initialized, and the ability to set a context for a request

func NewAllThemesParamsWithHTTPClient

func NewAllThemesParamsWithHTTPClient(client *http.Client) *AllThemesParams

NewAllThemesParamsWithHTTPClient creates a new AllThemesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAllThemesParamsWithTimeout

func NewAllThemesParamsWithTimeout(timeout time.Duration) *AllThemesParams

NewAllThemesParamsWithTimeout creates a new AllThemesParams object with the default values initialized, and the ability to set a timeout on a request

func (*AllThemesParams) SetContext

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

SetContext adds the context to the all themes params

func (*AllThemesParams) SetFields

func (o *AllThemesParams) SetFields(fields *string)

SetFields adds the fields to the all themes params

func (*AllThemesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the all themes params

func (*AllThemesParams) SetTimeout

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

SetTimeout adds the timeout to the all themes params

func (*AllThemesParams) WithContext

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

WithContext adds the context to the all themes params

func (*AllThemesParams) WithFields

func (o *AllThemesParams) WithFields(fields *string) *AllThemesParams

WithFields adds the fields to the all themes params

func (*AllThemesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the all themes params

func (*AllThemesParams) WithTimeout

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

WithTimeout adds the timeout to the all themes params

func (*AllThemesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AllThemesReader

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

AllThemesReader is a Reader for the AllThemes structure.

func (*AllThemesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for theme API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new theme API client.

func (*Client) ActiveThemes

func (a *Client) ActiveThemes(params *ActiveThemesParams) (*ActiveThemesOK, error)

ActiveThemes gets active themes

### Get active themes

Returns an array of active themes.

If the `name` parameter is specified, it will return an array with one theme if it's active and found.

The optional `ts` parameter can specify a different timestamp than "now."

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) AllThemes

func (a *Client) AllThemes(params *AllThemesParams) (*AllThemesOK, error)

AllThemes gets all themes

### Get an array of all existing themes

Get a **single theme** by id with [Theme](#!/Theme/theme)

This method returns an array of all existing themes. The active time for the theme is not considered.

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) CreateTheme

func (a *Client) CreateTheme(params *CreateThemeParams) (*CreateThemeOK, error)

CreateTheme creates theme

### Create a theme

Creates a new theme object, returning the theme details, including the created id.

If `settings` are not specified, the default theme settings will be copied into the new theme.

The theme `name` can only contain alphanumeric characters or underscores. Theme names should not contain any confidential information, such as customer names.

**Update** an existing theme with [Update Theme](#!/Theme/update_theme)

**Permanently delete** an existing theme with [Delete Theme](#!/Theme/delete_theme)

For more information, see [Creating and Applying Themes](https://looker.com/docs/r/admin/themes).

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) DefaultTheme

func (a *Client) DefaultTheme(params *DefaultThemeParams) (*DefaultThemeOK, error)

DefaultTheme gets default theme

### Get the default theme

Returns the active theme object set as the default.

The **default** theme name can be set in the UI on the Admin|Theme UI page

The optional `ts` parameter can specify a different timestamp than "now." If specified, it returns the default theme at the time indicated.

func (*Client) DeleteTheme

func (a *Client) DeleteTheme(params *DeleteThemeParams) (*DeleteThemeNoContent, error)

DeleteTheme deletes theme

### Delete a specific theme by id

This operation permanently deletes the identified theme from the database.

Because multiple themes can have the same name (with different activation time spans) themes can only be deleted by ID.

All IDs associated with a theme name can be retrieved by searching for the theme name with [Theme Search](#!/Theme/search).

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) SearchThemes

func (a *Client) SearchThemes(params *SearchThemesParams) (*SearchThemesOK, error)

SearchThemes searches themes

### Search all themes for matching criteria.

Returns an **array of theme objects** that match the specified search criteria.

| Search Parameters | Description | :-------------------: | :------ | | `begin_at` only | Find themes active at or after `begin_at` | `end_at` only | Find themes active at or before `end_at` | both set | Find themes with an active inclusive period between `begin_at` and `end_at`

Note: Range matching requires boolean AND logic. When using `begin_at` and `end_at` together, do not use `filter_or`=TRUE

If multiple search params are given and `filter_or` is FALSE or not specified, search params are combined in a logical AND operation. Only rows that match *all* search param criteria will be returned.

If `filter_or` is TRUE, multiple search params are combined in a logical OR operation. Results will include rows that match **any** of the search criteria.

String search params use case-insensitive matching. String search params can contain `%` and '_' as SQL LIKE pattern match wildcard expressions. example="dan%" will match "danger" and "Danzig" but not "David" example="D_m%" will match "Damage" and "dump"

Integer search params can accept a single value or a comma separated list of values. The multiple values will be combined under a logical OR operation - results will match at least one of the given values.

Most search params can accept "IS NULL" and "NOT NULL" as special expressions to match or exclude (respectively) rows where the column is null.

Boolean search params accept only "true" and "false" as values.

Get a **single theme** by id with [Theme](#!/Theme/theme)

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) SetDefaultTheme

func (a *Client) SetDefaultTheme(params *SetDefaultThemeParams) (*SetDefaultThemeOK, error)

SetDefaultTheme sets default theme

### Set the global default theme by theme name

Only Admin users can call this function.

Only an active theme with no expiration (`end_at` not set) can be assigned as the default theme. As long as a theme has an active record with no expiration, it can be set as the default.

[Create Theme](#!/Theme/create) has detailed information on rules for default and active themes

Returns the new specified default theme object.

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Theme

func (a *Client) Theme(params *ThemeParams) (*ThemeOK, error)

Theme gets theme

### Get a theme by ID

Use this to retrieve a specific theme, whether or not it's currently active.

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) ThemeOrDefault

func (a *Client) ThemeOrDefault(params *ThemeOrDefaultParams) (*ThemeOrDefaultOK, error)

ThemeOrDefault gets theme or default

### Get the named theme if it's active. Otherwise, return the default theme

The optional `ts` parameter can specify a different timestamp than "now." Note: API users with `show` ability can call this function

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) UpdateTheme

func (a *Client) UpdateTheme(params *UpdateThemeParams) (*UpdateThemeOK, error)

UpdateTheme updates theme

### Update the theme by id.

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

func (*Client) ValidateTheme

func (a *Client) ValidateTheme(params *ValidateThemeParams) (*ValidateThemeOK, error)

ValidateTheme validates theme

### Validate a theme with the specified information

Validates all values set for the theme, returning any errors encountered, or 200 OK if valid

See [Create Theme](#!/Theme/create_theme) for constraints

**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or support@looker.com to update your license for this feature.

type CreateThemeBadRequest

type CreateThemeBadRequest struct {
	Payload *models.Error
}

CreateThemeBadRequest handles this case with default header values.

Bad Request

func NewCreateThemeBadRequest

func NewCreateThemeBadRequest() *CreateThemeBadRequest

NewCreateThemeBadRequest creates a CreateThemeBadRequest with default headers values

func (*CreateThemeBadRequest) Error

func (o *CreateThemeBadRequest) Error() string

func (*CreateThemeBadRequest) GetPayload

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

type CreateThemeConflict

type CreateThemeConflict struct {
	Payload *models.Error
}

CreateThemeConflict handles this case with default header values.

Resource Already Exists

func NewCreateThemeConflict

func NewCreateThemeConflict() *CreateThemeConflict

NewCreateThemeConflict creates a CreateThemeConflict with default headers values

func (*CreateThemeConflict) Error

func (o *CreateThemeConflict) Error() string

func (*CreateThemeConflict) GetPayload

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

type CreateThemeNotFound

type CreateThemeNotFound struct {
	Payload *models.Error
}

CreateThemeNotFound handles this case with default header values.

Not Found

func NewCreateThemeNotFound

func NewCreateThemeNotFound() *CreateThemeNotFound

NewCreateThemeNotFound creates a CreateThemeNotFound with default headers values

func (*CreateThemeNotFound) Error

func (o *CreateThemeNotFound) Error() string

func (*CreateThemeNotFound) GetPayload

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

type CreateThemeOK

type CreateThemeOK struct {
	Payload *models.Theme
}

CreateThemeOK handles this case with default header values.

Theme

func NewCreateThemeOK

func NewCreateThemeOK() *CreateThemeOK

NewCreateThemeOK creates a CreateThemeOK with default headers values

func (*CreateThemeOK) Error

func (o *CreateThemeOK) Error() string

func (*CreateThemeOK) GetPayload

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

type CreateThemeParams

type CreateThemeParams struct {

	/*Body
	  Theme

	*/
	Body *models.Theme

	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 values initialized.

func NewCreateThemeParamsWithContext

func NewCreateThemeParamsWithContext(ctx context.Context) *CreateThemeParams

NewCreateThemeParamsWithContext creates a new CreateThemeParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*CreateThemeParams) SetBody

func (o *CreateThemeParams) SetBody(body *models.Theme)

SetBody adds the body to the create theme params

func (*CreateThemeParams) SetContext

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

SetContext adds the context to the create theme params

func (*CreateThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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) WithBody

func (o *CreateThemeParams) WithBody(body *models.Theme) *CreateThemeParams

WithBody adds the body 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient 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 CreateThemeUnprocessableEntity

type CreateThemeUnprocessableEntity struct {
	Payload *models.ValidationError
}

CreateThemeUnprocessableEntity handles this case with default header values.

Validation Error

func NewCreateThemeUnprocessableEntity

func NewCreateThemeUnprocessableEntity() *CreateThemeUnprocessableEntity

NewCreateThemeUnprocessableEntity creates a CreateThemeUnprocessableEntity with default headers values

func (*CreateThemeUnprocessableEntity) Error

func (*CreateThemeUnprocessableEntity) GetPayload

type DefaultThemeBadRequest

type DefaultThemeBadRequest struct {
	Payload *models.Error
}

DefaultThemeBadRequest handles this case with default header values.

Bad Request

func NewDefaultThemeBadRequest

func NewDefaultThemeBadRequest() *DefaultThemeBadRequest

NewDefaultThemeBadRequest creates a DefaultThemeBadRequest with default headers values

func (*DefaultThemeBadRequest) Error

func (o *DefaultThemeBadRequest) Error() string

func (*DefaultThemeBadRequest) GetPayload

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

type DefaultThemeNotFound

type DefaultThemeNotFound struct {
	Payload *models.Error
}

DefaultThemeNotFound handles this case with default header values.

Not Found

func NewDefaultThemeNotFound

func NewDefaultThemeNotFound() *DefaultThemeNotFound

NewDefaultThemeNotFound creates a DefaultThemeNotFound with default headers values

func (*DefaultThemeNotFound) Error

func (o *DefaultThemeNotFound) Error() string

func (*DefaultThemeNotFound) GetPayload

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

type DefaultThemeOK

type DefaultThemeOK struct {
	Payload *models.Theme
}

DefaultThemeOK handles this case with default header values.

Theme

func NewDefaultThemeOK

func NewDefaultThemeOK() *DefaultThemeOK

NewDefaultThemeOK creates a DefaultThemeOK with default headers values

func (*DefaultThemeOK) Error

func (o *DefaultThemeOK) Error() string

func (*DefaultThemeOK) GetPayload

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

type DefaultThemeParams

type DefaultThemeParams struct {

	/*Ts
	  Timestamp representing the target datetime for the active period. Defaults to 'now'

	*/
	Ts *strfmt.DateTime

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

DefaultThemeParams contains all the parameters to send to the API endpoint for the default theme operation typically these are written to a http.Request

func NewDefaultThemeParams

func NewDefaultThemeParams() *DefaultThemeParams

NewDefaultThemeParams creates a new DefaultThemeParams object with the default values initialized.

func NewDefaultThemeParamsWithContext

func NewDefaultThemeParamsWithContext(ctx context.Context) *DefaultThemeParams

NewDefaultThemeParamsWithContext creates a new DefaultThemeParams object with the default values initialized, and the ability to set a context for a request

func NewDefaultThemeParamsWithHTTPClient

func NewDefaultThemeParamsWithHTTPClient(client *http.Client) *DefaultThemeParams

NewDefaultThemeParamsWithHTTPClient creates a new DefaultThemeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDefaultThemeParamsWithTimeout

func NewDefaultThemeParamsWithTimeout(timeout time.Duration) *DefaultThemeParams

NewDefaultThemeParamsWithTimeout creates a new DefaultThemeParams object with the default values initialized, and the ability to set a timeout on a request

func (*DefaultThemeParams) SetContext

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

SetContext adds the context to the default theme params

func (*DefaultThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the default theme params

func (*DefaultThemeParams) SetTimeout

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

SetTimeout adds the timeout to the default theme params

func (*DefaultThemeParams) SetTs

func (o *DefaultThemeParams) SetTs(ts *strfmt.DateTime)

SetTs adds the ts to the default theme params

func (*DefaultThemeParams) WithContext

WithContext adds the context to the default theme params

func (*DefaultThemeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the default theme params

func (*DefaultThemeParams) WithTimeout

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

WithTimeout adds the timeout to the default theme params

func (*DefaultThemeParams) WithTs

WithTs adds the ts to the default theme params

func (*DefaultThemeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DefaultThemeReader

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

DefaultThemeReader is a Reader for the DefaultTheme structure.

func (*DefaultThemeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteThemeBadRequest

type DeleteThemeBadRequest struct {
	Payload *models.Error
}

DeleteThemeBadRequest handles this case with default header values.

Bad Request

func NewDeleteThemeBadRequest

func NewDeleteThemeBadRequest() *DeleteThemeBadRequest

NewDeleteThemeBadRequest creates a DeleteThemeBadRequest with default headers values

func (*DeleteThemeBadRequest) Error

func (o *DeleteThemeBadRequest) Error() string

func (*DeleteThemeBadRequest) GetPayload

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

type DeleteThemeNoContent

type DeleteThemeNoContent struct {
	Payload string
}

DeleteThemeNoContent handles this case with default header values.

Successfully deleted.

func NewDeleteThemeNoContent

func NewDeleteThemeNoContent() *DeleteThemeNoContent

NewDeleteThemeNoContent creates a DeleteThemeNoContent with default headers values

func (*DeleteThemeNoContent) Error

func (o *DeleteThemeNoContent) Error() string

func (*DeleteThemeNoContent) GetPayload

func (o *DeleteThemeNoContent) GetPayload() string

type DeleteThemeNotFound

type DeleteThemeNotFound struct {
	Payload *models.Error
}

DeleteThemeNotFound handles this case with default header values.

Not Found

func NewDeleteThemeNotFound

func NewDeleteThemeNotFound() *DeleteThemeNotFound

NewDeleteThemeNotFound creates a DeleteThemeNotFound with default headers values

func (*DeleteThemeNotFound) Error

func (o *DeleteThemeNotFound) Error() string

func (*DeleteThemeNotFound) GetPayload

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

type DeleteThemeParams

type DeleteThemeParams struct {

	/*ThemeID
	  Id of theme

	*/
	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 values initialized.

func NewDeleteThemeParamsWithContext

func NewDeleteThemeParamsWithContext(ctx context.Context) *DeleteThemeParams

NewDeleteThemeParamsWithContext creates a new DeleteThemeParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient 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 SearchThemesBadRequest

type SearchThemesBadRequest struct {
	Payload *models.Error
}

SearchThemesBadRequest handles this case with default header values.

Bad Request

func NewSearchThemesBadRequest

func NewSearchThemesBadRequest() *SearchThemesBadRequest

NewSearchThemesBadRequest creates a SearchThemesBadRequest with default headers values

func (*SearchThemesBadRequest) Error

func (o *SearchThemesBadRequest) Error() string

func (*SearchThemesBadRequest) GetPayload

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

type SearchThemesNotFound

type SearchThemesNotFound struct {
	Payload *models.Error
}

SearchThemesNotFound handles this case with default header values.

Not Found

func NewSearchThemesNotFound

func NewSearchThemesNotFound() *SearchThemesNotFound

NewSearchThemesNotFound creates a SearchThemesNotFound with default headers values

func (*SearchThemesNotFound) Error

func (o *SearchThemesNotFound) Error() string

func (*SearchThemesNotFound) GetPayload

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

type SearchThemesOK

type SearchThemesOK struct {
	Payload []*models.Theme
}

SearchThemesOK handles this case with default header values.

Themes

func NewSearchThemesOK

func NewSearchThemesOK() *SearchThemesOK

NewSearchThemesOK creates a SearchThemesOK with default headers values

func (*SearchThemesOK) Error

func (o *SearchThemesOK) Error() string

func (*SearchThemesOK) GetPayload

func (o *SearchThemesOK) GetPayload() []*models.Theme

type SearchThemesParams

type SearchThemesParams struct {

	/*BeginAt
	  Timestamp for activation.

	*/
	BeginAt *strfmt.DateTime
	/*EndAt
	  Timestamp for expiration.

	*/
	EndAt *strfmt.DateTime
	/*Fields
	  Requested fields.

	*/
	Fields *string
	/*FilterOr
	  Combine given search criteria in a boolean OR expression

	*/
	FilterOr *bool
	/*ID
	  Match theme id.

	*/
	ID *int64
	/*Limit
	  Number of results to return (used with `offset`).

	*/
	Limit *int64
	/*Name
	  Match theme name.

	*/
	Name *string
	/*Offset
	  Number of results to skip before returning any (used with `limit`).

	*/
	Offset *int64
	/*Sorts
	  Fields to sort by.

	*/
	Sorts *string

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

SearchThemesParams contains all the parameters to send to the API endpoint for the search themes operation typically these are written to a http.Request

func NewSearchThemesParams

func NewSearchThemesParams() *SearchThemesParams

NewSearchThemesParams creates a new SearchThemesParams object with the default values initialized.

func NewSearchThemesParamsWithContext

func NewSearchThemesParamsWithContext(ctx context.Context) *SearchThemesParams

NewSearchThemesParamsWithContext creates a new SearchThemesParams object with the default values initialized, and the ability to set a context for a request

func NewSearchThemesParamsWithHTTPClient

func NewSearchThemesParamsWithHTTPClient(client *http.Client) *SearchThemesParams

NewSearchThemesParamsWithHTTPClient creates a new SearchThemesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSearchThemesParamsWithTimeout

func NewSearchThemesParamsWithTimeout(timeout time.Duration) *SearchThemesParams

NewSearchThemesParamsWithTimeout creates a new SearchThemesParams object with the default values initialized, and the ability to set a timeout on a request

func (*SearchThemesParams) SetBeginAt

func (o *SearchThemesParams) SetBeginAt(beginAt *strfmt.DateTime)

SetBeginAt adds the beginAt to the search themes params

func (*SearchThemesParams) SetContext

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

SetContext adds the context to the search themes params

func (*SearchThemesParams) SetEndAt

func (o *SearchThemesParams) SetEndAt(endAt *strfmt.DateTime)

SetEndAt adds the endAt to the search themes params

func (*SearchThemesParams) SetFields

func (o *SearchThemesParams) SetFields(fields *string)

SetFields adds the fields to the search themes params

func (*SearchThemesParams) SetFilterOr

func (o *SearchThemesParams) SetFilterOr(filterOr *bool)

SetFilterOr adds the filterOr to the search themes params

func (*SearchThemesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search themes params

func (*SearchThemesParams) SetID

func (o *SearchThemesParams) SetID(id *int64)

SetID adds the id to the search themes params

func (*SearchThemesParams) SetLimit

func (o *SearchThemesParams) SetLimit(limit *int64)

SetLimit adds the limit to the search themes params

func (*SearchThemesParams) SetName

func (o *SearchThemesParams) SetName(name *string)

SetName adds the name to the search themes params

func (*SearchThemesParams) SetOffset

func (o *SearchThemesParams) SetOffset(offset *int64)

SetOffset adds the offset to the search themes params

func (*SearchThemesParams) SetSorts

func (o *SearchThemesParams) SetSorts(sorts *string)

SetSorts adds the sorts to the search themes params

func (*SearchThemesParams) SetTimeout

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

SetTimeout adds the timeout to the search themes params

func (*SearchThemesParams) WithBeginAt

func (o *SearchThemesParams) WithBeginAt(beginAt *strfmt.DateTime) *SearchThemesParams

WithBeginAt adds the beginAt to the search themes params

func (*SearchThemesParams) WithContext

WithContext adds the context to the search themes params

func (*SearchThemesParams) WithEndAt

func (o *SearchThemesParams) WithEndAt(endAt *strfmt.DateTime) *SearchThemesParams

WithEndAt adds the endAt to the search themes params

func (*SearchThemesParams) WithFields

func (o *SearchThemesParams) WithFields(fields *string) *SearchThemesParams

WithFields adds the fields to the search themes params

func (*SearchThemesParams) WithFilterOr

func (o *SearchThemesParams) WithFilterOr(filterOr *bool) *SearchThemesParams

WithFilterOr adds the filterOr to the search themes params

func (*SearchThemesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search themes params

func (*SearchThemesParams) WithID

WithID adds the id to the search themes params

func (*SearchThemesParams) WithLimit

func (o *SearchThemesParams) WithLimit(limit *int64) *SearchThemesParams

WithLimit adds the limit to the search themes params

func (*SearchThemesParams) WithName

func (o *SearchThemesParams) WithName(name *string) *SearchThemesParams

WithName adds the name to the search themes params

func (*SearchThemesParams) WithOffset

func (o *SearchThemesParams) WithOffset(offset *int64) *SearchThemesParams

WithOffset adds the offset to the search themes params

func (*SearchThemesParams) WithSorts

func (o *SearchThemesParams) WithSorts(sorts *string) *SearchThemesParams

WithSorts adds the sorts to the search themes params

func (*SearchThemesParams) WithTimeout

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

WithTimeout adds the timeout to the search themes params

func (*SearchThemesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchThemesReader

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

SearchThemesReader is a Reader for the SearchThemes structure.

func (*SearchThemesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetDefaultThemeBadRequest

type SetDefaultThemeBadRequest struct {
	Payload *models.Error
}

SetDefaultThemeBadRequest handles this case with default header values.

Bad Request

func NewSetDefaultThemeBadRequest

func NewSetDefaultThemeBadRequest() *SetDefaultThemeBadRequest

NewSetDefaultThemeBadRequest creates a SetDefaultThemeBadRequest with default headers values

func (*SetDefaultThemeBadRequest) Error

func (o *SetDefaultThemeBadRequest) Error() string

func (*SetDefaultThemeBadRequest) GetPayload

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

type SetDefaultThemeNotFound

type SetDefaultThemeNotFound struct {
	Payload *models.Error
}

SetDefaultThemeNotFound handles this case with default header values.

Not Found

func NewSetDefaultThemeNotFound

func NewSetDefaultThemeNotFound() *SetDefaultThemeNotFound

NewSetDefaultThemeNotFound creates a SetDefaultThemeNotFound with default headers values

func (*SetDefaultThemeNotFound) Error

func (o *SetDefaultThemeNotFound) Error() string

func (*SetDefaultThemeNotFound) GetPayload

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

type SetDefaultThemeOK

type SetDefaultThemeOK struct {
	Payload *models.Theme
}

SetDefaultThemeOK handles this case with default header values.

Theme

func NewSetDefaultThemeOK

func NewSetDefaultThemeOK() *SetDefaultThemeOK

NewSetDefaultThemeOK creates a SetDefaultThemeOK with default headers values

func (*SetDefaultThemeOK) Error

func (o *SetDefaultThemeOK) Error() string

func (*SetDefaultThemeOK) GetPayload

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

type SetDefaultThemeParams

type SetDefaultThemeParams struct {

	/*Name
	  Name of theme to set as default

	*/
	Name string

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

SetDefaultThemeParams contains all the parameters to send to the API endpoint for the set default theme operation typically these are written to a http.Request

func NewSetDefaultThemeParams

func NewSetDefaultThemeParams() *SetDefaultThemeParams

NewSetDefaultThemeParams creates a new SetDefaultThemeParams object with the default values initialized.

func NewSetDefaultThemeParamsWithContext

func NewSetDefaultThemeParamsWithContext(ctx context.Context) *SetDefaultThemeParams

NewSetDefaultThemeParamsWithContext creates a new SetDefaultThemeParams object with the default values initialized, and the ability to set a context for a request

func NewSetDefaultThemeParamsWithHTTPClient

func NewSetDefaultThemeParamsWithHTTPClient(client *http.Client) *SetDefaultThemeParams

NewSetDefaultThemeParamsWithHTTPClient creates a new SetDefaultThemeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSetDefaultThemeParamsWithTimeout

func NewSetDefaultThemeParamsWithTimeout(timeout time.Duration) *SetDefaultThemeParams

NewSetDefaultThemeParamsWithTimeout creates a new SetDefaultThemeParams object with the default values initialized, and the ability to set a timeout on a request

func (*SetDefaultThemeParams) SetContext

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

SetContext adds the context to the set default theme params

func (*SetDefaultThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set default theme params

func (*SetDefaultThemeParams) SetName

func (o *SetDefaultThemeParams) SetName(name string)

SetName adds the name to the set default theme params

func (*SetDefaultThemeParams) SetTimeout

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

SetTimeout adds the timeout to the set default theme params

func (*SetDefaultThemeParams) WithContext

WithContext adds the context to the set default theme params

func (*SetDefaultThemeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set default theme params

func (*SetDefaultThemeParams) WithName

WithName adds the name to the set default theme params

func (*SetDefaultThemeParams) WithTimeout

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

WithTimeout adds the timeout to the set default theme params

func (*SetDefaultThemeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetDefaultThemeReader

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

SetDefaultThemeReader is a Reader for the SetDefaultTheme structure.

func (*SetDefaultThemeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetDefaultThemeUnprocessableEntity

type SetDefaultThemeUnprocessableEntity struct {
	Payload *models.ValidationError
}

SetDefaultThemeUnprocessableEntity handles this case with default header values.

Validation Error

func NewSetDefaultThemeUnprocessableEntity

func NewSetDefaultThemeUnprocessableEntity() *SetDefaultThemeUnprocessableEntity

NewSetDefaultThemeUnprocessableEntity creates a SetDefaultThemeUnprocessableEntity with default headers values

func (*SetDefaultThemeUnprocessableEntity) Error

func (*SetDefaultThemeUnprocessableEntity) GetPayload

type ThemeBadRequest

type ThemeBadRequest struct {
	Payload *models.Error
}

ThemeBadRequest handles this case with default header values.

Bad Request

func NewThemeBadRequest

func NewThemeBadRequest() *ThemeBadRequest

NewThemeBadRequest creates a ThemeBadRequest with default headers values

func (*ThemeBadRequest) Error

func (o *ThemeBadRequest) Error() string

func (*ThemeBadRequest) GetPayload

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

type ThemeNotFound

type ThemeNotFound struct {
	Payload *models.Error
}

ThemeNotFound handles this case with default header values.

Not Found

func NewThemeNotFound

func NewThemeNotFound() *ThemeNotFound

NewThemeNotFound creates a ThemeNotFound with default headers values

func (*ThemeNotFound) Error

func (o *ThemeNotFound) Error() string

func (*ThemeNotFound) GetPayload

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

type ThemeOK

type ThemeOK struct {
	Payload *models.Theme
}

ThemeOK handles this case with default header values.

Theme

func NewThemeOK

func NewThemeOK() *ThemeOK

NewThemeOK creates a ThemeOK with default headers values

func (*ThemeOK) Error

func (o *ThemeOK) Error() string

func (*ThemeOK) GetPayload

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

type ThemeOrDefaultBadRequest

type ThemeOrDefaultBadRequest struct {
	Payload *models.Error
}

ThemeOrDefaultBadRequest handles this case with default header values.

Bad Request

func NewThemeOrDefaultBadRequest

func NewThemeOrDefaultBadRequest() *ThemeOrDefaultBadRequest

NewThemeOrDefaultBadRequest creates a ThemeOrDefaultBadRequest with default headers values

func (*ThemeOrDefaultBadRequest) Error

func (o *ThemeOrDefaultBadRequest) Error() string

func (*ThemeOrDefaultBadRequest) GetPayload

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

type ThemeOrDefaultNotFound

type ThemeOrDefaultNotFound struct {
	Payload *models.Error
}

ThemeOrDefaultNotFound handles this case with default header values.

Not Found

func NewThemeOrDefaultNotFound

func NewThemeOrDefaultNotFound() *ThemeOrDefaultNotFound

NewThemeOrDefaultNotFound creates a ThemeOrDefaultNotFound with default headers values

func (*ThemeOrDefaultNotFound) Error

func (o *ThemeOrDefaultNotFound) Error() string

func (*ThemeOrDefaultNotFound) GetPayload

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

type ThemeOrDefaultOK

type ThemeOrDefaultOK struct {
	Payload *models.Theme
}

ThemeOrDefaultOK handles this case with default header values.

Theme

func NewThemeOrDefaultOK

func NewThemeOrDefaultOK() *ThemeOrDefaultOK

NewThemeOrDefaultOK creates a ThemeOrDefaultOK with default headers values

func (*ThemeOrDefaultOK) Error

func (o *ThemeOrDefaultOK) Error() string

func (*ThemeOrDefaultOK) GetPayload

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

type ThemeOrDefaultParams

type ThemeOrDefaultParams struct {

	/*Name
	  Name of theme

	*/
	Name string
	/*Ts
	  Timestamp representing the target datetime for the active period. Defaults to 'now'

	*/
	Ts *strfmt.DateTime

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

ThemeOrDefaultParams contains all the parameters to send to the API endpoint for the theme or default operation typically these are written to a http.Request

func NewThemeOrDefaultParams

func NewThemeOrDefaultParams() *ThemeOrDefaultParams

NewThemeOrDefaultParams creates a new ThemeOrDefaultParams object with the default values initialized.

func NewThemeOrDefaultParamsWithContext

func NewThemeOrDefaultParamsWithContext(ctx context.Context) *ThemeOrDefaultParams

NewThemeOrDefaultParamsWithContext creates a new ThemeOrDefaultParams object with the default values initialized, and the ability to set a context for a request

func NewThemeOrDefaultParamsWithHTTPClient

func NewThemeOrDefaultParamsWithHTTPClient(client *http.Client) *ThemeOrDefaultParams

NewThemeOrDefaultParamsWithHTTPClient creates a new ThemeOrDefaultParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewThemeOrDefaultParamsWithTimeout

func NewThemeOrDefaultParamsWithTimeout(timeout time.Duration) *ThemeOrDefaultParams

NewThemeOrDefaultParamsWithTimeout creates a new ThemeOrDefaultParams object with the default values initialized, and the ability to set a timeout on a request

func (*ThemeOrDefaultParams) SetContext

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

SetContext adds the context to the theme or default params

func (*ThemeOrDefaultParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the theme or default params

func (*ThemeOrDefaultParams) SetName

func (o *ThemeOrDefaultParams) SetName(name string)

SetName adds the name to the theme or default params

func (*ThemeOrDefaultParams) SetTimeout

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

SetTimeout adds the timeout to the theme or default params

func (*ThemeOrDefaultParams) SetTs

func (o *ThemeOrDefaultParams) SetTs(ts *strfmt.DateTime)

SetTs adds the ts to the theme or default params

func (*ThemeOrDefaultParams) WithContext

WithContext adds the context to the theme or default params

func (*ThemeOrDefaultParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the theme or default params

func (*ThemeOrDefaultParams) WithName

WithName adds the name to the theme or default params

func (*ThemeOrDefaultParams) WithTimeout

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

WithTimeout adds the timeout to the theme or default params

func (*ThemeOrDefaultParams) WithTs

WithTs adds the ts to the theme or default params

func (*ThemeOrDefaultParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ThemeOrDefaultReader

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

ThemeOrDefaultReader is a Reader for the ThemeOrDefault structure.

func (*ThemeOrDefaultReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ThemeParams

type ThemeParams struct {

	/*Fields
	  Requested fields.

	*/
	Fields *string
	/*ThemeID
	  Id of theme

	*/
	ThemeID string

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

ThemeParams contains all the parameters to send to the API endpoint for the theme operation typically these are written to a http.Request

func NewThemeParams

func NewThemeParams() *ThemeParams

NewThemeParams creates a new ThemeParams object with the default values initialized.

func NewThemeParamsWithContext

func NewThemeParamsWithContext(ctx context.Context) *ThemeParams

NewThemeParamsWithContext creates a new ThemeParams object with the default values initialized, and the ability to set a context for a request

func NewThemeParamsWithHTTPClient

func NewThemeParamsWithHTTPClient(client *http.Client) *ThemeParams

NewThemeParamsWithHTTPClient creates a new ThemeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewThemeParamsWithTimeout

func NewThemeParamsWithTimeout(timeout time.Duration) *ThemeParams

NewThemeParamsWithTimeout creates a new ThemeParams object with the default values initialized, and the ability to set a timeout on a request

func (*ThemeParams) SetContext

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

SetContext adds the context to the theme params

func (*ThemeParams) SetFields

func (o *ThemeParams) SetFields(fields *string)

SetFields adds the fields to the theme params

func (*ThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the theme params

func (*ThemeParams) SetThemeID

func (o *ThemeParams) SetThemeID(themeID string)

SetThemeID adds the themeId to the theme params

func (*ThemeParams) SetTimeout

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

SetTimeout adds the timeout to the theme params

func (*ThemeParams) WithContext

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

WithContext adds the context to the theme params

func (*ThemeParams) WithFields

func (o *ThemeParams) WithFields(fields *string) *ThemeParams

WithFields adds the fields to the theme params

func (*ThemeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the theme params

func (*ThemeParams) WithThemeID

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

WithThemeID adds the themeID to the theme params

func (*ThemeParams) WithTimeout

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

WithTimeout adds the timeout to the theme params

func (*ThemeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ThemeReader

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

ThemeReader is a Reader for the Theme structure.

func (*ThemeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateThemeBadRequest

type UpdateThemeBadRequest struct {
	Payload *models.Error
}

UpdateThemeBadRequest handles this case with default header values.

Bad Request

func NewUpdateThemeBadRequest

func NewUpdateThemeBadRequest() *UpdateThemeBadRequest

NewUpdateThemeBadRequest creates a UpdateThemeBadRequest with default headers values

func (*UpdateThemeBadRequest) Error

func (o *UpdateThemeBadRequest) Error() string

func (*UpdateThemeBadRequest) GetPayload

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

type UpdateThemeNotFound

type UpdateThemeNotFound struct {
	Payload *models.Error
}

UpdateThemeNotFound handles this case with default header values.

Not Found

func NewUpdateThemeNotFound

func NewUpdateThemeNotFound() *UpdateThemeNotFound

NewUpdateThemeNotFound creates a UpdateThemeNotFound with default headers values

func (*UpdateThemeNotFound) Error

func (o *UpdateThemeNotFound) Error() string

func (*UpdateThemeNotFound) GetPayload

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

type UpdateThemeOK

type UpdateThemeOK struct {
	Payload *models.Theme
}

UpdateThemeOK handles this case with default header values.

Theme

func NewUpdateThemeOK

func NewUpdateThemeOK() *UpdateThemeOK

NewUpdateThemeOK creates a UpdateThemeOK with default headers values

func (*UpdateThemeOK) Error

func (o *UpdateThemeOK) Error() string

func (*UpdateThemeOK) GetPayload

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

type UpdateThemeParams

type UpdateThemeParams struct {

	/*Body
	  Theme

	*/
	Body *models.Theme
	/*ThemeID
	  Id of theme

	*/
	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 values initialized.

func NewUpdateThemeParamsWithContext

func NewUpdateThemeParamsWithContext(ctx context.Context) *UpdateThemeParams

NewUpdateThemeParamsWithContext creates a new UpdateThemeParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*UpdateThemeParams) SetBody

func (o *UpdateThemeParams) SetBody(body *models.Theme)

SetBody adds the body to the update theme params

func (*UpdateThemeParams) SetContext

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

SetContext adds the context to the update theme params

func (*UpdateThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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) WithBody

func (o *UpdateThemeParams) WithBody(body *models.Theme) *UpdateThemeParams

WithBody adds the body 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient 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 UpdateThemeUnprocessableEntity

type UpdateThemeUnprocessableEntity struct {
	Payload *models.ValidationError
}

UpdateThemeUnprocessableEntity handles this case with default header values.

Validation Error

func NewUpdateThemeUnprocessableEntity

func NewUpdateThemeUnprocessableEntity() *UpdateThemeUnprocessableEntity

NewUpdateThemeUnprocessableEntity creates a UpdateThemeUnprocessableEntity with default headers values

func (*UpdateThemeUnprocessableEntity) Error

func (*UpdateThemeUnprocessableEntity) GetPayload

type ValidateThemeBadRequest

type ValidateThemeBadRequest struct {
	Payload *models.Error
}

ValidateThemeBadRequest handles this case with default header values.

Bad Request

func NewValidateThemeBadRequest

func NewValidateThemeBadRequest() *ValidateThemeBadRequest

NewValidateThemeBadRequest creates a ValidateThemeBadRequest with default headers values

func (*ValidateThemeBadRequest) Error

func (o *ValidateThemeBadRequest) Error() string

func (*ValidateThemeBadRequest) GetPayload

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

type ValidateThemeConflict

type ValidateThemeConflict struct {
	Payload *models.Error
}

ValidateThemeConflict handles this case with default header values.

Resource Already Exists

func NewValidateThemeConflict

func NewValidateThemeConflict() *ValidateThemeConflict

NewValidateThemeConflict creates a ValidateThemeConflict with default headers values

func (*ValidateThemeConflict) Error

func (o *ValidateThemeConflict) Error() string

func (*ValidateThemeConflict) GetPayload

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

type ValidateThemeNotFound

type ValidateThemeNotFound struct {
	Payload *models.Error
}

ValidateThemeNotFound handles this case with default header values.

Not Found

func NewValidateThemeNotFound

func NewValidateThemeNotFound() *ValidateThemeNotFound

NewValidateThemeNotFound creates a ValidateThemeNotFound with default headers values

func (*ValidateThemeNotFound) Error

func (o *ValidateThemeNotFound) Error() string

func (*ValidateThemeNotFound) GetPayload

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

type ValidateThemeOK

type ValidateThemeOK struct {
	Payload *models.ValidationError
}

ValidateThemeOK handles this case with default header values.

Theme validation results

func NewValidateThemeOK

func NewValidateThemeOK() *ValidateThemeOK

NewValidateThemeOK creates a ValidateThemeOK with default headers values

func (*ValidateThemeOK) Error

func (o *ValidateThemeOK) Error() string

func (*ValidateThemeOK) GetPayload

func (o *ValidateThemeOK) GetPayload() *models.ValidationError

type ValidateThemeParams

type ValidateThemeParams struct {

	/*Body
	  Theme

	*/
	Body *models.Theme

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

ValidateThemeParams contains all the parameters to send to the API endpoint for the validate theme operation typically these are written to a http.Request

func NewValidateThemeParams

func NewValidateThemeParams() *ValidateThemeParams

NewValidateThemeParams creates a new ValidateThemeParams object with the default values initialized.

func NewValidateThemeParamsWithContext

func NewValidateThemeParamsWithContext(ctx context.Context) *ValidateThemeParams

NewValidateThemeParamsWithContext creates a new ValidateThemeParams object with the default values initialized, and the ability to set a context for a request

func NewValidateThemeParamsWithHTTPClient

func NewValidateThemeParamsWithHTTPClient(client *http.Client) *ValidateThemeParams

NewValidateThemeParamsWithHTTPClient creates a new ValidateThemeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewValidateThemeParamsWithTimeout

func NewValidateThemeParamsWithTimeout(timeout time.Duration) *ValidateThemeParams

NewValidateThemeParamsWithTimeout creates a new ValidateThemeParams object with the default values initialized, and the ability to set a timeout on a request

func (*ValidateThemeParams) SetBody

func (o *ValidateThemeParams) SetBody(body *models.Theme)

SetBody adds the body to the validate theme params

func (*ValidateThemeParams) SetContext

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

SetContext adds the context to the validate theme params

func (*ValidateThemeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the validate theme params

func (*ValidateThemeParams) SetTimeout

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

SetTimeout adds the timeout to the validate theme params

func (*ValidateThemeParams) WithBody

WithBody adds the body to the validate theme params

func (*ValidateThemeParams) WithContext

WithContext adds the context to the validate theme params

func (*ValidateThemeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the validate theme params

func (*ValidateThemeParams) WithTimeout

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

WithTimeout adds the timeout to the validate theme params

func (*ValidateThemeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ValidateThemeReader

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

ValidateThemeReader is a Reader for the ValidateTheme structure.

func (*ValidateThemeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ValidateThemeUnprocessableEntity

type ValidateThemeUnprocessableEntity struct {
	Payload *models.ValidationError
}

ValidateThemeUnprocessableEntity handles this case with default header values.

Validation Error

func NewValidateThemeUnprocessableEntity

func NewValidateThemeUnprocessableEntity() *ValidateThemeUnprocessableEntity

NewValidateThemeUnprocessableEntity creates a ValidateThemeUnprocessableEntity with default headers values

func (*ValidateThemeUnprocessableEntity) Error

func (*ValidateThemeUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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