enrollment

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateEnrollmentBadRequestCode int = 400

CreateEnrollmentBadRequestCode is the HTTP code returned for type CreateEnrollmentBadRequest

View Source
const CreateEnrollmentConflictCode int = 409

CreateEnrollmentConflictCode is the HTTP code returned for type CreateEnrollmentConflict

View Source
const CreateEnrollmentCreatedCode int = 201

CreateEnrollmentCreatedCode is the HTTP code returned for type CreateEnrollmentCreated

View Source
const CreateEnrollmentTooManyRequestsCode int = 429

CreateEnrollmentTooManyRequestsCode is the HTTP code returned for type CreateEnrollmentTooManyRequests

View Source
const CreateEnrollmentUnauthorizedCode int = 401

CreateEnrollmentUnauthorizedCode is the HTTP code returned for type CreateEnrollmentUnauthorized

View Source
const DeleteEnrollmentBadRequestCode int = 400

DeleteEnrollmentBadRequestCode is the HTTP code returned for type DeleteEnrollmentBadRequest

View Source
const DeleteEnrollmentOKCode int = 200

DeleteEnrollmentOKCode is the HTTP code returned for type DeleteEnrollmentOK

View Source
const DeleteEnrollmentTooManyRequestsCode int = 429

DeleteEnrollmentTooManyRequestsCode is the HTTP code returned for type DeleteEnrollmentTooManyRequests

View Source
const DeleteEnrollmentUnauthorizedCode int = 401

DeleteEnrollmentUnauthorizedCode is the HTTP code returned for type DeleteEnrollmentUnauthorized

View Source
const DetailEnrollmentNotFoundCode int = 404

DetailEnrollmentNotFoundCode is the HTTP code returned for type DetailEnrollmentNotFound

View Source
const DetailEnrollmentOKCode int = 200

DetailEnrollmentOKCode is the HTTP code returned for type DetailEnrollmentOK

View Source
const DetailEnrollmentTooManyRequestsCode int = 429

DetailEnrollmentTooManyRequestsCode is the HTTP code returned for type DetailEnrollmentTooManyRequests

View Source
const DetailEnrollmentUnauthorizedCode int = 401

DetailEnrollmentUnauthorizedCode is the HTTP code returned for type DetailEnrollmentUnauthorized

View Source
const ListEnrollmentsBadRequestCode int = 400

ListEnrollmentsBadRequestCode is the HTTP code returned for type ListEnrollmentsBadRequest

View Source
const ListEnrollmentsOKCode int = 200

ListEnrollmentsOKCode is the HTTP code returned for type ListEnrollmentsOK

View Source
const ListEnrollmentsTooManyRequestsCode int = 429

ListEnrollmentsTooManyRequestsCode is the HTTP code returned for type ListEnrollmentsTooManyRequests

View Source
const ListEnrollmentsUnauthorizedCode int = 401

ListEnrollmentsUnauthorizedCode is the HTTP code returned for type ListEnrollmentsUnauthorized

View Source
const RefreshEnrollmentBadRequestCode int = 400

RefreshEnrollmentBadRequestCode is the HTTP code returned for type RefreshEnrollmentBadRequest

View Source
const RefreshEnrollmentOKCode int = 200

RefreshEnrollmentOKCode is the HTTP code returned for type RefreshEnrollmentOK

View Source
const RefreshEnrollmentTooManyRequestsCode int = 429

RefreshEnrollmentTooManyRequestsCode is the HTTP code returned for type RefreshEnrollmentTooManyRequests

View Source
const RefreshEnrollmentUnauthorizedCode int = 401

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

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

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

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

SetPayload sets the payload to the create enrollment too many requests response

func (*CreateEnrollmentTooManyRequests) WithPayload added in v0.26.0

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

SetPayload sets the payload to the create enrollment unauthorized response

func (*CreateEnrollmentUnauthorized) WithPayload

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

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

SetPayload sets the payload to the delete enrollment too many requests response

func (*DeleteEnrollmentTooManyRequests) WithPayload added in v0.26.0

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

SetPayload sets the payload to the delete enrollment unauthorized response

func (*DeleteEnrollmentUnauthorized) WithPayload

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

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

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

SetPayload sets the payload to the detail enrollment too many requests response

func (*DetailEnrollmentTooManyRequests) WithPayload added in v0.26.0

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

SetPayload sets the payload to the detail enrollment unauthorized response

func (*DetailEnrollmentUnauthorized) WithPayload

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

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

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

SetPayload sets the payload to the list enrollments too many requests response

func (*ListEnrollmentsTooManyRequests) WithPayload added in v0.26.0

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

SetPayload sets the payload to the list enrollments unauthorized response

func (*ListEnrollmentsUnauthorized) WithPayload

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

SetPayload sets the payload to the refresh enrollment bad request response

func (*RefreshEnrollmentBadRequest) WithPayload

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

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

SetPayload sets the payload to the refresh enrollment too many requests response

func (*RefreshEnrollmentTooManyRequests) WithPayload added in v0.26.0

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

SetPayload sets the payload to the refresh enrollment unauthorized response

func (*RefreshEnrollmentUnauthorized) WithPayload

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL