item_type

package
v0.0.0-...-281c92d Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const CreateItemTypeCreatedCode int = 201

CreateItemTypeCreatedCode is the HTTP code returned for type CreateItemTypeCreated

View Source
const DeleteItemTypeOKCode int = 200

DeleteItemTypeOKCode is the HTTP code returned for type DeleteItemTypeOK

View Source
const DuplicateItemTypeOKCode int = 200

DuplicateItemTypeOKCode is the HTTP code returned for type DuplicateItemTypeOK

View Source
const GetItemTypeOKCode int = 200

GetItemTypeOKCode is the HTTP code returned for type GetItemTypeOK

View Source
const GetItemTypesOKCode int = 200

GetItemTypesOKCode is the HTTP code returned for type GetItemTypesOK

View Source
const UpdateItemTypeOKCode int = 200

UpdateItemTypeOKCode is the HTTP code returned for type UpdateItemTypeOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateItemType

type CreateItemType struct {
	Context *middleware.Context
	Handler CreateItemTypeHandler
}

CreateItemType swagger:route POST /projects/{projectId}/item-types item-type createItemType

Create a model

func NewCreateItemType

func NewCreateItemType(ctx *middleware.Context, handler CreateItemTypeHandler) *CreateItemType

NewCreateItemType creates a new http.Handler for the create item type operation

func (*CreateItemType) ServeHTTP

func (o *CreateItemType) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateItemTypeCreated

type CreateItemTypeCreated struct {

	/*
	  In: Body
	*/
	Payload *models.ItemTypeResponse `json:"body,omitempty"`
}

CreateItemTypeCreated Created

swagger:response createItemTypeCreated

func NewCreateItemTypeCreated

func NewCreateItemTypeCreated() *CreateItemTypeCreated

NewCreateItemTypeCreated creates CreateItemTypeCreated with default headers values

func (*CreateItemTypeCreated) SetPayload

func (o *CreateItemTypeCreated) SetPayload(payload *models.ItemTypeResponse)

SetPayload sets the payload to the create item type created response

func (*CreateItemTypeCreated) WithPayload

WithPayload adds the payload to the create item type created response

func (*CreateItemTypeCreated) WriteResponse

func (o *CreateItemTypeCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateItemTypeDefault

type CreateItemTypeDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateItemTypeDefault unexpected error

swagger:response createItemTypeDefault

func NewCreateItemTypeDefault

func NewCreateItemTypeDefault(code int) *CreateItemTypeDefault

NewCreateItemTypeDefault creates CreateItemTypeDefault with default headers values

func (*CreateItemTypeDefault) SetPayload

func (o *CreateItemTypeDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create item type default response

func (*CreateItemTypeDefault) SetStatusCode

func (o *CreateItemTypeDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create item type default response

func (*CreateItemTypeDefault) WithPayload

func (o *CreateItemTypeDefault) WithPayload(payload *models.Error) *CreateItemTypeDefault

WithPayload adds the payload to the create item type default response

func (*CreateItemTypeDefault) WithStatusCode

func (o *CreateItemTypeDefault) WithStatusCode(code int) *CreateItemTypeDefault

WithStatusCode adds the status to the create item type default response

func (*CreateItemTypeDefault) WriteResponse

func (o *CreateItemTypeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateItemTypeHandler

type CreateItemTypeHandler interface {
	Handle(CreateItemTypeParams) middleware.Responder
}

CreateItemTypeHandler interface for that can handle valid create item type params

type CreateItemTypeHandlerFunc

type CreateItemTypeHandlerFunc func(CreateItemTypeParams) middleware.Responder

CreateItemTypeHandlerFunc turns a function with the right signature into a create item type handler

func (CreateItemTypeHandlerFunc) Handle

Handle executing the request and returning a response

type CreateItemTypeParams

type CreateItemTypeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The model details
	  Required: true
	  In: body
	*/
	Body *models.ItemTypeRequest
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

CreateItemTypeParams contains all the bound params for the create item type operation typically these are obtained from a http.Request

swagger:parameters createItemType

func NewCreateItemTypeParams

func NewCreateItemTypeParams() CreateItemTypeParams

NewCreateItemTypeParams creates a new CreateItemTypeParams object no default values defined in spec.

func (*CreateItemTypeParams) BindRequest

func (o *CreateItemTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateItemTypeParams() beforehand.

type CreateItemTypeURL

type CreateItemTypeURL struct {
	ProjectID string
	// contains filtered or unexported fields
}

CreateItemTypeURL generates an URL for the create item type operation

func (*CreateItemTypeURL) Build

func (o *CreateItemTypeURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateItemTypeURL) BuildFull

func (o *CreateItemTypeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateItemTypeURL) Must

func (o *CreateItemTypeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateItemTypeURL) SetBasePath

func (o *CreateItemTypeURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateItemTypeURL) String

func (o *CreateItemTypeURL) String() string

String returns the string representation of the path with query string

func (*CreateItemTypeURL) StringFull

func (o *CreateItemTypeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateItemTypeURL) WithBasePath

func (o *CreateItemTypeURL) WithBasePath(bp string) *CreateItemTypeURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteItemType

type DeleteItemType struct {
	Context *middleware.Context
	Handler DeleteItemTypeHandler
}

DeleteItemType swagger:route DELETE /projects/{projectId}/item-types/{id} item-type deleteItemType

Delete a model

func NewDeleteItemType

func NewDeleteItemType(ctx *middleware.Context, handler DeleteItemTypeHandler) *DeleteItemType

NewDeleteItemType creates a new http.Handler for the delete item type operation

func (*DeleteItemType) ServeHTTP

func (o *DeleteItemType) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteItemTypeDefault

type DeleteItemTypeDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteItemTypeDefault unexpected error

swagger:response deleteItemTypeDefault

func NewDeleteItemTypeDefault

func NewDeleteItemTypeDefault(code int) *DeleteItemTypeDefault

NewDeleteItemTypeDefault creates DeleteItemTypeDefault with default headers values

func (*DeleteItemTypeDefault) SetPayload

func (o *DeleteItemTypeDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete item type default response

func (*DeleteItemTypeDefault) SetStatusCode

func (o *DeleteItemTypeDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete item type default response

func (*DeleteItemTypeDefault) WithPayload

func (o *DeleteItemTypeDefault) WithPayload(payload *models.Error) *DeleteItemTypeDefault

WithPayload adds the payload to the delete item type default response

func (*DeleteItemTypeDefault) WithStatusCode

func (o *DeleteItemTypeDefault) WithStatusCode(code int) *DeleteItemTypeDefault

WithStatusCode adds the status to the delete item type default response

func (*DeleteItemTypeDefault) WriteResponse

func (o *DeleteItemTypeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteItemTypeHandler

type DeleteItemTypeHandler interface {
	Handle(DeleteItemTypeParams) middleware.Responder
}

DeleteItemTypeHandler interface for that can handle valid delete item type params

type DeleteItemTypeHandlerFunc

type DeleteItemTypeHandlerFunc func(DeleteItemTypeParams) middleware.Responder

DeleteItemTypeHandlerFunc turns a function with the right signature into a delete item type handler

func (DeleteItemTypeHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteItemTypeOK

type DeleteItemTypeOK struct {

	/*
	  In: Body
	*/
	Payload *models.ItemTypeResponse `json:"body,omitempty"`
}

DeleteItemTypeOK The model details

swagger:response deleteItemTypeOK

func NewDeleteItemTypeOK

func NewDeleteItemTypeOK() *DeleteItemTypeOK

NewDeleteItemTypeOK creates DeleteItemTypeOK with default headers values

func (*DeleteItemTypeOK) SetPayload

func (o *DeleteItemTypeOK) SetPayload(payload *models.ItemTypeResponse)

SetPayload sets the payload to the delete item type o k response

func (*DeleteItemTypeOK) WithPayload

func (o *DeleteItemTypeOK) WithPayload(payload *models.ItemTypeResponse) *DeleteItemTypeOK

WithPayload adds the payload to the delete item type o k response

func (*DeleteItemTypeOK) WriteResponse

func (o *DeleteItemTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteItemTypeParams

type DeleteItemTypeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The model id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

DeleteItemTypeParams contains all the bound params for the delete item type operation typically these are obtained from a http.Request

swagger:parameters deleteItemType

func NewDeleteItemTypeParams

func NewDeleteItemTypeParams() DeleteItemTypeParams

NewDeleteItemTypeParams creates a new DeleteItemTypeParams object no default values defined in spec.

func (*DeleteItemTypeParams) BindRequest

func (o *DeleteItemTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteItemTypeParams() beforehand.

type DeleteItemTypeURL

type DeleteItemTypeURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

DeleteItemTypeURL generates an URL for the delete item type operation

func (*DeleteItemTypeURL) Build

func (o *DeleteItemTypeURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteItemTypeURL) BuildFull

func (o *DeleteItemTypeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteItemTypeURL) Must

func (o *DeleteItemTypeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteItemTypeURL) SetBasePath

func (o *DeleteItemTypeURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteItemTypeURL) String

func (o *DeleteItemTypeURL) String() string

String returns the string representation of the path with query string

func (*DeleteItemTypeURL) StringFull

func (o *DeleteItemTypeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteItemTypeURL) WithBasePath

func (o *DeleteItemTypeURL) WithBasePath(bp string) *DeleteItemTypeURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DuplicateItemType

type DuplicateItemType struct {
	Context *middleware.Context
	Handler DuplicateItemTypeHandler
}

DuplicateItemType swagger:route POST /projects/{projectId}/item-types/{id}/duplicate item-type duplicateItemType

Duplicate a model

func NewDuplicateItemType

func NewDuplicateItemType(ctx *middleware.Context, handler DuplicateItemTypeHandler) *DuplicateItemType

NewDuplicateItemType creates a new http.Handler for the duplicate item type operation

func (*DuplicateItemType) ServeHTTP

func (o *DuplicateItemType) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DuplicateItemTypeDefault

type DuplicateItemTypeDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DuplicateItemTypeDefault unexpected error

swagger:response duplicateItemTypeDefault

func NewDuplicateItemTypeDefault

func NewDuplicateItemTypeDefault(code int) *DuplicateItemTypeDefault

NewDuplicateItemTypeDefault creates DuplicateItemTypeDefault with default headers values

func (*DuplicateItemTypeDefault) SetPayload

func (o *DuplicateItemTypeDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the duplicate item type default response

func (*DuplicateItemTypeDefault) SetStatusCode

func (o *DuplicateItemTypeDefault) SetStatusCode(code int)

SetStatusCode sets the status to the duplicate item type default response

func (*DuplicateItemTypeDefault) WithPayload

WithPayload adds the payload to the duplicate item type default response

func (*DuplicateItemTypeDefault) WithStatusCode

func (o *DuplicateItemTypeDefault) WithStatusCode(code int) *DuplicateItemTypeDefault

WithStatusCode adds the status to the duplicate item type default response

func (*DuplicateItemTypeDefault) WriteResponse

func (o *DuplicateItemTypeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DuplicateItemTypeHandler

type DuplicateItemTypeHandler interface {
	Handle(DuplicateItemTypeParams) middleware.Responder
}

DuplicateItemTypeHandler interface for that can handle valid duplicate item type params

type DuplicateItemTypeHandlerFunc

type DuplicateItemTypeHandlerFunc func(DuplicateItemTypeParams) middleware.Responder

DuplicateItemTypeHandlerFunc turns a function with the right signature into a duplicate item type handler

func (DuplicateItemTypeHandlerFunc) Handle

Handle executing the request and returning a response

type DuplicateItemTypeOK

type DuplicateItemTypeOK struct {

	/*
	  In: Body
	*/
	Payload *models.ItemTypeResponse `json:"body,omitempty"`
}

DuplicateItemTypeOK The model details

swagger:response duplicateItemTypeOK

func NewDuplicateItemTypeOK

func NewDuplicateItemTypeOK() *DuplicateItemTypeOK

NewDuplicateItemTypeOK creates DuplicateItemTypeOK with default headers values

func (*DuplicateItemTypeOK) SetPayload

func (o *DuplicateItemTypeOK) SetPayload(payload *models.ItemTypeResponse)

SetPayload sets the payload to the duplicate item type o k response

func (*DuplicateItemTypeOK) WithPayload

WithPayload adds the payload to the duplicate item type o k response

func (*DuplicateItemTypeOK) WriteResponse

func (o *DuplicateItemTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DuplicateItemTypeParams

type DuplicateItemTypeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The model id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

DuplicateItemTypeParams contains all the bound params for the duplicate item type operation typically these are obtained from a http.Request

swagger:parameters duplicateItemType

func NewDuplicateItemTypeParams

func NewDuplicateItemTypeParams() DuplicateItemTypeParams

NewDuplicateItemTypeParams creates a new DuplicateItemTypeParams object no default values defined in spec.

func (*DuplicateItemTypeParams) BindRequest

func (o *DuplicateItemTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDuplicateItemTypeParams() beforehand.

type DuplicateItemTypeURL

type DuplicateItemTypeURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

DuplicateItemTypeURL generates an URL for the duplicate item type operation

func (*DuplicateItemTypeURL) Build

func (o *DuplicateItemTypeURL) Build() (*url.URL, error)

Build a url path and query string

func (*DuplicateItemTypeURL) BuildFull

func (o *DuplicateItemTypeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DuplicateItemTypeURL) Must

func (o *DuplicateItemTypeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DuplicateItemTypeURL) SetBasePath

func (o *DuplicateItemTypeURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DuplicateItemTypeURL) String

func (o *DuplicateItemTypeURL) String() string

String returns the string representation of the path with query string

func (*DuplicateItemTypeURL) StringFull

func (o *DuplicateItemTypeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DuplicateItemTypeURL) WithBasePath

func (o *DuplicateItemTypeURL) WithBasePath(bp string) *DuplicateItemTypeURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetItemType

type GetItemType struct {
	Context *middleware.Context
	Handler GetItemTypeHandler
}

GetItemType swagger:route GET /projects/{projectId}/item-types/{id} item-type getItemType

Get a model

func NewGetItemType

func NewGetItemType(ctx *middleware.Context, handler GetItemTypeHandler) *GetItemType

NewGetItemType creates a new http.Handler for the get item type operation

func (*GetItemType) ServeHTTP

func (o *GetItemType) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetItemTypeDefault

type GetItemTypeDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetItemTypeDefault unexpected error

swagger:response getItemTypeDefault

func NewGetItemTypeDefault

func NewGetItemTypeDefault(code int) *GetItemTypeDefault

NewGetItemTypeDefault creates GetItemTypeDefault with default headers values

func (*GetItemTypeDefault) SetPayload

func (o *GetItemTypeDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get item type default response

func (*GetItemTypeDefault) SetStatusCode

func (o *GetItemTypeDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get item type default response

func (*GetItemTypeDefault) WithPayload

func (o *GetItemTypeDefault) WithPayload(payload *models.Error) *GetItemTypeDefault

WithPayload adds the payload to the get item type default response

func (*GetItemTypeDefault) WithStatusCode

func (o *GetItemTypeDefault) WithStatusCode(code int) *GetItemTypeDefault

WithStatusCode adds the status to the get item type default response

func (*GetItemTypeDefault) WriteResponse

func (o *GetItemTypeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetItemTypeHandler

type GetItemTypeHandler interface {
	Handle(GetItemTypeParams) middleware.Responder
}

GetItemTypeHandler interface for that can handle valid get item type params

type GetItemTypeHandlerFunc

type GetItemTypeHandlerFunc func(GetItemTypeParams) middleware.Responder

GetItemTypeHandlerFunc turns a function with the right signature into a get item type handler

func (GetItemTypeHandlerFunc) Handle

Handle executing the request and returning a response

type GetItemTypeOK

type GetItemTypeOK struct {

	/*
	  In: Body
	*/
	Payload *models.ItemTypeResponse `json:"body,omitempty"`
}

GetItemTypeOK The model details

swagger:response getItemTypeOK

func NewGetItemTypeOK

func NewGetItemTypeOK() *GetItemTypeOK

NewGetItemTypeOK creates GetItemTypeOK with default headers values

func (*GetItemTypeOK) SetPayload

func (o *GetItemTypeOK) SetPayload(payload *models.ItemTypeResponse)

SetPayload sets the payload to the get item type o k response

func (*GetItemTypeOK) WithPayload

func (o *GetItemTypeOK) WithPayload(payload *models.ItemTypeResponse) *GetItemTypeOK

WithPayload adds the payload to the get item type o k response

func (*GetItemTypeOK) WriteResponse

func (o *GetItemTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetItemTypeParams

type GetItemTypeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The model id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

GetItemTypeParams contains all the bound params for the get item type operation typically these are obtained from a http.Request

swagger:parameters getItemType

func NewGetItemTypeParams

func NewGetItemTypeParams() GetItemTypeParams

NewGetItemTypeParams creates a new GetItemTypeParams object no default values defined in spec.

func (*GetItemTypeParams) BindRequest

func (o *GetItemTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetItemTypeParams() beforehand.

type GetItemTypeURL

type GetItemTypeURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

GetItemTypeURL generates an URL for the get item type operation

func (*GetItemTypeURL) Build

func (o *GetItemTypeURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetItemTypeURL) BuildFull

func (o *GetItemTypeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetItemTypeURL) Must

func (o *GetItemTypeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetItemTypeURL) SetBasePath

func (o *GetItemTypeURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetItemTypeURL) String

func (o *GetItemTypeURL) String() string

String returns the string representation of the path with query string

func (*GetItemTypeURL) StringFull

func (o *GetItemTypeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetItemTypeURL) WithBasePath

func (o *GetItemTypeURL) WithBasePath(bp string) *GetItemTypeURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetItemTypes

type GetItemTypes struct {
	Context *middleware.Context
	Handler GetItemTypesHandler
}

GetItemTypes swagger:route GET /projects/{projectId}/item-types item-type getItemTypes

Get the item types for the project

func NewGetItemTypes

func NewGetItemTypes(ctx *middleware.Context, handler GetItemTypesHandler) *GetItemTypes

NewGetItemTypes creates a new http.Handler for the get item types operation

func (*GetItemTypes) ServeHTTP

func (o *GetItemTypes) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetItemTypesDefault

type GetItemTypesDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetItemTypesDefault unexpected error

swagger:response getItemTypesDefault

func NewGetItemTypesDefault

func NewGetItemTypesDefault(code int) *GetItemTypesDefault

NewGetItemTypesDefault creates GetItemTypesDefault with default headers values

func (*GetItemTypesDefault) SetPayload

func (o *GetItemTypesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get item types default response

func (*GetItemTypesDefault) SetStatusCode

func (o *GetItemTypesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get item types default response

func (*GetItemTypesDefault) WithPayload

func (o *GetItemTypesDefault) WithPayload(payload *models.Error) *GetItemTypesDefault

WithPayload adds the payload to the get item types default response

func (*GetItemTypesDefault) WithStatusCode

func (o *GetItemTypesDefault) WithStatusCode(code int) *GetItemTypesDefault

WithStatusCode adds the status to the get item types default response

func (*GetItemTypesDefault) WriteResponse

func (o *GetItemTypesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetItemTypesHandler

type GetItemTypesHandler interface {
	Handle(GetItemTypesParams) middleware.Responder
}

GetItemTypesHandler interface for that can handle valid get item types params

type GetItemTypesHandlerFunc

type GetItemTypesHandlerFunc func(GetItemTypesParams) middleware.Responder

GetItemTypesHandlerFunc turns a function with the right signature into a get item types handler

func (GetItemTypesHandlerFunc) Handle

Handle executing the request and returning a response

type GetItemTypesOK

type GetItemTypesOK struct {

	/*
	  In: Body
	*/
	Payload *models.ItemTypesResponse `json:"body,omitempty"`
}

GetItemTypesOK The item type list

swagger:response getItemTypesOK

func NewGetItemTypesOK

func NewGetItemTypesOK() *GetItemTypesOK

NewGetItemTypesOK creates GetItemTypesOK with default headers values

func (*GetItemTypesOK) SetPayload

func (o *GetItemTypesOK) SetPayload(payload *models.ItemTypesResponse)

SetPayload sets the payload to the get item types o k response

func (*GetItemTypesOK) WithPayload

func (o *GetItemTypesOK) WithPayload(payload *models.ItemTypesResponse) *GetItemTypesOK

WithPayload adds the payload to the get item types o k response

func (*GetItemTypesOK) WriteResponse

func (o *GetItemTypesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetItemTypesParams

type GetItemTypesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

GetItemTypesParams contains all the bound params for the get item types operation typically these are obtained from a http.Request

swagger:parameters getItemTypes

func NewGetItemTypesParams

func NewGetItemTypesParams() GetItemTypesParams

NewGetItemTypesParams creates a new GetItemTypesParams object no default values defined in spec.

func (*GetItemTypesParams) BindRequest

func (o *GetItemTypesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetItemTypesParams() beforehand.

type GetItemTypesURL

type GetItemTypesURL struct {
	ProjectID string
	// contains filtered or unexported fields
}

GetItemTypesURL generates an URL for the get item types operation

func (*GetItemTypesURL) Build

func (o *GetItemTypesURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetItemTypesURL) BuildFull

func (o *GetItemTypesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetItemTypesURL) Must

func (o *GetItemTypesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetItemTypesURL) SetBasePath

func (o *GetItemTypesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetItemTypesURL) String

func (o *GetItemTypesURL) String() string

String returns the string representation of the path with query string

func (*GetItemTypesURL) StringFull

func (o *GetItemTypesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetItemTypesURL) WithBasePath

func (o *GetItemTypesURL) WithBasePath(bp string) *GetItemTypesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateItemType

type UpdateItemType struct {
	Context *middleware.Context
	Handler UpdateItemTypeHandler
}

UpdateItemType swagger:route PUT /projects/{projectId}/item-types/{id} item-type updateItemType

Update a model

func NewUpdateItemType

func NewUpdateItemType(ctx *middleware.Context, handler UpdateItemTypeHandler) *UpdateItemType

NewUpdateItemType creates a new http.Handler for the update item type operation

func (*UpdateItemType) ServeHTTP

func (o *UpdateItemType) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateItemTypeDefault

type UpdateItemTypeDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateItemTypeDefault unexpected error

swagger:response updateItemTypeDefault

func NewUpdateItemTypeDefault

func NewUpdateItemTypeDefault(code int) *UpdateItemTypeDefault

NewUpdateItemTypeDefault creates UpdateItemTypeDefault with default headers values

func (*UpdateItemTypeDefault) SetPayload

func (o *UpdateItemTypeDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update item type default response

func (*UpdateItemTypeDefault) SetStatusCode

func (o *UpdateItemTypeDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update item type default response

func (*UpdateItemTypeDefault) WithPayload

func (o *UpdateItemTypeDefault) WithPayload(payload *models.Error) *UpdateItemTypeDefault

WithPayload adds the payload to the update item type default response

func (*UpdateItemTypeDefault) WithStatusCode

func (o *UpdateItemTypeDefault) WithStatusCode(code int) *UpdateItemTypeDefault

WithStatusCode adds the status to the update item type default response

func (*UpdateItemTypeDefault) WriteResponse

func (o *UpdateItemTypeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateItemTypeHandler

type UpdateItemTypeHandler interface {
	Handle(UpdateItemTypeParams) middleware.Responder
}

UpdateItemTypeHandler interface for that can handle valid update item type params

type UpdateItemTypeHandlerFunc

type UpdateItemTypeHandlerFunc func(UpdateItemTypeParams) middleware.Responder

UpdateItemTypeHandlerFunc turns a function with the right signature into a update item type handler

func (UpdateItemTypeHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateItemTypeOK

type UpdateItemTypeOK struct {

	/*
	  In: Body
	*/
	Payload *models.ItemTypeResponse `json:"body,omitempty"`
}

UpdateItemTypeOK The model details

swagger:response updateItemTypeOK

func NewUpdateItemTypeOK

func NewUpdateItemTypeOK() *UpdateItemTypeOK

NewUpdateItemTypeOK creates UpdateItemTypeOK with default headers values

func (*UpdateItemTypeOK) SetPayload

func (o *UpdateItemTypeOK) SetPayload(payload *models.ItemTypeResponse)

SetPayload sets the payload to the update item type o k response

func (*UpdateItemTypeOK) WithPayload

func (o *UpdateItemTypeOK) WithPayload(payload *models.ItemTypeResponse) *UpdateItemTypeOK

WithPayload adds the payload to the update item type o k response

func (*UpdateItemTypeOK) WriteResponse

func (o *UpdateItemTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateItemTypeParams

type UpdateItemTypeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The model details
	  In: body
	*/
	Body *models.ItemTypeRequest
	/*The model id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

UpdateItemTypeParams contains all the bound params for the update item type operation typically these are obtained from a http.Request

swagger:parameters updateItemType

func NewUpdateItemTypeParams

func NewUpdateItemTypeParams() UpdateItemTypeParams

NewUpdateItemTypeParams creates a new UpdateItemTypeParams object no default values defined in spec.

func (*UpdateItemTypeParams) BindRequest

func (o *UpdateItemTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateItemTypeParams() beforehand.

type UpdateItemTypeURL

type UpdateItemTypeURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

UpdateItemTypeURL generates an URL for the update item type operation

func (*UpdateItemTypeURL) Build

func (o *UpdateItemTypeURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateItemTypeURL) BuildFull

func (o *UpdateItemTypeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateItemTypeURL) Must

func (o *UpdateItemTypeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateItemTypeURL) SetBasePath

func (o *UpdateItemTypeURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateItemTypeURL) String

func (o *UpdateItemTypeURL) String() string

String returns the string representation of the path with query string

func (*UpdateItemTypeURL) StringFull

func (o *UpdateItemTypeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateItemTypeURL) WithBasePath

func (o *UpdateItemTypeURL) WithBasePath(bp string) *UpdateItemTypeURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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