field

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateFieldCreatedCode int = 201

CreateFieldCreatedCode is the HTTP code returned for type CreateFieldCreated

View Source
const DeleteFieldOKCode int = 200

DeleteFieldOKCode is the HTTP code returned for type DeleteFieldOK

View Source
const GetFieldOKCode int = 200

GetFieldOKCode is the HTTP code returned for type GetFieldOK

View Source
const GetFieldsOKCode int = 200

GetFieldsOKCode is the HTTP code returned for type GetFieldsOK

View Source
const GetProjectFieldsOKCode int = 200

GetProjectFieldsOKCode is the HTTP code returned for type GetProjectFieldsOK

View Source
const UpdateFieldOKCode int = 200

UpdateFieldOKCode is the HTTP code returned for type UpdateFieldOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateField

type CreateField struct {
	Context *middleware.Context
	Handler CreateFieldHandler
}

CreateField swagger:route POST /projects/{projectId}/item-types/{itemTypeId}/fields field createField

Create a new field

func NewCreateField

func NewCreateField(ctx *middleware.Context, handler CreateFieldHandler) *CreateField

NewCreateField creates a new http.Handler for the create field operation

func (*CreateField) ServeHTTP

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

type CreateFieldCreated

type CreateFieldCreated struct {

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

CreateFieldCreated Created

swagger:response createFieldCreated

func NewCreateFieldCreated

func NewCreateFieldCreated() *CreateFieldCreated

NewCreateFieldCreated creates CreateFieldCreated with default headers values

func (*CreateFieldCreated) SetPayload

func (o *CreateFieldCreated) SetPayload(payload *models.FieldResponse)

SetPayload sets the payload to the create field created response

func (*CreateFieldCreated) WithPayload

func (o *CreateFieldCreated) WithPayload(payload *models.FieldResponse) *CreateFieldCreated

WithPayload adds the payload to the create field created response

func (*CreateFieldCreated) WriteResponse

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

WriteResponse to the client

type CreateFieldDefault

type CreateFieldDefault struct {

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

CreateFieldDefault unexpected error

swagger:response createFieldDefault

func NewCreateFieldDefault

func NewCreateFieldDefault(code int) *CreateFieldDefault

NewCreateFieldDefault creates CreateFieldDefault with default headers values

func (*CreateFieldDefault) SetPayload

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

SetPayload sets the payload to the create field default response

func (*CreateFieldDefault) SetStatusCode

func (o *CreateFieldDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create field default response

func (*CreateFieldDefault) WithPayload

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

WithPayload adds the payload to the create field default response

func (*CreateFieldDefault) WithStatusCode

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

WithStatusCode adds the status to the create field default response

func (*CreateFieldDefault) WriteResponse

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

WriteResponse to the client

type CreateFieldHandler

type CreateFieldHandler interface {
	Handle(CreateFieldParams) middleware.Responder
}

CreateFieldHandler interface for that can handle valid create field params

type CreateFieldHandlerFunc

type CreateFieldHandlerFunc func(CreateFieldParams) middleware.Responder

CreateFieldHandlerFunc turns a function with the right signature into a create field handler

func (CreateFieldHandlerFunc) Handle

Handle executing the request and returning a response

type CreateFieldParams

type CreateFieldParams struct {

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

	/*The field details
	  Required: true
	  In: body
	*/
	Body *models.FieldRequest
	/*The item type id
	  Required: true
	  In: path
	*/
	ItemTypeID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

CreateFieldParams contains all the bound params for the create field operation typically these are obtained from a http.Request

swagger:parameters createField

func NewCreateFieldParams

func NewCreateFieldParams() CreateFieldParams

NewCreateFieldParams creates a new CreateFieldParams object no default values defined in spec.

func (*CreateFieldParams) BindRequest

func (o *CreateFieldParams) 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 NewCreateFieldParams() beforehand.

type CreateFieldURL

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

CreateFieldURL generates an URL for the create field operation

func (*CreateFieldURL) Build

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

Build a url path and query string

func (*CreateFieldURL) BuildFull

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

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

func (*CreateFieldURL) Must

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

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

func (*CreateFieldURL) SetBasePath

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

func (o *CreateFieldURL) String() string

String returns the string representation of the path with query string

func (*CreateFieldURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateFieldURL) WithBasePath

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

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 DeleteField

type DeleteField struct {
	Context *middleware.Context
	Handler DeleteFieldHandler
}

DeleteField swagger:route DELETE /projects/{projectId}/fields/{id} field deleteField

Delete a field

func NewDeleteField

func NewDeleteField(ctx *middleware.Context, handler DeleteFieldHandler) *DeleteField

NewDeleteField creates a new http.Handler for the delete field operation

func (*DeleteField) ServeHTTP

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

type DeleteFieldDefault

type DeleteFieldDefault struct {

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

DeleteFieldDefault unexpected error

swagger:response deleteFieldDefault

func NewDeleteFieldDefault

func NewDeleteFieldDefault(code int) *DeleteFieldDefault

NewDeleteFieldDefault creates DeleteFieldDefault with default headers values

func (*DeleteFieldDefault) SetPayload

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

SetPayload sets the payload to the delete field default response

func (*DeleteFieldDefault) SetStatusCode

func (o *DeleteFieldDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete field default response

func (*DeleteFieldDefault) WithPayload

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

WithPayload adds the payload to the delete field default response

func (*DeleteFieldDefault) WithStatusCode

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

WithStatusCode adds the status to the delete field default response

func (*DeleteFieldDefault) WriteResponse

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

WriteResponse to the client

type DeleteFieldHandler

type DeleteFieldHandler interface {
	Handle(DeleteFieldParams) middleware.Responder
}

DeleteFieldHandler interface for that can handle valid delete field params

type DeleteFieldHandlerFunc

type DeleteFieldHandlerFunc func(DeleteFieldParams) middleware.Responder

DeleteFieldHandlerFunc turns a function with the right signature into a delete field handler

func (DeleteFieldHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteFieldOK

type DeleteFieldOK struct {

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

DeleteFieldOK The field details

swagger:response deleteFieldOK

func NewDeleteFieldOK

func NewDeleteFieldOK() *DeleteFieldOK

NewDeleteFieldOK creates DeleteFieldOK with default headers values

func (*DeleteFieldOK) SetPayload

func (o *DeleteFieldOK) SetPayload(payload *models.FieldResponse)

SetPayload sets the payload to the delete field o k response

func (*DeleteFieldOK) WithPayload

func (o *DeleteFieldOK) WithPayload(payload *models.FieldResponse) *DeleteFieldOK

WithPayload adds the payload to the delete field o k response

func (*DeleteFieldOK) WriteResponse

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

WriteResponse to the client

type DeleteFieldParams

type DeleteFieldParams struct {

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

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

DeleteFieldParams contains all the bound params for the delete field operation typically these are obtained from a http.Request

swagger:parameters deleteField

func NewDeleteFieldParams

func NewDeleteFieldParams() DeleteFieldParams

NewDeleteFieldParams creates a new DeleteFieldParams object no default values defined in spec.

func (*DeleteFieldParams) BindRequest

func (o *DeleteFieldParams) 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 NewDeleteFieldParams() beforehand.

type DeleteFieldURL

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

DeleteFieldURL generates an URL for the delete field operation

func (*DeleteFieldURL) Build

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

Build a url path and query string

func (*DeleteFieldURL) BuildFull

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

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

func (*DeleteFieldURL) Must

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

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

func (*DeleteFieldURL) SetBasePath

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

func (o *DeleteFieldURL) String() string

String returns the string representation of the path with query string

func (*DeleteFieldURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteFieldURL) WithBasePath

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

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 GetField

type GetField struct {
	Context *middleware.Context
	Handler GetFieldHandler
}

GetField swagger:route GET /projects/{projectId}/fields/{id} field getField

Get a field

func NewGetField

func NewGetField(ctx *middleware.Context, handler GetFieldHandler) *GetField

NewGetField creates a new http.Handler for the get field operation

func (*GetField) ServeHTTP

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

type GetFieldDefault

type GetFieldDefault struct {

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

GetFieldDefault unexpected error

swagger:response getFieldDefault

func NewGetFieldDefault

func NewGetFieldDefault(code int) *GetFieldDefault

NewGetFieldDefault creates GetFieldDefault with default headers values

func (*GetFieldDefault) SetPayload

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

SetPayload sets the payload to the get field default response

func (*GetFieldDefault) SetStatusCode

func (o *GetFieldDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get field default response

func (*GetFieldDefault) WithPayload

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

WithPayload adds the payload to the get field default response

func (*GetFieldDefault) WithStatusCode

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

WithStatusCode adds the status to the get field default response

func (*GetFieldDefault) WriteResponse

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

WriteResponse to the client

type GetFieldHandler

type GetFieldHandler interface {
	Handle(GetFieldParams) middleware.Responder
}

GetFieldHandler interface for that can handle valid get field params

type GetFieldHandlerFunc

type GetFieldHandlerFunc func(GetFieldParams) middleware.Responder

GetFieldHandlerFunc turns a function with the right signature into a get field handler

func (GetFieldHandlerFunc) Handle

Handle executing the request and returning a response

type GetFieldOK

type GetFieldOK struct {

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

GetFieldOK The field details

swagger:response getFieldOK

func NewGetFieldOK

func NewGetFieldOK() *GetFieldOK

NewGetFieldOK creates GetFieldOK with default headers values

func (*GetFieldOK) SetPayload

func (o *GetFieldOK) SetPayload(payload *models.FieldResponse)

SetPayload sets the payload to the get field o k response

func (*GetFieldOK) WithPayload

func (o *GetFieldOK) WithPayload(payload *models.FieldResponse) *GetFieldOK

WithPayload adds the payload to the get field o k response

func (*GetFieldOK) WriteResponse

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

WriteResponse to the client

type GetFieldParams

type GetFieldParams struct {

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

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

GetFieldParams contains all the bound params for the get field operation typically these are obtained from a http.Request

swagger:parameters getField

func NewGetFieldParams

func NewGetFieldParams() GetFieldParams

NewGetFieldParams creates a new GetFieldParams object no default values defined in spec.

func (*GetFieldParams) BindRequest

func (o *GetFieldParams) 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 NewGetFieldParams() beforehand.

type GetFieldURL

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

GetFieldURL generates an URL for the get field operation

func (*GetFieldURL) Build

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

Build a url path and query string

func (*GetFieldURL) BuildFull

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

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

func (*GetFieldURL) Must

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

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

func (*GetFieldURL) SetBasePath

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

func (o *GetFieldURL) String() string

String returns the string representation of the path with query string

func (*GetFieldURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFieldURL) WithBasePath

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

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 GetFields

type GetFields struct {
	Context *middleware.Context
	Handler GetFieldsHandler
}

GetFields swagger:route GET /projects/{projectId}/item-types/{itemTypeId}/fields field getFields

Get the fields of the model

func NewGetFields

func NewGetFields(ctx *middleware.Context, handler GetFieldsHandler) *GetFields

NewGetFields creates a new http.Handler for the get fields operation

func (*GetFields) ServeHTTP

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

type GetFieldsDefault

type GetFieldsDefault struct {

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

GetFieldsDefault unexpected error

swagger:response getFieldsDefault

func NewGetFieldsDefault

func NewGetFieldsDefault(code int) *GetFieldsDefault

NewGetFieldsDefault creates GetFieldsDefault with default headers values

func (*GetFieldsDefault) SetPayload

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

SetPayload sets the payload to the get fields default response

func (*GetFieldsDefault) SetStatusCode

func (o *GetFieldsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get fields default response

func (*GetFieldsDefault) WithPayload

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

WithPayload adds the payload to the get fields default response

func (*GetFieldsDefault) WithStatusCode

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

WithStatusCode adds the status to the get fields default response

func (*GetFieldsDefault) WriteResponse

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

WriteResponse to the client

type GetFieldsHandler

type GetFieldsHandler interface {
	Handle(GetFieldsParams) middleware.Responder
}

GetFieldsHandler interface for that can handle valid get fields params

type GetFieldsHandlerFunc

type GetFieldsHandlerFunc func(GetFieldsParams) middleware.Responder

GetFieldsHandlerFunc turns a function with the right signature into a get fields handler

func (GetFieldsHandlerFunc) Handle

Handle executing the request and returning a response

type GetFieldsOK

type GetFieldsOK struct {

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

GetFieldsOK Fields response

swagger:response getFieldsOK

func NewGetFieldsOK

func NewGetFieldsOK() *GetFieldsOK

NewGetFieldsOK creates GetFieldsOK with default headers values

func (*GetFieldsOK) SetPayload

func (o *GetFieldsOK) SetPayload(payload *models.FieldsResponse)

SetPayload sets the payload to the get fields o k response

func (*GetFieldsOK) WithPayload

func (o *GetFieldsOK) WithPayload(payload *models.FieldsResponse) *GetFieldsOK

WithPayload adds the payload to the get fields o k response

func (*GetFieldsOK) WriteResponse

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

WriteResponse to the client

type GetFieldsParams

type GetFieldsParams struct {

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

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

GetFieldsParams contains all the bound params for the get fields operation typically these are obtained from a http.Request

swagger:parameters getFields

func NewGetFieldsParams

func NewGetFieldsParams() GetFieldsParams

NewGetFieldsParams creates a new GetFieldsParams object no default values defined in spec.

func (*GetFieldsParams) BindRequest

func (o *GetFieldsParams) 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 NewGetFieldsParams() beforehand.

type GetFieldsURL

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

GetFieldsURL generates an URL for the get fields operation

func (*GetFieldsURL) Build

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

Build a url path and query string

func (*GetFieldsURL) BuildFull

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

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

func (*GetFieldsURL) Must

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

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

func (*GetFieldsURL) SetBasePath

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

func (o *GetFieldsURL) String() string

String returns the string representation of the path with query string

func (*GetFieldsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFieldsURL) WithBasePath

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

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 GetProjectFields

type GetProjectFields struct {
	Context *middleware.Context
	Handler GetProjectFieldsHandler
}

GetProjectFields swagger:route GET /projects/{projectId}/fields field getProjectFields

Get all the fields of the project

func NewGetProjectFields

func NewGetProjectFields(ctx *middleware.Context, handler GetProjectFieldsHandler) *GetProjectFields

NewGetProjectFields creates a new http.Handler for the get project fields operation

func (*GetProjectFields) ServeHTTP

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

type GetProjectFieldsDefault

type GetProjectFieldsDefault struct {

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

GetProjectFieldsDefault unexpected error

swagger:response getProjectFieldsDefault

func NewGetProjectFieldsDefault

func NewGetProjectFieldsDefault(code int) *GetProjectFieldsDefault

NewGetProjectFieldsDefault creates GetProjectFieldsDefault with default headers values

func (*GetProjectFieldsDefault) SetPayload

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

SetPayload sets the payload to the get project fields default response

func (*GetProjectFieldsDefault) SetStatusCode

func (o *GetProjectFieldsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get project fields default response

func (*GetProjectFieldsDefault) WithPayload

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

WithPayload adds the payload to the get project fields default response

func (*GetProjectFieldsDefault) WithStatusCode

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

WithStatusCode adds the status to the get project fields default response

func (*GetProjectFieldsDefault) WriteResponse

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

WriteResponse to the client

type GetProjectFieldsHandler

type GetProjectFieldsHandler interface {
	Handle(GetProjectFieldsParams) middleware.Responder
}

GetProjectFieldsHandler interface for that can handle valid get project fields params

type GetProjectFieldsHandlerFunc

type GetProjectFieldsHandlerFunc func(GetProjectFieldsParams) middleware.Responder

GetProjectFieldsHandlerFunc turns a function with the right signature into a get project fields handler

func (GetProjectFieldsHandlerFunc) Handle

Handle executing the request and returning a response

type GetProjectFieldsOK

type GetProjectFieldsOK struct {

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

GetProjectFieldsOK Fields response

swagger:response getProjectFieldsOK

func NewGetProjectFieldsOK

func NewGetProjectFieldsOK() *GetProjectFieldsOK

NewGetProjectFieldsOK creates GetProjectFieldsOK with default headers values

func (*GetProjectFieldsOK) SetPayload

func (o *GetProjectFieldsOK) SetPayload(payload *models.FieldsResponse)

SetPayload sets the payload to the get project fields o k response

func (*GetProjectFieldsOK) WithPayload

func (o *GetProjectFieldsOK) WithPayload(payload *models.FieldsResponse) *GetProjectFieldsOK

WithPayload adds the payload to the get project fields o k response

func (*GetProjectFieldsOK) WriteResponse

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

WriteResponse to the client

type GetProjectFieldsParams

type GetProjectFieldsParams struct {

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

	/*ID of a related resource to include in the response. The resource must be specified in the target parameter
	  In: query
	*/
	ID *int32
	/*IDs to include in the response
	  In: query
	*/
	Ids []int32
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
	/*Target resource of the query. Must include the id of the resource as well.
	  In: query
	*/
	Target *string
}

GetProjectFieldsParams contains all the bound params for the get project fields operation typically these are obtained from a http.Request

swagger:parameters getProjectFields

func NewGetProjectFieldsParams

func NewGetProjectFieldsParams() GetProjectFieldsParams

NewGetProjectFieldsParams creates a new GetProjectFieldsParams object no default values defined in spec.

func (*GetProjectFieldsParams) BindRequest

func (o *GetProjectFieldsParams) 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 NewGetProjectFieldsParams() beforehand.

type GetProjectFieldsURL

type GetProjectFieldsURL struct {
	ProjectID string

	ID     *int32
	Ids    []int32
	Target *string
	// contains filtered or unexported fields
}

GetProjectFieldsURL generates an URL for the get project fields operation

func (*GetProjectFieldsURL) Build

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

Build a url path and query string

func (*GetProjectFieldsURL) BuildFull

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

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

func (*GetProjectFieldsURL) Must

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

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

func (*GetProjectFieldsURL) SetBasePath

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

func (o *GetProjectFieldsURL) String() string

String returns the string representation of the path with query string

func (*GetProjectFieldsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetProjectFieldsURL) WithBasePath

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

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 UpdateField

type UpdateField struct {
	Context *middleware.Context
	Handler UpdateFieldHandler
}

UpdateField swagger:route PUT /projects/{projectId}/fields/{id} field updateField

Update a field

func NewUpdateField

func NewUpdateField(ctx *middleware.Context, handler UpdateFieldHandler) *UpdateField

NewUpdateField creates a new http.Handler for the update field operation

func (*UpdateField) ServeHTTP

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

type UpdateFieldDefault

type UpdateFieldDefault struct {

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

UpdateFieldDefault unexpected error

swagger:response updateFieldDefault

func NewUpdateFieldDefault

func NewUpdateFieldDefault(code int) *UpdateFieldDefault

NewUpdateFieldDefault creates UpdateFieldDefault with default headers values

func (*UpdateFieldDefault) SetPayload

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

SetPayload sets the payload to the update field default response

func (*UpdateFieldDefault) SetStatusCode

func (o *UpdateFieldDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update field default response

func (*UpdateFieldDefault) WithPayload

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

WithPayload adds the payload to the update field default response

func (*UpdateFieldDefault) WithStatusCode

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

WithStatusCode adds the status to the update field default response

func (*UpdateFieldDefault) WriteResponse

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

WriteResponse to the client

type UpdateFieldHandler

type UpdateFieldHandler interface {
	Handle(UpdateFieldParams) middleware.Responder
}

UpdateFieldHandler interface for that can handle valid update field params

type UpdateFieldHandlerFunc

type UpdateFieldHandlerFunc func(UpdateFieldParams) middleware.Responder

UpdateFieldHandlerFunc turns a function with the right signature into a update field handler

func (UpdateFieldHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateFieldOK

type UpdateFieldOK struct {

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

UpdateFieldOK The field details

swagger:response updateFieldOK

func NewUpdateFieldOK

func NewUpdateFieldOK() *UpdateFieldOK

NewUpdateFieldOK creates UpdateFieldOK with default headers values

func (*UpdateFieldOK) SetPayload

func (o *UpdateFieldOK) SetPayload(payload *models.FieldResponse)

SetPayload sets the payload to the update field o k response

func (*UpdateFieldOK) WithPayload

func (o *UpdateFieldOK) WithPayload(payload *models.FieldResponse) *UpdateFieldOK

WithPayload adds the payload to the update field o k response

func (*UpdateFieldOK) WriteResponse

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

WriteResponse to the client

type UpdateFieldParams

type UpdateFieldParams struct {

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

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

UpdateFieldParams contains all the bound params for the update field operation typically these are obtained from a http.Request

swagger:parameters updateField

func NewUpdateFieldParams

func NewUpdateFieldParams() UpdateFieldParams

NewUpdateFieldParams creates a new UpdateFieldParams object no default values defined in spec.

func (*UpdateFieldParams) BindRequest

func (o *UpdateFieldParams) 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 NewUpdateFieldParams() beforehand.

type UpdateFieldURL

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

UpdateFieldURL generates an URL for the update field operation

func (*UpdateFieldURL) Build

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

Build a url path and query string

func (*UpdateFieldURL) BuildFull

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

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

func (*UpdateFieldURL) Must

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

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

func (*UpdateFieldURL) SetBasePath

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

func (o *UpdateFieldURL) String() string

String returns the string representation of the path with query string

func (*UpdateFieldURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateFieldURL) WithBasePath

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

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