Documentation ¶
Index ¶
- Constants
- type CreateVariant
- type CreateVariantDefault
- func (o *CreateVariantDefault) SetPayload(payload *models.Error)
- func (o *CreateVariantDefault) SetStatusCode(code int)
- func (o *CreateVariantDefault) WithPayload(payload *models.Error) *CreateVariantDefault
- func (o *CreateVariantDefault) WithStatusCode(code int) *CreateVariantDefault
- func (o *CreateVariantDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateVariantHandler
- type CreateVariantHandlerFunc
- type CreateVariantOK
- type CreateVariantParams
- type CreateVariantURL
- func (o *CreateVariantURL) Build() (*url.URL, error)
- func (o *CreateVariantURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateVariantURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateVariantURL) SetBasePath(bp string)
- func (o *CreateVariantURL) String() string
- func (o *CreateVariantURL) StringFull(scheme, host string) string
- func (o *CreateVariantURL) WithBasePath(bp string) *CreateVariantURL
- type DeleteVariant
- type DeleteVariantDefault
- func (o *DeleteVariantDefault) SetPayload(payload *models.Error)
- func (o *DeleteVariantDefault) SetStatusCode(code int)
- func (o *DeleteVariantDefault) WithPayload(payload *models.Error) *DeleteVariantDefault
- func (o *DeleteVariantDefault) WithStatusCode(code int) *DeleteVariantDefault
- func (o *DeleteVariantDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteVariantHandler
- type DeleteVariantHandlerFunc
- type DeleteVariantOK
- type DeleteVariantParams
- type DeleteVariantURL
- func (o *DeleteVariantURL) Build() (*url.URL, error)
- func (o *DeleteVariantURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteVariantURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteVariantURL) SetBasePath(bp string)
- func (o *DeleteVariantURL) String() string
- func (o *DeleteVariantURL) StringFull(scheme, host string) string
- func (o *DeleteVariantURL) WithBasePath(bp string) *DeleteVariantURL
- type FindVariants
- type FindVariantsDefault
- func (o *FindVariantsDefault) SetPayload(payload *models.Error)
- func (o *FindVariantsDefault) SetStatusCode(code int)
- func (o *FindVariantsDefault) WithPayload(payload *models.Error) *FindVariantsDefault
- func (o *FindVariantsDefault) WithStatusCode(code int) *FindVariantsDefault
- func (o *FindVariantsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FindVariantsHandler
- type FindVariantsHandlerFunc
- type FindVariantsOK
- type FindVariantsParams
- type FindVariantsURL
- func (o *FindVariantsURL) Build() (*url.URL, error)
- func (o *FindVariantsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FindVariantsURL) Must(u *url.URL, err error) *url.URL
- func (o *FindVariantsURL) SetBasePath(bp string)
- func (o *FindVariantsURL) String() string
- func (o *FindVariantsURL) StringFull(scheme, host string) string
- func (o *FindVariantsURL) WithBasePath(bp string) *FindVariantsURL
- type PutVariant
- type PutVariantDefault
- func (o *PutVariantDefault) SetPayload(payload *models.Error)
- func (o *PutVariantDefault) SetStatusCode(code int)
- func (o *PutVariantDefault) WithPayload(payload *models.Error) *PutVariantDefault
- func (o *PutVariantDefault) WithStatusCode(code int) *PutVariantDefault
- func (o *PutVariantDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutVariantHandler
- type PutVariantHandlerFunc
- type PutVariantOK
- type PutVariantParams
- type PutVariantURL
- func (o *PutVariantURL) Build() (*url.URL, error)
- func (o *PutVariantURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutVariantURL) Must(u *url.URL, err error) *url.URL
- func (o *PutVariantURL) SetBasePath(bp string)
- func (o *PutVariantURL) String() string
- func (o *PutVariantURL) StringFull(scheme, host string) string
- func (o *PutVariantURL) WithBasePath(bp string) *PutVariantURL
Constants ¶
const CreateVariantOKCode int = 200
CreateVariantOKCode is the HTTP code returned for type CreateVariantOK
const DeleteVariantOKCode int = 200
DeleteVariantOKCode is the HTTP code returned for type DeleteVariantOK
const FindVariantsOKCode int = 200
FindVariantsOKCode is the HTTP code returned for type FindVariantsOK
const PutVariantOKCode int = 200
PutVariantOKCode is the HTTP code returned for type PutVariantOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateVariant ¶
type CreateVariant struct { Context *middleware.Context Handler CreateVariantHandler }
CreateVariant swagger:route POST /flags/{flagID}/variants variant createVariant
CreateVariant create variant API
func NewCreateVariant ¶
func NewCreateVariant(ctx *middleware.Context, handler CreateVariantHandler) *CreateVariant
NewCreateVariant creates a new http.Handler for the create variant operation
func (*CreateVariant) ServeHTTP ¶
func (o *CreateVariant) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateVariantDefault ¶
type CreateVariantDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateVariantDefault generic error response
swagger:response createVariantDefault
func NewCreateVariantDefault ¶
func NewCreateVariantDefault(code int) *CreateVariantDefault
NewCreateVariantDefault creates CreateVariantDefault with default headers values
func (*CreateVariantDefault) SetPayload ¶
func (o *CreateVariantDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create variant default response
func (*CreateVariantDefault) SetStatusCode ¶
func (o *CreateVariantDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create variant default response
func (*CreateVariantDefault) WithPayload ¶
func (o *CreateVariantDefault) WithPayload(payload *models.Error) *CreateVariantDefault
WithPayload adds the payload to the create variant default response
func (*CreateVariantDefault) WithStatusCode ¶
func (o *CreateVariantDefault) WithStatusCode(code int) *CreateVariantDefault
WithStatusCode adds the status to the create variant default response
func (*CreateVariantDefault) WriteResponse ¶
func (o *CreateVariantDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateVariantHandler ¶
type CreateVariantHandler interface {
Handle(CreateVariantParams) middleware.Responder
}
CreateVariantHandler interface for that can handle valid create variant params
type CreateVariantHandlerFunc ¶
type CreateVariantHandlerFunc func(CreateVariantParams) middleware.Responder
CreateVariantHandlerFunc turns a function with the right signature into a create variant handler
func (CreateVariantHandlerFunc) Handle ¶
func (fn CreateVariantHandlerFunc) Handle(params CreateVariantParams) middleware.Responder
Handle executing the request and returning a response
type CreateVariantOK ¶
CreateVariantOK variant just created
swagger:response createVariantOK
func NewCreateVariantOK ¶
func NewCreateVariantOK() *CreateVariantOK
NewCreateVariantOK creates CreateVariantOK with default headers values
func (*CreateVariantOK) SetPayload ¶
func (o *CreateVariantOK) SetPayload(payload *models.Variant)
SetPayload sets the payload to the create variant o k response
func (*CreateVariantOK) WithPayload ¶
func (o *CreateVariantOK) WithPayload(payload *models.Variant) *CreateVariantOK
WithPayload adds the payload to the create variant o k response
func (*CreateVariantOK) WriteResponse ¶
func (o *CreateVariantOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateVariantParams ¶
type CreateVariantParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*create a variant Required: true In: body */ Body *models.CreateVariantRequest /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 }
CreateVariantParams contains all the bound params for the create variant operation typically these are obtained from a http.Request
swagger:parameters createVariant
func NewCreateVariantParams ¶
func NewCreateVariantParams() CreateVariantParams
NewCreateVariantParams creates a new CreateVariantParams object
There are no default values defined in the spec.
func (*CreateVariantParams) BindRequest ¶
func (o *CreateVariantParams) 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 NewCreateVariantParams() beforehand.
type CreateVariantURL ¶
type CreateVariantURL struct { FlagID int64 // contains filtered or unexported fields }
CreateVariantURL generates an URL for the create variant operation
func (*CreateVariantURL) Build ¶
func (o *CreateVariantURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateVariantURL) BuildFull ¶
func (o *CreateVariantURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateVariantURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateVariantURL) SetBasePath ¶
func (o *CreateVariantURL) 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 (*CreateVariantURL) String ¶
func (o *CreateVariantURL) String() string
String returns the string representation of the path with query string
func (*CreateVariantURL) StringFull ¶
func (o *CreateVariantURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateVariantURL) WithBasePath ¶
func (o *CreateVariantURL) WithBasePath(bp string) *CreateVariantURL
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 DeleteVariant ¶
type DeleteVariant struct { Context *middleware.Context Handler DeleteVariantHandler }
DeleteVariant swagger:route DELETE /flags/{flagID}/variants/{variantID} variant deleteVariant
DeleteVariant delete variant API
func NewDeleteVariant ¶
func NewDeleteVariant(ctx *middleware.Context, handler DeleteVariantHandler) *DeleteVariant
NewDeleteVariant creates a new http.Handler for the delete variant operation
func (*DeleteVariant) ServeHTTP ¶
func (o *DeleteVariant) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteVariantDefault ¶
type DeleteVariantDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteVariantDefault generic error response
swagger:response deleteVariantDefault
func NewDeleteVariantDefault ¶
func NewDeleteVariantDefault(code int) *DeleteVariantDefault
NewDeleteVariantDefault creates DeleteVariantDefault with default headers values
func (*DeleteVariantDefault) SetPayload ¶
func (o *DeleteVariantDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete variant default response
func (*DeleteVariantDefault) SetStatusCode ¶
func (o *DeleteVariantDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete variant default response
func (*DeleteVariantDefault) WithPayload ¶
func (o *DeleteVariantDefault) WithPayload(payload *models.Error) *DeleteVariantDefault
WithPayload adds the payload to the delete variant default response
func (*DeleteVariantDefault) WithStatusCode ¶
func (o *DeleteVariantDefault) WithStatusCode(code int) *DeleteVariantDefault
WithStatusCode adds the status to the delete variant default response
func (*DeleteVariantDefault) WriteResponse ¶
func (o *DeleteVariantDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteVariantHandler ¶
type DeleteVariantHandler interface {
Handle(DeleteVariantParams) middleware.Responder
}
DeleteVariantHandler interface for that can handle valid delete variant params
type DeleteVariantHandlerFunc ¶
type DeleteVariantHandlerFunc func(DeleteVariantParams) middleware.Responder
DeleteVariantHandlerFunc turns a function with the right signature into a delete variant handler
func (DeleteVariantHandlerFunc) Handle ¶
func (fn DeleteVariantHandlerFunc) Handle(params DeleteVariantParams) middleware.Responder
Handle executing the request and returning a response
type DeleteVariantOK ¶
type DeleteVariantOK struct { }
DeleteVariantOK deleted
swagger:response deleteVariantOK
func NewDeleteVariantOK ¶
func NewDeleteVariantOK() *DeleteVariantOK
NewDeleteVariantOK creates DeleteVariantOK with default headers values
func (*DeleteVariantOK) WriteResponse ¶
func (o *DeleteVariantOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteVariantParams ¶
type DeleteVariantParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 /*numeric ID of the variant Required: true Minimum: 1 In: path */ VariantID int64 }
DeleteVariantParams contains all the bound params for the delete variant operation typically these are obtained from a http.Request
swagger:parameters deleteVariant
func NewDeleteVariantParams ¶
func NewDeleteVariantParams() DeleteVariantParams
NewDeleteVariantParams creates a new DeleteVariantParams object
There are no default values defined in the spec.
func (*DeleteVariantParams) BindRequest ¶
func (o *DeleteVariantParams) 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 NewDeleteVariantParams() beforehand.
type DeleteVariantURL ¶
type DeleteVariantURL struct { FlagID int64 VariantID int64 // contains filtered or unexported fields }
DeleteVariantURL generates an URL for the delete variant operation
func (*DeleteVariantURL) Build ¶
func (o *DeleteVariantURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteVariantURL) BuildFull ¶
func (o *DeleteVariantURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteVariantURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteVariantURL) SetBasePath ¶
func (o *DeleteVariantURL) 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 (*DeleteVariantURL) String ¶
func (o *DeleteVariantURL) String() string
String returns the string representation of the path with query string
func (*DeleteVariantURL) StringFull ¶
func (o *DeleteVariantURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteVariantURL) WithBasePath ¶
func (o *DeleteVariantURL) WithBasePath(bp string) *DeleteVariantURL
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 FindVariants ¶
type FindVariants struct { Context *middleware.Context Handler FindVariantsHandler }
FindVariants swagger:route GET /flags/{flagID}/variants variant findVariants
FindVariants find variants API
func NewFindVariants ¶
func NewFindVariants(ctx *middleware.Context, handler FindVariantsHandler) *FindVariants
NewFindVariants creates a new http.Handler for the find variants operation
func (*FindVariants) ServeHTTP ¶
func (o *FindVariants) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type FindVariantsDefault ¶
type FindVariantsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
FindVariantsDefault generic error response
swagger:response findVariantsDefault
func NewFindVariantsDefault ¶
func NewFindVariantsDefault(code int) *FindVariantsDefault
NewFindVariantsDefault creates FindVariantsDefault with default headers values
func (*FindVariantsDefault) SetPayload ¶
func (o *FindVariantsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the find variants default response
func (*FindVariantsDefault) SetStatusCode ¶
func (o *FindVariantsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the find variants default response
func (*FindVariantsDefault) WithPayload ¶
func (o *FindVariantsDefault) WithPayload(payload *models.Error) *FindVariantsDefault
WithPayload adds the payload to the find variants default response
func (*FindVariantsDefault) WithStatusCode ¶
func (o *FindVariantsDefault) WithStatusCode(code int) *FindVariantsDefault
WithStatusCode adds the status to the find variants default response
func (*FindVariantsDefault) WriteResponse ¶
func (o *FindVariantsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindVariantsHandler ¶
type FindVariantsHandler interface {
Handle(FindVariantsParams) middleware.Responder
}
FindVariantsHandler interface for that can handle valid find variants params
type FindVariantsHandlerFunc ¶
type FindVariantsHandlerFunc func(FindVariantsParams) middleware.Responder
FindVariantsHandlerFunc turns a function with the right signature into a find variants handler
func (FindVariantsHandlerFunc) Handle ¶
func (fn FindVariantsHandlerFunc) Handle(params FindVariantsParams) middleware.Responder
Handle executing the request and returning a response
type FindVariantsOK ¶
FindVariantsOK variant ordered by variantID
swagger:response findVariantsOK
func NewFindVariantsOK ¶
func NewFindVariantsOK() *FindVariantsOK
NewFindVariantsOK creates FindVariantsOK with default headers values
func (*FindVariantsOK) SetPayload ¶
func (o *FindVariantsOK) SetPayload(payload []*models.Variant)
SetPayload sets the payload to the find variants o k response
func (*FindVariantsOK) WithPayload ¶
func (o *FindVariantsOK) WithPayload(payload []*models.Variant) *FindVariantsOK
WithPayload adds the payload to the find variants o k response
func (*FindVariantsOK) WriteResponse ¶
func (o *FindVariantsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindVariantsParams ¶
type FindVariantsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 }
FindVariantsParams contains all the bound params for the find variants operation typically these are obtained from a http.Request
swagger:parameters findVariants
func NewFindVariantsParams ¶
func NewFindVariantsParams() FindVariantsParams
NewFindVariantsParams creates a new FindVariantsParams object
There are no default values defined in the spec.
func (*FindVariantsParams) BindRequest ¶
func (o *FindVariantsParams) 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 NewFindVariantsParams() beforehand.
type FindVariantsURL ¶
type FindVariantsURL struct { FlagID int64 // contains filtered or unexported fields }
FindVariantsURL generates an URL for the find variants operation
func (*FindVariantsURL) Build ¶
func (o *FindVariantsURL) Build() (*url.URL, error)
Build a url path and query string
func (*FindVariantsURL) BuildFull ¶
func (o *FindVariantsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*FindVariantsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*FindVariantsURL) SetBasePath ¶
func (o *FindVariantsURL) 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 (*FindVariantsURL) String ¶
func (o *FindVariantsURL) String() string
String returns the string representation of the path with query string
func (*FindVariantsURL) StringFull ¶
func (o *FindVariantsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*FindVariantsURL) WithBasePath ¶
func (o *FindVariantsURL) WithBasePath(bp string) *FindVariantsURL
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 PutVariant ¶
type PutVariant struct { Context *middleware.Context Handler PutVariantHandler }
PutVariant swagger:route PUT /flags/{flagID}/variants/{variantID} variant putVariant
PutVariant put variant API
func NewPutVariant ¶
func NewPutVariant(ctx *middleware.Context, handler PutVariantHandler) *PutVariant
NewPutVariant creates a new http.Handler for the put variant operation
func (*PutVariant) ServeHTTP ¶
func (o *PutVariant) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutVariantDefault ¶
type PutVariantDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PutVariantDefault generic error response
swagger:response putVariantDefault
func NewPutVariantDefault ¶
func NewPutVariantDefault(code int) *PutVariantDefault
NewPutVariantDefault creates PutVariantDefault with default headers values
func (*PutVariantDefault) SetPayload ¶
func (o *PutVariantDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put variant default response
func (*PutVariantDefault) SetStatusCode ¶
func (o *PutVariantDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put variant default response
func (*PutVariantDefault) WithPayload ¶
func (o *PutVariantDefault) WithPayload(payload *models.Error) *PutVariantDefault
WithPayload adds the payload to the put variant default response
func (*PutVariantDefault) WithStatusCode ¶
func (o *PutVariantDefault) WithStatusCode(code int) *PutVariantDefault
WithStatusCode adds the status to the put variant default response
func (*PutVariantDefault) WriteResponse ¶
func (o *PutVariantDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutVariantHandler ¶
type PutVariantHandler interface {
Handle(PutVariantParams) middleware.Responder
}
PutVariantHandler interface for that can handle valid put variant params
type PutVariantHandlerFunc ¶
type PutVariantHandlerFunc func(PutVariantParams) middleware.Responder
PutVariantHandlerFunc turns a function with the right signature into a put variant handler
func (PutVariantHandlerFunc) Handle ¶
func (fn PutVariantHandlerFunc) Handle(params PutVariantParams) middleware.Responder
Handle executing the request and returning a response
type PutVariantOK ¶
PutVariantOK variant just updated
swagger:response putVariantOK
func NewPutVariantOK ¶
func NewPutVariantOK() *PutVariantOK
NewPutVariantOK creates PutVariantOK with default headers values
func (*PutVariantOK) SetPayload ¶
func (o *PutVariantOK) SetPayload(payload *models.Variant)
SetPayload sets the payload to the put variant o k response
func (*PutVariantOK) WithPayload ¶
func (o *PutVariantOK) WithPayload(payload *models.Variant) *PutVariantOK
WithPayload adds the payload to the put variant o k response
func (*PutVariantOK) WriteResponse ¶
func (o *PutVariantOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutVariantParams ¶
type PutVariantParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*update a variant Required: true In: body */ Body *models.PutVariantRequest /*numeric ID of the flag Required: true Minimum: 1 In: path */ FlagID int64 /*numeric ID of the variant Required: true Minimum: 1 In: path */ VariantID int64 }
PutVariantParams contains all the bound params for the put variant operation typically these are obtained from a http.Request
swagger:parameters putVariant
func NewPutVariantParams ¶
func NewPutVariantParams() PutVariantParams
NewPutVariantParams creates a new PutVariantParams object
There are no default values defined in the spec.
func (*PutVariantParams) BindRequest ¶
func (o *PutVariantParams) 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 NewPutVariantParams() beforehand.
type PutVariantURL ¶
type PutVariantURL struct { FlagID int64 VariantID int64 // contains filtered or unexported fields }
PutVariantURL generates an URL for the put variant operation
func (*PutVariantURL) Build ¶
func (o *PutVariantURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutVariantURL) BuildFull ¶
func (o *PutVariantURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutVariantURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutVariantURL) SetBasePath ¶
func (o *PutVariantURL) 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 (*PutVariantURL) String ¶
func (o *PutVariantURL) String() string
String returns the string representation of the path with query string
func (*PutVariantURL) StringFull ¶
func (o *PutVariantURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutVariantURL) WithBasePath ¶
func (o *PutVariantURL) WithBasePath(bp string) *PutVariantURL
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
Source Files ¶
- create_variant.go
- create_variant_parameters.go
- create_variant_responses.go
- create_variant_urlbuilder.go
- delete_variant.go
- delete_variant_parameters.go
- delete_variant_responses.go
- delete_variant_urlbuilder.go
- find_variants.go
- find_variants_parameters.go
- find_variants_responses.go
- find_variants_urlbuilder.go
- put_variant.go
- put_variant_parameters.go
- put_variant_responses.go
- put_variant_urlbuilder.go