library_elements

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for library elements API

func (*Client) CreateLibraryElement

func (a *Client) CreateLibraryElement(params *CreateLibraryElementParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLibraryElementOK, error)

CreateLibraryElement creates library element

Creates a new library element.

func (*Client) DeleteLibraryElementByUID

func (a *Client) DeleteLibraryElementByUID(params *DeleteLibraryElementByUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLibraryElementByUIDOK, error)
DeleteLibraryElementByUID deletes library element

Deletes an existing library element as specified by the UID. This operation cannot be reverted.

You cannot delete a library element that is connected. This operation cannot be reverted.

func (*Client) GetLibraryElementByName

func (a *Client) GetLibraryElementByName(params *GetLibraryElementByNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLibraryElementByNameOK, error)

GetLibraryElementByName gets library element by name

Returns a library element with the given name.

func (*Client) GetLibraryElementByUID

func (a *Client) GetLibraryElementByUID(params *GetLibraryElementByUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLibraryElementByUIDOK, error)

GetLibraryElementByUID gets library element by UID

Returns a library element with the given UID.

func (*Client) GetLibraryElementConnections

func (a *Client) GetLibraryElementConnections(params *GetLibraryElementConnectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLibraryElementConnectionsOK, error)

GetLibraryElementConnections gets library element connections

Returns a list of connections for a library element based on the UID specified.

func (*Client) GetLibraryElements

func (a *Client) GetLibraryElements(params *GetLibraryElementsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLibraryElementsOK, error)
GetLibraryElements gets all library elements

Returns a list of all library elements the authenticated user has permission to view.

Use the `perPage` query parameter to control the maximum number of library elements returned; the default limit is `100`. You can also use the `page` query parameter to fetch library elements from any page other than the first one.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateLibraryElement

func (a *Client) UpdateLibraryElement(params *UpdateLibraryElementParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLibraryElementOK, error)

UpdateLibraryElement updates library element

Updates an existing library element identified by uid.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateLibraryElement(params *CreateLibraryElementParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLibraryElementOK, error)

	DeleteLibraryElementByUID(params *DeleteLibraryElementByUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLibraryElementByUIDOK, error)

	GetLibraryElementByName(params *GetLibraryElementByNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLibraryElementByNameOK, error)

	GetLibraryElementByUID(params *GetLibraryElementByUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLibraryElementByUIDOK, error)

	GetLibraryElementConnections(params *GetLibraryElementConnectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLibraryElementConnectionsOK, error)

	GetLibraryElements(params *GetLibraryElementsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLibraryElementsOK, error)

	UpdateLibraryElement(params *UpdateLibraryElementParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLibraryElementOK, 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 library elements API client.

type CreateLibraryElementBadRequest

type CreateLibraryElementBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewCreateLibraryElementBadRequest

func NewCreateLibraryElementBadRequest() *CreateLibraryElementBadRequest

NewCreateLibraryElementBadRequest creates a CreateLibraryElementBadRequest with default headers values

func (*CreateLibraryElementBadRequest) Error

func (*CreateLibraryElementBadRequest) GetPayload

type CreateLibraryElementForbidden

type CreateLibraryElementForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewCreateLibraryElementForbidden

func NewCreateLibraryElementForbidden() *CreateLibraryElementForbidden

NewCreateLibraryElementForbidden creates a CreateLibraryElementForbidden with default headers values

func (*CreateLibraryElementForbidden) Error

func (*CreateLibraryElementForbidden) GetPayload

type CreateLibraryElementInternalServerError

type CreateLibraryElementInternalServerError struct {
	Payload *models.ErrorResponseBody
}

CreateLibraryElementInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewCreateLibraryElementInternalServerError

func NewCreateLibraryElementInternalServerError() *CreateLibraryElementInternalServerError

NewCreateLibraryElementInternalServerError creates a CreateLibraryElementInternalServerError with default headers values

func (*CreateLibraryElementInternalServerError) Error

func (*CreateLibraryElementInternalServerError) GetPayload

type CreateLibraryElementNotFound

type CreateLibraryElementNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewCreateLibraryElementNotFound

func NewCreateLibraryElementNotFound() *CreateLibraryElementNotFound

NewCreateLibraryElementNotFound creates a CreateLibraryElementNotFound with default headers values

func (*CreateLibraryElementNotFound) Error

func (*CreateLibraryElementNotFound) GetPayload

type CreateLibraryElementOK

type CreateLibraryElementOK struct {
	Payload *models.LibraryElementResponse
}

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

(empty)

func NewCreateLibraryElementOK

func NewCreateLibraryElementOK() *CreateLibraryElementOK

NewCreateLibraryElementOK creates a CreateLibraryElementOK with default headers values

func (*CreateLibraryElementOK) Error

func (o *CreateLibraryElementOK) Error() string

func (*CreateLibraryElementOK) GetPayload

type CreateLibraryElementParams

type CreateLibraryElementParams struct {

	// Body.
	Body *models.CreateLibraryElementCommand

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

CreateLibraryElementParams contains all the parameters to send to the API endpoint

for the create library element operation.

Typically these are written to a http.Request.

func NewCreateLibraryElementParams

func NewCreateLibraryElementParams() *CreateLibraryElementParams

NewCreateLibraryElementParams creates a new CreateLibraryElementParams 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 NewCreateLibraryElementParamsWithContext

func NewCreateLibraryElementParamsWithContext(ctx context.Context) *CreateLibraryElementParams

NewCreateLibraryElementParamsWithContext creates a new CreateLibraryElementParams object with the ability to set a context for a request.

func NewCreateLibraryElementParamsWithHTTPClient

func NewCreateLibraryElementParamsWithHTTPClient(client *http.Client) *CreateLibraryElementParams

NewCreateLibraryElementParamsWithHTTPClient creates a new CreateLibraryElementParams object with the ability to set a custom HTTPClient for a request.

func NewCreateLibraryElementParamsWithTimeout

func NewCreateLibraryElementParamsWithTimeout(timeout time.Duration) *CreateLibraryElementParams

NewCreateLibraryElementParamsWithTimeout creates a new CreateLibraryElementParams object with the ability to set a timeout on a request.

func (*CreateLibraryElementParams) SetBody

SetBody adds the body to the create library element params

func (*CreateLibraryElementParams) SetContext

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

SetContext adds the context to the create library element params

func (*CreateLibraryElementParams) SetDefaults

func (o *CreateLibraryElementParams) SetDefaults()

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

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

func (*CreateLibraryElementParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create library element params

func (*CreateLibraryElementParams) SetTimeout

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

SetTimeout adds the timeout to the create library element params

func (*CreateLibraryElementParams) WithBody

WithBody adds the body to the create library element params

func (*CreateLibraryElementParams) WithContext

WithContext adds the context to the create library element params

func (*CreateLibraryElementParams) WithDefaults

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

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

func (*CreateLibraryElementParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create library element params

func (*CreateLibraryElementParams) WithTimeout

WithTimeout adds the timeout to the create library element params

func (*CreateLibraryElementParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateLibraryElementReader

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

CreateLibraryElementReader is a Reader for the CreateLibraryElement structure.

func (*CreateLibraryElementReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateLibraryElementUnauthorized

type CreateLibraryElementUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewCreateLibraryElementUnauthorized

func NewCreateLibraryElementUnauthorized() *CreateLibraryElementUnauthorized

NewCreateLibraryElementUnauthorized creates a CreateLibraryElementUnauthorized with default headers values

func (*CreateLibraryElementUnauthorized) Error

func (*CreateLibraryElementUnauthorized) GetPayload

type DeleteLibraryElementByUIDBadRequest

type DeleteLibraryElementByUIDBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewDeleteLibraryElementByUIDBadRequest

func NewDeleteLibraryElementByUIDBadRequest() *DeleteLibraryElementByUIDBadRequest

NewDeleteLibraryElementByUIDBadRequest creates a DeleteLibraryElementByUIDBadRequest with default headers values

func (*DeleteLibraryElementByUIDBadRequest) Error

func (*DeleteLibraryElementByUIDBadRequest) GetPayload

type DeleteLibraryElementByUIDForbidden

type DeleteLibraryElementByUIDForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewDeleteLibraryElementByUIDForbidden

func NewDeleteLibraryElementByUIDForbidden() *DeleteLibraryElementByUIDForbidden

NewDeleteLibraryElementByUIDForbidden creates a DeleteLibraryElementByUIDForbidden with default headers values

func (*DeleteLibraryElementByUIDForbidden) Error

func (*DeleteLibraryElementByUIDForbidden) GetPayload

type DeleteLibraryElementByUIDInternalServerError

type DeleteLibraryElementByUIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

DeleteLibraryElementByUIDInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewDeleteLibraryElementByUIDInternalServerError

func NewDeleteLibraryElementByUIDInternalServerError() *DeleteLibraryElementByUIDInternalServerError

NewDeleteLibraryElementByUIDInternalServerError creates a DeleteLibraryElementByUIDInternalServerError with default headers values

func (*DeleteLibraryElementByUIDInternalServerError) Error

func (*DeleteLibraryElementByUIDInternalServerError) GetPayload

type DeleteLibraryElementByUIDNotFound

type DeleteLibraryElementByUIDNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewDeleteLibraryElementByUIDNotFound

func NewDeleteLibraryElementByUIDNotFound() *DeleteLibraryElementByUIDNotFound

NewDeleteLibraryElementByUIDNotFound creates a DeleteLibraryElementByUIDNotFound with default headers values

func (*DeleteLibraryElementByUIDNotFound) Error

func (*DeleteLibraryElementByUIDNotFound) GetPayload

type DeleteLibraryElementByUIDOK

type DeleteLibraryElementByUIDOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewDeleteLibraryElementByUIDOK

func NewDeleteLibraryElementByUIDOK() *DeleteLibraryElementByUIDOK

NewDeleteLibraryElementByUIDOK creates a DeleteLibraryElementByUIDOK with default headers values

func (*DeleteLibraryElementByUIDOK) Error

func (*DeleteLibraryElementByUIDOK) GetPayload

type DeleteLibraryElementByUIDParams

type DeleteLibraryElementByUIDParams struct {

	// LibraryElementUID.
	LibraryElementUID string

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

DeleteLibraryElementByUIDParams contains all the parameters to send to the API endpoint

for the delete library element by UID operation.

Typically these are written to a http.Request.

func NewDeleteLibraryElementByUIDParams

func NewDeleteLibraryElementByUIDParams() *DeleteLibraryElementByUIDParams

NewDeleteLibraryElementByUIDParams creates a new DeleteLibraryElementByUIDParams 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 NewDeleteLibraryElementByUIDParamsWithContext

func NewDeleteLibraryElementByUIDParamsWithContext(ctx context.Context) *DeleteLibraryElementByUIDParams

NewDeleteLibraryElementByUIDParamsWithContext creates a new DeleteLibraryElementByUIDParams object with the ability to set a context for a request.

func NewDeleteLibraryElementByUIDParamsWithHTTPClient

func NewDeleteLibraryElementByUIDParamsWithHTTPClient(client *http.Client) *DeleteLibraryElementByUIDParams

NewDeleteLibraryElementByUIDParamsWithHTTPClient creates a new DeleteLibraryElementByUIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLibraryElementByUIDParamsWithTimeout

func NewDeleteLibraryElementByUIDParamsWithTimeout(timeout time.Duration) *DeleteLibraryElementByUIDParams

NewDeleteLibraryElementByUIDParamsWithTimeout creates a new DeleteLibraryElementByUIDParams object with the ability to set a timeout on a request.

func (*DeleteLibraryElementByUIDParams) SetContext

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

SetContext adds the context to the delete library element by UID params

func (*DeleteLibraryElementByUIDParams) SetDefaults

func (o *DeleteLibraryElementByUIDParams) SetDefaults()

SetDefaults hydrates default values in the delete library element by UID params (not the query body).

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

func (*DeleteLibraryElementByUIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete library element by UID params

func (*DeleteLibraryElementByUIDParams) SetLibraryElementUID

func (o *DeleteLibraryElementByUIDParams) SetLibraryElementUID(libraryElementUID string)

SetLibraryElementUID adds the libraryElementUid to the delete library element by UID params

func (*DeleteLibraryElementByUIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete library element by UID params

func (*DeleteLibraryElementByUIDParams) WithContext

WithContext adds the context to the delete library element by UID params

func (*DeleteLibraryElementByUIDParams) WithDefaults

WithDefaults hydrates default values in the delete library element by UID params (not the query body).

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

func (*DeleteLibraryElementByUIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete library element by UID params

func (*DeleteLibraryElementByUIDParams) WithLibraryElementUID

func (o *DeleteLibraryElementByUIDParams) WithLibraryElementUID(libraryElementUID string) *DeleteLibraryElementByUIDParams

WithLibraryElementUID adds the libraryElementUID to the delete library element by UID params

func (*DeleteLibraryElementByUIDParams) WithTimeout

WithTimeout adds the timeout to the delete library element by UID params

func (*DeleteLibraryElementByUIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteLibraryElementByUIDReader

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

DeleteLibraryElementByUIDReader is a Reader for the DeleteLibraryElementByUID structure.

func (*DeleteLibraryElementByUIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLibraryElementByUIDUnauthorized

type DeleteLibraryElementByUIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewDeleteLibraryElementByUIDUnauthorized

func NewDeleteLibraryElementByUIDUnauthorized() *DeleteLibraryElementByUIDUnauthorized

NewDeleteLibraryElementByUIDUnauthorized creates a DeleteLibraryElementByUIDUnauthorized with default headers values

func (*DeleteLibraryElementByUIDUnauthorized) Error

func (*DeleteLibraryElementByUIDUnauthorized) GetPayload

type GetLibraryElementByNameInternalServerError

type GetLibraryElementByNameInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetLibraryElementByNameInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetLibraryElementByNameInternalServerError

func NewGetLibraryElementByNameInternalServerError() *GetLibraryElementByNameInternalServerError

NewGetLibraryElementByNameInternalServerError creates a GetLibraryElementByNameInternalServerError with default headers values

func (*GetLibraryElementByNameInternalServerError) Error

func (*GetLibraryElementByNameInternalServerError) GetPayload

type GetLibraryElementByNameNotFound

type GetLibraryElementByNameNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewGetLibraryElementByNameNotFound

func NewGetLibraryElementByNameNotFound() *GetLibraryElementByNameNotFound

NewGetLibraryElementByNameNotFound creates a GetLibraryElementByNameNotFound with default headers values

func (*GetLibraryElementByNameNotFound) Error

func (*GetLibraryElementByNameNotFound) GetPayload

type GetLibraryElementByNameOK

type GetLibraryElementByNameOK struct {
	Payload *models.LibraryElementResponse
}

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

(empty)

func NewGetLibraryElementByNameOK

func NewGetLibraryElementByNameOK() *GetLibraryElementByNameOK

NewGetLibraryElementByNameOK creates a GetLibraryElementByNameOK with default headers values

func (*GetLibraryElementByNameOK) Error

func (o *GetLibraryElementByNameOK) Error() string

func (*GetLibraryElementByNameOK) GetPayload

type GetLibraryElementByNameParams

type GetLibraryElementByNameParams struct {

	// LibraryElementName.
	LibraryElementName string

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

GetLibraryElementByNameParams contains all the parameters to send to the API endpoint

for the get library element by name operation.

Typically these are written to a http.Request.

func NewGetLibraryElementByNameParams

func NewGetLibraryElementByNameParams() *GetLibraryElementByNameParams

NewGetLibraryElementByNameParams creates a new GetLibraryElementByNameParams 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 NewGetLibraryElementByNameParamsWithContext

func NewGetLibraryElementByNameParamsWithContext(ctx context.Context) *GetLibraryElementByNameParams

NewGetLibraryElementByNameParamsWithContext creates a new GetLibraryElementByNameParams object with the ability to set a context for a request.

func NewGetLibraryElementByNameParamsWithHTTPClient

func NewGetLibraryElementByNameParamsWithHTTPClient(client *http.Client) *GetLibraryElementByNameParams

NewGetLibraryElementByNameParamsWithHTTPClient creates a new GetLibraryElementByNameParams object with the ability to set a custom HTTPClient for a request.

func NewGetLibraryElementByNameParamsWithTimeout

func NewGetLibraryElementByNameParamsWithTimeout(timeout time.Duration) *GetLibraryElementByNameParams

NewGetLibraryElementByNameParamsWithTimeout creates a new GetLibraryElementByNameParams object with the ability to set a timeout on a request.

func (*GetLibraryElementByNameParams) SetContext

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

SetContext adds the context to the get library element by name params

func (*GetLibraryElementByNameParams) SetDefaults

func (o *GetLibraryElementByNameParams) SetDefaults()

SetDefaults hydrates default values in the get library element by name params (not the query body).

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

func (*GetLibraryElementByNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get library element by name params

func (*GetLibraryElementByNameParams) SetLibraryElementName

func (o *GetLibraryElementByNameParams) SetLibraryElementName(libraryElementName string)

SetLibraryElementName adds the libraryElementName to the get library element by name params

func (*GetLibraryElementByNameParams) SetTimeout

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

SetTimeout adds the timeout to the get library element by name params

func (*GetLibraryElementByNameParams) WithContext

WithContext adds the context to the get library element by name params

func (*GetLibraryElementByNameParams) WithDefaults

WithDefaults hydrates default values in the get library element by name params (not the query body).

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

func (*GetLibraryElementByNameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get library element by name params

func (*GetLibraryElementByNameParams) WithLibraryElementName

func (o *GetLibraryElementByNameParams) WithLibraryElementName(libraryElementName string) *GetLibraryElementByNameParams

WithLibraryElementName adds the libraryElementName to the get library element by name params

func (*GetLibraryElementByNameParams) WithTimeout

WithTimeout adds the timeout to the get library element by name params

func (*GetLibraryElementByNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLibraryElementByNameReader

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

GetLibraryElementByNameReader is a Reader for the GetLibraryElementByName structure.

func (*GetLibraryElementByNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLibraryElementByNameUnauthorized

type GetLibraryElementByNameUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetLibraryElementByNameUnauthorized

func NewGetLibraryElementByNameUnauthorized() *GetLibraryElementByNameUnauthorized

NewGetLibraryElementByNameUnauthorized creates a GetLibraryElementByNameUnauthorized with default headers values

func (*GetLibraryElementByNameUnauthorized) Error

func (*GetLibraryElementByNameUnauthorized) GetPayload

type GetLibraryElementByUIDInternalServerError

type GetLibraryElementByUIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetLibraryElementByUIDInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetLibraryElementByUIDInternalServerError

func NewGetLibraryElementByUIDInternalServerError() *GetLibraryElementByUIDInternalServerError

NewGetLibraryElementByUIDInternalServerError creates a GetLibraryElementByUIDInternalServerError with default headers values

func (*GetLibraryElementByUIDInternalServerError) Error

func (*GetLibraryElementByUIDInternalServerError) GetPayload

type GetLibraryElementByUIDNotFound

type GetLibraryElementByUIDNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewGetLibraryElementByUIDNotFound

func NewGetLibraryElementByUIDNotFound() *GetLibraryElementByUIDNotFound

NewGetLibraryElementByUIDNotFound creates a GetLibraryElementByUIDNotFound with default headers values

func (*GetLibraryElementByUIDNotFound) Error

func (*GetLibraryElementByUIDNotFound) GetPayload

type GetLibraryElementByUIDOK

type GetLibraryElementByUIDOK struct {
	Payload *models.LibraryElementResponse
}

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

(empty)

func NewGetLibraryElementByUIDOK

func NewGetLibraryElementByUIDOK() *GetLibraryElementByUIDOK

NewGetLibraryElementByUIDOK creates a GetLibraryElementByUIDOK with default headers values

func (*GetLibraryElementByUIDOK) Error

func (o *GetLibraryElementByUIDOK) Error() string

func (*GetLibraryElementByUIDOK) GetPayload

type GetLibraryElementByUIDParams

type GetLibraryElementByUIDParams struct {

	// LibraryElementUID.
	LibraryElementUID string

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

GetLibraryElementByUIDParams contains all the parameters to send to the API endpoint

for the get library element by UID operation.

Typically these are written to a http.Request.

func NewGetLibraryElementByUIDParams

func NewGetLibraryElementByUIDParams() *GetLibraryElementByUIDParams

NewGetLibraryElementByUIDParams creates a new GetLibraryElementByUIDParams 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 NewGetLibraryElementByUIDParamsWithContext

func NewGetLibraryElementByUIDParamsWithContext(ctx context.Context) *GetLibraryElementByUIDParams

NewGetLibraryElementByUIDParamsWithContext creates a new GetLibraryElementByUIDParams object with the ability to set a context for a request.

func NewGetLibraryElementByUIDParamsWithHTTPClient

func NewGetLibraryElementByUIDParamsWithHTTPClient(client *http.Client) *GetLibraryElementByUIDParams

NewGetLibraryElementByUIDParamsWithHTTPClient creates a new GetLibraryElementByUIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetLibraryElementByUIDParamsWithTimeout

func NewGetLibraryElementByUIDParamsWithTimeout(timeout time.Duration) *GetLibraryElementByUIDParams

NewGetLibraryElementByUIDParamsWithTimeout creates a new GetLibraryElementByUIDParams object with the ability to set a timeout on a request.

func (*GetLibraryElementByUIDParams) SetContext

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

SetContext adds the context to the get library element by UID params

func (*GetLibraryElementByUIDParams) SetDefaults

func (o *GetLibraryElementByUIDParams) SetDefaults()

SetDefaults hydrates default values in the get library element by UID params (not the query body).

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

func (*GetLibraryElementByUIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get library element by UID params

func (*GetLibraryElementByUIDParams) SetLibraryElementUID

func (o *GetLibraryElementByUIDParams) SetLibraryElementUID(libraryElementUID string)

SetLibraryElementUID adds the libraryElementUid to the get library element by UID params

func (*GetLibraryElementByUIDParams) SetTimeout

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

SetTimeout adds the timeout to the get library element by UID params

func (*GetLibraryElementByUIDParams) WithContext

WithContext adds the context to the get library element by UID params

func (*GetLibraryElementByUIDParams) WithDefaults

WithDefaults hydrates default values in the get library element by UID params (not the query body).

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

func (*GetLibraryElementByUIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get library element by UID params

func (*GetLibraryElementByUIDParams) WithLibraryElementUID

func (o *GetLibraryElementByUIDParams) WithLibraryElementUID(libraryElementUID string) *GetLibraryElementByUIDParams

WithLibraryElementUID adds the libraryElementUID to the get library element by UID params

func (*GetLibraryElementByUIDParams) WithTimeout

WithTimeout adds the timeout to the get library element by UID params

func (*GetLibraryElementByUIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLibraryElementByUIDReader

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

GetLibraryElementByUIDReader is a Reader for the GetLibraryElementByUID structure.

func (*GetLibraryElementByUIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLibraryElementByUIDUnauthorized

type GetLibraryElementByUIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetLibraryElementByUIDUnauthorized

func NewGetLibraryElementByUIDUnauthorized() *GetLibraryElementByUIDUnauthorized

NewGetLibraryElementByUIDUnauthorized creates a GetLibraryElementByUIDUnauthorized with default headers values

func (*GetLibraryElementByUIDUnauthorized) Error

func (*GetLibraryElementByUIDUnauthorized) GetPayload

type GetLibraryElementConnectionsInternalServerError

type GetLibraryElementConnectionsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetLibraryElementConnectionsInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetLibraryElementConnectionsInternalServerError

func NewGetLibraryElementConnectionsInternalServerError() *GetLibraryElementConnectionsInternalServerError

NewGetLibraryElementConnectionsInternalServerError creates a GetLibraryElementConnectionsInternalServerError with default headers values

func (*GetLibraryElementConnectionsInternalServerError) Error

func (*GetLibraryElementConnectionsInternalServerError) GetPayload

type GetLibraryElementConnectionsNotFound

type GetLibraryElementConnectionsNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewGetLibraryElementConnectionsNotFound

func NewGetLibraryElementConnectionsNotFound() *GetLibraryElementConnectionsNotFound

NewGetLibraryElementConnectionsNotFound creates a GetLibraryElementConnectionsNotFound with default headers values

func (*GetLibraryElementConnectionsNotFound) Error

func (*GetLibraryElementConnectionsNotFound) GetPayload

type GetLibraryElementConnectionsOK

type GetLibraryElementConnectionsOK struct {
	Payload *models.LibraryElementConnectionsResponse
}

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

(empty)

func NewGetLibraryElementConnectionsOK

func NewGetLibraryElementConnectionsOK() *GetLibraryElementConnectionsOK

NewGetLibraryElementConnectionsOK creates a GetLibraryElementConnectionsOK with default headers values

func (*GetLibraryElementConnectionsOK) Error

func (*GetLibraryElementConnectionsOK) GetPayload

type GetLibraryElementConnectionsParams

type GetLibraryElementConnectionsParams struct {

	// LibraryElementUID.
	LibraryElementUID string

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

GetLibraryElementConnectionsParams contains all the parameters to send to the API endpoint

for the get library element connections operation.

Typically these are written to a http.Request.

func NewGetLibraryElementConnectionsParams

func NewGetLibraryElementConnectionsParams() *GetLibraryElementConnectionsParams

NewGetLibraryElementConnectionsParams creates a new GetLibraryElementConnectionsParams 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 NewGetLibraryElementConnectionsParamsWithContext

func NewGetLibraryElementConnectionsParamsWithContext(ctx context.Context) *GetLibraryElementConnectionsParams

NewGetLibraryElementConnectionsParamsWithContext creates a new GetLibraryElementConnectionsParams object with the ability to set a context for a request.

func NewGetLibraryElementConnectionsParamsWithHTTPClient

func NewGetLibraryElementConnectionsParamsWithHTTPClient(client *http.Client) *GetLibraryElementConnectionsParams

NewGetLibraryElementConnectionsParamsWithHTTPClient creates a new GetLibraryElementConnectionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetLibraryElementConnectionsParamsWithTimeout

func NewGetLibraryElementConnectionsParamsWithTimeout(timeout time.Duration) *GetLibraryElementConnectionsParams

NewGetLibraryElementConnectionsParamsWithTimeout creates a new GetLibraryElementConnectionsParams object with the ability to set a timeout on a request.

func (*GetLibraryElementConnectionsParams) SetContext

SetContext adds the context to the get library element connections params

func (*GetLibraryElementConnectionsParams) SetDefaults

func (o *GetLibraryElementConnectionsParams) SetDefaults()

SetDefaults hydrates default values in the get library element connections params (not the query body).

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

func (*GetLibraryElementConnectionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get library element connections params

func (*GetLibraryElementConnectionsParams) SetLibraryElementUID

func (o *GetLibraryElementConnectionsParams) SetLibraryElementUID(libraryElementUID string)

SetLibraryElementUID adds the libraryElementUid to the get library element connections params

func (*GetLibraryElementConnectionsParams) SetTimeout

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

SetTimeout adds the timeout to the get library element connections params

func (*GetLibraryElementConnectionsParams) WithContext

WithContext adds the context to the get library element connections params

func (*GetLibraryElementConnectionsParams) WithDefaults

WithDefaults hydrates default values in the get library element connections params (not the query body).

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

func (*GetLibraryElementConnectionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get library element connections params

func (*GetLibraryElementConnectionsParams) WithLibraryElementUID

func (o *GetLibraryElementConnectionsParams) WithLibraryElementUID(libraryElementUID string) *GetLibraryElementConnectionsParams

WithLibraryElementUID adds the libraryElementUID to the get library element connections params

func (*GetLibraryElementConnectionsParams) WithTimeout

WithTimeout adds the timeout to the get library element connections params

func (*GetLibraryElementConnectionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLibraryElementConnectionsReader

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

GetLibraryElementConnectionsReader is a Reader for the GetLibraryElementConnections structure.

func (*GetLibraryElementConnectionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLibraryElementConnectionsUnauthorized

type GetLibraryElementConnectionsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetLibraryElementConnectionsUnauthorized

func NewGetLibraryElementConnectionsUnauthorized() *GetLibraryElementConnectionsUnauthorized

NewGetLibraryElementConnectionsUnauthorized creates a GetLibraryElementConnectionsUnauthorized with default headers values

func (*GetLibraryElementConnectionsUnauthorized) Error

func (*GetLibraryElementConnectionsUnauthorized) GetPayload

type GetLibraryElementsInternalServerError

type GetLibraryElementsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetLibraryElementsInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetLibraryElementsInternalServerError

func NewGetLibraryElementsInternalServerError() *GetLibraryElementsInternalServerError

NewGetLibraryElementsInternalServerError creates a GetLibraryElementsInternalServerError with default headers values

func (*GetLibraryElementsInternalServerError) Error

func (*GetLibraryElementsInternalServerError) GetPayload

type GetLibraryElementsOK

type GetLibraryElementsOK struct {
	Payload *models.LibraryElementSearchResponse
}

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

(empty)

func NewGetLibraryElementsOK

func NewGetLibraryElementsOK() *GetLibraryElementsOK

NewGetLibraryElementsOK creates a GetLibraryElementsOK with default headers values

func (*GetLibraryElementsOK) Error

func (o *GetLibraryElementsOK) Error() string

func (*GetLibraryElementsOK) GetPayload

type GetLibraryElementsParams

type GetLibraryElementsParams struct {

	/* ExcludeUID.

	   Element UID to exclude from search results.
	*/
	ExcludeUID *string

	/* FolderFilter.

	   A comma separated list of folder ID(s) to filter the elements by.
	*/
	FolderFilter *string

	/* Kind.

	   Kind of element to search for.

	   Format: int64
	*/
	Kind *int64

	/* Page.

	   The page for a set of records, given that only perPage records are returned at a time. Numbering starts at 1.

	   Format: int64
	   Default: 1
	*/
	Page *int64

	/* PerPage.

	   The number of results per page.

	   Format: int64
	   Default: 100
	*/
	PerPage *int64

	/* SearchString.

	   Part of the name or description searched for.
	*/
	SearchString *string

	/* SortDirection.

	   Sort order of elements.
	*/
	SortDirection *string

	/* TypeFilter.

	   A comma separated list of types to filter the elements by
	*/
	TypeFilter *string

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

GetLibraryElementsParams contains all the parameters to send to the API endpoint

for the get library elements operation.

Typically these are written to a http.Request.

func NewGetLibraryElementsParams

func NewGetLibraryElementsParams() *GetLibraryElementsParams

NewGetLibraryElementsParams creates a new GetLibraryElementsParams 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 NewGetLibraryElementsParamsWithContext

func NewGetLibraryElementsParamsWithContext(ctx context.Context) *GetLibraryElementsParams

NewGetLibraryElementsParamsWithContext creates a new GetLibraryElementsParams object with the ability to set a context for a request.

func NewGetLibraryElementsParamsWithHTTPClient

func NewGetLibraryElementsParamsWithHTTPClient(client *http.Client) *GetLibraryElementsParams

NewGetLibraryElementsParamsWithHTTPClient creates a new GetLibraryElementsParams object with the ability to set a custom HTTPClient for a request.

func NewGetLibraryElementsParamsWithTimeout

func NewGetLibraryElementsParamsWithTimeout(timeout time.Duration) *GetLibraryElementsParams

NewGetLibraryElementsParamsWithTimeout creates a new GetLibraryElementsParams object with the ability to set a timeout on a request.

func (*GetLibraryElementsParams) SetContext

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

SetContext adds the context to the get library elements params

func (*GetLibraryElementsParams) SetDefaults

func (o *GetLibraryElementsParams) SetDefaults()

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

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

func (*GetLibraryElementsParams) SetExcludeUID

func (o *GetLibraryElementsParams) SetExcludeUID(excludeUID *string)

SetExcludeUID adds the excludeUid to the get library elements params

func (*GetLibraryElementsParams) SetFolderFilter

func (o *GetLibraryElementsParams) SetFolderFilter(folderFilter *string)

SetFolderFilter adds the folderFilter to the get library elements params

func (*GetLibraryElementsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get library elements params

func (*GetLibraryElementsParams) SetKind

func (o *GetLibraryElementsParams) SetKind(kind *int64)

SetKind adds the kind to the get library elements params

func (*GetLibraryElementsParams) SetPage

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

SetPage adds the page to the get library elements params

func (*GetLibraryElementsParams) SetPerPage

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

SetPerPage adds the perPage to the get library elements params

func (*GetLibraryElementsParams) SetSearchString

func (o *GetLibraryElementsParams) SetSearchString(searchString *string)

SetSearchString adds the searchString to the get library elements params

func (*GetLibraryElementsParams) SetSortDirection

func (o *GetLibraryElementsParams) SetSortDirection(sortDirection *string)

SetSortDirection adds the sortDirection to the get library elements params

func (*GetLibraryElementsParams) SetTimeout

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

SetTimeout adds the timeout to the get library elements params

func (*GetLibraryElementsParams) SetTypeFilter

func (o *GetLibraryElementsParams) SetTypeFilter(typeFilter *string)

SetTypeFilter adds the typeFilter to the get library elements params

func (*GetLibraryElementsParams) WithContext

WithContext adds the context to the get library elements params

func (*GetLibraryElementsParams) WithDefaults

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

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

func (*GetLibraryElementsParams) WithExcludeUID

func (o *GetLibraryElementsParams) WithExcludeUID(excludeUID *string) *GetLibraryElementsParams

WithExcludeUID adds the excludeUID to the get library elements params

func (*GetLibraryElementsParams) WithFolderFilter

func (o *GetLibraryElementsParams) WithFolderFilter(folderFilter *string) *GetLibraryElementsParams

WithFolderFilter adds the folderFilter to the get library elements params

func (*GetLibraryElementsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get library elements params

func (*GetLibraryElementsParams) WithKind

WithKind adds the kind to the get library elements params

func (*GetLibraryElementsParams) WithPage

WithPage adds the page to the get library elements params

func (*GetLibraryElementsParams) WithPerPage

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

WithPerPage adds the perPage to the get library elements params

func (*GetLibraryElementsParams) WithSearchString

func (o *GetLibraryElementsParams) WithSearchString(searchString *string) *GetLibraryElementsParams

WithSearchString adds the searchString to the get library elements params

func (*GetLibraryElementsParams) WithSortDirection

func (o *GetLibraryElementsParams) WithSortDirection(sortDirection *string) *GetLibraryElementsParams

WithSortDirection adds the sortDirection to the get library elements params

func (*GetLibraryElementsParams) WithTimeout

WithTimeout adds the timeout to the get library elements params

func (*GetLibraryElementsParams) WithTypeFilter

func (o *GetLibraryElementsParams) WithTypeFilter(typeFilter *string) *GetLibraryElementsParams

WithTypeFilter adds the typeFilter to the get library elements params

func (*GetLibraryElementsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLibraryElementsReader

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

GetLibraryElementsReader is a Reader for the GetLibraryElements structure.

func (*GetLibraryElementsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLibraryElementsUnauthorized

type GetLibraryElementsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetLibraryElementsUnauthorized

func NewGetLibraryElementsUnauthorized() *GetLibraryElementsUnauthorized

NewGetLibraryElementsUnauthorized creates a GetLibraryElementsUnauthorized with default headers values

func (*GetLibraryElementsUnauthorized) Error

func (*GetLibraryElementsUnauthorized) GetPayload

type UpdateLibraryElementBadRequest

type UpdateLibraryElementBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewUpdateLibraryElementBadRequest

func NewUpdateLibraryElementBadRequest() *UpdateLibraryElementBadRequest

NewUpdateLibraryElementBadRequest creates a UpdateLibraryElementBadRequest with default headers values

func (*UpdateLibraryElementBadRequest) Error

func (*UpdateLibraryElementBadRequest) GetPayload

type UpdateLibraryElementForbidden

type UpdateLibraryElementForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewUpdateLibraryElementForbidden

func NewUpdateLibraryElementForbidden() *UpdateLibraryElementForbidden

NewUpdateLibraryElementForbidden creates a UpdateLibraryElementForbidden with default headers values

func (*UpdateLibraryElementForbidden) Error

func (*UpdateLibraryElementForbidden) GetPayload

type UpdateLibraryElementInternalServerError

type UpdateLibraryElementInternalServerError struct {
	Payload *models.ErrorResponseBody
}

UpdateLibraryElementInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateLibraryElementInternalServerError

func NewUpdateLibraryElementInternalServerError() *UpdateLibraryElementInternalServerError

NewUpdateLibraryElementInternalServerError creates a UpdateLibraryElementInternalServerError with default headers values

func (*UpdateLibraryElementInternalServerError) Error

func (*UpdateLibraryElementInternalServerError) GetPayload

type UpdateLibraryElementNotFound

type UpdateLibraryElementNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewUpdateLibraryElementNotFound

func NewUpdateLibraryElementNotFound() *UpdateLibraryElementNotFound

NewUpdateLibraryElementNotFound creates a UpdateLibraryElementNotFound with default headers values

func (*UpdateLibraryElementNotFound) Error

func (*UpdateLibraryElementNotFound) GetPayload

type UpdateLibraryElementOK

type UpdateLibraryElementOK struct {
	Payload *models.LibraryElementResponse
}

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

(empty)

func NewUpdateLibraryElementOK

func NewUpdateLibraryElementOK() *UpdateLibraryElementOK

NewUpdateLibraryElementOK creates a UpdateLibraryElementOK with default headers values

func (*UpdateLibraryElementOK) Error

func (o *UpdateLibraryElementOK) Error() string

func (*UpdateLibraryElementOK) GetPayload

type UpdateLibraryElementParams

type UpdateLibraryElementParams struct {

	// Body.
	Body *models.PatchLibraryElementCommand

	// LibraryElementUID.
	LibraryElementUID string

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

UpdateLibraryElementParams contains all the parameters to send to the API endpoint

for the update library element operation.

Typically these are written to a http.Request.

func NewUpdateLibraryElementParams

func NewUpdateLibraryElementParams() *UpdateLibraryElementParams

NewUpdateLibraryElementParams creates a new UpdateLibraryElementParams 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 NewUpdateLibraryElementParamsWithContext

func NewUpdateLibraryElementParamsWithContext(ctx context.Context) *UpdateLibraryElementParams

NewUpdateLibraryElementParamsWithContext creates a new UpdateLibraryElementParams object with the ability to set a context for a request.

func NewUpdateLibraryElementParamsWithHTTPClient

func NewUpdateLibraryElementParamsWithHTTPClient(client *http.Client) *UpdateLibraryElementParams

NewUpdateLibraryElementParamsWithHTTPClient creates a new UpdateLibraryElementParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateLibraryElementParamsWithTimeout

func NewUpdateLibraryElementParamsWithTimeout(timeout time.Duration) *UpdateLibraryElementParams

NewUpdateLibraryElementParamsWithTimeout creates a new UpdateLibraryElementParams object with the ability to set a timeout on a request.

func (*UpdateLibraryElementParams) SetBody

SetBody adds the body to the update library element params

func (*UpdateLibraryElementParams) SetContext

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

SetContext adds the context to the update library element params

func (*UpdateLibraryElementParams) SetDefaults

func (o *UpdateLibraryElementParams) SetDefaults()

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

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

func (*UpdateLibraryElementParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update library element params

func (*UpdateLibraryElementParams) SetLibraryElementUID

func (o *UpdateLibraryElementParams) SetLibraryElementUID(libraryElementUID string)

SetLibraryElementUID adds the libraryElementUid to the update library element params

func (*UpdateLibraryElementParams) SetTimeout

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

SetTimeout adds the timeout to the update library element params

func (*UpdateLibraryElementParams) WithBody

WithBody adds the body to the update library element params

func (*UpdateLibraryElementParams) WithContext

WithContext adds the context to the update library element params

func (*UpdateLibraryElementParams) WithDefaults

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

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

func (*UpdateLibraryElementParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update library element params

func (*UpdateLibraryElementParams) WithLibraryElementUID

func (o *UpdateLibraryElementParams) WithLibraryElementUID(libraryElementUID string) *UpdateLibraryElementParams

WithLibraryElementUID adds the libraryElementUID to the update library element params

func (*UpdateLibraryElementParams) WithTimeout

WithTimeout adds the timeout to the update library element params

func (*UpdateLibraryElementParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateLibraryElementPreconditionFailed

type UpdateLibraryElementPreconditionFailed struct {
	Payload *models.ErrorResponseBody
}

UpdateLibraryElementPreconditionFailed describes a response with status code 412, with default header values.

PreconditionFailedError

func NewUpdateLibraryElementPreconditionFailed

func NewUpdateLibraryElementPreconditionFailed() *UpdateLibraryElementPreconditionFailed

NewUpdateLibraryElementPreconditionFailed creates a UpdateLibraryElementPreconditionFailed with default headers values

func (*UpdateLibraryElementPreconditionFailed) Error

func (*UpdateLibraryElementPreconditionFailed) GetPayload

type UpdateLibraryElementReader

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

UpdateLibraryElementReader is a Reader for the UpdateLibraryElement structure.

func (*UpdateLibraryElementReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLibraryElementUnauthorized

type UpdateLibraryElementUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateLibraryElementUnauthorized

func NewUpdateLibraryElementUnauthorized() *UpdateLibraryElementUnauthorized

NewUpdateLibraryElementUnauthorized creates a UpdateLibraryElementUnauthorized with default headers values

func (*UpdateLibraryElementUnauthorized) Error

func (*UpdateLibraryElementUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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