look

package
v0.0.0-...-09f9b81 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 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 AllLooksBadRequest

type AllLooksBadRequest struct {
	Payload *models.Error
}
AllLooksBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewAllLooksBadRequest

func NewAllLooksBadRequest() *AllLooksBadRequest

NewAllLooksBadRequest creates a AllLooksBadRequest with default headers values

func (*AllLooksBadRequest) Error

func (o *AllLooksBadRequest) Error() string

func (*AllLooksBadRequest) GetPayload

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

type AllLooksNotFound

type AllLooksNotFound struct {
	Payload *models.Error
}
AllLooksNotFound describes a response with status code 404, with default header values.

Not Found

func NewAllLooksNotFound

func NewAllLooksNotFound() *AllLooksNotFound

NewAllLooksNotFound creates a AllLooksNotFound with default headers values

func (*AllLooksNotFound) Error

func (o *AllLooksNotFound) Error() string

func (*AllLooksNotFound) GetPayload

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

type AllLooksOK

type AllLooksOK struct {
	Payload []*models.Look
}
AllLooksOK describes a response with status code 200, with default header values.

Look

func NewAllLooksOK

func NewAllLooksOK() *AllLooksOK

NewAllLooksOK creates a AllLooksOK with default headers values

func (*AllLooksOK) Error

func (o *AllLooksOK) Error() string

func (*AllLooksOK) GetPayload

func (o *AllLooksOK) GetPayload() []*models.Look

type AllLooksParams

type AllLooksParams struct {

	/* Fields.

	   Requested fields.
	*/
	Fields *string

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

AllLooksParams contains all the parameters to send to the API endpoint

for the all looks operation.

Typically these are written to a http.Request.

func NewAllLooksParams

func NewAllLooksParams() *AllLooksParams

NewAllLooksParams creates a new AllLooksParams 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 NewAllLooksParamsWithContext

func NewAllLooksParamsWithContext(ctx context.Context) *AllLooksParams

NewAllLooksParamsWithContext creates a new AllLooksParams object with the ability to set a context for a request.

func NewAllLooksParamsWithHTTPClient

func NewAllLooksParamsWithHTTPClient(client *http.Client) *AllLooksParams

NewAllLooksParamsWithHTTPClient creates a new AllLooksParams object with the ability to set a custom HTTPClient for a request.

func NewAllLooksParamsWithTimeout

func NewAllLooksParamsWithTimeout(timeout time.Duration) *AllLooksParams

NewAllLooksParamsWithTimeout creates a new AllLooksParams object with the ability to set a timeout on a request.

func (*AllLooksParams) SetContext

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

SetContext adds the context to the all looks params

func (*AllLooksParams) SetDefaults

func (o *AllLooksParams) SetDefaults()

SetDefaults hydrates default values in the all looks params (not the query body).

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

func (*AllLooksParams) SetFields

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

SetFields adds the fields to the all looks params

func (*AllLooksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the all looks params

func (*AllLooksParams) SetTimeout

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

SetTimeout adds the timeout to the all looks params

func (*AllLooksParams) WithContext

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

WithContext adds the context to the all looks params

func (*AllLooksParams) WithDefaults

func (o *AllLooksParams) WithDefaults() *AllLooksParams

WithDefaults hydrates default values in the all looks params (not the query body).

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

func (*AllLooksParams) WithFields

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

WithFields adds the fields to the all looks params

func (*AllLooksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the all looks params

func (*AllLooksParams) WithTimeout

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

WithTimeout adds the timeout to the all looks params

func (*AllLooksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AllLooksReader

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

AllLooksReader is a Reader for the AllLooks structure.

func (*AllLooksReader) ReadResponse

func (o *AllLooksReader) 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 look API

func (*Client) AllLooks

func (a *Client) AllLooks(params *AllLooksParams, opts ...ClientOption) (*AllLooksOK, error)
AllLooks gets all looks

### Get information about all active Looks

Returns an array of **abbreviated Look objects** describing all the looks that the caller has access to. Soft-deleted Looks are **not** included.

Get the **full details** of a specific look by id with [look(id)](#!/Look/look)

Find **soft-deleted looks** with [search_looks()](#!/Look/search_looks)

func (*Client) CreateLook

func (a *Client) CreateLook(params *CreateLookParams, opts ...ClientOption) (*CreateLookOK, error)
CreateLook creates look

### Create a Look

To create a look to display query data, first create the query with [create_query()](#!/Query/create_query) then assign the query's id to the `query_id` property in the call to `create_look()`.

To place the look into a particular space, assign the space's id to the `space_id` property in the call to `create_look()`.

func (*Client) DeleteLook

func (a *Client) DeleteLook(params *DeleteLookParams, opts ...ClientOption) (*DeleteLookNoContent, error)
DeleteLook deletes look

### Permanently Delete a Look

This operation **permanently** removes a look from the Looker database.

NOTE: There is no "undo" for this kind of delete.

For information about soft-delete (which can be undone) see [update_look()](#!/Look/update_look).

func (*Client) Look

func (a *Client) Look(params *LookParams, opts ...ClientOption) (*LookOK, error)
Look gets look

### Get a Look.

Returns detailed information about a Look and its associated Query.

func (*Client) RunLook

func (a *Client) RunLook(params *RunLookParams, opts ...ClientOption) (*RunLookOK, error)
RunLook runs look

### Run a Look

Runs a given look's query and returns the results in the requested format.

Supported formats:

| result_format | Description | :-----------: | :--- | | json | Plain json | json_detail | Row data plus metadata describing the fields, pivots, table calcs, and other aspects of the query | csv | Comma separated values with a header | txt | Tab separated values with a header | html | Simple html | md | Simple markdown | xlsx | MS Excel spreadsheet | sql | Returns the generated SQL rather than running the query | png | A PNG image of the visualization of the query | jpg | A JPG image of the visualization of the query

func (*Client) SearchLooks

func (a *Client) SearchLooks(params *SearchLooksParams, opts ...ClientOption) (*SearchLooksOK, error)
SearchLooks searches looks

### Search Looks

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

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 look** by id with [look(id)](#!/Look/look)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateLook

func (a *Client) UpdateLook(params *UpdateLookParams, opts ...ClientOption) (*UpdateLookOK, error)
UpdateLook updates look

### Modify a Look

Use this function to modify parts of a look. Property values given in a call to `update_look` are applied to the existing look, so there's no need to include properties whose values are not changing. It's best to specify only the properties you want to change and leave everything else out of your `update_look` call. **Look properties marked 'read-only' will be ignored.**

When a user deletes a look in the Looker UI, the look data remains in the database but is marked with a deleted flag ("soft-deleted"). Soft-deleted looks can be undeleted (by an admin) if the delete was in error.

To soft-delete a look via the API, use [update_look()](#!/Look/update_look) to change the look's `deleted` property to `true`. You can undelete a look by calling `update_look` to change the look's `deleted` property to `false`.

Soft-deleted looks are excluded from the results of [all_looks()](#!/Look/all_looks) and [search_looks()](#!/Look/search_looks), so they essentially disappear from view even though they still reside in the db. In API 3.1 and later, you can pass `deleted: true` as a parameter to [search_looks()](#!/3.1/Look/search_looks) to list soft-deleted looks.

NOTE: [delete_look()](#!/Look/delete_look) performs a "hard delete" - the look data is removed from the Looker database and destroyed. There is no "undo" for `delete_look()`.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AllLooks(params *AllLooksParams, opts ...ClientOption) (*AllLooksOK, error)

	CreateLook(params *CreateLookParams, opts ...ClientOption) (*CreateLookOK, error)

	DeleteLook(params *DeleteLookParams, opts ...ClientOption) (*DeleteLookNoContent, error)

	Look(params *LookParams, opts ...ClientOption) (*LookOK, error)

	RunLook(params *RunLookParams, opts ...ClientOption) (*RunLookOK, error)

	SearchLooks(params *SearchLooksParams, opts ...ClientOption) (*SearchLooksOK, error)

	UpdateLook(params *UpdateLookParams, opts ...ClientOption) (*UpdateLookOK, 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 look API client.

type CreateLookBadRequest

type CreateLookBadRequest struct {
	Payload *models.Error
}
CreateLookBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCreateLookBadRequest

func NewCreateLookBadRequest() *CreateLookBadRequest

NewCreateLookBadRequest creates a CreateLookBadRequest with default headers values

func (*CreateLookBadRequest) Error

func (o *CreateLookBadRequest) Error() string

func (*CreateLookBadRequest) GetPayload

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

type CreateLookConflict

type CreateLookConflict struct {
	Payload *models.Error
}
CreateLookConflict describes a response with status code 409, with default header values.

Resource Already Exists

func NewCreateLookConflict

func NewCreateLookConflict() *CreateLookConflict

NewCreateLookConflict creates a CreateLookConflict with default headers values

func (*CreateLookConflict) Error

func (o *CreateLookConflict) Error() string

func (*CreateLookConflict) GetPayload

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

type CreateLookNotFound

type CreateLookNotFound struct {
	Payload *models.Error
}
CreateLookNotFound describes a response with status code 404, with default header values.

Not Found

func NewCreateLookNotFound

func NewCreateLookNotFound() *CreateLookNotFound

NewCreateLookNotFound creates a CreateLookNotFound with default headers values

func (*CreateLookNotFound) Error

func (o *CreateLookNotFound) Error() string

func (*CreateLookNotFound) GetPayload

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

type CreateLookOK

type CreateLookOK struct {
	Payload *models.LookWithQuery
}
CreateLookOK describes a response with status code 200, with default header values.

Look

func NewCreateLookOK

func NewCreateLookOK() *CreateLookOK

NewCreateLookOK creates a CreateLookOK with default headers values

func (*CreateLookOK) Error

func (o *CreateLookOK) Error() string

func (*CreateLookOK) GetPayload

func (o *CreateLookOK) GetPayload() *models.LookWithQuery

type CreateLookParams

type CreateLookParams struct {

	/* Body.

	   Look
	*/
	Body *models.LookWithQuery

	/* Fields.

	   Requested fields.
	*/
	Fields *string

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

CreateLookParams contains all the parameters to send to the API endpoint

for the create look operation.

Typically these are written to a http.Request.

func NewCreateLookParams

func NewCreateLookParams() *CreateLookParams

NewCreateLookParams creates a new CreateLookParams 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 NewCreateLookParamsWithContext

func NewCreateLookParamsWithContext(ctx context.Context) *CreateLookParams

NewCreateLookParamsWithContext creates a new CreateLookParams object with the ability to set a context for a request.

func NewCreateLookParamsWithHTTPClient

func NewCreateLookParamsWithHTTPClient(client *http.Client) *CreateLookParams

NewCreateLookParamsWithHTTPClient creates a new CreateLookParams object with the ability to set a custom HTTPClient for a request.

func NewCreateLookParamsWithTimeout

func NewCreateLookParamsWithTimeout(timeout time.Duration) *CreateLookParams

NewCreateLookParamsWithTimeout creates a new CreateLookParams object with the ability to set a timeout on a request.

func (*CreateLookParams) SetBody

func (o *CreateLookParams) SetBody(body *models.LookWithQuery)

SetBody adds the body to the create look params

func (*CreateLookParams) SetContext

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

SetContext adds the context to the create look params

func (*CreateLookParams) SetDefaults

func (o *CreateLookParams) SetDefaults()

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

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

func (*CreateLookParams) SetFields

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

SetFields adds the fields to the create look params

func (*CreateLookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create look params

func (*CreateLookParams) SetTimeout

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

SetTimeout adds the timeout to the create look params

func (*CreateLookParams) WithBody

WithBody adds the body to the create look params

func (*CreateLookParams) WithContext

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

WithContext adds the context to the create look params

func (*CreateLookParams) WithDefaults

func (o *CreateLookParams) WithDefaults() *CreateLookParams

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

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

func (*CreateLookParams) WithFields

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

WithFields adds the fields to the create look params

func (*CreateLookParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create look params

func (*CreateLookParams) WithTimeout

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

WithTimeout adds the timeout to the create look params

func (*CreateLookParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateLookReader

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

CreateLookReader is a Reader for the CreateLook structure.

func (*CreateLookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateLookTooManyRequests

type CreateLookTooManyRequests struct {
	Payload *models.Error
}
CreateLookTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewCreateLookTooManyRequests

func NewCreateLookTooManyRequests() *CreateLookTooManyRequests

NewCreateLookTooManyRequests creates a CreateLookTooManyRequests with default headers values

func (*CreateLookTooManyRequests) Error

func (o *CreateLookTooManyRequests) Error() string

func (*CreateLookTooManyRequests) GetPayload

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

type CreateLookUnprocessableEntity

type CreateLookUnprocessableEntity struct {
	Payload *models.ValidationError
}
CreateLookUnprocessableEntity describes a response with status code 422, with default header values.

Validation Error

func NewCreateLookUnprocessableEntity

func NewCreateLookUnprocessableEntity() *CreateLookUnprocessableEntity

NewCreateLookUnprocessableEntity creates a CreateLookUnprocessableEntity with default headers values

func (*CreateLookUnprocessableEntity) Error

func (*CreateLookUnprocessableEntity) GetPayload

type DeleteLookBadRequest

type DeleteLookBadRequest struct {
	Payload *models.Error
}
DeleteLookBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewDeleteLookBadRequest

func NewDeleteLookBadRequest() *DeleteLookBadRequest

NewDeleteLookBadRequest creates a DeleteLookBadRequest with default headers values

func (*DeleteLookBadRequest) Error

func (o *DeleteLookBadRequest) Error() string

func (*DeleteLookBadRequest) GetPayload

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

type DeleteLookNoContent

type DeleteLookNoContent struct {
	Payload string
}
DeleteLookNoContent describes a response with status code 204, with default header values.

Successfully deleted.

func NewDeleteLookNoContent

func NewDeleteLookNoContent() *DeleteLookNoContent

NewDeleteLookNoContent creates a DeleteLookNoContent with default headers values

func (*DeleteLookNoContent) Error

func (o *DeleteLookNoContent) Error() string

func (*DeleteLookNoContent) GetPayload

func (o *DeleteLookNoContent) GetPayload() string

type DeleteLookNotFound

type DeleteLookNotFound struct {
	Payload *models.Error
}
DeleteLookNotFound describes a response with status code 404, with default header values.

Not Found

func NewDeleteLookNotFound

func NewDeleteLookNotFound() *DeleteLookNotFound

NewDeleteLookNotFound creates a DeleteLookNotFound with default headers values

func (*DeleteLookNotFound) Error

func (o *DeleteLookNotFound) Error() string

func (*DeleteLookNotFound) GetPayload

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

type DeleteLookParams

type DeleteLookParams struct {

	/* LookID.

	   Id of look

	   Format: int64
	*/
	LookID int64

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

DeleteLookParams contains all the parameters to send to the API endpoint

for the delete look operation.

Typically these are written to a http.Request.

func NewDeleteLookParams

func NewDeleteLookParams() *DeleteLookParams

NewDeleteLookParams creates a new DeleteLookParams 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 NewDeleteLookParamsWithContext

func NewDeleteLookParamsWithContext(ctx context.Context) *DeleteLookParams

NewDeleteLookParamsWithContext creates a new DeleteLookParams object with the ability to set a context for a request.

func NewDeleteLookParamsWithHTTPClient

func NewDeleteLookParamsWithHTTPClient(client *http.Client) *DeleteLookParams

NewDeleteLookParamsWithHTTPClient creates a new DeleteLookParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLookParamsWithTimeout

func NewDeleteLookParamsWithTimeout(timeout time.Duration) *DeleteLookParams

NewDeleteLookParamsWithTimeout creates a new DeleteLookParams object with the ability to set a timeout on a request.

func (*DeleteLookParams) SetContext

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

SetContext adds the context to the delete look params

func (*DeleteLookParams) SetDefaults

func (o *DeleteLookParams) SetDefaults()

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

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

func (*DeleteLookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete look params

func (*DeleteLookParams) SetLookID

func (o *DeleteLookParams) SetLookID(lookID int64)

SetLookID adds the lookId to the delete look params

func (*DeleteLookParams) SetTimeout

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

SetTimeout adds the timeout to the delete look params

func (*DeleteLookParams) WithContext

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

WithContext adds the context to the delete look params

func (*DeleteLookParams) WithDefaults

func (o *DeleteLookParams) WithDefaults() *DeleteLookParams

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

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

func (*DeleteLookParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete look params

func (*DeleteLookParams) WithLookID

func (o *DeleteLookParams) WithLookID(lookID int64) *DeleteLookParams

WithLookID adds the lookID to the delete look params

func (*DeleteLookParams) WithTimeout

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

WithTimeout adds the timeout to the delete look params

func (*DeleteLookParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteLookReader

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

DeleteLookReader is a Reader for the DeleteLook structure.

func (*DeleteLookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLookTooManyRequests

type DeleteLookTooManyRequests struct {
	Payload *models.Error
}
DeleteLookTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewDeleteLookTooManyRequests

func NewDeleteLookTooManyRequests() *DeleteLookTooManyRequests

NewDeleteLookTooManyRequests creates a DeleteLookTooManyRequests with default headers values

func (*DeleteLookTooManyRequests) Error

func (o *DeleteLookTooManyRequests) Error() string

func (*DeleteLookTooManyRequests) GetPayload

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

type LookBadRequest

type LookBadRequest struct {
	Payload *models.Error
}
LookBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewLookBadRequest

func NewLookBadRequest() *LookBadRequest

NewLookBadRequest creates a LookBadRequest with default headers values

func (*LookBadRequest) Error

func (o *LookBadRequest) Error() string

func (*LookBadRequest) GetPayload

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

type LookNotFound

type LookNotFound struct {
	Payload *models.Error
}
LookNotFound describes a response with status code 404, with default header values.

Not Found

func NewLookNotFound

func NewLookNotFound() *LookNotFound

NewLookNotFound creates a LookNotFound with default headers values

func (*LookNotFound) Error

func (o *LookNotFound) Error() string

func (*LookNotFound) GetPayload

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

type LookOK

type LookOK struct {
	Payload *models.LookWithQuery
}
LookOK describes a response with status code 200, with default header values.

Look

func NewLookOK

func NewLookOK() *LookOK

NewLookOK creates a LookOK with default headers values

func (*LookOK) Error

func (o *LookOK) Error() string

func (*LookOK) GetPayload

func (o *LookOK) GetPayload() *models.LookWithQuery

type LookParams

type LookParams struct {

	/* Fields.

	   Requested fields.
	*/
	Fields *string

	/* LookID.

	   Id of look

	   Format: int64
	*/
	LookID int64

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

LookParams contains all the parameters to send to the API endpoint

for the look operation.

Typically these are written to a http.Request.

func NewLookParams

func NewLookParams() *LookParams

NewLookParams creates a new LookParams 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 NewLookParamsWithContext

func NewLookParamsWithContext(ctx context.Context) *LookParams

NewLookParamsWithContext creates a new LookParams object with the ability to set a context for a request.

func NewLookParamsWithHTTPClient

func NewLookParamsWithHTTPClient(client *http.Client) *LookParams

NewLookParamsWithHTTPClient creates a new LookParams object with the ability to set a custom HTTPClient for a request.

func NewLookParamsWithTimeout

func NewLookParamsWithTimeout(timeout time.Duration) *LookParams

NewLookParamsWithTimeout creates a new LookParams object with the ability to set a timeout on a request.

func (*LookParams) SetContext

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

SetContext adds the context to the look params

func (*LookParams) SetDefaults

func (o *LookParams) SetDefaults()

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

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

func (*LookParams) SetFields

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

SetFields adds the fields to the look params

func (*LookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the look params

func (*LookParams) SetLookID

func (o *LookParams) SetLookID(lookID int64)

SetLookID adds the lookId to the look params

func (*LookParams) SetTimeout

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

SetTimeout adds the timeout to the look params

func (*LookParams) WithContext

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

WithContext adds the context to the look params

func (*LookParams) WithDefaults

func (o *LookParams) WithDefaults() *LookParams

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

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

func (*LookParams) WithFields

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

WithFields adds the fields to the look params

func (*LookParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the look params

func (*LookParams) WithLookID

func (o *LookParams) WithLookID(lookID int64) *LookParams

WithLookID adds the lookID to the look params

func (*LookParams) WithTimeout

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

WithTimeout adds the timeout to the look params

func (*LookParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type LookReader

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

LookReader is a Reader for the Look structure.

func (*LookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RunLookBadRequest

type RunLookBadRequest struct {
	Payload *models.Error
}
RunLookBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewRunLookBadRequest

func NewRunLookBadRequest() *RunLookBadRequest

NewRunLookBadRequest creates a RunLookBadRequest with default headers values

func (*RunLookBadRequest) Error

func (o *RunLookBadRequest) Error() string

func (*RunLookBadRequest) GetPayload

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

type RunLookNotFound

type RunLookNotFound struct {
	Payload *models.Error
}
RunLookNotFound describes a response with status code 404, with default header values.

Not Found

func NewRunLookNotFound

func NewRunLookNotFound() *RunLookNotFound

NewRunLookNotFound creates a RunLookNotFound with default headers values

func (*RunLookNotFound) Error

func (o *RunLookNotFound) Error() string

func (*RunLookNotFound) GetPayload

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

type RunLookOK

type RunLookOK struct {
	Payload string
}
RunLookOK describes a response with status code 200, with default header values.

Look

func NewRunLookOK

func NewRunLookOK() *RunLookOK

NewRunLookOK creates a RunLookOK with default headers values

func (*RunLookOK) Error

func (o *RunLookOK) Error() string

func (*RunLookOK) GetPayload

func (o *RunLookOK) GetPayload() string

type RunLookParams

type RunLookParams struct {

	/* ApplyFormatting.

	   Apply model-specified formatting to each result.
	*/
	ApplyFormatting *bool

	/* ApplyVis.

	   Apply visualization options to results.
	*/
	ApplyVis *bool

	/* Cache.

	   Get results from cache if available.
	*/
	Cache *bool

	/* CacheOnly.

	   Retrieve any results from cache even if the results have expired.
	*/
	CacheOnly *bool

	/* ForceProduction.

	   Force use of production models even if the user is in development mode.
	*/
	ForceProduction *bool

	/* GenerateDrillLinks.

	   Generate drill links (only applicable to 'json_detail' format.
	*/
	GenerateDrillLinks *bool

	/* ImageHeight.

	   Render height for image formats.

	   Format: int64
	*/
	ImageHeight *int64

	/* ImageWidth.

	   Render width for image formats.

	   Format: int64
	*/
	ImageWidth *int64

	/* Limit.

	   Row limit (may override the limit in the saved query).

	   Format: int64
	*/
	Limit *int64

	/* LookID.

	   Id of look

	   Format: int64
	*/
	LookID int64

	/* PathPrefix.

	   Prefix to use for drill links (url encoded).
	*/
	PathPrefix *string

	/* RebuildPdts.

	   Rebuild PDTS used in query.
	*/
	RebuildPdts *bool

	/* ResultFormat.

	   Format of result
	*/
	ResultFormat string

	/* ServerTableCalcs.

	   Perform table calculations on query results
	*/
	ServerTableCalcs *bool

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

RunLookParams contains all the parameters to send to the API endpoint

for the run look operation.

Typically these are written to a http.Request.

func NewRunLookParams

func NewRunLookParams() *RunLookParams

NewRunLookParams creates a new RunLookParams 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 NewRunLookParamsWithContext

func NewRunLookParamsWithContext(ctx context.Context) *RunLookParams

NewRunLookParamsWithContext creates a new RunLookParams object with the ability to set a context for a request.

func NewRunLookParamsWithHTTPClient

func NewRunLookParamsWithHTTPClient(client *http.Client) *RunLookParams

NewRunLookParamsWithHTTPClient creates a new RunLookParams object with the ability to set a custom HTTPClient for a request.

func NewRunLookParamsWithTimeout

func NewRunLookParamsWithTimeout(timeout time.Duration) *RunLookParams

NewRunLookParamsWithTimeout creates a new RunLookParams object with the ability to set a timeout on a request.

func (*RunLookParams) SetApplyFormatting

func (o *RunLookParams) SetApplyFormatting(applyFormatting *bool)

SetApplyFormatting adds the applyFormatting to the run look params

func (*RunLookParams) SetApplyVis

func (o *RunLookParams) SetApplyVis(applyVis *bool)

SetApplyVis adds the applyVis to the run look params

func (*RunLookParams) SetCache

func (o *RunLookParams) SetCache(cache *bool)

SetCache adds the cache to the run look params

func (*RunLookParams) SetCacheOnly

func (o *RunLookParams) SetCacheOnly(cacheOnly *bool)

SetCacheOnly adds the cacheOnly to the run look params

func (*RunLookParams) SetContext

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

SetContext adds the context to the run look params

func (*RunLookParams) SetDefaults

func (o *RunLookParams) SetDefaults()

SetDefaults hydrates default values in the run look params (not the query body).

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

func (*RunLookParams) SetForceProduction

func (o *RunLookParams) SetForceProduction(forceProduction *bool)

SetForceProduction adds the forceProduction to the run look params

func (o *RunLookParams) SetGenerateDrillLinks(generateDrillLinks *bool)

SetGenerateDrillLinks adds the generateDrillLinks to the run look params

func (*RunLookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the run look params

func (*RunLookParams) SetImageHeight

func (o *RunLookParams) SetImageHeight(imageHeight *int64)

SetImageHeight adds the imageHeight to the run look params

func (*RunLookParams) SetImageWidth

func (o *RunLookParams) SetImageWidth(imageWidth *int64)

SetImageWidth adds the imageWidth to the run look params

func (*RunLookParams) SetLimit

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

SetLimit adds the limit to the run look params

func (*RunLookParams) SetLookID

func (o *RunLookParams) SetLookID(lookID int64)

SetLookID adds the lookId to the run look params

func (*RunLookParams) SetPathPrefix

func (o *RunLookParams) SetPathPrefix(pathPrefix *string)

SetPathPrefix adds the pathPrefix to the run look params

func (*RunLookParams) SetRebuildPdts

func (o *RunLookParams) SetRebuildPdts(rebuildPdts *bool)

SetRebuildPdts adds the rebuildPdts to the run look params

func (*RunLookParams) SetResultFormat

func (o *RunLookParams) SetResultFormat(resultFormat string)

SetResultFormat adds the resultFormat to the run look params

func (*RunLookParams) SetServerTableCalcs

func (o *RunLookParams) SetServerTableCalcs(serverTableCalcs *bool)

SetServerTableCalcs adds the serverTableCalcs to the run look params

func (*RunLookParams) SetTimeout

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

SetTimeout adds the timeout to the run look params

func (*RunLookParams) WithApplyFormatting

func (o *RunLookParams) WithApplyFormatting(applyFormatting *bool) *RunLookParams

WithApplyFormatting adds the applyFormatting to the run look params

func (*RunLookParams) WithApplyVis

func (o *RunLookParams) WithApplyVis(applyVis *bool) *RunLookParams

WithApplyVis adds the applyVis to the run look params

func (*RunLookParams) WithCache

func (o *RunLookParams) WithCache(cache *bool) *RunLookParams

WithCache adds the cache to the run look params

func (*RunLookParams) WithCacheOnly

func (o *RunLookParams) WithCacheOnly(cacheOnly *bool) *RunLookParams

WithCacheOnly adds the cacheOnly to the run look params

func (*RunLookParams) WithContext

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

WithContext adds the context to the run look params

func (*RunLookParams) WithDefaults

func (o *RunLookParams) WithDefaults() *RunLookParams

WithDefaults hydrates default values in the run look params (not the query body).

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

func (*RunLookParams) WithForceProduction

func (o *RunLookParams) WithForceProduction(forceProduction *bool) *RunLookParams

WithForceProduction adds the forceProduction to the run look params

func (o *RunLookParams) WithGenerateDrillLinks(generateDrillLinks *bool) *RunLookParams

WithGenerateDrillLinks adds the generateDrillLinks to the run look params

func (*RunLookParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the run look params

func (*RunLookParams) WithImageHeight

func (o *RunLookParams) WithImageHeight(imageHeight *int64) *RunLookParams

WithImageHeight adds the imageHeight to the run look params

func (*RunLookParams) WithImageWidth

func (o *RunLookParams) WithImageWidth(imageWidth *int64) *RunLookParams

WithImageWidth adds the imageWidth to the run look params

func (*RunLookParams) WithLimit

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

WithLimit adds the limit to the run look params

func (*RunLookParams) WithLookID

func (o *RunLookParams) WithLookID(lookID int64) *RunLookParams

WithLookID adds the lookID to the run look params

func (*RunLookParams) WithPathPrefix

func (o *RunLookParams) WithPathPrefix(pathPrefix *string) *RunLookParams

WithPathPrefix adds the pathPrefix to the run look params

func (*RunLookParams) WithRebuildPdts

func (o *RunLookParams) WithRebuildPdts(rebuildPdts *bool) *RunLookParams

WithRebuildPdts adds the rebuildPdts to the run look params

func (*RunLookParams) WithResultFormat

func (o *RunLookParams) WithResultFormat(resultFormat string) *RunLookParams

WithResultFormat adds the resultFormat to the run look params

func (*RunLookParams) WithServerTableCalcs

func (o *RunLookParams) WithServerTableCalcs(serverTableCalcs *bool) *RunLookParams

WithServerTableCalcs adds the serverTableCalcs to the run look params

func (*RunLookParams) WithTimeout

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

WithTimeout adds the timeout to the run look params

func (*RunLookParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RunLookReader

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

RunLookReader is a Reader for the RunLook structure.

func (*RunLookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RunLookTooManyRequests

type RunLookTooManyRequests struct {
	Payload *models.Error
}
RunLookTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewRunLookTooManyRequests

func NewRunLookTooManyRequests() *RunLookTooManyRequests

NewRunLookTooManyRequests creates a RunLookTooManyRequests with default headers values

func (*RunLookTooManyRequests) Error

func (o *RunLookTooManyRequests) Error() string

func (*RunLookTooManyRequests) GetPayload

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

type RunLookUnprocessableEntity

type RunLookUnprocessableEntity struct {
	Payload *models.ValidationError
}
RunLookUnprocessableEntity describes a response with status code 422, with default header values.

Validation Error

func NewRunLookUnprocessableEntity

func NewRunLookUnprocessableEntity() *RunLookUnprocessableEntity

NewRunLookUnprocessableEntity creates a RunLookUnprocessableEntity with default headers values

func (*RunLookUnprocessableEntity) Error

func (*RunLookUnprocessableEntity) GetPayload

type SearchLooksBadRequest

type SearchLooksBadRequest struct {
	Payload *models.Error
}
SearchLooksBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewSearchLooksBadRequest

func NewSearchLooksBadRequest() *SearchLooksBadRequest

NewSearchLooksBadRequest creates a SearchLooksBadRequest with default headers values

func (*SearchLooksBadRequest) Error

func (o *SearchLooksBadRequest) Error() string

func (*SearchLooksBadRequest) GetPayload

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

type SearchLooksNotFound

type SearchLooksNotFound struct {
	Payload *models.Error
}
SearchLooksNotFound describes a response with status code 404, with default header values.

Not Found

func NewSearchLooksNotFound

func NewSearchLooksNotFound() *SearchLooksNotFound

NewSearchLooksNotFound creates a SearchLooksNotFound with default headers values

func (*SearchLooksNotFound) Error

func (o *SearchLooksNotFound) Error() string

func (*SearchLooksNotFound) GetPayload

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

type SearchLooksOK

type SearchLooksOK struct {
	Payload []*models.Look
}
SearchLooksOK describes a response with status code 200, with default header values.

looks

func NewSearchLooksOK

func NewSearchLooksOK() *SearchLooksOK

NewSearchLooksOK creates a SearchLooksOK with default headers values

func (*SearchLooksOK) Error

func (o *SearchLooksOK) Error() string

func (*SearchLooksOK) GetPayload

func (o *SearchLooksOK) GetPayload() []*models.Look

type SearchLooksParams

type SearchLooksParams struct {

	/* ContentFavoriteID.

	   Select looks with a particular content favorite id

	   Format: int64
	*/
	ContentFavoriteID *int64

	/* Curate.

	   Exclude items that exist only in personal spaces other than the users
	*/
	Curate *bool

	/* Deleted.

	   Select soft-deleted looks
	*/
	Deleted *bool

	/* Description.

	   Match Look description.
	*/
	Description *string

	/* Fields.

	   Requested fields.
	*/
	Fields *string

	/* FilterOr.

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

	/* ID.

	   Match look id.
	*/
	ID *string

	/* Limit.

	   Number of results to return. (used with offset and takes priority over page and per_page)

	   Format: int64
	*/
	Limit *int64

	/* Offset.

	   Number of results to skip before returning any. (used with limit and takes priority over page and per_page)

	   Format: int64
	*/
	Offset *int64

	/* Page.

	   Requested page.

	   Format: int64
	*/
	Page *int64

	/* PerPage.

	   Results per page.

	   Format: int64
	*/
	PerPage *int64

	/* QueryID.

	   Select looks that reference a particular query by query_id

	   Format: int64
	*/
	QueryID *int64

	/* Sorts.

	   One or more fields to sort results by. Sortable fields: [:title, :user_id, :id, :created_at, :space_id, :folder_id, :description, :updated_at, :last_updater_id, :view_count, :favorite_count, :content_favorite_id, :deleted, :deleted_at, :last_viewed_at, :last_accessed_at, :query_id]
	*/
	Sorts *string

	/* SpaceID.

	   Select looks in a particular space.
	*/
	SpaceID *string

	/* Title.

	   Match Look title.
	*/
	Title *string

	/* UserID.

	   Select looks created by a particular user.
	*/
	UserID *string

	/* ViewCount.

	   Select looks with particular view_count value
	*/
	ViewCount *string

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

SearchLooksParams contains all the parameters to send to the API endpoint

for the search looks operation.

Typically these are written to a http.Request.

func NewSearchLooksParams

func NewSearchLooksParams() *SearchLooksParams

NewSearchLooksParams creates a new SearchLooksParams 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 NewSearchLooksParamsWithContext

func NewSearchLooksParamsWithContext(ctx context.Context) *SearchLooksParams

NewSearchLooksParamsWithContext creates a new SearchLooksParams object with the ability to set a context for a request.

func NewSearchLooksParamsWithHTTPClient

func NewSearchLooksParamsWithHTTPClient(client *http.Client) *SearchLooksParams

NewSearchLooksParamsWithHTTPClient creates a new SearchLooksParams object with the ability to set a custom HTTPClient for a request.

func NewSearchLooksParamsWithTimeout

func NewSearchLooksParamsWithTimeout(timeout time.Duration) *SearchLooksParams

NewSearchLooksParamsWithTimeout creates a new SearchLooksParams object with the ability to set a timeout on a request.

func (*SearchLooksParams) SetContentFavoriteID

func (o *SearchLooksParams) SetContentFavoriteID(contentFavoriteID *int64)

SetContentFavoriteID adds the contentFavoriteId to the search looks params

func (*SearchLooksParams) SetContext

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

SetContext adds the context to the search looks params

func (*SearchLooksParams) SetCurate

func (o *SearchLooksParams) SetCurate(curate *bool)

SetCurate adds the curate to the search looks params

func (*SearchLooksParams) SetDefaults

func (o *SearchLooksParams) SetDefaults()

SetDefaults hydrates default values in the search looks params (not the query body).

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

func (*SearchLooksParams) SetDeleted

func (o *SearchLooksParams) SetDeleted(deleted *bool)

SetDeleted adds the deleted to the search looks params

func (*SearchLooksParams) SetDescription

func (o *SearchLooksParams) SetDescription(description *string)

SetDescription adds the description to the search looks params

func (*SearchLooksParams) SetFields

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

SetFields adds the fields to the search looks params

func (*SearchLooksParams) SetFilterOr

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

SetFilterOr adds the filterOr to the search looks params

func (*SearchLooksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search looks params

func (*SearchLooksParams) SetID

func (o *SearchLooksParams) SetID(id *string)

SetID adds the id to the search looks params

func (*SearchLooksParams) SetLimit

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

SetLimit adds the limit to the search looks params

func (*SearchLooksParams) SetOffset

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

SetOffset adds the offset to the search looks params

func (*SearchLooksParams) SetPage

func (o *SearchLooksParams) SetPage(page *int64)

SetPage adds the page to the search looks params

func (*SearchLooksParams) SetPerPage

func (o *SearchLooksParams) SetPerPage(perPage *int64)

SetPerPage adds the perPage to the search looks params

func (*SearchLooksParams) SetQueryID

func (o *SearchLooksParams) SetQueryID(queryID *int64)

SetQueryID adds the queryId to the search looks params

func (*SearchLooksParams) SetSorts

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

SetSorts adds the sorts to the search looks params

func (*SearchLooksParams) SetSpaceID

func (o *SearchLooksParams) SetSpaceID(spaceID *string)

SetSpaceID adds the spaceId to the search looks params

func (*SearchLooksParams) SetTimeout

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

SetTimeout adds the timeout to the search looks params

func (*SearchLooksParams) SetTitle

func (o *SearchLooksParams) SetTitle(title *string)

SetTitle adds the title to the search looks params

func (*SearchLooksParams) SetUserID

func (o *SearchLooksParams) SetUserID(userID *string)

SetUserID adds the userId to the search looks params

func (*SearchLooksParams) SetViewCount

func (o *SearchLooksParams) SetViewCount(viewCount *string)

SetViewCount adds the viewCount to the search looks params

func (*SearchLooksParams) WithContentFavoriteID

func (o *SearchLooksParams) WithContentFavoriteID(contentFavoriteID *int64) *SearchLooksParams

WithContentFavoriteID adds the contentFavoriteID to the search looks params

func (*SearchLooksParams) WithContext

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

WithContext adds the context to the search looks params

func (*SearchLooksParams) WithCurate

func (o *SearchLooksParams) WithCurate(curate *bool) *SearchLooksParams

WithCurate adds the curate to the search looks params

func (*SearchLooksParams) WithDefaults

func (o *SearchLooksParams) WithDefaults() *SearchLooksParams

WithDefaults hydrates default values in the search looks params (not the query body).

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

func (*SearchLooksParams) WithDeleted

func (o *SearchLooksParams) WithDeleted(deleted *bool) *SearchLooksParams

WithDeleted adds the deleted to the search looks params

func (*SearchLooksParams) WithDescription

func (o *SearchLooksParams) WithDescription(description *string) *SearchLooksParams

WithDescription adds the description to the search looks params

func (*SearchLooksParams) WithFields

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

WithFields adds the fields to the search looks params

func (*SearchLooksParams) WithFilterOr

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

WithFilterOr adds the filterOr to the search looks params

func (*SearchLooksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search looks params

func (*SearchLooksParams) WithID

func (o *SearchLooksParams) WithID(id *string) *SearchLooksParams

WithID adds the id to the search looks params

func (*SearchLooksParams) WithLimit

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

WithLimit adds the limit to the search looks params

func (*SearchLooksParams) WithOffset

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

WithOffset adds the offset to the search looks params

func (*SearchLooksParams) WithPage

func (o *SearchLooksParams) WithPage(page *int64) *SearchLooksParams

WithPage adds the page to the search looks params

func (*SearchLooksParams) WithPerPage

func (o *SearchLooksParams) WithPerPage(perPage *int64) *SearchLooksParams

WithPerPage adds the perPage to the search looks params

func (*SearchLooksParams) WithQueryID

func (o *SearchLooksParams) WithQueryID(queryID *int64) *SearchLooksParams

WithQueryID adds the queryID to the search looks params

func (*SearchLooksParams) WithSorts

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

WithSorts adds the sorts to the search looks params

func (*SearchLooksParams) WithSpaceID

func (o *SearchLooksParams) WithSpaceID(spaceID *string) *SearchLooksParams

WithSpaceID adds the spaceID to the search looks params

func (*SearchLooksParams) WithTimeout

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

WithTimeout adds the timeout to the search looks params

func (*SearchLooksParams) WithTitle

func (o *SearchLooksParams) WithTitle(title *string) *SearchLooksParams

WithTitle adds the title to the search looks params

func (*SearchLooksParams) WithUserID

func (o *SearchLooksParams) WithUserID(userID *string) *SearchLooksParams

WithUserID adds the userID to the search looks params

func (*SearchLooksParams) WithViewCount

func (o *SearchLooksParams) WithViewCount(viewCount *string) *SearchLooksParams

WithViewCount adds the viewCount to the search looks params

func (*SearchLooksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchLooksReader

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

SearchLooksReader is a Reader for the SearchLooks structure.

func (*SearchLooksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLookBadRequest

type UpdateLookBadRequest struct {
	Payload *models.Error
}
UpdateLookBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewUpdateLookBadRequest

func NewUpdateLookBadRequest() *UpdateLookBadRequest

NewUpdateLookBadRequest creates a UpdateLookBadRequest with default headers values

func (*UpdateLookBadRequest) Error

func (o *UpdateLookBadRequest) Error() string

func (*UpdateLookBadRequest) GetPayload

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

type UpdateLookNotFound

type UpdateLookNotFound struct {
	Payload *models.Error
}
UpdateLookNotFound describes a response with status code 404, with default header values.

Not Found

func NewUpdateLookNotFound

func NewUpdateLookNotFound() *UpdateLookNotFound

NewUpdateLookNotFound creates a UpdateLookNotFound with default headers values

func (*UpdateLookNotFound) Error

func (o *UpdateLookNotFound) Error() string

func (*UpdateLookNotFound) GetPayload

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

type UpdateLookOK

type UpdateLookOK struct {
	Payload *models.LookWithQuery
}
UpdateLookOK describes a response with status code 200, with default header values.

Look

func NewUpdateLookOK

func NewUpdateLookOK() *UpdateLookOK

NewUpdateLookOK creates a UpdateLookOK with default headers values

func (*UpdateLookOK) Error

func (o *UpdateLookOK) Error() string

func (*UpdateLookOK) GetPayload

func (o *UpdateLookOK) GetPayload() *models.LookWithQuery

type UpdateLookParams

type UpdateLookParams struct {

	/* Body.

	   Look
	*/
	Body *models.LookWithQuery

	/* Fields.

	   Requested fields.
	*/
	Fields *string

	/* LookID.

	   Id of look

	   Format: int64
	*/
	LookID int64

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

UpdateLookParams contains all the parameters to send to the API endpoint

for the update look operation.

Typically these are written to a http.Request.

func NewUpdateLookParams

func NewUpdateLookParams() *UpdateLookParams

NewUpdateLookParams creates a new UpdateLookParams 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 NewUpdateLookParamsWithContext

func NewUpdateLookParamsWithContext(ctx context.Context) *UpdateLookParams

NewUpdateLookParamsWithContext creates a new UpdateLookParams object with the ability to set a context for a request.

func NewUpdateLookParamsWithHTTPClient

func NewUpdateLookParamsWithHTTPClient(client *http.Client) *UpdateLookParams

NewUpdateLookParamsWithHTTPClient creates a new UpdateLookParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateLookParamsWithTimeout

func NewUpdateLookParamsWithTimeout(timeout time.Duration) *UpdateLookParams

NewUpdateLookParamsWithTimeout creates a new UpdateLookParams object with the ability to set a timeout on a request.

func (*UpdateLookParams) SetBody

func (o *UpdateLookParams) SetBody(body *models.LookWithQuery)

SetBody adds the body to the update look params

func (*UpdateLookParams) SetContext

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

SetContext adds the context to the update look params

func (*UpdateLookParams) SetDefaults

func (o *UpdateLookParams) SetDefaults()

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

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

func (*UpdateLookParams) SetFields

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

SetFields adds the fields to the update look params

func (*UpdateLookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update look params

func (*UpdateLookParams) SetLookID

func (o *UpdateLookParams) SetLookID(lookID int64)

SetLookID adds the lookId to the update look params

func (*UpdateLookParams) SetTimeout

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

SetTimeout adds the timeout to the update look params

func (*UpdateLookParams) WithBody

WithBody adds the body to the update look params

func (*UpdateLookParams) WithContext

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

WithContext adds the context to the update look params

func (*UpdateLookParams) WithDefaults

func (o *UpdateLookParams) WithDefaults() *UpdateLookParams

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

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

func (*UpdateLookParams) WithFields

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

WithFields adds the fields to the update look params

func (*UpdateLookParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update look params

func (*UpdateLookParams) WithLookID

func (o *UpdateLookParams) WithLookID(lookID int64) *UpdateLookParams

WithLookID adds the lookID to the update look params

func (*UpdateLookParams) WithTimeout

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

WithTimeout adds the timeout to the update look params

func (*UpdateLookParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateLookReader

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

UpdateLookReader is a Reader for the UpdateLook structure.

func (*UpdateLookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLookTooManyRequests

type UpdateLookTooManyRequests struct {
	Payload *models.Error
}
UpdateLookTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewUpdateLookTooManyRequests

func NewUpdateLookTooManyRequests() *UpdateLookTooManyRequests

NewUpdateLookTooManyRequests creates a UpdateLookTooManyRequests with default headers values

func (*UpdateLookTooManyRequests) Error

func (o *UpdateLookTooManyRequests) Error() string

func (*UpdateLookTooManyRequests) GetPayload

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

type UpdateLookUnprocessableEntity

type UpdateLookUnprocessableEntity struct {
	Payload *models.ValidationError
}
UpdateLookUnprocessableEntity describes a response with status code 422, with default header values.

Validation Error

func NewUpdateLookUnprocessableEntity

func NewUpdateLookUnprocessableEntity() *UpdateLookUnprocessableEntity

NewUpdateLookUnprocessableEntity creates a UpdateLookUnprocessableEntity with default headers values

func (*UpdateLookUnprocessableEntity) Error

func (*UpdateLookUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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