assets

package
v0.0.0-...-460a839 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetsCreateBadRequest

type AssetsCreateBadRequest struct {
}
AssetsCreateBadRequest describes a response with status code 400, with default header values.

You sent a malformed or bad request.

func NewAssetsCreateBadRequest

func NewAssetsCreateBadRequest() *AssetsCreateBadRequest

NewAssetsCreateBadRequest creates a AssetsCreateBadRequest with default headers values

func (*AssetsCreateBadRequest) Error

func (o *AssetsCreateBadRequest) Error() string

type AssetsCreateCreated

type AssetsCreateCreated struct {
	Payload *models.Asset
}
AssetsCreateCreated describes a response with status code 201, with default header values.

AssetsCreateCreated assets create created

func NewAssetsCreateCreated

func NewAssetsCreateCreated() *AssetsCreateCreated

NewAssetsCreateCreated creates a AssetsCreateCreated with default headers values

func (*AssetsCreateCreated) Error

func (o *AssetsCreateCreated) Error() string

func (*AssetsCreateCreated) GetPayload

func (o *AssetsCreateCreated) GetPayload() *models.Asset

type AssetsCreateParams

type AssetsCreateParams struct {

	// Data.
	Data *models.AssetCreate

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

AssetsCreateParams contains all the parameters to send to the API endpoint

for the assets create operation.

Typically these are written to a http.Request.

func NewAssetsCreateParams

func NewAssetsCreateParams() *AssetsCreateParams

NewAssetsCreateParams creates a new AssetsCreateParams 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 NewAssetsCreateParamsWithContext

func NewAssetsCreateParamsWithContext(ctx context.Context) *AssetsCreateParams

NewAssetsCreateParamsWithContext creates a new AssetsCreateParams object with the ability to set a context for a request.

func NewAssetsCreateParamsWithHTTPClient

func NewAssetsCreateParamsWithHTTPClient(client *http.Client) *AssetsCreateParams

NewAssetsCreateParamsWithHTTPClient creates a new AssetsCreateParams object with the ability to set a custom HTTPClient for a request.

func NewAssetsCreateParamsWithTimeout

func NewAssetsCreateParamsWithTimeout(timeout time.Duration) *AssetsCreateParams

NewAssetsCreateParamsWithTimeout creates a new AssetsCreateParams object with the ability to set a timeout on a request.

func (*AssetsCreateParams) SetContext

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

SetContext adds the context to the assets create params

func (*AssetsCreateParams) SetData

func (o *AssetsCreateParams) SetData(data *models.AssetCreate)

SetData adds the data to the assets create params

func (*AssetsCreateParams) SetDefaults

func (o *AssetsCreateParams) SetDefaults()

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

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

func (*AssetsCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assets create params

func (*AssetsCreateParams) SetTimeout

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

SetTimeout adds the timeout to the assets create params

func (*AssetsCreateParams) WithContext

WithContext adds the context to the assets create params

func (*AssetsCreateParams) WithData

WithData adds the data to the assets create params

func (*AssetsCreateParams) WithDefaults

func (o *AssetsCreateParams) WithDefaults() *AssetsCreateParams

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

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

func (*AssetsCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assets create params

func (*AssetsCreateParams) WithTimeout

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

WithTimeout adds the timeout to the assets create params

func (*AssetsCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AssetsCreateReader

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

AssetsCreateReader is a Reader for the AssetsCreate structure.

func (*AssetsCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssetsCreateUnauthorized

type AssetsCreateUnauthorized struct {
}
AssetsCreateUnauthorized describes a response with status code 401, with default header values.

You provided invalid credentials.

func NewAssetsCreateUnauthorized

func NewAssetsCreateUnauthorized() *AssetsCreateUnauthorized

NewAssetsCreateUnauthorized creates a AssetsCreateUnauthorized with default headers values

func (*AssetsCreateUnauthorized) Error

func (o *AssetsCreateUnauthorized) Error() string

type AssetsDeleteOK

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

AssetsDeleteOK assets delete o k

func NewAssetsDeleteOK

func NewAssetsDeleteOK() *AssetsDeleteOK

NewAssetsDeleteOK creates a AssetsDeleteOK with default headers values

func (*AssetsDeleteOK) Error

func (o *AssetsDeleteOK) Error() string

type AssetsDeleteParams

type AssetsDeleteParams struct {

	// ID.
	ID string

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

AssetsDeleteParams contains all the parameters to send to the API endpoint

for the assets delete operation.

Typically these are written to a http.Request.

func NewAssetsDeleteParams

func NewAssetsDeleteParams() *AssetsDeleteParams

NewAssetsDeleteParams creates a new AssetsDeleteParams 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 NewAssetsDeleteParamsWithContext

func NewAssetsDeleteParamsWithContext(ctx context.Context) *AssetsDeleteParams

NewAssetsDeleteParamsWithContext creates a new AssetsDeleteParams object with the ability to set a context for a request.

func NewAssetsDeleteParamsWithHTTPClient

func NewAssetsDeleteParamsWithHTTPClient(client *http.Client) *AssetsDeleteParams

NewAssetsDeleteParamsWithHTTPClient creates a new AssetsDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewAssetsDeleteParamsWithTimeout

func NewAssetsDeleteParamsWithTimeout(timeout time.Duration) *AssetsDeleteParams

NewAssetsDeleteParamsWithTimeout creates a new AssetsDeleteParams object with the ability to set a timeout on a request.

func (*AssetsDeleteParams) SetContext

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

SetContext adds the context to the assets delete params

func (*AssetsDeleteParams) SetDefaults

func (o *AssetsDeleteParams) SetDefaults()

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

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

func (*AssetsDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assets delete params

func (*AssetsDeleteParams) SetID

func (o *AssetsDeleteParams) SetID(id string)

SetID adds the id to the assets delete params

func (*AssetsDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the assets delete params

func (*AssetsDeleteParams) WithContext

WithContext adds the context to the assets delete params

func (*AssetsDeleteParams) WithDefaults

func (o *AssetsDeleteParams) WithDefaults() *AssetsDeleteParams

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

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

func (*AssetsDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assets delete params

func (*AssetsDeleteParams) WithID

WithID adds the id to the assets delete params

func (*AssetsDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the assets delete params

func (*AssetsDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AssetsDeleteReader

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

AssetsDeleteReader is a Reader for the AssetsDelete structure.

func (*AssetsDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssetsDeleteUnauthorized

type AssetsDeleteUnauthorized struct {
}
AssetsDeleteUnauthorized describes a response with status code 401, with default header values.

You provided invalid credentials.

func NewAssetsDeleteUnauthorized

func NewAssetsDeleteUnauthorized() *AssetsDeleteUnauthorized

NewAssetsDeleteUnauthorized creates a AssetsDeleteUnauthorized with default headers values

func (*AssetsDeleteUnauthorized) Error

func (o *AssetsDeleteUnauthorized) Error() string

type AssetsListOK

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

AssetsListOK assets list o k

func NewAssetsListOK

func NewAssetsListOK() *AssetsListOK

NewAssetsListOK creates a AssetsListOK with default headers values

func (*AssetsListOK) Error

func (o *AssetsListOK) Error() string

func (*AssetsListOK) GetPayload

func (o *AssetsListOK) GetPayload() []*models.Asset

type AssetsListParams

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

AssetsListParams contains all the parameters to send to the API endpoint

for the assets list operation.

Typically these are written to a http.Request.

func NewAssetsListParams

func NewAssetsListParams() *AssetsListParams

NewAssetsListParams creates a new AssetsListParams 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 NewAssetsListParamsWithContext

func NewAssetsListParamsWithContext(ctx context.Context) *AssetsListParams

NewAssetsListParamsWithContext creates a new AssetsListParams object with the ability to set a context for a request.

func NewAssetsListParamsWithHTTPClient

func NewAssetsListParamsWithHTTPClient(client *http.Client) *AssetsListParams

NewAssetsListParamsWithHTTPClient creates a new AssetsListParams object with the ability to set a custom HTTPClient for a request.

func NewAssetsListParamsWithTimeout

func NewAssetsListParamsWithTimeout(timeout time.Duration) *AssetsListParams

NewAssetsListParamsWithTimeout creates a new AssetsListParams object with the ability to set a timeout on a request.

func (*AssetsListParams) SetContext

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

SetContext adds the context to the assets list params

func (*AssetsListParams) SetDefaults

func (o *AssetsListParams) SetDefaults()

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

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

func (*AssetsListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assets list params

func (*AssetsListParams) SetTimeout

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

SetTimeout adds the timeout to the assets list params

func (*AssetsListParams) WithContext

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

WithContext adds the context to the assets list params

func (*AssetsListParams) WithDefaults

func (o *AssetsListParams) WithDefaults() *AssetsListParams

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

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

func (*AssetsListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assets list params

func (*AssetsListParams) WithTimeout

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

WithTimeout adds the timeout to the assets list params

func (*AssetsListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AssetsListReader

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

AssetsListReader is a Reader for the AssetsList structure.

func (*AssetsListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssetsListUnauthorized

type AssetsListUnauthorized struct {
}
AssetsListUnauthorized describes a response with status code 401, with default header values.

You provided invalid credentials.

func NewAssetsListUnauthorized

func NewAssetsListUnauthorized() *AssetsListUnauthorized

NewAssetsListUnauthorized creates a AssetsListUnauthorized with default headers values

func (*AssetsListUnauthorized) Error

func (o *AssetsListUnauthorized) Error() string

type AssetsPartialUpdateBadRequest

type AssetsPartialUpdateBadRequest struct {
}
AssetsPartialUpdateBadRequest describes a response with status code 400, with default header values.

You sent a malformed or bad request.

func NewAssetsPartialUpdateBadRequest

func NewAssetsPartialUpdateBadRequest() *AssetsPartialUpdateBadRequest

NewAssetsPartialUpdateBadRequest creates a AssetsPartialUpdateBadRequest with default headers values

func (*AssetsPartialUpdateBadRequest) Error

type AssetsPartialUpdateOK

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

AssetsPartialUpdateOK assets partial update o k

func NewAssetsPartialUpdateOK

func NewAssetsPartialUpdateOK() *AssetsPartialUpdateOK

NewAssetsPartialUpdateOK creates a AssetsPartialUpdateOK with default headers values

func (*AssetsPartialUpdateOK) Error

func (o *AssetsPartialUpdateOK) Error() string

func (*AssetsPartialUpdateOK) GetPayload

func (o *AssetsPartialUpdateOK) GetPayload() *models.Asset

type AssetsPartialUpdateParams

type AssetsPartialUpdateParams struct {

	// Data.
	Data *models.AssetUpdate

	// ID.
	ID string

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

AssetsPartialUpdateParams contains all the parameters to send to the API endpoint

for the assets partial update operation.

Typically these are written to a http.Request.

func NewAssetsPartialUpdateParams

func NewAssetsPartialUpdateParams() *AssetsPartialUpdateParams

NewAssetsPartialUpdateParams creates a new AssetsPartialUpdateParams 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 NewAssetsPartialUpdateParamsWithContext

func NewAssetsPartialUpdateParamsWithContext(ctx context.Context) *AssetsPartialUpdateParams

NewAssetsPartialUpdateParamsWithContext creates a new AssetsPartialUpdateParams object with the ability to set a context for a request.

func NewAssetsPartialUpdateParamsWithHTTPClient

func NewAssetsPartialUpdateParamsWithHTTPClient(client *http.Client) *AssetsPartialUpdateParams

NewAssetsPartialUpdateParamsWithHTTPClient creates a new AssetsPartialUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewAssetsPartialUpdateParamsWithTimeout

func NewAssetsPartialUpdateParamsWithTimeout(timeout time.Duration) *AssetsPartialUpdateParams

NewAssetsPartialUpdateParamsWithTimeout creates a new AssetsPartialUpdateParams object with the ability to set a timeout on a request.

func (*AssetsPartialUpdateParams) SetContext

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

SetContext adds the context to the assets partial update params

func (*AssetsPartialUpdateParams) SetData

func (o *AssetsPartialUpdateParams) SetData(data *models.AssetUpdate)

SetData adds the data to the assets partial update params

func (*AssetsPartialUpdateParams) SetDefaults

func (o *AssetsPartialUpdateParams) SetDefaults()

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

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

func (*AssetsPartialUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assets partial update params

func (*AssetsPartialUpdateParams) SetID

func (o *AssetsPartialUpdateParams) SetID(id string)

SetID adds the id to the assets partial update params

func (*AssetsPartialUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the assets partial update params

func (*AssetsPartialUpdateParams) WithContext

WithContext adds the context to the assets partial update params

func (*AssetsPartialUpdateParams) WithData

WithData adds the data to the assets partial update params

func (*AssetsPartialUpdateParams) WithDefaults

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

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

func (*AssetsPartialUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assets partial update params

func (*AssetsPartialUpdateParams) WithID

WithID adds the id to the assets partial update params

func (*AssetsPartialUpdateParams) WithTimeout

WithTimeout adds the timeout to the assets partial update params

func (*AssetsPartialUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AssetsPartialUpdateReader

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

AssetsPartialUpdateReader is a Reader for the AssetsPartialUpdate structure.

func (*AssetsPartialUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssetsPartialUpdateUnauthorized

type AssetsPartialUpdateUnauthorized struct {
}
AssetsPartialUpdateUnauthorized describes a response with status code 401, with default header values.

You provided invalid credentials.

func NewAssetsPartialUpdateUnauthorized

func NewAssetsPartialUpdateUnauthorized() *AssetsPartialUpdateUnauthorized

NewAssetsPartialUpdateUnauthorized creates a AssetsPartialUpdateUnauthorized with default headers values

func (*AssetsPartialUpdateUnauthorized) Error

type AssetsReadOK

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

AssetsReadOK assets read o k

func NewAssetsReadOK

func NewAssetsReadOK() *AssetsReadOK

NewAssetsReadOK creates a AssetsReadOK with default headers values

func (*AssetsReadOK) Error

func (o *AssetsReadOK) Error() string

func (*AssetsReadOK) GetPayload

func (o *AssetsReadOK) GetPayload() *models.Asset

type AssetsReadParams

type AssetsReadParams struct {

	// ID.
	ID string

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

AssetsReadParams contains all the parameters to send to the API endpoint

for the assets read operation.

Typically these are written to a http.Request.

func NewAssetsReadParams

func NewAssetsReadParams() *AssetsReadParams

NewAssetsReadParams creates a new AssetsReadParams 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 NewAssetsReadParamsWithContext

func NewAssetsReadParamsWithContext(ctx context.Context) *AssetsReadParams

NewAssetsReadParamsWithContext creates a new AssetsReadParams object with the ability to set a context for a request.

func NewAssetsReadParamsWithHTTPClient

func NewAssetsReadParamsWithHTTPClient(client *http.Client) *AssetsReadParams

NewAssetsReadParamsWithHTTPClient creates a new AssetsReadParams object with the ability to set a custom HTTPClient for a request.

func NewAssetsReadParamsWithTimeout

func NewAssetsReadParamsWithTimeout(timeout time.Duration) *AssetsReadParams

NewAssetsReadParamsWithTimeout creates a new AssetsReadParams object with the ability to set a timeout on a request.

func (*AssetsReadParams) SetContext

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

SetContext adds the context to the assets read params

func (*AssetsReadParams) SetDefaults

func (o *AssetsReadParams) SetDefaults()

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

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

func (*AssetsReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assets read params

func (*AssetsReadParams) SetID

func (o *AssetsReadParams) SetID(id string)

SetID adds the id to the assets read params

func (*AssetsReadParams) SetTimeout

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

SetTimeout adds the timeout to the assets read params

func (*AssetsReadParams) WithContext

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

WithContext adds the context to the assets read params

func (*AssetsReadParams) WithDefaults

func (o *AssetsReadParams) WithDefaults() *AssetsReadParams

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

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

func (*AssetsReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assets read params

func (*AssetsReadParams) WithID

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

WithID adds the id to the assets read params

func (*AssetsReadParams) WithTimeout

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

WithTimeout adds the timeout to the assets read params

func (*AssetsReadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AssetsReadReader

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

AssetsReadReader is a Reader for the AssetsRead structure.

func (*AssetsReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssetsReadUnauthorized

type AssetsReadUnauthorized struct {
}
AssetsReadUnauthorized describes a response with status code 401, with default header values.

You provided invalid credentials.

func NewAssetsReadUnauthorized

func NewAssetsReadUnauthorized() *AssetsReadUnauthorized

NewAssetsReadUnauthorized creates a AssetsReadUnauthorized with default headers values

func (*AssetsReadUnauthorized) Error

func (o *AssetsReadUnauthorized) Error() string

type AssetsUpdateBadRequest

type AssetsUpdateBadRequest struct {
}
AssetsUpdateBadRequest describes a response with status code 400, with default header values.

You sent a malformed or bad request.

func NewAssetsUpdateBadRequest

func NewAssetsUpdateBadRequest() *AssetsUpdateBadRequest

NewAssetsUpdateBadRequest creates a AssetsUpdateBadRequest with default headers values

func (*AssetsUpdateBadRequest) Error

func (o *AssetsUpdateBadRequest) Error() string

type AssetsUpdateOK

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

AssetsUpdateOK assets update o k

func NewAssetsUpdateOK

func NewAssetsUpdateOK() *AssetsUpdateOK

NewAssetsUpdateOK creates a AssetsUpdateOK with default headers values

func (*AssetsUpdateOK) Error

func (o *AssetsUpdateOK) Error() string

func (*AssetsUpdateOK) GetPayload

func (o *AssetsUpdateOK) GetPayload() *models.Asset

type AssetsUpdateParams

type AssetsUpdateParams struct {

	// Data.
	Data *models.AssetUpdate

	// ID.
	ID string

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

AssetsUpdateParams contains all the parameters to send to the API endpoint

for the assets update operation.

Typically these are written to a http.Request.

func NewAssetsUpdateParams

func NewAssetsUpdateParams() *AssetsUpdateParams

NewAssetsUpdateParams creates a new AssetsUpdateParams 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 NewAssetsUpdateParamsWithContext

func NewAssetsUpdateParamsWithContext(ctx context.Context) *AssetsUpdateParams

NewAssetsUpdateParamsWithContext creates a new AssetsUpdateParams object with the ability to set a context for a request.

func NewAssetsUpdateParamsWithHTTPClient

func NewAssetsUpdateParamsWithHTTPClient(client *http.Client) *AssetsUpdateParams

NewAssetsUpdateParamsWithHTTPClient creates a new AssetsUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewAssetsUpdateParamsWithTimeout

func NewAssetsUpdateParamsWithTimeout(timeout time.Duration) *AssetsUpdateParams

NewAssetsUpdateParamsWithTimeout creates a new AssetsUpdateParams object with the ability to set a timeout on a request.

func (*AssetsUpdateParams) SetContext

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

SetContext adds the context to the assets update params

func (*AssetsUpdateParams) SetData

func (o *AssetsUpdateParams) SetData(data *models.AssetUpdate)

SetData adds the data to the assets update params

func (*AssetsUpdateParams) SetDefaults

func (o *AssetsUpdateParams) SetDefaults()

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

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

func (*AssetsUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assets update params

func (*AssetsUpdateParams) SetID

func (o *AssetsUpdateParams) SetID(id string)

SetID adds the id to the assets update params

func (*AssetsUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the assets update params

func (*AssetsUpdateParams) WithContext

WithContext adds the context to the assets update params

func (*AssetsUpdateParams) WithData

WithData adds the data to the assets update params

func (*AssetsUpdateParams) WithDefaults

func (o *AssetsUpdateParams) WithDefaults() *AssetsUpdateParams

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

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

func (*AssetsUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assets update params

func (*AssetsUpdateParams) WithID

WithID adds the id to the assets update params

func (*AssetsUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the assets update params

func (*AssetsUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AssetsUpdateReader

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

AssetsUpdateReader is a Reader for the AssetsUpdate structure.

func (*AssetsUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssetsUpdateUnauthorized

type AssetsUpdateUnauthorized struct {
}
AssetsUpdateUnauthorized describes a response with status code 401, with default header values.

You provided invalid credentials.

func NewAssetsUpdateUnauthorized

func NewAssetsUpdateUnauthorized() *AssetsUpdateUnauthorized

NewAssetsUpdateUnauthorized creates a AssetsUpdateUnauthorized with default headers values

func (*AssetsUpdateUnauthorized) Error

func (o *AssetsUpdateUnauthorized) Error() string

type Client

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

Client for assets API

func (*Client) AssetsCreate

func (a *Client) AssetsCreate(params *AssetsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsCreateCreated, error)

AssetsCreate creates asset

Define a new asset by providing a URL to a web page, an image file or a video file. Assets are the content that can be scheduled on screens, such as images, video and web pages.

func (*Client) AssetsDelete

func (a *Client) AssetsDelete(params *AssetsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsDeleteOK, error)

AssetsDelete deletes asset

Delete a specific asset. Assets are the content that can be scheduled on screens, such as images, video and web pages.

func (*Client) AssetsList

func (a *Client) AssetsList(params *AssetsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsListOK, error)

AssetsList gets asset list

Get a list of assets. Assets are the content that can be scheduled on screens, such as images, video and web pages.

func (*Client) AssetsPartialUpdate

func (a *Client) AssetsPartialUpdate(params *AssetsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsPartialUpdateOK, error)

AssetsPartialUpdate updates asset partially

Change specific fields of an asset. Assets are the content that can be scheduled on screens, such as images, video and web pages.

func (*Client) AssetsRead

func (a *Client) AssetsRead(params *AssetsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsReadOK, error)

AssetsRead gets asset

Get the details of a specific asset. Assets are the content that can be scheduled on screens, such as images, video and web pages.

func (*Client) AssetsUpdate

func (a *Client) AssetsUpdate(params *AssetsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsUpdateOK, error)

AssetsUpdate updates asset

Change an asset. Assets are the content that can be scheduled on screens, such as images, video and web pages.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AssetsCreate(params *AssetsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsCreateCreated, error)

	AssetsDelete(params *AssetsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsDeleteOK, error)

	AssetsList(params *AssetsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsListOK, error)

	AssetsPartialUpdate(params *AssetsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsPartialUpdateOK, error)

	AssetsRead(params *AssetsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsReadOK, error)

	AssetsUpdate(params *AssetsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssetsUpdateOK, 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 assets API client.

Jump to

Keyboard shortcuts

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