userplant

package
v0.0.0-...-f0786df Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateUserPlantOKCode int = 200

CreateUserPlantOKCode is the HTTP code returned for type CreateUserPlantOK

View Source
const DeleteUserPlantOKCode int = 200

DeleteUserPlantOKCode is the HTTP code returned for type DeleteUserPlantOK

View Source
const GetUserPlantByIDOKCode int = 200

GetUserPlantByIDOKCode is the HTTP code returned for type GetUserPlantByIDOK

View Source
const GetUserPlantsBadRequestCode int = 400

GetUserPlantsBadRequestCode is the HTTP code returned for type GetUserPlantsBadRequest

View Source
const GetUserPlantsNotFoundCode int = 404

GetUserPlantsNotFoundCode is the HTTP code returned for type GetUserPlantsNotFound

View Source
const GetUserPlantsOKCode int = 200

GetUserPlantsOKCode is the HTTP code returned for type GetUserPlantsOK

View Source
const UpdateUserPlantOKCode int = 200

UpdateUserPlantOKCode is the HTTP code returned for type UpdateUserPlantOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserPlant

type CreateUserPlant struct {
	Context *middleware.Context
	Handler CreateUserPlantHandler
}
CreateUserPlant swagger:route POST /api/v1/user/plants userplant createUserPlant

Add a new user's plant

Add a new user's plant

func NewCreateUserPlant

func NewCreateUserPlant(ctx *middleware.Context, handler CreateUserPlantHandler) *CreateUserPlant

NewCreateUserPlant creates a new http.Handler for the create user plant operation

func (*CreateUserPlant) ServeHTTP

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

type CreateUserPlantDefault

type CreateUserPlantDefault struct {

	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

CreateUserPlantDefault unexpected error

swagger:response createUserPlantDefault

func NewCreateUserPlantDefault

func NewCreateUserPlantDefault(code int) *CreateUserPlantDefault

NewCreateUserPlantDefault creates CreateUserPlantDefault with default headers values

func (*CreateUserPlantDefault) SetPayload

func (o *CreateUserPlantDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create user plant default response

func (*CreateUserPlantDefault) SetStatusCode

func (o *CreateUserPlantDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create user plant default response

func (*CreateUserPlantDefault) SetXRequestID

func (o *CreateUserPlantDefault) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create user plant default response

func (*CreateUserPlantDefault) WithPayload

WithPayload adds the payload to the create user plant default response

func (*CreateUserPlantDefault) WithStatusCode

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

WithStatusCode adds the status to the create user plant default response

func (*CreateUserPlantDefault) WithXRequestID

func (o *CreateUserPlantDefault) WithXRequestID(xRequestID string) *CreateUserPlantDefault

WithXRequestID adds the xRequestId to the create user plant default response

func (*CreateUserPlantDefault) WriteResponse

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

WriteResponse to the client

type CreateUserPlantHandler

type CreateUserPlantHandler interface {
	Handle(CreateUserPlantParams) middleware.Responder
}

CreateUserPlantHandler interface for that can handle valid create user plant params

type CreateUserPlantHandlerFunc

type CreateUserPlantHandlerFunc func(CreateUserPlantParams) middleware.Responder

CreateUserPlantHandlerFunc turns a function with the right signature into a create user plant handler

func (CreateUserPlantHandlerFunc) Handle

Handle executing the request and returning a response

type CreateUserPlantOK

type CreateUserPlantOK struct {
	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

CreateUserPlantOK Plant added

swagger:response createUserPlantOK

func NewCreateUserPlantOK

func NewCreateUserPlantOK() *CreateUserPlantOK

NewCreateUserPlantOK creates CreateUserPlantOK with default headers values

func (*CreateUserPlantOK) SetPayload

func (o *CreateUserPlantOK) SetPayload(payload *models.UserPlant)

SetPayload sets the payload to the create user plant o k response

func (*CreateUserPlantOK) SetXRequestID

func (o *CreateUserPlantOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the create user plant o k response

func (*CreateUserPlantOK) WithPayload

func (o *CreateUserPlantOK) WithPayload(payload *models.UserPlant) *CreateUserPlantOK

WithPayload adds the payload to the create user plant o k response

func (*CreateUserPlantOK) WithXRequestID

func (o *CreateUserPlantOK) WithXRequestID(xRequestID string) *CreateUserPlantOK

WithXRequestID adds the xRequestId to the create user plant o k response

func (*CreateUserPlantOK) WriteResponse

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

WriteResponse to the client

type CreateUserPlantParams

type CreateUserPlantParams struct {

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

	/*New plant of user
	  Required: true
	  In: body
	*/
	Userplant *models.UserPlant
}

CreateUserPlantParams contains all the bound params for the create user plant operation typically these are obtained from a http.Request

swagger:parameters createUserPlant

func NewCreateUserPlantParams

func NewCreateUserPlantParams() CreateUserPlantParams

NewCreateUserPlantParams creates a new CreateUserPlantParams object

There are no default values defined in the spec.

func (*CreateUserPlantParams) BindRequest

func (o *CreateUserPlantParams) 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 NewCreateUserPlantParams() beforehand.

type CreateUserPlantURL

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

CreateUserPlantURL generates an URL for the create user plant operation

func (*CreateUserPlantURL) Build

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

Build a url path and query string

func (*CreateUserPlantURL) BuildFull

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

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

func (*CreateUserPlantURL) Must

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

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

func (*CreateUserPlantURL) SetBasePath

func (o *CreateUserPlantURL) 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 (*CreateUserPlantURL) String

func (o *CreateUserPlantURL) String() string

String returns the string representation of the path with query string

func (*CreateUserPlantURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateUserPlantURL) WithBasePath

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

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 DeleteUserPlant

type DeleteUserPlant struct {
	Context *middleware.Context
	Handler DeleteUserPlantHandler
}
DeleteUserPlant swagger:route DELETE /api/v1/user/plants/{userplant_id} userplant deleteUserPlant

Delete user's plant

Delete user's plant

func NewDeleteUserPlant

func NewDeleteUserPlant(ctx *middleware.Context, handler DeleteUserPlantHandler) *DeleteUserPlant

NewDeleteUserPlant creates a new http.Handler for the delete user plant operation

func (*DeleteUserPlant) ServeHTTP

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

type DeleteUserPlantDefault

type DeleteUserPlantDefault struct {

	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

DeleteUserPlantDefault unexpected error

swagger:response deleteUserPlantDefault

func NewDeleteUserPlantDefault

func NewDeleteUserPlantDefault(code int) *DeleteUserPlantDefault

NewDeleteUserPlantDefault creates DeleteUserPlantDefault with default headers values

func (*DeleteUserPlantDefault) SetPayload

func (o *DeleteUserPlantDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the delete user plant default response

func (*DeleteUserPlantDefault) SetStatusCode

func (o *DeleteUserPlantDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete user plant default response

func (*DeleteUserPlantDefault) SetXRequestID

func (o *DeleteUserPlantDefault) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete user plant default response

func (*DeleteUserPlantDefault) WithPayload

WithPayload adds the payload to the delete user plant default response

func (*DeleteUserPlantDefault) WithStatusCode

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

WithStatusCode adds the status to the delete user plant default response

func (*DeleteUserPlantDefault) WithXRequestID

func (o *DeleteUserPlantDefault) WithXRequestID(xRequestID string) *DeleteUserPlantDefault

WithXRequestID adds the xRequestId to the delete user plant default response

func (*DeleteUserPlantDefault) WriteResponse

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

WriteResponse to the client

type DeleteUserPlantHandler

type DeleteUserPlantHandler interface {
	Handle(DeleteUserPlantParams) middleware.Responder
}

DeleteUserPlantHandler interface for that can handle valid delete user plant params

type DeleteUserPlantHandlerFunc

type DeleteUserPlantHandlerFunc func(DeleteUserPlantParams) middleware.Responder

DeleteUserPlantHandlerFunc turns a function with the right signature into a delete user plant handler

func (DeleteUserPlantHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteUserPlantOK

type DeleteUserPlantOK struct {
	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

DeleteUserPlantOK User's plant deleted

swagger:response deleteUserPlantOK

func NewDeleteUserPlantOK

func NewDeleteUserPlantOK() *DeleteUserPlantOK

NewDeleteUserPlantOK creates DeleteUserPlantOK with default headers values

func (*DeleteUserPlantOK) SetPayload

func (o *DeleteUserPlantOK) SetPayload(payload *models.Response)

SetPayload sets the payload to the delete user plant o k response

func (*DeleteUserPlantOK) SetXRequestID

func (o *DeleteUserPlantOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the delete user plant o k response

func (*DeleteUserPlantOK) WithPayload

func (o *DeleteUserPlantOK) WithPayload(payload *models.Response) *DeleteUserPlantOK

WithPayload adds the payload to the delete user plant o k response

func (*DeleteUserPlantOK) WithXRequestID

func (o *DeleteUserPlantOK) WithXRequestID(xRequestID string) *DeleteUserPlantOK

WithXRequestID adds the xRequestId to the delete user plant o k response

func (*DeleteUserPlantOK) WriteResponse

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

WriteResponse to the client

type DeleteUserPlantParams

type DeleteUserPlantParams struct {

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

	/*ID of user's plant.
	  Required: true
	  In: path
	*/
	UserplantID int64
}

DeleteUserPlantParams contains all the bound params for the delete user plant operation typically these are obtained from a http.Request

swagger:parameters deleteUserPlant

func NewDeleteUserPlantParams

func NewDeleteUserPlantParams() DeleteUserPlantParams

NewDeleteUserPlantParams creates a new DeleteUserPlantParams object

There are no default values defined in the spec.

func (*DeleteUserPlantParams) BindRequest

func (o *DeleteUserPlantParams) 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 NewDeleteUserPlantParams() beforehand.

type DeleteUserPlantURL

type DeleteUserPlantURL struct {
	UserplantID int64
	// contains filtered or unexported fields
}

DeleteUserPlantURL generates an URL for the delete user plant operation

func (*DeleteUserPlantURL) Build

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

Build a url path and query string

func (*DeleteUserPlantURL) BuildFull

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

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

func (*DeleteUserPlantURL) Must

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

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

func (*DeleteUserPlantURL) SetBasePath

func (o *DeleteUserPlantURL) 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 (*DeleteUserPlantURL) String

func (o *DeleteUserPlantURL) String() string

String returns the string representation of the path with query string

func (*DeleteUserPlantURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteUserPlantURL) WithBasePath

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

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 GetUserPlantByID

type GetUserPlantByID struct {
	Context *middleware.Context
	Handler GetUserPlantByIDHandler
}
GetUserPlantByID swagger:route GET /api/v1/user/plants/{userplant_id} userplant getUserPlantById

Get user's plant by id

Get user's plant by id

func NewGetUserPlantByID

func NewGetUserPlantByID(ctx *middleware.Context, handler GetUserPlantByIDHandler) *GetUserPlantByID

NewGetUserPlantByID creates a new http.Handler for the get user plant by ID operation

func (*GetUserPlantByID) ServeHTTP

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

type GetUserPlantByIDDefault

type GetUserPlantByIDDefault struct {

	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

GetUserPlantByIDDefault unexpected error

swagger:response getUserPlantByIdDefault

func NewGetUserPlantByIDDefault

func NewGetUserPlantByIDDefault(code int) *GetUserPlantByIDDefault

NewGetUserPlantByIDDefault creates GetUserPlantByIDDefault with default headers values

func (*GetUserPlantByIDDefault) SetPayload

func (o *GetUserPlantByIDDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get user plant by ID default response

func (*GetUserPlantByIDDefault) SetStatusCode

func (o *GetUserPlantByIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get user plant by ID default response

func (*GetUserPlantByIDDefault) SetXRequestID

func (o *GetUserPlantByIDDefault) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get user plant by ID default response

func (*GetUserPlantByIDDefault) WithPayload

WithPayload adds the payload to the get user plant by ID default response

func (*GetUserPlantByIDDefault) WithStatusCode

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

WithStatusCode adds the status to the get user plant by ID default response

func (*GetUserPlantByIDDefault) WithXRequestID

func (o *GetUserPlantByIDDefault) WithXRequestID(xRequestID string) *GetUserPlantByIDDefault

WithXRequestID adds the xRequestId to the get user plant by ID default response

func (*GetUserPlantByIDDefault) WriteResponse

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

WriteResponse to the client

type GetUserPlantByIDHandler

type GetUserPlantByIDHandler interface {
	Handle(GetUserPlantByIDParams) middleware.Responder
}

GetUserPlantByIDHandler interface for that can handle valid get user plant by ID params

type GetUserPlantByIDHandlerFunc

type GetUserPlantByIDHandlerFunc func(GetUserPlantByIDParams) middleware.Responder

GetUserPlantByIDHandlerFunc turns a function with the right signature into a get user plant by ID handler

func (GetUserPlantByIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetUserPlantByIDOK

type GetUserPlantByIDOK struct {
	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

GetUserPlantByIDOK Exists user's plant

swagger:response getUserPlantByIdOK

func NewGetUserPlantByIDOK

func NewGetUserPlantByIDOK() *GetUserPlantByIDOK

NewGetUserPlantByIDOK creates GetUserPlantByIDOK with default headers values

func (*GetUserPlantByIDOK) SetPayload

func (o *GetUserPlantByIDOK) SetPayload(payload *models.UserPlant)

SetPayload sets the payload to the get user plant by Id o k response

func (*GetUserPlantByIDOK) SetXRequestID

func (o *GetUserPlantByIDOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get user plant by Id o k response

func (*GetUserPlantByIDOK) WithPayload

func (o *GetUserPlantByIDOK) WithPayload(payload *models.UserPlant) *GetUserPlantByIDOK

WithPayload adds the payload to the get user plant by Id o k response

func (*GetUserPlantByIDOK) WithXRequestID

func (o *GetUserPlantByIDOK) WithXRequestID(xRequestID string) *GetUserPlantByIDOK

WithXRequestID adds the xRequestId to the get user plant by Id o k response

func (*GetUserPlantByIDOK) WriteResponse

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

WriteResponse to the client

type GetUserPlantByIDParams

type GetUserPlantByIDParams struct {

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

	/*ID of user's plant.
	  Required: true
	  In: path
	*/
	UserplantID int64
}

GetUserPlantByIDParams contains all the bound params for the get user plant by ID operation typically these are obtained from a http.Request

swagger:parameters getUserPlantByID

func NewGetUserPlantByIDParams

func NewGetUserPlantByIDParams() GetUserPlantByIDParams

NewGetUserPlantByIDParams creates a new GetUserPlantByIDParams object

There are no default values defined in the spec.

func (*GetUserPlantByIDParams) BindRequest

func (o *GetUserPlantByIDParams) 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 NewGetUserPlantByIDParams() beforehand.

type GetUserPlantByIDURL

type GetUserPlantByIDURL struct {
	UserplantID int64
	// contains filtered or unexported fields
}

GetUserPlantByIDURL generates an URL for the get user plant by ID operation

func (*GetUserPlantByIDURL) Build

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

Build a url path and query string

func (*GetUserPlantByIDURL) BuildFull

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

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

func (*GetUserPlantByIDURL) Must

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

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

func (*GetUserPlantByIDURL) SetBasePath

func (o *GetUserPlantByIDURL) 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 (*GetUserPlantByIDURL) String

func (o *GetUserPlantByIDURL) String() string

String returns the string representation of the path with query string

func (*GetUserPlantByIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUserPlantByIDURL) WithBasePath

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

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 GetUserPlants

type GetUserPlants struct {
	Context *middleware.Context
	Handler GetUserPlantsHandler
}
GetUserPlants swagger:route GET /api/v1/user/plants userplant getUserPlants

Find all of the user’s plants

Find all of the user’s plants

func NewGetUserPlants

func NewGetUserPlants(ctx *middleware.Context, handler GetUserPlantsHandler) *GetUserPlants

NewGetUserPlants creates a new http.Handler for the get user plants operation

func (*GetUserPlants) ServeHTTP

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

type GetUserPlantsBadRequest

type GetUserPlantsBadRequest struct {
}

GetUserPlantsBadRequest Invalid input

swagger:response getUserPlantsBadRequest

func NewGetUserPlantsBadRequest

func NewGetUserPlantsBadRequest() *GetUserPlantsBadRequest

NewGetUserPlantsBadRequest creates GetUserPlantsBadRequest with default headers values

func (*GetUserPlantsBadRequest) WriteResponse

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

WriteResponse to the client

type GetUserPlantsDefault

type GetUserPlantsDefault struct {

	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

GetUserPlantsDefault unexpected error

swagger:response getUserPlantsDefault

func NewGetUserPlantsDefault

func NewGetUserPlantsDefault(code int) *GetUserPlantsDefault

NewGetUserPlantsDefault creates GetUserPlantsDefault with default headers values

func (*GetUserPlantsDefault) SetPayload

func (o *GetUserPlantsDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get user plants default response

func (*GetUserPlantsDefault) SetStatusCode

func (o *GetUserPlantsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get user plants default response

func (*GetUserPlantsDefault) SetXRequestID

func (o *GetUserPlantsDefault) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get user plants default response

func (*GetUserPlantsDefault) WithPayload

WithPayload adds the payload to the get user plants default response

func (*GetUserPlantsDefault) WithStatusCode

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

WithStatusCode adds the status to the get user plants default response

func (*GetUserPlantsDefault) WithXRequestID

func (o *GetUserPlantsDefault) WithXRequestID(xRequestID string) *GetUserPlantsDefault

WithXRequestID adds the xRequestId to the get user plants default response

func (*GetUserPlantsDefault) WriteResponse

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

WriteResponse to the client

type GetUserPlantsHandler

type GetUserPlantsHandler interface {
	Handle(GetUserPlantsParams) middleware.Responder
}

GetUserPlantsHandler interface for that can handle valid get user plants params

type GetUserPlantsHandlerFunc

type GetUserPlantsHandlerFunc func(GetUserPlantsParams) middleware.Responder

GetUserPlantsHandlerFunc turns a function with the right signature into a get user plants handler

func (GetUserPlantsHandlerFunc) Handle

Handle executing the request and returning a response

type GetUserPlantsNotFound

type GetUserPlantsNotFound struct {
}

GetUserPlantsNotFound Plants not found

swagger:response getUserPlantsNotFound

func NewGetUserPlantsNotFound

func NewGetUserPlantsNotFound() *GetUserPlantsNotFound

NewGetUserPlantsNotFound creates GetUserPlantsNotFound with default headers values

func (*GetUserPlantsNotFound) WriteResponse

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

WriteResponse to the client

type GetUserPlantsOK

type GetUserPlantsOK struct {
	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

GetUserPlantsOK List of the user's plants

swagger:response getUserPlantsOK

func NewGetUserPlantsOK

func NewGetUserPlantsOK() *GetUserPlantsOK

NewGetUserPlantsOK creates GetUserPlantsOK with default headers values

func (*GetUserPlantsOK) SetPayload

func (o *GetUserPlantsOK) SetPayload(payload *models.UserPlantsResponse)

SetPayload sets the payload to the get user plants o k response

func (*GetUserPlantsOK) SetXRequestID

func (o *GetUserPlantsOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get user plants o k response

func (*GetUserPlantsOK) WithPayload

func (o *GetUserPlantsOK) WithPayload(payload *models.UserPlantsResponse) *GetUserPlantsOK

WithPayload adds the payload to the get user plants o k response

func (*GetUserPlantsOK) WithXRequestID

func (o *GetUserPlantsOK) WithXRequestID(xRequestID string) *GetUserPlantsOK

WithXRequestID adds the xRequestId to the get user plants o k response

func (*GetUserPlantsOK) WriteResponse

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

WriteResponse to the client

type GetUserPlantsParams

type GetUserPlantsParams struct {

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

	/*The numbers of items to return.
	  Maximum: 100
	  Minimum: 1
	  In: query
	  Default: 20
	*/
	Limit int64
	/*The number of items to skip before starting to collect the result set.
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset int64
}

GetUserPlantsParams contains all the bound params for the get user plants operation typically these are obtained from a http.Request

swagger:parameters getUserPlants

func NewGetUserPlantsParams

func NewGetUserPlantsParams() GetUserPlantsParams

NewGetUserPlantsParams creates a new GetUserPlantsParams object with the default values initialized.

func (*GetUserPlantsParams) BindRequest

func (o *GetUserPlantsParams) 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 NewGetUserPlantsParams() beforehand.

type GetUserPlantsURL

type GetUserPlantsURL struct {
	Limit  int64
	Offset int64
	// contains filtered or unexported fields
}

GetUserPlantsURL generates an URL for the get user plants operation

func (*GetUserPlantsURL) Build

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

Build a url path and query string

func (*GetUserPlantsURL) BuildFull

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

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

func (*GetUserPlantsURL) Must

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

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

func (*GetUserPlantsURL) SetBasePath

func (o *GetUserPlantsURL) 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 (*GetUserPlantsURL) String

func (o *GetUserPlantsURL) String() string

String returns the string representation of the path with query string

func (*GetUserPlantsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUserPlantsURL) WithBasePath

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

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 UpdateUserPlant

type UpdateUserPlant struct {
	Context *middleware.Context
	Handler UpdateUserPlantHandler
}
UpdateUserPlant swagger:route PUT /api/v1/user/plants userplant updateUserPlant

Update user's plant

Update user's plant

func NewUpdateUserPlant

func NewUpdateUserPlant(ctx *middleware.Context, handler UpdateUserPlantHandler) *UpdateUserPlant

NewUpdateUserPlant creates a new http.Handler for the update user plant operation

func (*UpdateUserPlant) ServeHTTP

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

type UpdateUserPlantDefault

type UpdateUserPlantDefault struct {

	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

UpdateUserPlantDefault unexpected error

swagger:response updateUserPlantDefault

func NewUpdateUserPlantDefault

func NewUpdateUserPlantDefault(code int) *UpdateUserPlantDefault

NewUpdateUserPlantDefault creates UpdateUserPlantDefault with default headers values

func (*UpdateUserPlantDefault) SetPayload

func (o *UpdateUserPlantDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the update user plant default response

func (*UpdateUserPlantDefault) SetStatusCode

func (o *UpdateUserPlantDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update user plant default response

func (*UpdateUserPlantDefault) SetXRequestID

func (o *UpdateUserPlantDefault) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update user plant default response

func (*UpdateUserPlantDefault) WithPayload

WithPayload adds the payload to the update user plant default response

func (*UpdateUserPlantDefault) WithStatusCode

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

WithStatusCode adds the status to the update user plant default response

func (*UpdateUserPlantDefault) WithXRequestID

func (o *UpdateUserPlantDefault) WithXRequestID(xRequestID string) *UpdateUserPlantDefault

WithXRequestID adds the xRequestId to the update user plant default response

func (*UpdateUserPlantDefault) WriteResponse

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

WriteResponse to the client

type UpdateUserPlantHandler

type UpdateUserPlantHandler interface {
	Handle(UpdateUserPlantParams) middleware.Responder
}

UpdateUserPlantHandler interface for that can handle valid update user plant params

type UpdateUserPlantHandlerFunc

type UpdateUserPlantHandlerFunc func(UpdateUserPlantParams) middleware.Responder

UpdateUserPlantHandlerFunc turns a function with the right signature into a update user plant handler

func (UpdateUserPlantHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateUserPlantOK

type UpdateUserPlantOK struct {
	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

UpdateUserPlantOK Plant updated

swagger:response updateUserPlantOK

func NewUpdateUserPlantOK

func NewUpdateUserPlantOK() *UpdateUserPlantOK

NewUpdateUserPlantOK creates UpdateUserPlantOK with default headers values

func (*UpdateUserPlantOK) SetPayload

func (o *UpdateUserPlantOK) SetPayload(payload *models.UserPlant)

SetPayload sets the payload to the update user plant o k response

func (*UpdateUserPlantOK) SetXRequestID

func (o *UpdateUserPlantOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the update user plant o k response

func (*UpdateUserPlantOK) WithPayload

func (o *UpdateUserPlantOK) WithPayload(payload *models.UserPlant) *UpdateUserPlantOK

WithPayload adds the payload to the update user plant o k response

func (*UpdateUserPlantOK) WithXRequestID

func (o *UpdateUserPlantOK) WithXRequestID(xRequestID string) *UpdateUserPlantOK

WithXRequestID adds the xRequestId to the update user plant o k response

func (*UpdateUserPlantOK) WriteResponse

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

WriteResponse to the client

type UpdateUserPlantParams

type UpdateUserPlantParams struct {

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

	/*New data of user's plant
	  Required: true
	  In: body
	*/
	Userplant *models.UserPlant
}

UpdateUserPlantParams contains all the bound params for the update user plant operation typically these are obtained from a http.Request

swagger:parameters updateUserPlant

func NewUpdateUserPlantParams

func NewUpdateUserPlantParams() UpdateUserPlantParams

NewUpdateUserPlantParams creates a new UpdateUserPlantParams object

There are no default values defined in the spec.

func (*UpdateUserPlantParams) BindRequest

func (o *UpdateUserPlantParams) 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 NewUpdateUserPlantParams() beforehand.

type UpdateUserPlantURL

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

UpdateUserPlantURL generates an URL for the update user plant operation

func (*UpdateUserPlantURL) Build

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

Build a url path and query string

func (*UpdateUserPlantURL) BuildFull

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

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

func (*UpdateUserPlantURL) Must

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

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

func (*UpdateUserPlantURL) SetBasePath

func (o *UpdateUserPlantURL) 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 (*UpdateUserPlantURL) String

func (o *UpdateUserPlantURL) String() string

String returns the string representation of the path with query string

func (*UpdateUserPlantURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateUserPlantURL) WithBasePath

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

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