Documentation ¶
Index ¶
- Constants
- type CreateTransitRouter
- type CreateTransitRouterBadRequest
- func (o *CreateTransitRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *CreateTransitRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateTransitRouterBadRequest
- func (o *CreateTransitRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTransitRouterHandler
- type CreateTransitRouterHandlerFunc
- type CreateTransitRouterOK
- type CreateTransitRouterParams
- type CreateTransitRouterURL
- func (o *CreateTransitRouterURL) Build() (*url.URL, error)
- func (o *CreateTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateTransitRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateTransitRouterURL) SetBasePath(bp string)
- func (o *CreateTransitRouterURL) String() string
- func (o *CreateTransitRouterURL) StringFull(scheme, host string) string
- func (o *CreateTransitRouterURL) WithBasePath(bp string) *CreateTransitRouterURL
- type CreateTransitRouterUnauthorized
- func (o *CreateTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *CreateTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateTransitRouterUnauthorized
- func (o *CreateTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteTransitRouter
- type DeleteTransitRouterBadRequest
- func (o *DeleteTransitRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DeleteTransitRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteTransitRouterBadRequest
- func (o *DeleteTransitRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteTransitRouterConflict
- func (o *DeleteTransitRouterConflict) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DeleteTransitRouterConflict) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteTransitRouterConflict
- func (o *DeleteTransitRouterConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteTransitRouterHandler
- type DeleteTransitRouterHandlerFunc
- type DeleteTransitRouterOK
- type DeleteTransitRouterParams
- type DeleteTransitRouterURL
- func (o *DeleteTransitRouterURL) Build() (*url.URL, error)
- func (o *DeleteTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteTransitRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteTransitRouterURL) SetBasePath(bp string)
- func (o *DeleteTransitRouterURL) String() string
- func (o *DeleteTransitRouterURL) StringFull(scheme, host string) string
- func (o *DeleteTransitRouterURL) WithBasePath(bp string) *DeleteTransitRouterURL
- type DeleteTransitRouterUnauthorized
- func (o *DeleteTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DeleteTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteTransitRouterUnauthorized
- func (o *DeleteTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DetailTransitRouter
- type DetailTransitRouterHandler
- type DetailTransitRouterHandlerFunc
- type DetailTransitRouterNotFound
- func (o *DetailTransitRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DetailTransitRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailTransitRouterNotFound
- func (o *DetailTransitRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DetailTransitRouterOK
- func (o *DetailTransitRouterOK) SetPayload(payload *rest_model.DetailTransitRouterEnvelope)
- func (o *DetailTransitRouterOK) WithPayload(payload *rest_model.DetailTransitRouterEnvelope) *DetailTransitRouterOK
- func (o *DetailTransitRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DetailTransitRouterParams
- type DetailTransitRouterURL
- func (o *DetailTransitRouterURL) Build() (*url.URL, error)
- func (o *DetailTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DetailTransitRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *DetailTransitRouterURL) SetBasePath(bp string)
- func (o *DetailTransitRouterURL) String() string
- func (o *DetailTransitRouterURL) StringFull(scheme, host string) string
- func (o *DetailTransitRouterURL) WithBasePath(bp string) *DetailTransitRouterURL
- type DetailTransitRouterUnauthorized
- func (o *DetailTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DetailTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailTransitRouterUnauthorized
- func (o *DetailTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListTransitRouters
- type ListTransitRoutersHandler
- type ListTransitRoutersHandlerFunc
- type ListTransitRoutersOK
- type ListTransitRoutersParams
- type ListTransitRoutersURL
- func (o *ListTransitRoutersURL) Build() (*url.URL, error)
- func (o *ListTransitRoutersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListTransitRoutersURL) Must(u *url.URL, err error) *url.URL
- func (o *ListTransitRoutersURL) SetBasePath(bp string)
- func (o *ListTransitRoutersURL) String() string
- func (o *ListTransitRoutersURL) StringFull(scheme, host string) string
- func (o *ListTransitRoutersURL) WithBasePath(bp string) *ListTransitRoutersURL
- type ListTransitRoutersUnauthorized
- func (o *ListTransitRoutersUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *ListTransitRoutersUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListTransitRoutersUnauthorized
- func (o *ListTransitRoutersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PatchTransitRouter
- type PatchTransitRouterBadRequest
- func (o *PatchTransitRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *PatchTransitRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchTransitRouterBadRequest
- func (o *PatchTransitRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PatchTransitRouterHandler
- type PatchTransitRouterHandlerFunc
- type PatchTransitRouterNotFound
- func (o *PatchTransitRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *PatchTransitRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchTransitRouterNotFound
- func (o *PatchTransitRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PatchTransitRouterOK
- type PatchTransitRouterParams
- type PatchTransitRouterURL
- func (o *PatchTransitRouterURL) Build() (*url.URL, error)
- func (o *PatchTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PatchTransitRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *PatchTransitRouterURL) SetBasePath(bp string)
- func (o *PatchTransitRouterURL) String() string
- func (o *PatchTransitRouterURL) StringFull(scheme, host string) string
- func (o *PatchTransitRouterURL) WithBasePath(bp string) *PatchTransitRouterURL
- type PatchTransitRouterUnauthorized
- func (o *PatchTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *PatchTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchTransitRouterUnauthorized
- func (o *PatchTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateTransitRouter
- type UpdateTransitRouterBadRequest
- func (o *UpdateTransitRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *UpdateTransitRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateTransitRouterBadRequest
- func (o *UpdateTransitRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateTransitRouterHandler
- type UpdateTransitRouterHandlerFunc
- type UpdateTransitRouterNotFound
- func (o *UpdateTransitRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *UpdateTransitRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateTransitRouterNotFound
- func (o *UpdateTransitRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateTransitRouterOK
- type UpdateTransitRouterParams
- type UpdateTransitRouterURL
- func (o *UpdateTransitRouterURL) Build() (*url.URL, error)
- func (o *UpdateTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateTransitRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateTransitRouterURL) SetBasePath(bp string)
- func (o *UpdateTransitRouterURL) String() string
- func (o *UpdateTransitRouterURL) StringFull(scheme, host string) string
- func (o *UpdateTransitRouterURL) WithBasePath(bp string) *UpdateTransitRouterURL
- type UpdateTransitRouterUnauthorized
- func (o *UpdateTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *UpdateTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateTransitRouterUnauthorized
- func (o *UpdateTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const CreateTransitRouterBadRequestCode int = 400
CreateTransitRouterBadRequestCode is the HTTP code returned for type CreateTransitRouterBadRequest
const CreateTransitRouterOKCode int = 200
CreateTransitRouterOKCode is the HTTP code returned for type CreateTransitRouterOK
CreateTransitRouterUnauthorizedCode is the HTTP code returned for type CreateTransitRouterUnauthorized
const DeleteTransitRouterBadRequestCode int = 400
DeleteTransitRouterBadRequestCode is the HTTP code returned for type DeleteTransitRouterBadRequest
const DeleteTransitRouterConflictCode int = 409
DeleteTransitRouterConflictCode is the HTTP code returned for type DeleteTransitRouterConflict
const DeleteTransitRouterOKCode int = 200
DeleteTransitRouterOKCode is the HTTP code returned for type DeleteTransitRouterOK
DeleteTransitRouterUnauthorizedCode is the HTTP code returned for type DeleteTransitRouterUnauthorized
const DetailTransitRouterNotFoundCode int = 404
DetailTransitRouterNotFoundCode is the HTTP code returned for type DetailTransitRouterNotFound
const DetailTransitRouterOKCode int = 200
DetailTransitRouterOKCode is the HTTP code returned for type DetailTransitRouterOK
DetailTransitRouterUnauthorizedCode is the HTTP code returned for type DetailTransitRouterUnauthorized
const ListTransitRoutersOKCode int = 200
ListTransitRoutersOKCode is the HTTP code returned for type ListTransitRoutersOK
ListTransitRoutersUnauthorizedCode is the HTTP code returned for type ListTransitRoutersUnauthorized
const PatchTransitRouterBadRequestCode int = 400
PatchTransitRouterBadRequestCode is the HTTP code returned for type PatchTransitRouterBadRequest
const PatchTransitRouterNotFoundCode int = 404
PatchTransitRouterNotFoundCode is the HTTP code returned for type PatchTransitRouterNotFound
const PatchTransitRouterOKCode int = 200
PatchTransitRouterOKCode is the HTTP code returned for type PatchTransitRouterOK
PatchTransitRouterUnauthorizedCode is the HTTP code returned for type PatchTransitRouterUnauthorized
const UpdateTransitRouterBadRequestCode int = 400
UpdateTransitRouterBadRequestCode is the HTTP code returned for type UpdateTransitRouterBadRequest
const UpdateTransitRouterNotFoundCode int = 404
UpdateTransitRouterNotFoundCode is the HTTP code returned for type UpdateTransitRouterNotFound
const UpdateTransitRouterOKCode int = 200
UpdateTransitRouterOKCode is the HTTP code returned for type UpdateTransitRouterOK
UpdateTransitRouterUnauthorizedCode is the HTTP code returned for type UpdateTransitRouterUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTransitRouter ¶
type CreateTransitRouter struct { Context *middleware.Context Handler CreateTransitRouterHandler }
CreateTransitRouter swagger:route POST /transit-routers Transit Router createTransitRouter
Create a transit router resource ¶
Create a transit router resource. Requires admin access.
func NewCreateTransitRouter ¶
func NewCreateTransitRouter(ctx *middleware.Context, handler CreateTransitRouterHandler) *CreateTransitRouter
NewCreateTransitRouter creates a new http.Handler for the create transit router operation
func (*CreateTransitRouter) ServeHTTP ¶
func (o *CreateTransitRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateTransitRouterBadRequest ¶
type CreateTransitRouterBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateTransitRouterBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response createTransitRouterBadRequest
func NewCreateTransitRouterBadRequest ¶
func NewCreateTransitRouterBadRequest() *CreateTransitRouterBadRequest
NewCreateTransitRouterBadRequest creates CreateTransitRouterBadRequest with default headers values
func (*CreateTransitRouterBadRequest) SetPayload ¶
func (o *CreateTransitRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create transit router bad request response
func (*CreateTransitRouterBadRequest) WithPayload ¶
func (o *CreateTransitRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateTransitRouterBadRequest
WithPayload adds the payload to the create transit router bad request response
func (*CreateTransitRouterBadRequest) WriteResponse ¶
func (o *CreateTransitRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTransitRouterHandler ¶
type CreateTransitRouterHandler interface {
Handle(CreateTransitRouterParams, interface{}) middleware.Responder
}
CreateTransitRouterHandler interface for that can handle valid create transit router params
type CreateTransitRouterHandlerFunc ¶
type CreateTransitRouterHandlerFunc func(CreateTransitRouterParams, interface{}) middleware.Responder
CreateTransitRouterHandlerFunc turns a function with the right signature into a create transit router handler
func (CreateTransitRouterHandlerFunc) Handle ¶
func (fn CreateTransitRouterHandlerFunc) Handle(params CreateTransitRouterParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateTransitRouterOK ¶
type CreateTransitRouterOK struct { /* In: Body */ Payload *rest_model.CreateEnvelope `json:"body,omitempty"` }
CreateTransitRouterOK The create request was successful and the resource has been added at the following location
swagger:response createTransitRouterOK
func NewCreateTransitRouterOK ¶
func NewCreateTransitRouterOK() *CreateTransitRouterOK
NewCreateTransitRouterOK creates CreateTransitRouterOK with default headers values
func (*CreateTransitRouterOK) SetPayload ¶
func (o *CreateTransitRouterOK) SetPayload(payload *rest_model.CreateEnvelope)
SetPayload sets the payload to the create transit router o k response
func (*CreateTransitRouterOK) WithPayload ¶
func (o *CreateTransitRouterOK) WithPayload(payload *rest_model.CreateEnvelope) *CreateTransitRouterOK
WithPayload adds the payload to the create transit router o k response
func (*CreateTransitRouterOK) WriteResponse ¶
func (o *CreateTransitRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTransitRouterParams ¶
type CreateTransitRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A transit router to create Required: true In: body */ Body *rest_model.TransitRouterCreate }
CreateTransitRouterParams contains all the bound params for the create transit router operation typically these are obtained from a http.Request
swagger:parameters createTransitRouter
func NewCreateTransitRouterParams ¶
func NewCreateTransitRouterParams() CreateTransitRouterParams
NewCreateTransitRouterParams creates a new CreateTransitRouterParams object no default values defined in spec.
func (*CreateTransitRouterParams) BindRequest ¶
func (o *CreateTransitRouterParams) 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 NewCreateTransitRouterParams() beforehand.
type CreateTransitRouterURL ¶
type CreateTransitRouterURL struct {
// contains filtered or unexported fields
}
CreateTransitRouterURL generates an URL for the create transit router operation
func (*CreateTransitRouterURL) Build ¶
func (o *CreateTransitRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateTransitRouterURL) BuildFull ¶
func (o *CreateTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateTransitRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateTransitRouterURL) SetBasePath ¶
func (o *CreateTransitRouterURL) 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 (*CreateTransitRouterURL) String ¶
func (o *CreateTransitRouterURL) String() string
String returns the string representation of the path with query string
func (*CreateTransitRouterURL) StringFull ¶
func (o *CreateTransitRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateTransitRouterURL) WithBasePath ¶
func (o *CreateTransitRouterURL) WithBasePath(bp string) *CreateTransitRouterURL
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 CreateTransitRouterUnauthorized ¶
type CreateTransitRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
CreateTransitRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response createTransitRouterUnauthorized
func NewCreateTransitRouterUnauthorized ¶
func NewCreateTransitRouterUnauthorized() *CreateTransitRouterUnauthorized
NewCreateTransitRouterUnauthorized creates CreateTransitRouterUnauthorized with default headers values
func (*CreateTransitRouterUnauthorized) SetPayload ¶
func (o *CreateTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create transit router unauthorized response
func (*CreateTransitRouterUnauthorized) WithPayload ¶
func (o *CreateTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateTransitRouterUnauthorized
WithPayload adds the payload to the create transit router unauthorized response
func (*CreateTransitRouterUnauthorized) WriteResponse ¶
func (o *CreateTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTransitRouter ¶
type DeleteTransitRouter struct { Context *middleware.Context Handler DeleteTransitRouterHandler }
DeleteTransitRouter swagger:route DELETE /transit-routers/{id} Transit Router deleteTransitRouter
Delete a transit router ¶
Delete a transit router by id. Requires admin access.
func NewDeleteTransitRouter ¶
func NewDeleteTransitRouter(ctx *middleware.Context, handler DeleteTransitRouterHandler) *DeleteTransitRouter
NewDeleteTransitRouter creates a new http.Handler for the delete transit router operation
func (*DeleteTransitRouter) ServeHTTP ¶
func (o *DeleteTransitRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteTransitRouterBadRequest ¶
type DeleteTransitRouterBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteTransitRouterBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response deleteTransitRouterBadRequest
func NewDeleteTransitRouterBadRequest ¶
func NewDeleteTransitRouterBadRequest() *DeleteTransitRouterBadRequest
NewDeleteTransitRouterBadRequest creates DeleteTransitRouterBadRequest with default headers values
func (*DeleteTransitRouterBadRequest) SetPayload ¶
func (o *DeleteTransitRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete transit router bad request response
func (*DeleteTransitRouterBadRequest) WithPayload ¶
func (o *DeleteTransitRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteTransitRouterBadRequest
WithPayload adds the payload to the delete transit router bad request response
func (*DeleteTransitRouterBadRequest) WriteResponse ¶
func (o *DeleteTransitRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTransitRouterConflict ¶
type DeleteTransitRouterConflict struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteTransitRouterConflict The resource requested to be removed/altered cannot be as it is referenced by another object.
swagger:response deleteTransitRouterConflict
func NewDeleteTransitRouterConflict ¶
func NewDeleteTransitRouterConflict() *DeleteTransitRouterConflict
NewDeleteTransitRouterConflict creates DeleteTransitRouterConflict with default headers values
func (*DeleteTransitRouterConflict) SetPayload ¶
func (o *DeleteTransitRouterConflict) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete transit router conflict response
func (*DeleteTransitRouterConflict) WithPayload ¶
func (o *DeleteTransitRouterConflict) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteTransitRouterConflict
WithPayload adds the payload to the delete transit router conflict response
func (*DeleteTransitRouterConflict) WriteResponse ¶
func (o *DeleteTransitRouterConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTransitRouterHandler ¶
type DeleteTransitRouterHandler interface {
Handle(DeleteTransitRouterParams, interface{}) middleware.Responder
}
DeleteTransitRouterHandler interface for that can handle valid delete transit router params
type DeleteTransitRouterHandlerFunc ¶
type DeleteTransitRouterHandlerFunc func(DeleteTransitRouterParams, interface{}) middleware.Responder
DeleteTransitRouterHandlerFunc turns a function with the right signature into a delete transit router handler
func (DeleteTransitRouterHandlerFunc) Handle ¶
func (fn DeleteTransitRouterHandlerFunc) Handle(params DeleteTransitRouterParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteTransitRouterOK ¶
type DeleteTransitRouterOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
DeleteTransitRouterOK The delete request was successful and the resource has been removed
swagger:response deleteTransitRouterOK
func NewDeleteTransitRouterOK ¶
func NewDeleteTransitRouterOK() *DeleteTransitRouterOK
NewDeleteTransitRouterOK creates DeleteTransitRouterOK with default headers values
func (*DeleteTransitRouterOK) SetPayload ¶
func (o *DeleteTransitRouterOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the delete transit router o k response
func (*DeleteTransitRouterOK) WithPayload ¶
func (o *DeleteTransitRouterOK) WithPayload(payload *rest_model.Empty) *DeleteTransitRouterOK
WithPayload adds the payload to the delete transit router o k response
func (*DeleteTransitRouterOK) WriteResponse ¶
func (o *DeleteTransitRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTransitRouterParams ¶
type DeleteTransitRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DeleteTransitRouterParams contains all the bound params for the delete transit router operation typically these are obtained from a http.Request
swagger:parameters deleteTransitRouter
func NewDeleteTransitRouterParams ¶
func NewDeleteTransitRouterParams() DeleteTransitRouterParams
NewDeleteTransitRouterParams creates a new DeleteTransitRouterParams object no default values defined in spec.
func (*DeleteTransitRouterParams) BindRequest ¶
func (o *DeleteTransitRouterParams) 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 NewDeleteTransitRouterParams() beforehand.
type DeleteTransitRouterURL ¶
type DeleteTransitRouterURL struct { ID string // contains filtered or unexported fields }
DeleteTransitRouterURL generates an URL for the delete transit router operation
func (*DeleteTransitRouterURL) Build ¶
func (o *DeleteTransitRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteTransitRouterURL) BuildFull ¶
func (o *DeleteTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteTransitRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteTransitRouterURL) SetBasePath ¶
func (o *DeleteTransitRouterURL) 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 (*DeleteTransitRouterURL) String ¶
func (o *DeleteTransitRouterURL) String() string
String returns the string representation of the path with query string
func (*DeleteTransitRouterURL) StringFull ¶
func (o *DeleteTransitRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteTransitRouterURL) WithBasePath ¶
func (o *DeleteTransitRouterURL) WithBasePath(bp string) *DeleteTransitRouterURL
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 DeleteTransitRouterUnauthorized ¶
type DeleteTransitRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DeleteTransitRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response deleteTransitRouterUnauthorized
func NewDeleteTransitRouterUnauthorized ¶
func NewDeleteTransitRouterUnauthorized() *DeleteTransitRouterUnauthorized
NewDeleteTransitRouterUnauthorized creates DeleteTransitRouterUnauthorized with default headers values
func (*DeleteTransitRouterUnauthorized) SetPayload ¶
func (o *DeleteTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete transit router unauthorized response
func (*DeleteTransitRouterUnauthorized) WithPayload ¶
func (o *DeleteTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteTransitRouterUnauthorized
WithPayload adds the payload to the delete transit router unauthorized response
func (*DeleteTransitRouterUnauthorized) WriteResponse ¶
func (o *DeleteTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailTransitRouter ¶
type DetailTransitRouter struct { Context *middleware.Context Handler DetailTransitRouterHandler }
DetailTransitRouter swagger:route GET /transit-routers/{id} Transit Router detailTransitRouter
Retrieves a single transit router ¶
Retrieves a single transit router by id. Requires admin access.
func NewDetailTransitRouter ¶
func NewDetailTransitRouter(ctx *middleware.Context, handler DetailTransitRouterHandler) *DetailTransitRouter
NewDetailTransitRouter creates a new http.Handler for the detail transit router operation
func (*DetailTransitRouter) ServeHTTP ¶
func (o *DetailTransitRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DetailTransitRouterHandler ¶
type DetailTransitRouterHandler interface {
Handle(DetailTransitRouterParams, interface{}) middleware.Responder
}
DetailTransitRouterHandler interface for that can handle valid detail transit router params
type DetailTransitRouterHandlerFunc ¶
type DetailTransitRouterHandlerFunc func(DetailTransitRouterParams, interface{}) middleware.Responder
DetailTransitRouterHandlerFunc turns a function with the right signature into a detail transit router handler
func (DetailTransitRouterHandlerFunc) Handle ¶
func (fn DetailTransitRouterHandlerFunc) Handle(params DetailTransitRouterParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DetailTransitRouterNotFound ¶
type DetailTransitRouterNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailTransitRouterNotFound The requested resource does not exist
swagger:response detailTransitRouterNotFound
func NewDetailTransitRouterNotFound ¶
func NewDetailTransitRouterNotFound() *DetailTransitRouterNotFound
NewDetailTransitRouterNotFound creates DetailTransitRouterNotFound with default headers values
func (*DetailTransitRouterNotFound) SetPayload ¶
func (o *DetailTransitRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail transit router not found response
func (*DetailTransitRouterNotFound) WithPayload ¶
func (o *DetailTransitRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailTransitRouterNotFound
WithPayload adds the payload to the detail transit router not found response
func (*DetailTransitRouterNotFound) WriteResponse ¶
func (o *DetailTransitRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailTransitRouterOK ¶
type DetailTransitRouterOK struct { /* In: Body */ Payload *rest_model.DetailTransitRouterEnvelope `json:"body,omitempty"` }
DetailTransitRouterOK A single transit router
swagger:response detailTransitRouterOK
func NewDetailTransitRouterOK ¶
func NewDetailTransitRouterOK() *DetailTransitRouterOK
NewDetailTransitRouterOK creates DetailTransitRouterOK with default headers values
func (*DetailTransitRouterOK) SetPayload ¶
func (o *DetailTransitRouterOK) SetPayload(payload *rest_model.DetailTransitRouterEnvelope)
SetPayload sets the payload to the detail transit router o k response
func (*DetailTransitRouterOK) WithPayload ¶
func (o *DetailTransitRouterOK) WithPayload(payload *rest_model.DetailTransitRouterEnvelope) *DetailTransitRouterOK
WithPayload adds the payload to the detail transit router o k response
func (*DetailTransitRouterOK) WriteResponse ¶
func (o *DetailTransitRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailTransitRouterParams ¶
type DetailTransitRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DetailTransitRouterParams contains all the bound params for the detail transit router operation typically these are obtained from a http.Request
swagger:parameters detailTransitRouter
func NewDetailTransitRouterParams ¶
func NewDetailTransitRouterParams() DetailTransitRouterParams
NewDetailTransitRouterParams creates a new DetailTransitRouterParams object no default values defined in spec.
func (*DetailTransitRouterParams) BindRequest ¶
func (o *DetailTransitRouterParams) 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 NewDetailTransitRouterParams() beforehand.
type DetailTransitRouterURL ¶
type DetailTransitRouterURL struct { ID string // contains filtered or unexported fields }
DetailTransitRouterURL generates an URL for the detail transit router operation
func (*DetailTransitRouterURL) Build ¶
func (o *DetailTransitRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*DetailTransitRouterURL) BuildFull ¶
func (o *DetailTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DetailTransitRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DetailTransitRouterURL) SetBasePath ¶
func (o *DetailTransitRouterURL) 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 (*DetailTransitRouterURL) String ¶
func (o *DetailTransitRouterURL) String() string
String returns the string representation of the path with query string
func (*DetailTransitRouterURL) StringFull ¶
func (o *DetailTransitRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DetailTransitRouterURL) WithBasePath ¶
func (o *DetailTransitRouterURL) WithBasePath(bp string) *DetailTransitRouterURL
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 DetailTransitRouterUnauthorized ¶
type DetailTransitRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DetailTransitRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response detailTransitRouterUnauthorized
func NewDetailTransitRouterUnauthorized ¶
func NewDetailTransitRouterUnauthorized() *DetailTransitRouterUnauthorized
NewDetailTransitRouterUnauthorized creates DetailTransitRouterUnauthorized with default headers values
func (*DetailTransitRouterUnauthorized) SetPayload ¶
func (o *DetailTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail transit router unauthorized response
func (*DetailTransitRouterUnauthorized) WithPayload ¶
func (o *DetailTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailTransitRouterUnauthorized
WithPayload adds the payload to the detail transit router unauthorized response
func (*DetailTransitRouterUnauthorized) WriteResponse ¶
func (o *DetailTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListTransitRouters ¶
type ListTransitRouters struct { Context *middleware.Context Handler ListTransitRoutersHandler }
ListTransitRouters swagger:route GET /transit-routers Transit Router listTransitRouters
List transit routers ¶
Retrieves a list of transit router resources; supports filtering, sorting, and pagination. Requires admin access.
func NewListTransitRouters ¶
func NewListTransitRouters(ctx *middleware.Context, handler ListTransitRoutersHandler) *ListTransitRouters
NewListTransitRouters creates a new http.Handler for the list transit routers operation
func (*ListTransitRouters) ServeHTTP ¶
func (o *ListTransitRouters) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListTransitRoutersHandler ¶
type ListTransitRoutersHandler interface {
Handle(ListTransitRoutersParams, interface{}) middleware.Responder
}
ListTransitRoutersHandler interface for that can handle valid list transit routers params
type ListTransitRoutersHandlerFunc ¶
type ListTransitRoutersHandlerFunc func(ListTransitRoutersParams, interface{}) middleware.Responder
ListTransitRoutersHandlerFunc turns a function with the right signature into a list transit routers handler
func (ListTransitRoutersHandlerFunc) Handle ¶
func (fn ListTransitRoutersHandlerFunc) Handle(params ListTransitRoutersParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListTransitRoutersOK ¶
type ListTransitRoutersOK struct { /* In: Body */ Payload *rest_model.ListTransitRoutersEnvelope `json:"body,omitempty"` }
ListTransitRoutersOK A list of specifications
swagger:response listTransitRoutersOK
func NewListTransitRoutersOK ¶
func NewListTransitRoutersOK() *ListTransitRoutersOK
NewListTransitRoutersOK creates ListTransitRoutersOK with default headers values
func (*ListTransitRoutersOK) SetPayload ¶
func (o *ListTransitRoutersOK) SetPayload(payload *rest_model.ListTransitRoutersEnvelope)
SetPayload sets the payload to the list transit routers o k response
func (*ListTransitRoutersOK) WithPayload ¶
func (o *ListTransitRoutersOK) WithPayload(payload *rest_model.ListTransitRoutersEnvelope) *ListTransitRoutersOK
WithPayload adds the payload to the list transit routers o k response
func (*ListTransitRoutersOK) WriteResponse ¶
func (o *ListTransitRoutersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListTransitRoutersParams ¶
type ListTransitRoutersParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Filter *string /* In: query */ Limit *int64 /* In: query */ Offset *int64 }
ListTransitRoutersParams contains all the bound params for the list transit routers operation typically these are obtained from a http.Request
swagger:parameters listTransitRouters
func NewListTransitRoutersParams ¶
func NewListTransitRoutersParams() ListTransitRoutersParams
NewListTransitRoutersParams creates a new ListTransitRoutersParams object no default values defined in spec.
func (*ListTransitRoutersParams) BindRequest ¶
func (o *ListTransitRoutersParams) 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 NewListTransitRoutersParams() beforehand.
type ListTransitRoutersURL ¶
type ListTransitRoutersURL struct { Filter *string Limit *int64 Offset *int64 // contains filtered or unexported fields }
ListTransitRoutersURL generates an URL for the list transit routers operation
func (*ListTransitRoutersURL) Build ¶
func (o *ListTransitRoutersURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListTransitRoutersURL) BuildFull ¶
func (o *ListTransitRoutersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListTransitRoutersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListTransitRoutersURL) SetBasePath ¶
func (o *ListTransitRoutersURL) 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 (*ListTransitRoutersURL) String ¶
func (o *ListTransitRoutersURL) String() string
String returns the string representation of the path with query string
func (*ListTransitRoutersURL) StringFull ¶
func (o *ListTransitRoutersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListTransitRoutersURL) WithBasePath ¶
func (o *ListTransitRoutersURL) WithBasePath(bp string) *ListTransitRoutersURL
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 ListTransitRoutersUnauthorized ¶
type ListTransitRoutersUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
ListTransitRoutersUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response listTransitRoutersUnauthorized
func NewListTransitRoutersUnauthorized ¶
func NewListTransitRoutersUnauthorized() *ListTransitRoutersUnauthorized
NewListTransitRoutersUnauthorized creates ListTransitRoutersUnauthorized with default headers values
func (*ListTransitRoutersUnauthorized) SetPayload ¶
func (o *ListTransitRoutersUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list transit routers unauthorized response
func (*ListTransitRoutersUnauthorized) WithPayload ¶
func (o *ListTransitRoutersUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListTransitRoutersUnauthorized
WithPayload adds the payload to the list transit routers unauthorized response
func (*ListTransitRoutersUnauthorized) WriteResponse ¶
func (o *ListTransitRoutersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchTransitRouter ¶
type PatchTransitRouter struct { Context *middleware.Context Handler PatchTransitRouterHandler }
PatchTransitRouter swagger:route PATCH /transit-routers/{id} Transit Router patchTransitRouter
Update the supplied fields on a transit router ¶
Update the supplied fields on a transit router. Requires admin access.
func NewPatchTransitRouter ¶
func NewPatchTransitRouter(ctx *middleware.Context, handler PatchTransitRouterHandler) *PatchTransitRouter
NewPatchTransitRouter creates a new http.Handler for the patch transit router operation
func (*PatchTransitRouter) ServeHTTP ¶
func (o *PatchTransitRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PatchTransitRouterBadRequest ¶
type PatchTransitRouterBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchTransitRouterBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response patchTransitRouterBadRequest
func NewPatchTransitRouterBadRequest ¶
func NewPatchTransitRouterBadRequest() *PatchTransitRouterBadRequest
NewPatchTransitRouterBadRequest creates PatchTransitRouterBadRequest with default headers values
func (*PatchTransitRouterBadRequest) SetPayload ¶
func (o *PatchTransitRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch transit router bad request response
func (*PatchTransitRouterBadRequest) WithPayload ¶
func (o *PatchTransitRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchTransitRouterBadRequest
WithPayload adds the payload to the patch transit router bad request response
func (*PatchTransitRouterBadRequest) WriteResponse ¶
func (o *PatchTransitRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchTransitRouterHandler ¶
type PatchTransitRouterHandler interface {
Handle(PatchTransitRouterParams, interface{}) middleware.Responder
}
PatchTransitRouterHandler interface for that can handle valid patch transit router params
type PatchTransitRouterHandlerFunc ¶
type PatchTransitRouterHandlerFunc func(PatchTransitRouterParams, interface{}) middleware.Responder
PatchTransitRouterHandlerFunc turns a function with the right signature into a patch transit router handler
func (PatchTransitRouterHandlerFunc) Handle ¶
func (fn PatchTransitRouterHandlerFunc) Handle(params PatchTransitRouterParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PatchTransitRouterNotFound ¶
type PatchTransitRouterNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchTransitRouterNotFound The requested resource does not exist
swagger:response patchTransitRouterNotFound
func NewPatchTransitRouterNotFound ¶
func NewPatchTransitRouterNotFound() *PatchTransitRouterNotFound
NewPatchTransitRouterNotFound creates PatchTransitRouterNotFound with default headers values
func (*PatchTransitRouterNotFound) SetPayload ¶
func (o *PatchTransitRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch transit router not found response
func (*PatchTransitRouterNotFound) WithPayload ¶
func (o *PatchTransitRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchTransitRouterNotFound
WithPayload adds the payload to the patch transit router not found response
func (*PatchTransitRouterNotFound) WriteResponse ¶
func (o *PatchTransitRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchTransitRouterOK ¶
type PatchTransitRouterOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
PatchTransitRouterOK The patch request was successful and the resource has been altered
swagger:response patchTransitRouterOK
func NewPatchTransitRouterOK ¶
func NewPatchTransitRouterOK() *PatchTransitRouterOK
NewPatchTransitRouterOK creates PatchTransitRouterOK with default headers values
func (*PatchTransitRouterOK) SetPayload ¶
func (o *PatchTransitRouterOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the patch transit router o k response
func (*PatchTransitRouterOK) WithPayload ¶
func (o *PatchTransitRouterOK) WithPayload(payload *rest_model.Empty) *PatchTransitRouterOK
WithPayload adds the payload to the patch transit router o k response
func (*PatchTransitRouterOK) WriteResponse ¶
func (o *PatchTransitRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchTransitRouterParams ¶
type PatchTransitRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A transit router patch object Required: true In: body */ Body *rest_model.TransitRouterPatch /*The id of the requested resource Required: true In: path */ ID string }
PatchTransitRouterParams contains all the bound params for the patch transit router operation typically these are obtained from a http.Request
swagger:parameters patchTransitRouter
func NewPatchTransitRouterParams ¶
func NewPatchTransitRouterParams() PatchTransitRouterParams
NewPatchTransitRouterParams creates a new PatchTransitRouterParams object no default values defined in spec.
func (*PatchTransitRouterParams) BindRequest ¶
func (o *PatchTransitRouterParams) 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 NewPatchTransitRouterParams() beforehand.
type PatchTransitRouterURL ¶
type PatchTransitRouterURL struct { ID string // contains filtered or unexported fields }
PatchTransitRouterURL generates an URL for the patch transit router operation
func (*PatchTransitRouterURL) Build ¶
func (o *PatchTransitRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*PatchTransitRouterURL) BuildFull ¶
func (o *PatchTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PatchTransitRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PatchTransitRouterURL) SetBasePath ¶
func (o *PatchTransitRouterURL) 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 (*PatchTransitRouterURL) String ¶
func (o *PatchTransitRouterURL) String() string
String returns the string representation of the path with query string
func (*PatchTransitRouterURL) StringFull ¶
func (o *PatchTransitRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PatchTransitRouterURL) WithBasePath ¶
func (o *PatchTransitRouterURL) WithBasePath(bp string) *PatchTransitRouterURL
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 PatchTransitRouterUnauthorized ¶
type PatchTransitRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
PatchTransitRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response patchTransitRouterUnauthorized
func NewPatchTransitRouterUnauthorized ¶
func NewPatchTransitRouterUnauthorized() *PatchTransitRouterUnauthorized
NewPatchTransitRouterUnauthorized creates PatchTransitRouterUnauthorized with default headers values
func (*PatchTransitRouterUnauthorized) SetPayload ¶
func (o *PatchTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch transit router unauthorized response
func (*PatchTransitRouterUnauthorized) WithPayload ¶
func (o *PatchTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchTransitRouterUnauthorized
WithPayload adds the payload to the patch transit router unauthorized response
func (*PatchTransitRouterUnauthorized) WriteResponse ¶
func (o *PatchTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTransitRouter ¶
type UpdateTransitRouter struct { Context *middleware.Context Handler UpdateTransitRouterHandler }
UpdateTransitRouter swagger:route PUT /transit-routers/{id} Transit Router updateTransitRouter
Update all fields on a transit router ¶
Update all fields on a transit router by id. Requires admin access.
func NewUpdateTransitRouter ¶
func NewUpdateTransitRouter(ctx *middleware.Context, handler UpdateTransitRouterHandler) *UpdateTransitRouter
NewUpdateTransitRouter creates a new http.Handler for the update transit router operation
func (*UpdateTransitRouter) ServeHTTP ¶
func (o *UpdateTransitRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateTransitRouterBadRequest ¶
type UpdateTransitRouterBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
UpdateTransitRouterBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response updateTransitRouterBadRequest
func NewUpdateTransitRouterBadRequest ¶
func NewUpdateTransitRouterBadRequest() *UpdateTransitRouterBadRequest
NewUpdateTransitRouterBadRequest creates UpdateTransitRouterBadRequest with default headers values
func (*UpdateTransitRouterBadRequest) SetPayload ¶
func (o *UpdateTransitRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update transit router bad request response
func (*UpdateTransitRouterBadRequest) WithPayload ¶
func (o *UpdateTransitRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateTransitRouterBadRequest
WithPayload adds the payload to the update transit router bad request response
func (*UpdateTransitRouterBadRequest) WriteResponse ¶
func (o *UpdateTransitRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTransitRouterHandler ¶
type UpdateTransitRouterHandler interface {
Handle(UpdateTransitRouterParams, interface{}) middleware.Responder
}
UpdateTransitRouterHandler interface for that can handle valid update transit router params
type UpdateTransitRouterHandlerFunc ¶
type UpdateTransitRouterHandlerFunc func(UpdateTransitRouterParams, interface{}) middleware.Responder
UpdateTransitRouterHandlerFunc turns a function with the right signature into a update transit router handler
func (UpdateTransitRouterHandlerFunc) Handle ¶
func (fn UpdateTransitRouterHandlerFunc) Handle(params UpdateTransitRouterParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateTransitRouterNotFound ¶
type UpdateTransitRouterNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
UpdateTransitRouterNotFound The requested resource does not exist
swagger:response updateTransitRouterNotFound
func NewUpdateTransitRouterNotFound ¶
func NewUpdateTransitRouterNotFound() *UpdateTransitRouterNotFound
NewUpdateTransitRouterNotFound creates UpdateTransitRouterNotFound with default headers values
func (*UpdateTransitRouterNotFound) SetPayload ¶
func (o *UpdateTransitRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update transit router not found response
func (*UpdateTransitRouterNotFound) WithPayload ¶
func (o *UpdateTransitRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateTransitRouterNotFound
WithPayload adds the payload to the update transit router not found response
func (*UpdateTransitRouterNotFound) WriteResponse ¶
func (o *UpdateTransitRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTransitRouterOK ¶
type UpdateTransitRouterOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
UpdateTransitRouterOK The update request was successful and the resource has been altered
swagger:response updateTransitRouterOK
func NewUpdateTransitRouterOK ¶
func NewUpdateTransitRouterOK() *UpdateTransitRouterOK
NewUpdateTransitRouterOK creates UpdateTransitRouterOK with default headers values
func (*UpdateTransitRouterOK) SetPayload ¶
func (o *UpdateTransitRouterOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the update transit router o k response
func (*UpdateTransitRouterOK) WithPayload ¶
func (o *UpdateTransitRouterOK) WithPayload(payload *rest_model.Empty) *UpdateTransitRouterOK
WithPayload adds the payload to the update transit router o k response
func (*UpdateTransitRouterOK) WriteResponse ¶
func (o *UpdateTransitRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTransitRouterParams ¶
type UpdateTransitRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A transit router update object Required: true In: body */ Body *rest_model.TransitRouterUpdate /*The id of the requested resource Required: true In: path */ ID string }
UpdateTransitRouterParams contains all the bound params for the update transit router operation typically these are obtained from a http.Request
swagger:parameters updateTransitRouter
func NewUpdateTransitRouterParams ¶
func NewUpdateTransitRouterParams() UpdateTransitRouterParams
NewUpdateTransitRouterParams creates a new UpdateTransitRouterParams object no default values defined in spec.
func (*UpdateTransitRouterParams) BindRequest ¶
func (o *UpdateTransitRouterParams) 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 NewUpdateTransitRouterParams() beforehand.
type UpdateTransitRouterURL ¶
type UpdateTransitRouterURL struct { ID string // contains filtered or unexported fields }
UpdateTransitRouterURL generates an URL for the update transit router operation
func (*UpdateTransitRouterURL) Build ¶
func (o *UpdateTransitRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateTransitRouterURL) BuildFull ¶
func (o *UpdateTransitRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateTransitRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateTransitRouterURL) SetBasePath ¶
func (o *UpdateTransitRouterURL) 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 (*UpdateTransitRouterURL) String ¶
func (o *UpdateTransitRouterURL) String() string
String returns the string representation of the path with query string
func (*UpdateTransitRouterURL) StringFull ¶
func (o *UpdateTransitRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateTransitRouterURL) WithBasePath ¶
func (o *UpdateTransitRouterURL) WithBasePath(bp string) *UpdateTransitRouterURL
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 UpdateTransitRouterUnauthorized ¶
type UpdateTransitRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
UpdateTransitRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response updateTransitRouterUnauthorized
func NewUpdateTransitRouterUnauthorized ¶
func NewUpdateTransitRouterUnauthorized() *UpdateTransitRouterUnauthorized
NewUpdateTransitRouterUnauthorized creates UpdateTransitRouterUnauthorized with default headers values
func (*UpdateTransitRouterUnauthorized) SetPayload ¶
func (o *UpdateTransitRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update transit router unauthorized response
func (*UpdateTransitRouterUnauthorized) WithPayload ¶
func (o *UpdateTransitRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateTransitRouterUnauthorized
WithPayload adds the payload to the update transit router unauthorized response
func (*UpdateTransitRouterUnauthorized) WriteResponse ¶
func (o *UpdateTransitRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_transit_router.go
- create_transit_router_parameters.go
- create_transit_router_responses.go
- create_transit_router_urlbuilder.go
- delete_transit_router.go
- delete_transit_router_parameters.go
- delete_transit_router_responses.go
- delete_transit_router_urlbuilder.go
- detail_transit_router.go
- detail_transit_router_parameters.go
- detail_transit_router_responses.go
- detail_transit_router_urlbuilder.go
- list_transit_routers.go
- list_transit_routers_parameters.go
- list_transit_routers_responses.go
- list_transit_routers_urlbuilder.go
- patch_transit_router.go
- patch_transit_router_parameters.go
- patch_transit_router_responses.go
- patch_transit_router_urlbuilder.go
- update_transit_router.go
- update_transit_router_parameters.go
- update_transit_router_responses.go
- update_transit_router_urlbuilder.go