Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateEnrollment(params *CreateEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateEnrollmentCreated, error)
- func (a *Client) DeleteEnrollment(params *DeleteEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteEnrollmentOK, error)
- func (a *Client) DetailEnrollment(params *DetailEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DetailEnrollmentOK, error)
- func (a *Client) ListEnrollments(params *ListEnrollmentsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListEnrollmentsOK, error)
- func (a *Client) RefreshEnrollment(params *RefreshEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RefreshEnrollmentOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateEnrollmentBadRequest
- type CreateEnrollmentConflict
- type CreateEnrollmentCreated
- type CreateEnrollmentParams
- func NewCreateEnrollmentParams() *CreateEnrollmentParams
- func NewCreateEnrollmentParamsWithContext(ctx context.Context) *CreateEnrollmentParams
- func NewCreateEnrollmentParamsWithHTTPClient(client *http.Client) *CreateEnrollmentParams
- func NewCreateEnrollmentParamsWithTimeout(timeout time.Duration) *CreateEnrollmentParams
- func (o *CreateEnrollmentParams) SetContext(ctx context.Context)
- func (o *CreateEnrollmentParams) SetDefaults()
- func (o *CreateEnrollmentParams) SetEnrollment(enrollment *rest_model.EnrollmentCreate)
- func (o *CreateEnrollmentParams) SetHTTPClient(client *http.Client)
- func (o *CreateEnrollmentParams) SetTimeout(timeout time.Duration)
- func (o *CreateEnrollmentParams) WithContext(ctx context.Context) *CreateEnrollmentParams
- func (o *CreateEnrollmentParams) WithDefaults() *CreateEnrollmentParams
- func (o *CreateEnrollmentParams) WithEnrollment(enrollment *rest_model.EnrollmentCreate) *CreateEnrollmentParams
- func (o *CreateEnrollmentParams) WithHTTPClient(client *http.Client) *CreateEnrollmentParams
- func (o *CreateEnrollmentParams) WithTimeout(timeout time.Duration) *CreateEnrollmentParams
- func (o *CreateEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateEnrollmentReader
- type CreateEnrollmentUnauthorized
- type DeleteEnrollmentBadRequest
- type DeleteEnrollmentOK
- type DeleteEnrollmentParams
- func NewDeleteEnrollmentParams() *DeleteEnrollmentParams
- func NewDeleteEnrollmentParamsWithContext(ctx context.Context) *DeleteEnrollmentParams
- func NewDeleteEnrollmentParamsWithHTTPClient(client *http.Client) *DeleteEnrollmentParams
- func NewDeleteEnrollmentParamsWithTimeout(timeout time.Duration) *DeleteEnrollmentParams
- func (o *DeleteEnrollmentParams) SetContext(ctx context.Context)
- func (o *DeleteEnrollmentParams) SetDefaults()
- func (o *DeleteEnrollmentParams) SetHTTPClient(client *http.Client)
- func (o *DeleteEnrollmentParams) SetID(id string)
- func (o *DeleteEnrollmentParams) SetTimeout(timeout time.Duration)
- func (o *DeleteEnrollmentParams) WithContext(ctx context.Context) *DeleteEnrollmentParams
- func (o *DeleteEnrollmentParams) WithDefaults() *DeleteEnrollmentParams
- func (o *DeleteEnrollmentParams) WithHTTPClient(client *http.Client) *DeleteEnrollmentParams
- func (o *DeleteEnrollmentParams) WithID(id string) *DeleteEnrollmentParams
- func (o *DeleteEnrollmentParams) WithTimeout(timeout time.Duration) *DeleteEnrollmentParams
- func (o *DeleteEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteEnrollmentReader
- type DeleteEnrollmentUnauthorized
- type DetailEnrollmentNotFound
- type DetailEnrollmentOK
- type DetailEnrollmentParams
- func NewDetailEnrollmentParams() *DetailEnrollmentParams
- func NewDetailEnrollmentParamsWithContext(ctx context.Context) *DetailEnrollmentParams
- func NewDetailEnrollmentParamsWithHTTPClient(client *http.Client) *DetailEnrollmentParams
- func NewDetailEnrollmentParamsWithTimeout(timeout time.Duration) *DetailEnrollmentParams
- func (o *DetailEnrollmentParams) SetContext(ctx context.Context)
- func (o *DetailEnrollmentParams) SetDefaults()
- func (o *DetailEnrollmentParams) SetHTTPClient(client *http.Client)
- func (o *DetailEnrollmentParams) SetID(id string)
- func (o *DetailEnrollmentParams) SetTimeout(timeout time.Duration)
- func (o *DetailEnrollmentParams) WithContext(ctx context.Context) *DetailEnrollmentParams
- func (o *DetailEnrollmentParams) WithDefaults() *DetailEnrollmentParams
- func (o *DetailEnrollmentParams) WithHTTPClient(client *http.Client) *DetailEnrollmentParams
- func (o *DetailEnrollmentParams) WithID(id string) *DetailEnrollmentParams
- func (o *DetailEnrollmentParams) WithTimeout(timeout time.Duration) *DetailEnrollmentParams
- func (o *DetailEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DetailEnrollmentReader
- type DetailEnrollmentUnauthorized
- type ListEnrollmentsBadRequest
- type ListEnrollmentsOK
- type ListEnrollmentsParams
- func NewListEnrollmentsParams() *ListEnrollmentsParams
- func NewListEnrollmentsParamsWithContext(ctx context.Context) *ListEnrollmentsParams
- func NewListEnrollmentsParamsWithHTTPClient(client *http.Client) *ListEnrollmentsParams
- func NewListEnrollmentsParamsWithTimeout(timeout time.Duration) *ListEnrollmentsParams
- func (o *ListEnrollmentsParams) SetContext(ctx context.Context)
- func (o *ListEnrollmentsParams) SetDefaults()
- func (o *ListEnrollmentsParams) SetFilter(filter *string)
- func (o *ListEnrollmentsParams) SetHTTPClient(client *http.Client)
- func (o *ListEnrollmentsParams) SetLimit(limit *int64)
- func (o *ListEnrollmentsParams) SetOffset(offset *int64)
- func (o *ListEnrollmentsParams) SetTimeout(timeout time.Duration)
- func (o *ListEnrollmentsParams) WithContext(ctx context.Context) *ListEnrollmentsParams
- func (o *ListEnrollmentsParams) WithDefaults() *ListEnrollmentsParams
- func (o *ListEnrollmentsParams) WithFilter(filter *string) *ListEnrollmentsParams
- func (o *ListEnrollmentsParams) WithHTTPClient(client *http.Client) *ListEnrollmentsParams
- func (o *ListEnrollmentsParams) WithLimit(limit *int64) *ListEnrollmentsParams
- func (o *ListEnrollmentsParams) WithOffset(offset *int64) *ListEnrollmentsParams
- func (o *ListEnrollmentsParams) WithTimeout(timeout time.Duration) *ListEnrollmentsParams
- func (o *ListEnrollmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListEnrollmentsReader
- type ListEnrollmentsUnauthorized
- type RefreshEnrollmentBadRequest
- type RefreshEnrollmentOK
- type RefreshEnrollmentParams
- func NewRefreshEnrollmentParams() *RefreshEnrollmentParams
- func NewRefreshEnrollmentParamsWithContext(ctx context.Context) *RefreshEnrollmentParams
- func NewRefreshEnrollmentParamsWithHTTPClient(client *http.Client) *RefreshEnrollmentParams
- func NewRefreshEnrollmentParamsWithTimeout(timeout time.Duration) *RefreshEnrollmentParams
- func (o *RefreshEnrollmentParams) SetContext(ctx context.Context)
- func (o *RefreshEnrollmentParams) SetDefaults()
- func (o *RefreshEnrollmentParams) SetHTTPClient(client *http.Client)
- func (o *RefreshEnrollmentParams) SetID(id string)
- func (o *RefreshEnrollmentParams) SetRefresh(refresh *rest_model.EnrollmentRefresh)
- func (o *RefreshEnrollmentParams) SetTimeout(timeout time.Duration)
- func (o *RefreshEnrollmentParams) WithContext(ctx context.Context) *RefreshEnrollmentParams
- func (o *RefreshEnrollmentParams) WithDefaults() *RefreshEnrollmentParams
- func (o *RefreshEnrollmentParams) WithHTTPClient(client *http.Client) *RefreshEnrollmentParams
- func (o *RefreshEnrollmentParams) WithID(id string) *RefreshEnrollmentParams
- func (o *RefreshEnrollmentParams) WithRefresh(refresh *rest_model.EnrollmentRefresh) *RefreshEnrollmentParams
- func (o *RefreshEnrollmentParams) WithTimeout(timeout time.Duration) *RefreshEnrollmentParams
- func (o *RefreshEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RefreshEnrollmentReader
- type RefreshEnrollmentUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for enrollment API
func (*Client) CreateEnrollment ¶
func (a *Client) CreateEnrollment(params *CreateEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEnrollmentCreated, error)
CreateEnrollment creates 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 (*Client) DeleteEnrollment ¶
func (a *Client) DeleteEnrollment(params *DeleteEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteEnrollmentOK, error)
DeleteEnrollment deletes an outstanding enrollment
Delete an outstanding enrollment by id. Requires admin access.
func (*Client) DetailEnrollment ¶
func (a *Client) DetailEnrollment(params *DetailEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailEnrollmentOK, error)
DetailEnrollment retrieves an outstanding enrollment
Retrieves a single outstanding enrollment by id. Requires admin access.
func (*Client) ListEnrollments ¶
func (a *Client) ListEnrollments(params *ListEnrollmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListEnrollmentsOK, error)
ListEnrollments lists outstanding enrollments
Retrieves a list of outstanding enrollments; supports filtering, sorting, and pagination. Requires admin access.
func (*Client) RefreshEnrollment ¶
func (a *Client) RefreshEnrollment(params *RefreshEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RefreshEnrollmentOK, error)
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 (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateEnrollment(params *CreateEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEnrollmentCreated, error) DeleteEnrollment(params *DeleteEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteEnrollmentOK, error) DetailEnrollment(params *DetailEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailEnrollmentOK, error) ListEnrollments(params *ListEnrollmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListEnrollmentsOK, error) RefreshEnrollment(params *RefreshEnrollmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RefreshEnrollmentOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new enrollment API client.
type CreateEnrollmentBadRequest ¶
type CreateEnrollmentBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
CreateEnrollmentBadRequest describes a response with status code 400, with default header values.
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
func NewCreateEnrollmentBadRequest ¶
func NewCreateEnrollmentBadRequest() *CreateEnrollmentBadRequest
NewCreateEnrollmentBadRequest creates a CreateEnrollmentBadRequest with default headers values
func (*CreateEnrollmentBadRequest) Error ¶
func (o *CreateEnrollmentBadRequest) Error() string
func (*CreateEnrollmentBadRequest) GetPayload ¶
func (o *CreateEnrollmentBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type CreateEnrollmentConflict ¶
type CreateEnrollmentConflict struct {
Payload *rest_model.APIErrorEnvelope
}
CreateEnrollmentConflict describes a response with status code 409, with default header values.
The request could not be completed due to a conflict of configuration or state
func NewCreateEnrollmentConflict ¶
func NewCreateEnrollmentConflict() *CreateEnrollmentConflict
NewCreateEnrollmentConflict creates a CreateEnrollmentConflict with default headers values
func (*CreateEnrollmentConflict) Error ¶
func (o *CreateEnrollmentConflict) Error() string
func (*CreateEnrollmentConflict) GetPayload ¶
func (o *CreateEnrollmentConflict) GetPayload() *rest_model.APIErrorEnvelope
type CreateEnrollmentCreated ¶
type CreateEnrollmentCreated struct {
Payload *rest_model.CreateEnvelope
}
CreateEnrollmentCreated describes a response with status code 201, with default header values.
The create request was successful and the resource has been added at the following location
func NewCreateEnrollmentCreated ¶
func NewCreateEnrollmentCreated() *CreateEnrollmentCreated
NewCreateEnrollmentCreated creates a CreateEnrollmentCreated with default headers values
func (*CreateEnrollmentCreated) Error ¶
func (o *CreateEnrollmentCreated) Error() string
func (*CreateEnrollmentCreated) GetPayload ¶
func (o *CreateEnrollmentCreated) GetPayload() *rest_model.CreateEnvelope
type CreateEnrollmentParams ¶
type CreateEnrollmentParams struct { /* Enrollment. An enrollment to create */ Enrollment *rest_model.EnrollmentCreate Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateEnrollmentParams contains all the parameters to send to the API endpoint
for the create enrollment operation. Typically these are written to a http.Request.
func NewCreateEnrollmentParams ¶
func NewCreateEnrollmentParams() *CreateEnrollmentParams
NewCreateEnrollmentParams creates a new CreateEnrollmentParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateEnrollmentParamsWithContext ¶
func NewCreateEnrollmentParamsWithContext(ctx context.Context) *CreateEnrollmentParams
NewCreateEnrollmentParamsWithContext creates a new CreateEnrollmentParams object with the ability to set a context for a request.
func NewCreateEnrollmentParamsWithHTTPClient ¶
func NewCreateEnrollmentParamsWithHTTPClient(client *http.Client) *CreateEnrollmentParams
NewCreateEnrollmentParamsWithHTTPClient creates a new CreateEnrollmentParams object with the ability to set a custom HTTPClient for a request.
func NewCreateEnrollmentParamsWithTimeout ¶
func NewCreateEnrollmentParamsWithTimeout(timeout time.Duration) *CreateEnrollmentParams
NewCreateEnrollmentParamsWithTimeout creates a new CreateEnrollmentParams object with the ability to set a timeout on a request.
func (*CreateEnrollmentParams) SetContext ¶
func (o *CreateEnrollmentParams) SetContext(ctx context.Context)
SetContext adds the context to the create enrollment params
func (*CreateEnrollmentParams) SetDefaults ¶
func (o *CreateEnrollmentParams) SetDefaults()
SetDefaults hydrates default values in the create enrollment params (not the query body).
All values with no default are reset to their zero value.
func (*CreateEnrollmentParams) SetEnrollment ¶
func (o *CreateEnrollmentParams) SetEnrollment(enrollment *rest_model.EnrollmentCreate)
SetEnrollment adds the enrollment to the create enrollment params
func (*CreateEnrollmentParams) SetHTTPClient ¶
func (o *CreateEnrollmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create enrollment params
func (*CreateEnrollmentParams) SetTimeout ¶
func (o *CreateEnrollmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create enrollment params
func (*CreateEnrollmentParams) WithContext ¶
func (o *CreateEnrollmentParams) WithContext(ctx context.Context) *CreateEnrollmentParams
WithContext adds the context to the create enrollment params
func (*CreateEnrollmentParams) WithDefaults ¶
func (o *CreateEnrollmentParams) WithDefaults() *CreateEnrollmentParams
WithDefaults hydrates default values in the create enrollment params (not the query body).
All values with no default are reset to their zero value.
func (*CreateEnrollmentParams) WithEnrollment ¶
func (o *CreateEnrollmentParams) WithEnrollment(enrollment *rest_model.EnrollmentCreate) *CreateEnrollmentParams
WithEnrollment adds the enrollment to the create enrollment params
func (*CreateEnrollmentParams) WithHTTPClient ¶
func (o *CreateEnrollmentParams) WithHTTPClient(client *http.Client) *CreateEnrollmentParams
WithHTTPClient adds the HTTPClient to the create enrollment params
func (*CreateEnrollmentParams) WithTimeout ¶
func (o *CreateEnrollmentParams) WithTimeout(timeout time.Duration) *CreateEnrollmentParams
WithTimeout adds the timeout to the create enrollment params
func (*CreateEnrollmentParams) WriteToRequest ¶
func (o *CreateEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateEnrollmentReader ¶
type CreateEnrollmentReader struct {
// contains filtered or unexported fields
}
CreateEnrollmentReader is a Reader for the CreateEnrollment structure.
func (*CreateEnrollmentReader) ReadResponse ¶
func (o *CreateEnrollmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateEnrollmentUnauthorized ¶
type CreateEnrollmentUnauthorized struct {
}CreateEnrollmentUnauthorized describes a response with status code 401, with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewCreateEnrollmentUnauthorized ¶
func NewCreateEnrollmentUnauthorized() *CreateEnrollmentUnauthorized
NewCreateEnrollmentUnauthorized creates a CreateEnrollmentUnauthorized with default headers values
func (*CreateEnrollmentUnauthorized) Error ¶
func (o *CreateEnrollmentUnauthorized) Error() string
func (*CreateEnrollmentUnauthorized) GetPayload ¶
func (o *CreateEnrollmentUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
type DeleteEnrollmentBadRequest ¶
type DeleteEnrollmentBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
DeleteEnrollmentBadRequest describes a response with status code 400, with default header values.
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
func NewDeleteEnrollmentBadRequest ¶
func NewDeleteEnrollmentBadRequest() *DeleteEnrollmentBadRequest
NewDeleteEnrollmentBadRequest creates a DeleteEnrollmentBadRequest with default headers values
func (*DeleteEnrollmentBadRequest) Error ¶
func (o *DeleteEnrollmentBadRequest) Error() string
func (*DeleteEnrollmentBadRequest) GetPayload ¶
func (o *DeleteEnrollmentBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type DeleteEnrollmentOK ¶
type DeleteEnrollmentOK struct {
Payload *rest_model.Empty
}
DeleteEnrollmentOK describes a response with status code 200, with default header values.
The delete request was successful and the resource has been removed
func NewDeleteEnrollmentOK ¶
func NewDeleteEnrollmentOK() *DeleteEnrollmentOK
NewDeleteEnrollmentOK creates a DeleteEnrollmentOK with default headers values
func (*DeleteEnrollmentOK) Error ¶
func (o *DeleteEnrollmentOK) Error() string
func (*DeleteEnrollmentOK) GetPayload ¶
func (o *DeleteEnrollmentOK) GetPayload() *rest_model.Empty
type DeleteEnrollmentParams ¶
type DeleteEnrollmentParams struct { /* ID. The id of the requested resource */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteEnrollmentParams contains all the parameters to send to the API endpoint
for the delete enrollment operation. Typically these are written to a http.Request.
func NewDeleteEnrollmentParams ¶
func NewDeleteEnrollmentParams() *DeleteEnrollmentParams
NewDeleteEnrollmentParams creates a new DeleteEnrollmentParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteEnrollmentParamsWithContext ¶
func NewDeleteEnrollmentParamsWithContext(ctx context.Context) *DeleteEnrollmentParams
NewDeleteEnrollmentParamsWithContext creates a new DeleteEnrollmentParams object with the ability to set a context for a request.
func NewDeleteEnrollmentParamsWithHTTPClient ¶
func NewDeleteEnrollmentParamsWithHTTPClient(client *http.Client) *DeleteEnrollmentParams
NewDeleteEnrollmentParamsWithHTTPClient creates a new DeleteEnrollmentParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteEnrollmentParamsWithTimeout ¶
func NewDeleteEnrollmentParamsWithTimeout(timeout time.Duration) *DeleteEnrollmentParams
NewDeleteEnrollmentParamsWithTimeout creates a new DeleteEnrollmentParams object with the ability to set a timeout on a request.
func (*DeleteEnrollmentParams) SetContext ¶
func (o *DeleteEnrollmentParams) SetContext(ctx context.Context)
SetContext adds the context to the delete enrollment params
func (*DeleteEnrollmentParams) SetDefaults ¶
func (o *DeleteEnrollmentParams) SetDefaults()
SetDefaults hydrates default values in the delete enrollment params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteEnrollmentParams) SetHTTPClient ¶
func (o *DeleteEnrollmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete enrollment params
func (*DeleteEnrollmentParams) SetID ¶
func (o *DeleteEnrollmentParams) SetID(id string)
SetID adds the id to the delete enrollment params
func (*DeleteEnrollmentParams) SetTimeout ¶
func (o *DeleteEnrollmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete enrollment params
func (*DeleteEnrollmentParams) WithContext ¶
func (o *DeleteEnrollmentParams) WithContext(ctx context.Context) *DeleteEnrollmentParams
WithContext adds the context to the delete enrollment params
func (*DeleteEnrollmentParams) WithDefaults ¶
func (o *DeleteEnrollmentParams) WithDefaults() *DeleteEnrollmentParams
WithDefaults hydrates default values in the delete enrollment params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteEnrollmentParams) WithHTTPClient ¶
func (o *DeleteEnrollmentParams) WithHTTPClient(client *http.Client) *DeleteEnrollmentParams
WithHTTPClient adds the HTTPClient to the delete enrollment params
func (*DeleteEnrollmentParams) WithID ¶
func (o *DeleteEnrollmentParams) WithID(id string) *DeleteEnrollmentParams
WithID adds the id to the delete enrollment params
func (*DeleteEnrollmentParams) WithTimeout ¶
func (o *DeleteEnrollmentParams) WithTimeout(timeout time.Duration) *DeleteEnrollmentParams
WithTimeout adds the timeout to the delete enrollment params
func (*DeleteEnrollmentParams) WriteToRequest ¶
func (o *DeleteEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteEnrollmentReader ¶
type DeleteEnrollmentReader struct {
// contains filtered or unexported fields
}
DeleteEnrollmentReader is a Reader for the DeleteEnrollment structure.
func (*DeleteEnrollmentReader) ReadResponse ¶
func (o *DeleteEnrollmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteEnrollmentUnauthorized ¶
type DeleteEnrollmentUnauthorized struct {
}DeleteEnrollmentUnauthorized describes a response with status code 401, with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewDeleteEnrollmentUnauthorized ¶
func NewDeleteEnrollmentUnauthorized() *DeleteEnrollmentUnauthorized
NewDeleteEnrollmentUnauthorized creates a DeleteEnrollmentUnauthorized with default headers values
func (*DeleteEnrollmentUnauthorized) Error ¶
func (o *DeleteEnrollmentUnauthorized) Error() string
func (*DeleteEnrollmentUnauthorized) GetPayload ¶
func (o *DeleteEnrollmentUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
type DetailEnrollmentNotFound ¶
type DetailEnrollmentNotFound struct {
Payload *rest_model.APIErrorEnvelope
}
DetailEnrollmentNotFound describes a response with status code 404, with default header values.
The requested resource does not exist
func NewDetailEnrollmentNotFound ¶
func NewDetailEnrollmentNotFound() *DetailEnrollmentNotFound
NewDetailEnrollmentNotFound creates a DetailEnrollmentNotFound with default headers values
func (*DetailEnrollmentNotFound) Error ¶
func (o *DetailEnrollmentNotFound) Error() string
func (*DetailEnrollmentNotFound) GetPayload ¶
func (o *DetailEnrollmentNotFound) GetPayload() *rest_model.APIErrorEnvelope
type DetailEnrollmentOK ¶
type DetailEnrollmentOK struct {
Payload *rest_model.DetailEnrollmentEnvelope
}
DetailEnrollmentOK describes a response with status code 200, with default header values.
A singular enrollment resource
func NewDetailEnrollmentOK ¶
func NewDetailEnrollmentOK() *DetailEnrollmentOK
NewDetailEnrollmentOK creates a DetailEnrollmentOK with default headers values
func (*DetailEnrollmentOK) Error ¶
func (o *DetailEnrollmentOK) Error() string
func (*DetailEnrollmentOK) GetPayload ¶
func (o *DetailEnrollmentOK) GetPayload() *rest_model.DetailEnrollmentEnvelope
type DetailEnrollmentParams ¶
type DetailEnrollmentParams struct { /* ID. The id of the requested resource */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DetailEnrollmentParams contains all the parameters to send to the API endpoint
for the detail enrollment operation. Typically these are written to a http.Request.
func NewDetailEnrollmentParams ¶
func NewDetailEnrollmentParams() *DetailEnrollmentParams
NewDetailEnrollmentParams creates a new DetailEnrollmentParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDetailEnrollmentParamsWithContext ¶
func NewDetailEnrollmentParamsWithContext(ctx context.Context) *DetailEnrollmentParams
NewDetailEnrollmentParamsWithContext creates a new DetailEnrollmentParams object with the ability to set a context for a request.
func NewDetailEnrollmentParamsWithHTTPClient ¶
func NewDetailEnrollmentParamsWithHTTPClient(client *http.Client) *DetailEnrollmentParams
NewDetailEnrollmentParamsWithHTTPClient creates a new DetailEnrollmentParams object with the ability to set a custom HTTPClient for a request.
func NewDetailEnrollmentParamsWithTimeout ¶
func NewDetailEnrollmentParamsWithTimeout(timeout time.Duration) *DetailEnrollmentParams
NewDetailEnrollmentParamsWithTimeout creates a new DetailEnrollmentParams object with the ability to set a timeout on a request.
func (*DetailEnrollmentParams) SetContext ¶
func (o *DetailEnrollmentParams) SetContext(ctx context.Context)
SetContext adds the context to the detail enrollment params
func (*DetailEnrollmentParams) SetDefaults ¶
func (o *DetailEnrollmentParams) SetDefaults()
SetDefaults hydrates default values in the detail enrollment params (not the query body).
All values with no default are reset to their zero value.
func (*DetailEnrollmentParams) SetHTTPClient ¶
func (o *DetailEnrollmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the detail enrollment params
func (*DetailEnrollmentParams) SetID ¶
func (o *DetailEnrollmentParams) SetID(id string)
SetID adds the id to the detail enrollment params
func (*DetailEnrollmentParams) SetTimeout ¶
func (o *DetailEnrollmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the detail enrollment params
func (*DetailEnrollmentParams) WithContext ¶
func (o *DetailEnrollmentParams) WithContext(ctx context.Context) *DetailEnrollmentParams
WithContext adds the context to the detail enrollment params
func (*DetailEnrollmentParams) WithDefaults ¶
func (o *DetailEnrollmentParams) WithDefaults() *DetailEnrollmentParams
WithDefaults hydrates default values in the detail enrollment params (not the query body).
All values with no default are reset to their zero value.
func (*DetailEnrollmentParams) WithHTTPClient ¶
func (o *DetailEnrollmentParams) WithHTTPClient(client *http.Client) *DetailEnrollmentParams
WithHTTPClient adds the HTTPClient to the detail enrollment params
func (*DetailEnrollmentParams) WithID ¶
func (o *DetailEnrollmentParams) WithID(id string) *DetailEnrollmentParams
WithID adds the id to the detail enrollment params
func (*DetailEnrollmentParams) WithTimeout ¶
func (o *DetailEnrollmentParams) WithTimeout(timeout time.Duration) *DetailEnrollmentParams
WithTimeout adds the timeout to the detail enrollment params
func (*DetailEnrollmentParams) WriteToRequest ¶
func (o *DetailEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DetailEnrollmentReader ¶
type DetailEnrollmentReader struct {
// contains filtered or unexported fields
}
DetailEnrollmentReader is a Reader for the DetailEnrollment structure.
func (*DetailEnrollmentReader) ReadResponse ¶
func (o *DetailEnrollmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DetailEnrollmentUnauthorized ¶
type DetailEnrollmentUnauthorized struct {
}DetailEnrollmentUnauthorized describes a response with status code 401, with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewDetailEnrollmentUnauthorized ¶
func NewDetailEnrollmentUnauthorized() *DetailEnrollmentUnauthorized
NewDetailEnrollmentUnauthorized creates a DetailEnrollmentUnauthorized with default headers values
func (*DetailEnrollmentUnauthorized) Error ¶
func (o *DetailEnrollmentUnauthorized) Error() string
func (*DetailEnrollmentUnauthorized) GetPayload ¶
func (o *DetailEnrollmentUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
type ListEnrollmentsBadRequest ¶
type ListEnrollmentsBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
ListEnrollmentsBadRequest describes a response with status code 400, with default header values.
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
func NewListEnrollmentsBadRequest ¶
func NewListEnrollmentsBadRequest() *ListEnrollmentsBadRequest
NewListEnrollmentsBadRequest creates a ListEnrollmentsBadRequest with default headers values
func (*ListEnrollmentsBadRequest) Error ¶
func (o *ListEnrollmentsBadRequest) Error() string
func (*ListEnrollmentsBadRequest) GetPayload ¶
func (o *ListEnrollmentsBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type ListEnrollmentsOK ¶
type ListEnrollmentsOK struct {
Payload *rest_model.ListEnrollmentsEnvelope
}
ListEnrollmentsOK describes a response with status code 200, with default header values.
A list of enrollments
func NewListEnrollmentsOK ¶
func NewListEnrollmentsOK() *ListEnrollmentsOK
NewListEnrollmentsOK creates a ListEnrollmentsOK with default headers values
func (*ListEnrollmentsOK) Error ¶
func (o *ListEnrollmentsOK) Error() string
func (*ListEnrollmentsOK) GetPayload ¶
func (o *ListEnrollmentsOK) GetPayload() *rest_model.ListEnrollmentsEnvelope
type ListEnrollmentsParams ¶
type ListEnrollmentsParams struct { // Filter. Filter *string // Limit. Limit *int64 // Offset. Offset *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListEnrollmentsParams contains all the parameters to send to the API endpoint
for the list enrollments operation. Typically these are written to a http.Request.
func NewListEnrollmentsParams ¶
func NewListEnrollmentsParams() *ListEnrollmentsParams
NewListEnrollmentsParams creates a new ListEnrollmentsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListEnrollmentsParamsWithContext ¶
func NewListEnrollmentsParamsWithContext(ctx context.Context) *ListEnrollmentsParams
NewListEnrollmentsParamsWithContext creates a new ListEnrollmentsParams object with the ability to set a context for a request.
func NewListEnrollmentsParamsWithHTTPClient ¶
func NewListEnrollmentsParamsWithHTTPClient(client *http.Client) *ListEnrollmentsParams
NewListEnrollmentsParamsWithHTTPClient creates a new ListEnrollmentsParams object with the ability to set a custom HTTPClient for a request.
func NewListEnrollmentsParamsWithTimeout ¶
func NewListEnrollmentsParamsWithTimeout(timeout time.Duration) *ListEnrollmentsParams
NewListEnrollmentsParamsWithTimeout creates a new ListEnrollmentsParams object with the ability to set a timeout on a request.
func (*ListEnrollmentsParams) SetContext ¶
func (o *ListEnrollmentsParams) SetContext(ctx context.Context)
SetContext adds the context to the list enrollments params
func (*ListEnrollmentsParams) SetDefaults ¶
func (o *ListEnrollmentsParams) SetDefaults()
SetDefaults hydrates default values in the list enrollments params (not the query body).
All values with no default are reset to their zero value.
func (*ListEnrollmentsParams) SetFilter ¶
func (o *ListEnrollmentsParams) SetFilter(filter *string)
SetFilter adds the filter to the list enrollments params
func (*ListEnrollmentsParams) SetHTTPClient ¶
func (o *ListEnrollmentsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list enrollments params
func (*ListEnrollmentsParams) SetLimit ¶
func (o *ListEnrollmentsParams) SetLimit(limit *int64)
SetLimit adds the limit to the list enrollments params
func (*ListEnrollmentsParams) SetOffset ¶
func (o *ListEnrollmentsParams) SetOffset(offset *int64)
SetOffset adds the offset to the list enrollments params
func (*ListEnrollmentsParams) SetTimeout ¶
func (o *ListEnrollmentsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list enrollments params
func (*ListEnrollmentsParams) WithContext ¶
func (o *ListEnrollmentsParams) WithContext(ctx context.Context) *ListEnrollmentsParams
WithContext adds the context to the list enrollments params
func (*ListEnrollmentsParams) WithDefaults ¶
func (o *ListEnrollmentsParams) WithDefaults() *ListEnrollmentsParams
WithDefaults hydrates default values in the list enrollments params (not the query body).
All values with no default are reset to their zero value.
func (*ListEnrollmentsParams) WithFilter ¶
func (o *ListEnrollmentsParams) WithFilter(filter *string) *ListEnrollmentsParams
WithFilter adds the filter to the list enrollments params
func (*ListEnrollmentsParams) WithHTTPClient ¶
func (o *ListEnrollmentsParams) WithHTTPClient(client *http.Client) *ListEnrollmentsParams
WithHTTPClient adds the HTTPClient to the list enrollments params
func (*ListEnrollmentsParams) WithLimit ¶
func (o *ListEnrollmentsParams) WithLimit(limit *int64) *ListEnrollmentsParams
WithLimit adds the limit to the list enrollments params
func (*ListEnrollmentsParams) WithOffset ¶
func (o *ListEnrollmentsParams) WithOffset(offset *int64) *ListEnrollmentsParams
WithOffset adds the offset to the list enrollments params
func (*ListEnrollmentsParams) WithTimeout ¶
func (o *ListEnrollmentsParams) WithTimeout(timeout time.Duration) *ListEnrollmentsParams
WithTimeout adds the timeout to the list enrollments params
func (*ListEnrollmentsParams) WriteToRequest ¶
func (o *ListEnrollmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListEnrollmentsReader ¶
type ListEnrollmentsReader struct {
// contains filtered or unexported fields
}
ListEnrollmentsReader is a Reader for the ListEnrollments structure.
func (*ListEnrollmentsReader) ReadResponse ¶
func (o *ListEnrollmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListEnrollmentsUnauthorized ¶
type ListEnrollmentsUnauthorized struct {
}ListEnrollmentsUnauthorized describes a response with status code 401, with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewListEnrollmentsUnauthorized ¶
func NewListEnrollmentsUnauthorized() *ListEnrollmentsUnauthorized
NewListEnrollmentsUnauthorized creates a ListEnrollmentsUnauthorized with default headers values
func (*ListEnrollmentsUnauthorized) Error ¶
func (o *ListEnrollmentsUnauthorized) Error() string
func (*ListEnrollmentsUnauthorized) GetPayload ¶
func (o *ListEnrollmentsUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
type RefreshEnrollmentBadRequest ¶
type RefreshEnrollmentBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
RefreshEnrollmentBadRequest describes a response with status code 400, with default header values.
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
func NewRefreshEnrollmentBadRequest ¶
func NewRefreshEnrollmentBadRequest() *RefreshEnrollmentBadRequest
NewRefreshEnrollmentBadRequest creates a RefreshEnrollmentBadRequest with default headers values
func (*RefreshEnrollmentBadRequest) Error ¶
func (o *RefreshEnrollmentBadRequest) Error() string
func (*RefreshEnrollmentBadRequest) GetPayload ¶
func (o *RefreshEnrollmentBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type RefreshEnrollmentOK ¶
type RefreshEnrollmentOK struct {
Payload *rest_model.CreateEnvelope
}
RefreshEnrollmentOK describes a response with status code 200, with default header values.
The create request was successful and the resource has been added at the following location
func NewRefreshEnrollmentOK ¶
func NewRefreshEnrollmentOK() *RefreshEnrollmentOK
NewRefreshEnrollmentOK creates a RefreshEnrollmentOK with default headers values
func (*RefreshEnrollmentOK) Error ¶
func (o *RefreshEnrollmentOK) Error() string
func (*RefreshEnrollmentOK) GetPayload ¶
func (o *RefreshEnrollmentOK) GetPayload() *rest_model.CreateEnvelope
type RefreshEnrollmentParams ¶
type RefreshEnrollmentParams struct { /* ID. The id of the requested resource */ ID string /* Refresh. An enrollment refresh request */ Refresh *rest_model.EnrollmentRefresh Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RefreshEnrollmentParams contains all the parameters to send to the API endpoint
for the refresh enrollment operation. Typically these are written to a http.Request.
func NewRefreshEnrollmentParams ¶
func NewRefreshEnrollmentParams() *RefreshEnrollmentParams
NewRefreshEnrollmentParams creates a new RefreshEnrollmentParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewRefreshEnrollmentParamsWithContext ¶
func NewRefreshEnrollmentParamsWithContext(ctx context.Context) *RefreshEnrollmentParams
NewRefreshEnrollmentParamsWithContext creates a new RefreshEnrollmentParams object with the ability to set a context for a request.
func NewRefreshEnrollmentParamsWithHTTPClient ¶
func NewRefreshEnrollmentParamsWithHTTPClient(client *http.Client) *RefreshEnrollmentParams
NewRefreshEnrollmentParamsWithHTTPClient creates a new RefreshEnrollmentParams object with the ability to set a custom HTTPClient for a request.
func NewRefreshEnrollmentParamsWithTimeout ¶
func NewRefreshEnrollmentParamsWithTimeout(timeout time.Duration) *RefreshEnrollmentParams
NewRefreshEnrollmentParamsWithTimeout creates a new RefreshEnrollmentParams object with the ability to set a timeout on a request.
func (*RefreshEnrollmentParams) SetContext ¶
func (o *RefreshEnrollmentParams) SetContext(ctx context.Context)
SetContext adds the context to the refresh enrollment params
func (*RefreshEnrollmentParams) SetDefaults ¶
func (o *RefreshEnrollmentParams) SetDefaults()
SetDefaults hydrates default values in the refresh enrollment params (not the query body).
All values with no default are reset to their zero value.
func (*RefreshEnrollmentParams) SetHTTPClient ¶
func (o *RefreshEnrollmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the refresh enrollment params
func (*RefreshEnrollmentParams) SetID ¶
func (o *RefreshEnrollmentParams) SetID(id string)
SetID adds the id to the refresh enrollment params
func (*RefreshEnrollmentParams) SetRefresh ¶
func (o *RefreshEnrollmentParams) SetRefresh(refresh *rest_model.EnrollmentRefresh)
SetRefresh adds the refresh to the refresh enrollment params
func (*RefreshEnrollmentParams) SetTimeout ¶
func (o *RefreshEnrollmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the refresh enrollment params
func (*RefreshEnrollmentParams) WithContext ¶
func (o *RefreshEnrollmentParams) WithContext(ctx context.Context) *RefreshEnrollmentParams
WithContext adds the context to the refresh enrollment params
func (*RefreshEnrollmentParams) WithDefaults ¶
func (o *RefreshEnrollmentParams) WithDefaults() *RefreshEnrollmentParams
WithDefaults hydrates default values in the refresh enrollment params (not the query body).
All values with no default are reset to their zero value.
func (*RefreshEnrollmentParams) WithHTTPClient ¶
func (o *RefreshEnrollmentParams) WithHTTPClient(client *http.Client) *RefreshEnrollmentParams
WithHTTPClient adds the HTTPClient to the refresh enrollment params
func (*RefreshEnrollmentParams) WithID ¶
func (o *RefreshEnrollmentParams) WithID(id string) *RefreshEnrollmentParams
WithID adds the id to the refresh enrollment params
func (*RefreshEnrollmentParams) WithRefresh ¶
func (o *RefreshEnrollmentParams) WithRefresh(refresh *rest_model.EnrollmentRefresh) *RefreshEnrollmentParams
WithRefresh adds the refresh to the refresh enrollment params
func (*RefreshEnrollmentParams) WithTimeout ¶
func (o *RefreshEnrollmentParams) WithTimeout(timeout time.Duration) *RefreshEnrollmentParams
WithTimeout adds the timeout to the refresh enrollment params
func (*RefreshEnrollmentParams) WriteToRequest ¶
func (o *RefreshEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RefreshEnrollmentReader ¶
type RefreshEnrollmentReader struct {
// contains filtered or unexported fields
}
RefreshEnrollmentReader is a Reader for the RefreshEnrollment structure.
func (*RefreshEnrollmentReader) ReadResponse ¶
func (o *RefreshEnrollmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RefreshEnrollmentUnauthorized ¶
type RefreshEnrollmentUnauthorized struct {
}RefreshEnrollmentUnauthorized describes a response with status code 401, with default header values.
The currently supplied session does not have the correct access rights to request this resource
func NewRefreshEnrollmentUnauthorized ¶
func NewRefreshEnrollmentUnauthorized() *RefreshEnrollmentUnauthorized
NewRefreshEnrollmentUnauthorized creates a RefreshEnrollmentUnauthorized with default headers values
func (*RefreshEnrollmentUnauthorized) Error ¶
func (o *RefreshEnrollmentUnauthorized) Error() string
func (*RefreshEnrollmentUnauthorized) GetPayload ¶
func (o *RefreshEnrollmentUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
Source Files ¶
- create_enrollment_parameters.go
- create_enrollment_responses.go
- delete_enrollment_parameters.go
- delete_enrollment_responses.go
- detail_enrollment_parameters.go
- detail_enrollment_responses.go
- enrollment_client.go
- list_enrollments_parameters.go
- list_enrollments_responses.go
- refresh_enrollment_parameters.go
- refresh_enrollment_responses.go