operations

package
v0.0.0-...-2c5aaa4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for operations API

func New

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

New creates a new operations API client.

func (*Client) GetItemName

func (a *Client) GetItemName(params *GetItemNameParams) (*GetItemNameOK, error)

GetItemName get item name API

func (*Client) GetItems

func (a *Client) GetItems(params *GetItemsParams) (*GetItemsOK, error)

GetItems get items API

func (*Client) GetUsers

func (a *Client) GetUsers(params *GetUsersParams) (*GetUsersOK, error)

GetUsers get users API

func (*Client) PostItem

func (a *Client) PostItem(params *PostItemParams) (*PostItemOK, error)

PostItem add a single item to the lab list

func (*Client) PostItemNameReservation

func (a *Client) PostItemNameReservation(params *PostItemNameReservationParams) (*PostItemNameReservationOK, error)

PostItemNameReservation post a reservation for a specific lab item

func (*Client) PostUser

func (a *Client) PostUser(params *PostUserParams) (*PostUserOK, error)

PostUser add a single user

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetItemNameOK

type GetItemNameOK struct {
	Payload *models.Item
}

GetItemNameOK handles this case with default header values.

get specific lab item

func NewGetItemNameOK

func NewGetItemNameOK() *GetItemNameOK

NewGetItemNameOK creates a GetItemNameOK with default headers values

func (*GetItemNameOK) Error

func (o *GetItemNameOK) Error() string

type GetItemNameParams

type GetItemNameParams struct {

	/*Name
	  name of the lab equipment

	*/
	Name string
	// contains filtered or unexported fields
}

GetItemNameParams contains all the parameters to send to the API endpoint for the get item name operation typically these are written to a http.Request

func NewGetItemNameParams

func NewGetItemNameParams() *GetItemNameParams

NewGetItemNameParams creates a new GetItemNameParams object with the default values initialized.

func NewGetItemNameParamsWithTimeout

func NewGetItemNameParamsWithTimeout(timeout time.Duration) *GetItemNameParams

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

func (*GetItemNameParams) WithName

func (o *GetItemNameParams) WithName(Name string) *GetItemNameParams

WithName adds the name to the get item name params

func (*GetItemNameParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetItemNameReader

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

GetItemNameReader is a Reader for the GetItemName structure.

func (*GetItemNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetItemsOK

type GetItemsOK struct {
	Payload models.Items
}

GetItemsOK handles this case with default header values.

list all items in the lab

func NewGetItemsOK

func NewGetItemsOK() *GetItemsOK

NewGetItemsOK creates a GetItemsOK with default headers values

func (*GetItemsOK) Error

func (o *GetItemsOK) Error() string

type GetItemsParams

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

GetItemsParams contains all the parameters to send to the API endpoint for the get items operation typically these are written to a http.Request

func NewGetItemsParams

func NewGetItemsParams() *GetItemsParams

NewGetItemsParams creates a new GetItemsParams object with the default values initialized.

func NewGetItemsParamsWithTimeout

func NewGetItemsParamsWithTimeout(timeout time.Duration) *GetItemsParams

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

func (*GetItemsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetItemsReader

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

GetItemsReader is a Reader for the GetItems structure.

func (*GetItemsReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetUsersOK

type GetUsersOK struct {
	Payload models.Users
}

GetUsersOK handles this case with default header values.

list all users in the lab

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Error

func (o *GetUsersOK) Error() string

type GetUsersParams

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

GetUsersParams contains all the parameters to send to the API endpoint for the get users operation typically these are written to a http.Request

func NewGetUsersParams

func NewGetUsersParams() *GetUsersParams

NewGetUsersParams creates a new GetUsersParams object with the default values initialized.

func NewGetUsersParamsWithTimeout

func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams

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

func (*GetUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUsersReader

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

GetUsersReader is a Reader for the GetUsers structure.

func (*GetUsersReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostItemBadRequest

type PostItemBadRequest struct {
	Payload string
}

PostItemBadRequest handles this case with default header values.

Error

func NewPostItemBadRequest

func NewPostItemBadRequest() *PostItemBadRequest

NewPostItemBadRequest creates a PostItemBadRequest with default headers values

func (*PostItemBadRequest) Error

func (o *PostItemBadRequest) Error() string

type PostItemNameReservationBadRequest

type PostItemNameReservationBadRequest struct {
	Payload string
}

PostItemNameReservationBadRequest handles this case with default header values.

Error

func NewPostItemNameReservationBadRequest

func NewPostItemNameReservationBadRequest() *PostItemNameReservationBadRequest

NewPostItemNameReservationBadRequest creates a PostItemNameReservationBadRequest with default headers values

func (*PostItemNameReservationBadRequest) Error

type PostItemNameReservationOK

type PostItemNameReservationOK struct {
	Payload *models.Reservation
}

PostItemNameReservationOK handles this case with default header values.

Accepted

func NewPostItemNameReservationOK

func NewPostItemNameReservationOK() *PostItemNameReservationOK

NewPostItemNameReservationOK creates a PostItemNameReservationOK with default headers values

func (*PostItemNameReservationOK) Error

func (o *PostItemNameReservationOK) Error() string

type PostItemNameReservationParams

type PostItemNameReservationParams struct {

	/*Name
	  name of the lab equipment

	*/
	Name string
	/*Reservation
	  representation of the reservation to add

	*/
	Reservation *models.Reservation
	// contains filtered or unexported fields
}

PostItemNameReservationParams contains all the parameters to send to the API endpoint for the post item name reservation operation typically these are written to a http.Request

func NewPostItemNameReservationParams

func NewPostItemNameReservationParams() *PostItemNameReservationParams

NewPostItemNameReservationParams creates a new PostItemNameReservationParams object with the default values initialized.

func NewPostItemNameReservationParamsWithTimeout

func NewPostItemNameReservationParamsWithTimeout(timeout time.Duration) *PostItemNameReservationParams

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

func (*PostItemNameReservationParams) WithName

WithName adds the name to the post item name reservation params

func (*PostItemNameReservationParams) WithReservation

WithReservation adds the reservation to the post item name reservation params

func (*PostItemNameReservationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostItemNameReservationReader

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

PostItemNameReservationReader is a Reader for the PostItemNameReservation structure.

func (*PostItemNameReservationReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostItemOK

type PostItemOK struct {
	Payload *models.Item
}

PostItemOK handles this case with default header values.

Accepted

func NewPostItemOK

func NewPostItemOK() *PostItemOK

NewPostItemOK creates a PostItemOK with default headers values

func (*PostItemOK) Error

func (o *PostItemOK) Error() string

type PostItemParams

type PostItemParams struct {

	/*Additem
	  representation of the item to add

	*/
	Additem *models.Item
	// contains filtered or unexported fields
}

PostItemParams contains all the parameters to send to the API endpoint for the post item operation typically these are written to a http.Request

func NewPostItemParams

func NewPostItemParams() *PostItemParams

NewPostItemParams creates a new PostItemParams object with the default values initialized.

func NewPostItemParamsWithTimeout

func NewPostItemParamsWithTimeout(timeout time.Duration) *PostItemParams

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

func (*PostItemParams) WithAdditem

func (o *PostItemParams) WithAdditem(Additem *models.Item) *PostItemParams

WithAdditem adds the additem to the post item params

func (*PostItemParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostItemReader

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

PostItemReader is a Reader for the PostItem structure.

func (*PostItemReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostUserBadRequest

type PostUserBadRequest struct {
	Payload string
}

PostUserBadRequest handles this case with default header values.

Error

func NewPostUserBadRequest

func NewPostUserBadRequest() *PostUserBadRequest

NewPostUserBadRequest creates a PostUserBadRequest with default headers values

func (*PostUserBadRequest) Error

func (o *PostUserBadRequest) Error() string

type PostUserOK

type PostUserOK struct {
	Payload *models.User
}

PostUserOK handles this case with default header values.

Accepted

func NewPostUserOK

func NewPostUserOK() *PostUserOK

NewPostUserOK creates a PostUserOK with default headers values

func (*PostUserOK) Error

func (o *PostUserOK) Error() string

type PostUserParams

type PostUserParams struct {

	/*Adduser
	  representation of the user to add

	*/
	Adduser *models.User
	// contains filtered or unexported fields
}

PostUserParams contains all the parameters to send to the API endpoint for the post user operation typically these are written to a http.Request

func NewPostUserParams

func NewPostUserParams() *PostUserParams

NewPostUserParams creates a new PostUserParams object with the default values initialized.

func NewPostUserParamsWithTimeout

func NewPostUserParamsWithTimeout(timeout time.Duration) *PostUserParams

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

func (*PostUserParams) WithAdduser

func (o *PostUserParams) WithAdduser(Adduser *models.User) *PostUserParams

WithAdduser adds the adduser to the post user params

func (*PostUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostUserReader

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

PostUserReader is a Reader for the PostUser structure.

func (*PostUserReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

Jump to

Keyboard shortcuts

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