Documentation ¶
Index ¶
- Constants
- type CreateEnrollment
- type CreateEnrollmentBadRequest
- func (o *CreateEnrollmentBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *CreateEnrollmentBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateEnrollmentBadRequest
- func (o *CreateEnrollmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateEnrollmentConflict
- type CreateEnrollmentCreated
- type CreateEnrollmentHandler
- type CreateEnrollmentHandlerFunc
- type CreateEnrollmentParams
- type CreateEnrollmentTooManyRequests
- func (o *CreateEnrollmentTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *CreateEnrollmentTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateEnrollmentTooManyRequests
- func (o *CreateEnrollmentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateEnrollmentURL
- func (o *CreateEnrollmentURL) Build() (*url.URL, error)
- func (o *CreateEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateEnrollmentURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateEnrollmentURL) SetBasePath(bp string)
- func (o *CreateEnrollmentURL) String() string
- func (o *CreateEnrollmentURL) StringFull(scheme, host string) string
- func (o *CreateEnrollmentURL) WithBasePath(bp string) *CreateEnrollmentURL
- type CreateEnrollmentUnauthorized
- func (o *CreateEnrollmentUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *CreateEnrollmentUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateEnrollmentUnauthorized
- func (o *CreateEnrollmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteEnrollment
- type DeleteEnrollmentBadRequest
- func (o *DeleteEnrollmentBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DeleteEnrollmentBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteEnrollmentBadRequest
- func (o *DeleteEnrollmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteEnrollmentHandler
- type DeleteEnrollmentHandlerFunc
- type DeleteEnrollmentOK
- type DeleteEnrollmentParams
- type DeleteEnrollmentTooManyRequests
- func (o *DeleteEnrollmentTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DeleteEnrollmentTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteEnrollmentTooManyRequests
- func (o *DeleteEnrollmentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteEnrollmentURL
- func (o *DeleteEnrollmentURL) Build() (*url.URL, error)
- func (o *DeleteEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteEnrollmentURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteEnrollmentURL) SetBasePath(bp string)
- func (o *DeleteEnrollmentURL) String() string
- func (o *DeleteEnrollmentURL) StringFull(scheme, host string) string
- func (o *DeleteEnrollmentURL) WithBasePath(bp string) *DeleteEnrollmentURL
- type DeleteEnrollmentUnauthorized
- func (o *DeleteEnrollmentUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DeleteEnrollmentUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteEnrollmentUnauthorized
- func (o *DeleteEnrollmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DetailEnrollment
- type DetailEnrollmentHandler
- type DetailEnrollmentHandlerFunc
- type DetailEnrollmentNotFound
- type DetailEnrollmentOK
- type DetailEnrollmentParams
- type DetailEnrollmentTooManyRequests
- func (o *DetailEnrollmentTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DetailEnrollmentTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailEnrollmentTooManyRequests
- func (o *DetailEnrollmentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DetailEnrollmentURL
- func (o *DetailEnrollmentURL) Build() (*url.URL, error)
- func (o *DetailEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DetailEnrollmentURL) Must(u *url.URL, err error) *url.URL
- func (o *DetailEnrollmentURL) SetBasePath(bp string)
- func (o *DetailEnrollmentURL) String() string
- func (o *DetailEnrollmentURL) StringFull(scheme, host string) string
- func (o *DetailEnrollmentURL) WithBasePath(bp string) *DetailEnrollmentURL
- type DetailEnrollmentUnauthorized
- func (o *DetailEnrollmentUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DetailEnrollmentUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailEnrollmentUnauthorized
- func (o *DetailEnrollmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListEnrollments
- type ListEnrollmentsBadRequest
- type ListEnrollmentsHandler
- type ListEnrollmentsHandlerFunc
- type ListEnrollmentsOK
- type ListEnrollmentsParams
- type ListEnrollmentsTooManyRequests
- func (o *ListEnrollmentsTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *ListEnrollmentsTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *ListEnrollmentsTooManyRequests
- func (o *ListEnrollmentsTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListEnrollmentsURL
- func (o *ListEnrollmentsURL) Build() (*url.URL, error)
- func (o *ListEnrollmentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListEnrollmentsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListEnrollmentsURL) SetBasePath(bp string)
- func (o *ListEnrollmentsURL) String() string
- func (o *ListEnrollmentsURL) StringFull(scheme, host string) string
- func (o *ListEnrollmentsURL) WithBasePath(bp string) *ListEnrollmentsURL
- type ListEnrollmentsUnauthorized
- func (o *ListEnrollmentsUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *ListEnrollmentsUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListEnrollmentsUnauthorized
- func (o *ListEnrollmentsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RefreshEnrollment
- type RefreshEnrollmentBadRequest
- func (o *RefreshEnrollmentBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *RefreshEnrollmentBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *RefreshEnrollmentBadRequest
- func (o *RefreshEnrollmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RefreshEnrollmentHandler
- type RefreshEnrollmentHandlerFunc
- type RefreshEnrollmentOK
- type RefreshEnrollmentParams
- type RefreshEnrollmentTooManyRequests
- func (o *RefreshEnrollmentTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *RefreshEnrollmentTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *RefreshEnrollmentTooManyRequests
- func (o *RefreshEnrollmentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RefreshEnrollmentURL
- func (o *RefreshEnrollmentURL) Build() (*url.URL, error)
- func (o *RefreshEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RefreshEnrollmentURL) Must(u *url.URL, err error) *url.URL
- func (o *RefreshEnrollmentURL) SetBasePath(bp string)
- func (o *RefreshEnrollmentURL) String() string
- func (o *RefreshEnrollmentURL) StringFull(scheme, host string) string
- func (o *RefreshEnrollmentURL) WithBasePath(bp string) *RefreshEnrollmentURL
- type RefreshEnrollmentUnauthorized
- func (o *RefreshEnrollmentUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *RefreshEnrollmentUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *RefreshEnrollmentUnauthorized
- func (o *RefreshEnrollmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const CreateEnrollmentBadRequestCode int = 400
CreateEnrollmentBadRequestCode is the HTTP code returned for type CreateEnrollmentBadRequest
const CreateEnrollmentConflictCode int = 409
CreateEnrollmentConflictCode is the HTTP code returned for type CreateEnrollmentConflict
const CreateEnrollmentCreatedCode int = 201
CreateEnrollmentCreatedCode is the HTTP code returned for type CreateEnrollmentCreated
const CreateEnrollmentTooManyRequestsCode int = 429
CreateEnrollmentTooManyRequestsCode is the HTTP code returned for type CreateEnrollmentTooManyRequests
CreateEnrollmentUnauthorizedCode is the HTTP code returned for type CreateEnrollmentUnauthorized
const DeleteEnrollmentBadRequestCode int = 400
DeleteEnrollmentBadRequestCode is the HTTP code returned for type DeleteEnrollmentBadRequest
const DeleteEnrollmentOKCode int = 200
DeleteEnrollmentOKCode is the HTTP code returned for type DeleteEnrollmentOK
const DeleteEnrollmentTooManyRequestsCode int = 429
DeleteEnrollmentTooManyRequestsCode is the HTTP code returned for type DeleteEnrollmentTooManyRequests
DeleteEnrollmentUnauthorizedCode is the HTTP code returned for type DeleteEnrollmentUnauthorized
const DetailEnrollmentNotFoundCode int = 404
DetailEnrollmentNotFoundCode is the HTTP code returned for type DetailEnrollmentNotFound
const DetailEnrollmentOKCode int = 200
DetailEnrollmentOKCode is the HTTP code returned for type DetailEnrollmentOK
const DetailEnrollmentTooManyRequestsCode int = 429
DetailEnrollmentTooManyRequestsCode is the HTTP code returned for type DetailEnrollmentTooManyRequests
DetailEnrollmentUnauthorizedCode is the HTTP code returned for type DetailEnrollmentUnauthorized
const ListEnrollmentsBadRequestCode int = 400
ListEnrollmentsBadRequestCode is the HTTP code returned for type ListEnrollmentsBadRequest
const ListEnrollmentsOKCode int = 200
ListEnrollmentsOKCode is the HTTP code returned for type ListEnrollmentsOK
const ListEnrollmentsTooManyRequestsCode int = 429
ListEnrollmentsTooManyRequestsCode is the HTTP code returned for type ListEnrollmentsTooManyRequests
ListEnrollmentsUnauthorizedCode is the HTTP code returned for type ListEnrollmentsUnauthorized
const RefreshEnrollmentBadRequestCode int = 400
RefreshEnrollmentBadRequestCode is the HTTP code returned for type RefreshEnrollmentBadRequest
const RefreshEnrollmentOKCode int = 200
RefreshEnrollmentOKCode is the HTTP code returned for type RefreshEnrollmentOK
const RefreshEnrollmentTooManyRequestsCode int = 429
RefreshEnrollmentTooManyRequestsCode is the HTTP code returned for type RefreshEnrollmentTooManyRequests
RefreshEnrollmentUnauthorizedCode is the HTTP code returned for type RefreshEnrollmentUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEnrollment ¶
type CreateEnrollment struct { Context *middleware.Context Handler CreateEnrollmentHandler }
CreateEnrollment swagger:route POST /enrollments Enrollment createEnrollment
Create an outstanding enrollment for an identity ¶
Creates a new OTT, OTTCA, or UPDB enrollment for a specific identity. If an enrollment of the same type is already outstanding the request will fail with a 409 conflict. If desired, an existing enrollment can be refreshed by `enrollments/:id/refresh` or deleted.
func NewCreateEnrollment ¶
func NewCreateEnrollment(ctx *middleware.Context, handler CreateEnrollmentHandler) *CreateEnrollment
NewCreateEnrollment creates a new http.Handler for the create enrollment operation
func (*CreateEnrollment) ServeHTTP ¶
func (o *CreateEnrollment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateEnrollmentBadRequest ¶
type CreateEnrollmentBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateEnrollmentBadRequest 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 createEnrollmentBadRequest
func NewCreateEnrollmentBadRequest ¶
func NewCreateEnrollmentBadRequest() *CreateEnrollmentBadRequest
NewCreateEnrollmentBadRequest creates CreateEnrollmentBadRequest with default headers values
func (*CreateEnrollmentBadRequest) SetPayload ¶
func (o *CreateEnrollmentBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create enrollment bad request response
func (*CreateEnrollmentBadRequest) WithPayload ¶
func (o *CreateEnrollmentBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateEnrollmentBadRequest
WithPayload adds the payload to the create enrollment bad request response
func (*CreateEnrollmentBadRequest) WriteResponse ¶
func (o *CreateEnrollmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateEnrollmentConflict ¶
type CreateEnrollmentConflict struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateEnrollmentConflict The request could not be completed due to a conflict of configuration or state
swagger:response createEnrollmentConflict
func NewCreateEnrollmentConflict ¶
func NewCreateEnrollmentConflict() *CreateEnrollmentConflict
NewCreateEnrollmentConflict creates CreateEnrollmentConflict with default headers values
func (*CreateEnrollmentConflict) SetPayload ¶
func (o *CreateEnrollmentConflict) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create enrollment conflict response
func (*CreateEnrollmentConflict) WithPayload ¶
func (o *CreateEnrollmentConflict) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateEnrollmentConflict
WithPayload adds the payload to the create enrollment conflict response
func (*CreateEnrollmentConflict) WriteResponse ¶
func (o *CreateEnrollmentConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateEnrollmentCreated ¶
type CreateEnrollmentCreated struct { /* In: Body */ Payload *rest_model.CreateEnvelope `json:"body,omitempty"` }
CreateEnrollmentCreated The create request was successful and the resource has been added at the following location
swagger:response createEnrollmentCreated
func NewCreateEnrollmentCreated ¶
func NewCreateEnrollmentCreated() *CreateEnrollmentCreated
NewCreateEnrollmentCreated creates CreateEnrollmentCreated with default headers values
func (*CreateEnrollmentCreated) SetPayload ¶
func (o *CreateEnrollmentCreated) SetPayload(payload *rest_model.CreateEnvelope)
SetPayload sets the payload to the create enrollment created response
func (*CreateEnrollmentCreated) WithPayload ¶
func (o *CreateEnrollmentCreated) WithPayload(payload *rest_model.CreateEnvelope) *CreateEnrollmentCreated
WithPayload adds the payload to the create enrollment created response
func (*CreateEnrollmentCreated) WriteResponse ¶
func (o *CreateEnrollmentCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateEnrollmentHandler ¶
type CreateEnrollmentHandler interface {
Handle(CreateEnrollmentParams, interface{}) middleware.Responder
}
CreateEnrollmentHandler interface for that can handle valid create enrollment params
type CreateEnrollmentHandlerFunc ¶
type CreateEnrollmentHandlerFunc func(CreateEnrollmentParams, interface{}) middleware.Responder
CreateEnrollmentHandlerFunc turns a function with the right signature into a create enrollment handler
func (CreateEnrollmentHandlerFunc) Handle ¶
func (fn CreateEnrollmentHandlerFunc) Handle(params CreateEnrollmentParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateEnrollmentParams ¶
type CreateEnrollmentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An enrollment to create Required: true In: body */ Enrollment *rest_model.EnrollmentCreate }
CreateEnrollmentParams contains all the bound params for the create enrollment operation typically these are obtained from a http.Request
swagger:parameters createEnrollment
func NewCreateEnrollmentParams ¶
func NewCreateEnrollmentParams() CreateEnrollmentParams
NewCreateEnrollmentParams creates a new CreateEnrollmentParams object
There are no default values defined in the spec.
func (*CreateEnrollmentParams) BindRequest ¶
func (o *CreateEnrollmentParams) 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 NewCreateEnrollmentParams() beforehand.
type CreateEnrollmentTooManyRequests ¶ added in v0.26.0
type CreateEnrollmentTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateEnrollmentTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response createEnrollmentTooManyRequests
func NewCreateEnrollmentTooManyRequests ¶ added in v0.26.0
func NewCreateEnrollmentTooManyRequests() *CreateEnrollmentTooManyRequests
NewCreateEnrollmentTooManyRequests creates CreateEnrollmentTooManyRequests with default headers values
func (*CreateEnrollmentTooManyRequests) SetPayload ¶ added in v0.26.0
func (o *CreateEnrollmentTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create enrollment too many requests response
func (*CreateEnrollmentTooManyRequests) WithPayload ¶ added in v0.26.0
func (o *CreateEnrollmentTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateEnrollmentTooManyRequests
WithPayload adds the payload to the create enrollment too many requests response
func (*CreateEnrollmentTooManyRequests) WriteResponse ¶ added in v0.26.0
func (o *CreateEnrollmentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateEnrollmentURL ¶
type CreateEnrollmentURL struct {
// contains filtered or unexported fields
}
CreateEnrollmentURL generates an URL for the create enrollment operation
func (*CreateEnrollmentURL) Build ¶
func (o *CreateEnrollmentURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateEnrollmentURL) BuildFull ¶
func (o *CreateEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateEnrollmentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateEnrollmentURL) SetBasePath ¶
func (o *CreateEnrollmentURL) 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 (*CreateEnrollmentURL) String ¶
func (o *CreateEnrollmentURL) String() string
String returns the string representation of the path with query string
func (*CreateEnrollmentURL) StringFull ¶
func (o *CreateEnrollmentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateEnrollmentURL) WithBasePath ¶
func (o *CreateEnrollmentURL) WithBasePath(bp string) *CreateEnrollmentURL
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 CreateEnrollmentUnauthorized ¶
type CreateEnrollmentUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
CreateEnrollmentUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response createEnrollmentUnauthorized
func NewCreateEnrollmentUnauthorized ¶
func NewCreateEnrollmentUnauthorized() *CreateEnrollmentUnauthorized
NewCreateEnrollmentUnauthorized creates CreateEnrollmentUnauthorized with default headers values
func (*CreateEnrollmentUnauthorized) SetPayload ¶
func (o *CreateEnrollmentUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create enrollment unauthorized response
func (*CreateEnrollmentUnauthorized) WithPayload ¶
func (o *CreateEnrollmentUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateEnrollmentUnauthorized
WithPayload adds the payload to the create enrollment unauthorized response
func (*CreateEnrollmentUnauthorized) WriteResponse ¶
func (o *CreateEnrollmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEnrollment ¶
type DeleteEnrollment struct { Context *middleware.Context Handler DeleteEnrollmentHandler }
DeleteEnrollment swagger:route DELETE /enrollments/{id} Enrollment deleteEnrollment
Delete an outstanding enrollment ¶
Delete an outstanding enrollment by id. Requires admin access.
func NewDeleteEnrollment ¶
func NewDeleteEnrollment(ctx *middleware.Context, handler DeleteEnrollmentHandler) *DeleteEnrollment
NewDeleteEnrollment creates a new http.Handler for the delete enrollment operation
func (*DeleteEnrollment) ServeHTTP ¶
func (o *DeleteEnrollment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteEnrollmentBadRequest ¶
type DeleteEnrollmentBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteEnrollmentBadRequest 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 deleteEnrollmentBadRequest
func NewDeleteEnrollmentBadRequest ¶
func NewDeleteEnrollmentBadRequest() *DeleteEnrollmentBadRequest
NewDeleteEnrollmentBadRequest creates DeleteEnrollmentBadRequest with default headers values
func (*DeleteEnrollmentBadRequest) SetPayload ¶
func (o *DeleteEnrollmentBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete enrollment bad request response
func (*DeleteEnrollmentBadRequest) WithPayload ¶
func (o *DeleteEnrollmentBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteEnrollmentBadRequest
WithPayload adds the payload to the delete enrollment bad request response
func (*DeleteEnrollmentBadRequest) WriteResponse ¶
func (o *DeleteEnrollmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEnrollmentHandler ¶
type DeleteEnrollmentHandler interface {
Handle(DeleteEnrollmentParams, interface{}) middleware.Responder
}
DeleteEnrollmentHandler interface for that can handle valid delete enrollment params
type DeleteEnrollmentHandlerFunc ¶
type DeleteEnrollmentHandlerFunc func(DeleteEnrollmentParams, interface{}) middleware.Responder
DeleteEnrollmentHandlerFunc turns a function with the right signature into a delete enrollment handler
func (DeleteEnrollmentHandlerFunc) Handle ¶
func (fn DeleteEnrollmentHandlerFunc) Handle(params DeleteEnrollmentParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteEnrollmentOK ¶
type DeleteEnrollmentOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
DeleteEnrollmentOK The delete request was successful and the resource has been removed
swagger:response deleteEnrollmentOK
func NewDeleteEnrollmentOK ¶
func NewDeleteEnrollmentOK() *DeleteEnrollmentOK
NewDeleteEnrollmentOK creates DeleteEnrollmentOK with default headers values
func (*DeleteEnrollmentOK) SetPayload ¶
func (o *DeleteEnrollmentOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the delete enrollment o k response
func (*DeleteEnrollmentOK) WithPayload ¶
func (o *DeleteEnrollmentOK) WithPayload(payload *rest_model.Empty) *DeleteEnrollmentOK
WithPayload adds the payload to the delete enrollment o k response
func (*DeleteEnrollmentOK) WriteResponse ¶
func (o *DeleteEnrollmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEnrollmentParams ¶
type DeleteEnrollmentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DeleteEnrollmentParams contains all the bound params for the delete enrollment operation typically these are obtained from a http.Request
swagger:parameters deleteEnrollment
func NewDeleteEnrollmentParams ¶
func NewDeleteEnrollmentParams() DeleteEnrollmentParams
NewDeleteEnrollmentParams creates a new DeleteEnrollmentParams object
There are no default values defined in the spec.
func (*DeleteEnrollmentParams) BindRequest ¶
func (o *DeleteEnrollmentParams) 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 NewDeleteEnrollmentParams() beforehand.
type DeleteEnrollmentTooManyRequests ¶ added in v0.26.0
type DeleteEnrollmentTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteEnrollmentTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response deleteEnrollmentTooManyRequests
func NewDeleteEnrollmentTooManyRequests ¶ added in v0.26.0
func NewDeleteEnrollmentTooManyRequests() *DeleteEnrollmentTooManyRequests
NewDeleteEnrollmentTooManyRequests creates DeleteEnrollmentTooManyRequests with default headers values
func (*DeleteEnrollmentTooManyRequests) SetPayload ¶ added in v0.26.0
func (o *DeleteEnrollmentTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete enrollment too many requests response
func (*DeleteEnrollmentTooManyRequests) WithPayload ¶ added in v0.26.0
func (o *DeleteEnrollmentTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteEnrollmentTooManyRequests
WithPayload adds the payload to the delete enrollment too many requests response
func (*DeleteEnrollmentTooManyRequests) WriteResponse ¶ added in v0.26.0
func (o *DeleteEnrollmentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEnrollmentURL ¶
type DeleteEnrollmentURL struct { ID string // contains filtered or unexported fields }
DeleteEnrollmentURL generates an URL for the delete enrollment operation
func (*DeleteEnrollmentURL) Build ¶
func (o *DeleteEnrollmentURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteEnrollmentURL) BuildFull ¶
func (o *DeleteEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteEnrollmentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteEnrollmentURL) SetBasePath ¶
func (o *DeleteEnrollmentURL) 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 (*DeleteEnrollmentURL) String ¶
func (o *DeleteEnrollmentURL) String() string
String returns the string representation of the path with query string
func (*DeleteEnrollmentURL) StringFull ¶
func (o *DeleteEnrollmentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteEnrollmentURL) WithBasePath ¶
func (o *DeleteEnrollmentURL) WithBasePath(bp string) *DeleteEnrollmentURL
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 DeleteEnrollmentUnauthorized ¶
type DeleteEnrollmentUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DeleteEnrollmentUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response deleteEnrollmentUnauthorized
func NewDeleteEnrollmentUnauthorized ¶
func NewDeleteEnrollmentUnauthorized() *DeleteEnrollmentUnauthorized
NewDeleteEnrollmentUnauthorized creates DeleteEnrollmentUnauthorized with default headers values
func (*DeleteEnrollmentUnauthorized) SetPayload ¶
func (o *DeleteEnrollmentUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete enrollment unauthorized response
func (*DeleteEnrollmentUnauthorized) WithPayload ¶
func (o *DeleteEnrollmentUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteEnrollmentUnauthorized
WithPayload adds the payload to the delete enrollment unauthorized response
func (*DeleteEnrollmentUnauthorized) WriteResponse ¶
func (o *DeleteEnrollmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailEnrollment ¶
type DetailEnrollment struct { Context *middleware.Context Handler DetailEnrollmentHandler }
DetailEnrollment swagger:route GET /enrollments/{id} Enrollment detailEnrollment
Retrieves an outstanding enrollment ¶
Retrieves a single outstanding enrollment by id. Requires admin access.
func NewDetailEnrollment ¶
func NewDetailEnrollment(ctx *middleware.Context, handler DetailEnrollmentHandler) *DetailEnrollment
NewDetailEnrollment creates a new http.Handler for the detail enrollment operation
func (*DetailEnrollment) ServeHTTP ¶
func (o *DetailEnrollment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DetailEnrollmentHandler ¶
type DetailEnrollmentHandler interface {
Handle(DetailEnrollmentParams, interface{}) middleware.Responder
}
DetailEnrollmentHandler interface for that can handle valid detail enrollment params
type DetailEnrollmentHandlerFunc ¶
type DetailEnrollmentHandlerFunc func(DetailEnrollmentParams, interface{}) middleware.Responder
DetailEnrollmentHandlerFunc turns a function with the right signature into a detail enrollment handler
func (DetailEnrollmentHandlerFunc) Handle ¶
func (fn DetailEnrollmentHandlerFunc) Handle(params DetailEnrollmentParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DetailEnrollmentNotFound ¶
type DetailEnrollmentNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailEnrollmentNotFound The requested resource does not exist
swagger:response detailEnrollmentNotFound
func NewDetailEnrollmentNotFound ¶
func NewDetailEnrollmentNotFound() *DetailEnrollmentNotFound
NewDetailEnrollmentNotFound creates DetailEnrollmentNotFound with default headers values
func (*DetailEnrollmentNotFound) SetPayload ¶
func (o *DetailEnrollmentNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail enrollment not found response
func (*DetailEnrollmentNotFound) WithPayload ¶
func (o *DetailEnrollmentNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailEnrollmentNotFound
WithPayload adds the payload to the detail enrollment not found response
func (*DetailEnrollmentNotFound) WriteResponse ¶
func (o *DetailEnrollmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailEnrollmentOK ¶
type DetailEnrollmentOK struct { /* In: Body */ Payload *rest_model.DetailEnrollmentEnvelope `json:"body,omitempty"` }
DetailEnrollmentOK A singular enrollment resource
swagger:response detailEnrollmentOK
func NewDetailEnrollmentOK ¶
func NewDetailEnrollmentOK() *DetailEnrollmentOK
NewDetailEnrollmentOK creates DetailEnrollmentOK with default headers values
func (*DetailEnrollmentOK) SetPayload ¶
func (o *DetailEnrollmentOK) SetPayload(payload *rest_model.DetailEnrollmentEnvelope)
SetPayload sets the payload to the detail enrollment o k response
func (*DetailEnrollmentOK) WithPayload ¶
func (o *DetailEnrollmentOK) WithPayload(payload *rest_model.DetailEnrollmentEnvelope) *DetailEnrollmentOK
WithPayload adds the payload to the detail enrollment o k response
func (*DetailEnrollmentOK) WriteResponse ¶
func (o *DetailEnrollmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailEnrollmentParams ¶
type DetailEnrollmentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DetailEnrollmentParams contains all the bound params for the detail enrollment operation typically these are obtained from a http.Request
swagger:parameters detailEnrollment
func NewDetailEnrollmentParams ¶
func NewDetailEnrollmentParams() DetailEnrollmentParams
NewDetailEnrollmentParams creates a new DetailEnrollmentParams object
There are no default values defined in the spec.
func (*DetailEnrollmentParams) BindRequest ¶
func (o *DetailEnrollmentParams) 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 NewDetailEnrollmentParams() beforehand.
type DetailEnrollmentTooManyRequests ¶ added in v0.26.0
type DetailEnrollmentTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailEnrollmentTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response detailEnrollmentTooManyRequests
func NewDetailEnrollmentTooManyRequests ¶ added in v0.26.0
func NewDetailEnrollmentTooManyRequests() *DetailEnrollmentTooManyRequests
NewDetailEnrollmentTooManyRequests creates DetailEnrollmentTooManyRequests with default headers values
func (*DetailEnrollmentTooManyRequests) SetPayload ¶ added in v0.26.0
func (o *DetailEnrollmentTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail enrollment too many requests response
func (*DetailEnrollmentTooManyRequests) WithPayload ¶ added in v0.26.0
func (o *DetailEnrollmentTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailEnrollmentTooManyRequests
WithPayload adds the payload to the detail enrollment too many requests response
func (*DetailEnrollmentTooManyRequests) WriteResponse ¶ added in v0.26.0
func (o *DetailEnrollmentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailEnrollmentURL ¶
type DetailEnrollmentURL struct { ID string // contains filtered or unexported fields }
DetailEnrollmentURL generates an URL for the detail enrollment operation
func (*DetailEnrollmentURL) Build ¶
func (o *DetailEnrollmentURL) Build() (*url.URL, error)
Build a url path and query string
func (*DetailEnrollmentURL) BuildFull ¶
func (o *DetailEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DetailEnrollmentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DetailEnrollmentURL) SetBasePath ¶
func (o *DetailEnrollmentURL) 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 (*DetailEnrollmentURL) String ¶
func (o *DetailEnrollmentURL) String() string
String returns the string representation of the path with query string
func (*DetailEnrollmentURL) StringFull ¶
func (o *DetailEnrollmentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DetailEnrollmentURL) WithBasePath ¶
func (o *DetailEnrollmentURL) WithBasePath(bp string) *DetailEnrollmentURL
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 DetailEnrollmentUnauthorized ¶
type DetailEnrollmentUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DetailEnrollmentUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response detailEnrollmentUnauthorized
func NewDetailEnrollmentUnauthorized ¶
func NewDetailEnrollmentUnauthorized() *DetailEnrollmentUnauthorized
NewDetailEnrollmentUnauthorized creates DetailEnrollmentUnauthorized with default headers values
func (*DetailEnrollmentUnauthorized) SetPayload ¶
func (o *DetailEnrollmentUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail enrollment unauthorized response
func (*DetailEnrollmentUnauthorized) WithPayload ¶
func (o *DetailEnrollmentUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailEnrollmentUnauthorized
WithPayload adds the payload to the detail enrollment unauthorized response
func (*DetailEnrollmentUnauthorized) WriteResponse ¶
func (o *DetailEnrollmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEnrollments ¶
type ListEnrollments struct { Context *middleware.Context Handler ListEnrollmentsHandler }
ListEnrollments swagger:route GET /enrollments Enrollment listEnrollments
List outstanding enrollments ¶
Retrieves a list of outstanding enrollments; supports filtering, sorting, and pagination. Requires admin access.
func NewListEnrollments ¶
func NewListEnrollments(ctx *middleware.Context, handler ListEnrollmentsHandler) *ListEnrollments
NewListEnrollments creates a new http.Handler for the list enrollments operation
func (*ListEnrollments) ServeHTTP ¶
func (o *ListEnrollments) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListEnrollmentsBadRequest ¶
type ListEnrollmentsBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
ListEnrollmentsBadRequest 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 listEnrollmentsBadRequest
func NewListEnrollmentsBadRequest ¶
func NewListEnrollmentsBadRequest() *ListEnrollmentsBadRequest
NewListEnrollmentsBadRequest creates ListEnrollmentsBadRequest with default headers values
func (*ListEnrollmentsBadRequest) SetPayload ¶
func (o *ListEnrollmentsBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list enrollments bad request response
func (*ListEnrollmentsBadRequest) WithPayload ¶
func (o *ListEnrollmentsBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *ListEnrollmentsBadRequest
WithPayload adds the payload to the list enrollments bad request response
func (*ListEnrollmentsBadRequest) WriteResponse ¶
func (o *ListEnrollmentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEnrollmentsHandler ¶
type ListEnrollmentsHandler interface {
Handle(ListEnrollmentsParams, interface{}) middleware.Responder
}
ListEnrollmentsHandler interface for that can handle valid list enrollments params
type ListEnrollmentsHandlerFunc ¶
type ListEnrollmentsHandlerFunc func(ListEnrollmentsParams, interface{}) middleware.Responder
ListEnrollmentsHandlerFunc turns a function with the right signature into a list enrollments handler
func (ListEnrollmentsHandlerFunc) Handle ¶
func (fn ListEnrollmentsHandlerFunc) Handle(params ListEnrollmentsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListEnrollmentsOK ¶
type ListEnrollmentsOK struct { /* In: Body */ Payload *rest_model.ListEnrollmentsEnvelope `json:"body,omitempty"` }
ListEnrollmentsOK A list of enrollments
swagger:response listEnrollmentsOK
func NewListEnrollmentsOK ¶
func NewListEnrollmentsOK() *ListEnrollmentsOK
NewListEnrollmentsOK creates ListEnrollmentsOK with default headers values
func (*ListEnrollmentsOK) SetPayload ¶
func (o *ListEnrollmentsOK) SetPayload(payload *rest_model.ListEnrollmentsEnvelope)
SetPayload sets the payload to the list enrollments o k response
func (*ListEnrollmentsOK) WithPayload ¶
func (o *ListEnrollmentsOK) WithPayload(payload *rest_model.ListEnrollmentsEnvelope) *ListEnrollmentsOK
WithPayload adds the payload to the list enrollments o k response
func (*ListEnrollmentsOK) WriteResponse ¶
func (o *ListEnrollmentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEnrollmentsParams ¶
type ListEnrollmentsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Filter *string /* In: query */ Limit *int64 /* In: query */ Offset *int64 }
ListEnrollmentsParams contains all the bound params for the list enrollments operation typically these are obtained from a http.Request
swagger:parameters listEnrollments
func NewListEnrollmentsParams ¶
func NewListEnrollmentsParams() ListEnrollmentsParams
NewListEnrollmentsParams creates a new ListEnrollmentsParams object
There are no default values defined in the spec.
func (*ListEnrollmentsParams) BindRequest ¶
func (o *ListEnrollmentsParams) 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 NewListEnrollmentsParams() beforehand.
type ListEnrollmentsTooManyRequests ¶ added in v0.26.0
type ListEnrollmentsTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
ListEnrollmentsTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response listEnrollmentsTooManyRequests
func NewListEnrollmentsTooManyRequests ¶ added in v0.26.0
func NewListEnrollmentsTooManyRequests() *ListEnrollmentsTooManyRequests
NewListEnrollmentsTooManyRequests creates ListEnrollmentsTooManyRequests with default headers values
func (*ListEnrollmentsTooManyRequests) SetPayload ¶ added in v0.26.0
func (o *ListEnrollmentsTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list enrollments too many requests response
func (*ListEnrollmentsTooManyRequests) WithPayload ¶ added in v0.26.0
func (o *ListEnrollmentsTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *ListEnrollmentsTooManyRequests
WithPayload adds the payload to the list enrollments too many requests response
func (*ListEnrollmentsTooManyRequests) WriteResponse ¶ added in v0.26.0
func (o *ListEnrollmentsTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEnrollmentsURL ¶
type ListEnrollmentsURL struct { Filter *string Limit *int64 Offset *int64 // contains filtered or unexported fields }
ListEnrollmentsURL generates an URL for the list enrollments operation
func (*ListEnrollmentsURL) Build ¶
func (o *ListEnrollmentsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListEnrollmentsURL) BuildFull ¶
func (o *ListEnrollmentsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListEnrollmentsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListEnrollmentsURL) SetBasePath ¶
func (o *ListEnrollmentsURL) 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 (*ListEnrollmentsURL) String ¶
func (o *ListEnrollmentsURL) String() string
String returns the string representation of the path with query string
func (*ListEnrollmentsURL) StringFull ¶
func (o *ListEnrollmentsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListEnrollmentsURL) WithBasePath ¶
func (o *ListEnrollmentsURL) WithBasePath(bp string) *ListEnrollmentsURL
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 ListEnrollmentsUnauthorized ¶
type ListEnrollmentsUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
ListEnrollmentsUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response listEnrollmentsUnauthorized
func NewListEnrollmentsUnauthorized ¶
func NewListEnrollmentsUnauthorized() *ListEnrollmentsUnauthorized
NewListEnrollmentsUnauthorized creates ListEnrollmentsUnauthorized with default headers values
func (*ListEnrollmentsUnauthorized) SetPayload ¶
func (o *ListEnrollmentsUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list enrollments unauthorized response
func (*ListEnrollmentsUnauthorized) WithPayload ¶
func (o *ListEnrollmentsUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListEnrollmentsUnauthorized
WithPayload adds the payload to the list enrollments unauthorized response
func (*ListEnrollmentsUnauthorized) WriteResponse ¶
func (o *ListEnrollmentsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshEnrollment ¶
type RefreshEnrollment struct { Context *middleware.Context Handler RefreshEnrollmentHandler }
RefreshEnrollment swagger:route POST /enrollments/{id}/refresh Enrollment refreshEnrollment
Refreshes an enrollment record's expiration window ¶
For expired or unexpired enrollments, reset the expiration window. A new JWT will be generated and must be used for the enrollment.
func NewRefreshEnrollment ¶
func NewRefreshEnrollment(ctx *middleware.Context, handler RefreshEnrollmentHandler) *RefreshEnrollment
NewRefreshEnrollment creates a new http.Handler for the refresh enrollment operation
func (*RefreshEnrollment) ServeHTTP ¶
func (o *RefreshEnrollment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RefreshEnrollmentBadRequest ¶
type RefreshEnrollmentBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
RefreshEnrollmentBadRequest 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 refreshEnrollmentBadRequest
func NewRefreshEnrollmentBadRequest ¶
func NewRefreshEnrollmentBadRequest() *RefreshEnrollmentBadRequest
NewRefreshEnrollmentBadRequest creates RefreshEnrollmentBadRequest with default headers values
func (*RefreshEnrollmentBadRequest) SetPayload ¶
func (o *RefreshEnrollmentBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the refresh enrollment bad request response
func (*RefreshEnrollmentBadRequest) WithPayload ¶
func (o *RefreshEnrollmentBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *RefreshEnrollmentBadRequest
WithPayload adds the payload to the refresh enrollment bad request response
func (*RefreshEnrollmentBadRequest) WriteResponse ¶
func (o *RefreshEnrollmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshEnrollmentHandler ¶
type RefreshEnrollmentHandler interface {
Handle(RefreshEnrollmentParams, interface{}) middleware.Responder
}
RefreshEnrollmentHandler interface for that can handle valid refresh enrollment params
type RefreshEnrollmentHandlerFunc ¶
type RefreshEnrollmentHandlerFunc func(RefreshEnrollmentParams, interface{}) middleware.Responder
RefreshEnrollmentHandlerFunc turns a function with the right signature into a refresh enrollment handler
func (RefreshEnrollmentHandlerFunc) Handle ¶
func (fn RefreshEnrollmentHandlerFunc) Handle(params RefreshEnrollmentParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type RefreshEnrollmentOK ¶
type RefreshEnrollmentOK struct { /* In: Body */ Payload *rest_model.CreateEnvelope `json:"body,omitempty"` }
RefreshEnrollmentOK The create request was successful and the resource has been added at the following location
swagger:response refreshEnrollmentOK
func NewRefreshEnrollmentOK ¶
func NewRefreshEnrollmentOK() *RefreshEnrollmentOK
NewRefreshEnrollmentOK creates RefreshEnrollmentOK with default headers values
func (*RefreshEnrollmentOK) SetPayload ¶
func (o *RefreshEnrollmentOK) SetPayload(payload *rest_model.CreateEnvelope)
SetPayload sets the payload to the refresh enrollment o k response
func (*RefreshEnrollmentOK) WithPayload ¶
func (o *RefreshEnrollmentOK) WithPayload(payload *rest_model.CreateEnvelope) *RefreshEnrollmentOK
WithPayload adds the payload to the refresh enrollment o k response
func (*RefreshEnrollmentOK) WriteResponse ¶
func (o *RefreshEnrollmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshEnrollmentParams ¶
type RefreshEnrollmentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string /*An enrollment refresh request Required: true In: body */ Refresh *rest_model.EnrollmentRefresh }
RefreshEnrollmentParams contains all the bound params for the refresh enrollment operation typically these are obtained from a http.Request
swagger:parameters refreshEnrollment
func NewRefreshEnrollmentParams ¶
func NewRefreshEnrollmentParams() RefreshEnrollmentParams
NewRefreshEnrollmentParams creates a new RefreshEnrollmentParams object
There are no default values defined in the spec.
func (*RefreshEnrollmentParams) BindRequest ¶
func (o *RefreshEnrollmentParams) 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 NewRefreshEnrollmentParams() beforehand.
type RefreshEnrollmentTooManyRequests ¶ added in v0.26.0
type RefreshEnrollmentTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
RefreshEnrollmentTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response refreshEnrollmentTooManyRequests
func NewRefreshEnrollmentTooManyRequests ¶ added in v0.26.0
func NewRefreshEnrollmentTooManyRequests() *RefreshEnrollmentTooManyRequests
NewRefreshEnrollmentTooManyRequests creates RefreshEnrollmentTooManyRequests with default headers values
func (*RefreshEnrollmentTooManyRequests) SetPayload ¶ added in v0.26.0
func (o *RefreshEnrollmentTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the refresh enrollment too many requests response
func (*RefreshEnrollmentTooManyRequests) WithPayload ¶ added in v0.26.0
func (o *RefreshEnrollmentTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *RefreshEnrollmentTooManyRequests
WithPayload adds the payload to the refresh enrollment too many requests response
func (*RefreshEnrollmentTooManyRequests) WriteResponse ¶ added in v0.26.0
func (o *RefreshEnrollmentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RefreshEnrollmentURL ¶
type RefreshEnrollmentURL struct { ID string // contains filtered or unexported fields }
RefreshEnrollmentURL generates an URL for the refresh enrollment operation
func (*RefreshEnrollmentURL) Build ¶
func (o *RefreshEnrollmentURL) Build() (*url.URL, error)
Build a url path and query string
func (*RefreshEnrollmentURL) BuildFull ¶
func (o *RefreshEnrollmentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RefreshEnrollmentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RefreshEnrollmentURL) SetBasePath ¶
func (o *RefreshEnrollmentURL) 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 (*RefreshEnrollmentURL) String ¶
func (o *RefreshEnrollmentURL) String() string
String returns the string representation of the path with query string
func (*RefreshEnrollmentURL) StringFull ¶
func (o *RefreshEnrollmentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RefreshEnrollmentURL) WithBasePath ¶
func (o *RefreshEnrollmentURL) WithBasePath(bp string) *RefreshEnrollmentURL
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 RefreshEnrollmentUnauthorized ¶
type RefreshEnrollmentUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
RefreshEnrollmentUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response refreshEnrollmentUnauthorized
func NewRefreshEnrollmentUnauthorized ¶
func NewRefreshEnrollmentUnauthorized() *RefreshEnrollmentUnauthorized
NewRefreshEnrollmentUnauthorized creates RefreshEnrollmentUnauthorized with default headers values
func (*RefreshEnrollmentUnauthorized) SetPayload ¶
func (o *RefreshEnrollmentUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the refresh enrollment unauthorized response
func (*RefreshEnrollmentUnauthorized) WithPayload ¶
func (o *RefreshEnrollmentUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *RefreshEnrollmentUnauthorized
WithPayload adds the payload to the refresh enrollment unauthorized response
func (*RefreshEnrollmentUnauthorized) WriteResponse ¶
func (o *RefreshEnrollmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_enrollment.go
- create_enrollment_parameters.go
- create_enrollment_responses.go
- create_enrollment_urlbuilder.go
- delete_enrollment.go
- delete_enrollment_parameters.go
- delete_enrollment_responses.go
- delete_enrollment_urlbuilder.go
- detail_enrollment.go
- detail_enrollment_parameters.go
- detail_enrollment_responses.go
- detail_enrollment_urlbuilder.go
- list_enrollments.go
- list_enrollments_parameters.go
- list_enrollments_responses.go
- list_enrollments_urlbuilder.go
- refresh_enrollment.go
- refresh_enrollment_parameters.go
- refresh_enrollment_responses.go
- refresh_enrollment_urlbuilder.go