Documentation ¶
Index ¶
- type AddAPIkeyBadRequest
- type AddAPIkeyConflict
- type AddAPIkeyForbidden
- type AddAPIkeyInternalServerError
- type AddAPIkeyOK
- type AddAPIkeyParams
- func (o *AddAPIkeyParams) SetBody(body *models.AddCommand)
- func (o *AddAPIkeyParams) SetContext(ctx context.Context)
- func (o *AddAPIkeyParams) SetDefaults()
- func (o *AddAPIkeyParams) SetHTTPClient(client *http.Client)
- func (o *AddAPIkeyParams) SetTimeout(timeout time.Duration)
- func (o *AddAPIkeyParams) WithBody(body *models.AddCommand) *AddAPIkeyParams
- func (o *AddAPIkeyParams) WithContext(ctx context.Context) *AddAPIkeyParams
- func (o *AddAPIkeyParams) WithDefaults() *AddAPIkeyParams
- func (o *AddAPIkeyParams) WithHTTPClient(client *http.Client) *AddAPIkeyParams
- func (o *AddAPIkeyParams) WithTimeout(timeout time.Duration) *AddAPIkeyParams
- func (o *AddAPIkeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddAPIkeyReader
- type AddAPIkeyUnauthorized
- type Client
- func (a *Client) AddAPIkey(params *AddAPIkeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddAPIkeyOK, error)
- func (a *Client) DeleteAPIkey(params *DeleteAPIkeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteAPIkeyOK, error)
- func (a *Client) GetAPIkeys(params *GetAPIkeysParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIkeysOK, error)deprecated
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteAPIkeyForbidden
- type DeleteAPIkeyInternalServerError
- type DeleteAPIkeyNotFound
- type DeleteAPIkeyOK
- type DeleteAPIkeyParams
- func (o *DeleteAPIkeyParams) SetContext(ctx context.Context)
- func (o *DeleteAPIkeyParams) SetDefaults()
- func (o *DeleteAPIkeyParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAPIkeyParams) SetID(id int64)
- func (o *DeleteAPIkeyParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAPIkeyParams) WithContext(ctx context.Context) *DeleteAPIkeyParams
- func (o *DeleteAPIkeyParams) WithDefaults() *DeleteAPIkeyParams
- func (o *DeleteAPIkeyParams) WithHTTPClient(client *http.Client) *DeleteAPIkeyParams
- func (o *DeleteAPIkeyParams) WithID(id int64) *DeleteAPIkeyParams
- func (o *DeleteAPIkeyParams) WithTimeout(timeout time.Duration) *DeleteAPIkeyParams
- func (o *DeleteAPIkeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAPIkeyReader
- type DeleteAPIkeyUnauthorized
- type GetAPIkeysForbidden
- type GetAPIkeysInternalServerError
- type GetAPIkeysNotFound
- type GetAPIkeysOK
- type GetAPIkeysParams
- func (o *GetAPIkeysParams) SetContext(ctx context.Context)
- func (o *GetAPIkeysParams) SetDefaults()
- func (o *GetAPIkeysParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIkeysParams) SetIncludeExpired(includeExpired *bool)
- func (o *GetAPIkeysParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIkeysParams) WithContext(ctx context.Context) *GetAPIkeysParams
- func (o *GetAPIkeysParams) WithDefaults() *GetAPIkeysParams
- func (o *GetAPIkeysParams) WithHTTPClient(client *http.Client) *GetAPIkeysParams
- func (o *GetAPIkeysParams) WithIncludeExpired(includeExpired *bool) *GetAPIkeysParams
- func (o *GetAPIkeysParams) WithTimeout(timeout time.Duration) *GetAPIkeysParams
- func (o *GetAPIkeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIkeysReader
- type GetAPIkeysUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAPIkeyBadRequest ¶
type AddAPIkeyBadRequest struct {
Payload *models.ErrorResponseBody
}
AddAPIkeyBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewAddAPIkeyBadRequest ¶
func NewAddAPIkeyBadRequest() *AddAPIkeyBadRequest
NewAddAPIkeyBadRequest creates a AddAPIkeyBadRequest with default headers values
func (*AddAPIkeyBadRequest) Error ¶
func (o *AddAPIkeyBadRequest) Error() string
func (*AddAPIkeyBadRequest) GetPayload ¶
func (o *AddAPIkeyBadRequest) GetPayload() *models.ErrorResponseBody
type AddAPIkeyConflict ¶
type AddAPIkeyConflict struct {
Payload *models.ErrorResponseBody
}
AddAPIkeyConflict describes a response with status code 409, with default header values.
ConflictError
func NewAddAPIkeyConflict ¶
func NewAddAPIkeyConflict() *AddAPIkeyConflict
NewAddAPIkeyConflict creates a AddAPIkeyConflict with default headers values
func (*AddAPIkeyConflict) Error ¶
func (o *AddAPIkeyConflict) Error() string
func (*AddAPIkeyConflict) GetPayload ¶
func (o *AddAPIkeyConflict) GetPayload() *models.ErrorResponseBody
type AddAPIkeyForbidden ¶
type AddAPIkeyForbidden struct {
Payload *models.ErrorResponseBody
}
AddAPIkeyForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewAddAPIkeyForbidden ¶
func NewAddAPIkeyForbidden() *AddAPIkeyForbidden
NewAddAPIkeyForbidden creates a AddAPIkeyForbidden with default headers values
func (*AddAPIkeyForbidden) Error ¶
func (o *AddAPIkeyForbidden) Error() string
func (*AddAPIkeyForbidden) GetPayload ¶
func (o *AddAPIkeyForbidden) GetPayload() *models.ErrorResponseBody
type AddAPIkeyInternalServerError ¶
type AddAPIkeyInternalServerError struct {
Payload *models.ErrorResponseBody
}
AddAPIkeyInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewAddAPIkeyInternalServerError ¶
func NewAddAPIkeyInternalServerError() *AddAPIkeyInternalServerError
NewAddAPIkeyInternalServerError creates a AddAPIkeyInternalServerError with default headers values
func (*AddAPIkeyInternalServerError) Error ¶
func (o *AddAPIkeyInternalServerError) Error() string
func (*AddAPIkeyInternalServerError) GetPayload ¶
func (o *AddAPIkeyInternalServerError) GetPayload() *models.ErrorResponseBody
type AddAPIkeyOK ¶
type AddAPIkeyOK struct {
Payload *models.NewAPIKeyResult
}
AddAPIkeyOK describes a response with status code 200, with default header values.
(empty)
func NewAddAPIkeyOK ¶
func NewAddAPIkeyOK() *AddAPIkeyOK
NewAddAPIkeyOK creates a AddAPIkeyOK with default headers values
func (*AddAPIkeyOK) Error ¶
func (o *AddAPIkeyOK) Error() string
func (*AddAPIkeyOK) GetPayload ¶
func (o *AddAPIkeyOK) GetPayload() *models.NewAPIKeyResult
type AddAPIkeyParams ¶
type AddAPIkeyParams struct { // Body. Body *models.AddCommand Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddAPIkeyParams contains all the parameters to send to the API endpoint
for the add a p ikey operation. Typically these are written to a http.Request.
func NewAddAPIkeyParams ¶
func NewAddAPIkeyParams() *AddAPIkeyParams
NewAddAPIkeyParams creates a new AddAPIkeyParams 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 NewAddAPIkeyParamsWithContext ¶
func NewAddAPIkeyParamsWithContext(ctx context.Context) *AddAPIkeyParams
NewAddAPIkeyParamsWithContext creates a new AddAPIkeyParams object with the ability to set a context for a request.
func NewAddAPIkeyParamsWithHTTPClient ¶
func NewAddAPIkeyParamsWithHTTPClient(client *http.Client) *AddAPIkeyParams
NewAddAPIkeyParamsWithHTTPClient creates a new AddAPIkeyParams object with the ability to set a custom HTTPClient for a request.
func NewAddAPIkeyParamsWithTimeout ¶
func NewAddAPIkeyParamsWithTimeout(timeout time.Duration) *AddAPIkeyParams
NewAddAPIkeyParamsWithTimeout creates a new AddAPIkeyParams object with the ability to set a timeout on a request.
func (*AddAPIkeyParams) SetBody ¶
func (o *AddAPIkeyParams) SetBody(body *models.AddCommand)
SetBody adds the body to the add a p ikey params
func (*AddAPIkeyParams) SetContext ¶
func (o *AddAPIkeyParams) SetContext(ctx context.Context)
SetContext adds the context to the add a p ikey params
func (*AddAPIkeyParams) SetDefaults ¶
func (o *AddAPIkeyParams) SetDefaults()
SetDefaults hydrates default values in the add a p ikey params (not the query body).
All values with no default are reset to their zero value.
func (*AddAPIkeyParams) SetHTTPClient ¶
func (o *AddAPIkeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add a p ikey params
func (*AddAPIkeyParams) SetTimeout ¶
func (o *AddAPIkeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add a p ikey params
func (*AddAPIkeyParams) WithBody ¶
func (o *AddAPIkeyParams) WithBody(body *models.AddCommand) *AddAPIkeyParams
WithBody adds the body to the add a p ikey params
func (*AddAPIkeyParams) WithContext ¶
func (o *AddAPIkeyParams) WithContext(ctx context.Context) *AddAPIkeyParams
WithContext adds the context to the add a p ikey params
func (*AddAPIkeyParams) WithDefaults ¶
func (o *AddAPIkeyParams) WithDefaults() *AddAPIkeyParams
WithDefaults hydrates default values in the add a p ikey params (not the query body).
All values with no default are reset to their zero value.
func (*AddAPIkeyParams) WithHTTPClient ¶
func (o *AddAPIkeyParams) WithHTTPClient(client *http.Client) *AddAPIkeyParams
WithHTTPClient adds the HTTPClient to the add a p ikey params
func (*AddAPIkeyParams) WithTimeout ¶
func (o *AddAPIkeyParams) WithTimeout(timeout time.Duration) *AddAPIkeyParams
WithTimeout adds the timeout to the add a p ikey params
func (*AddAPIkeyParams) WriteToRequest ¶
func (o *AddAPIkeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddAPIkeyReader ¶
type AddAPIkeyReader struct {
// contains filtered or unexported fields
}
AddAPIkeyReader is a Reader for the AddAPIkey structure.
func (*AddAPIkeyReader) ReadResponse ¶
func (o *AddAPIkeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddAPIkeyUnauthorized ¶
type AddAPIkeyUnauthorized struct {
}AddAPIkeyUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewAddAPIkeyUnauthorized ¶
func NewAddAPIkeyUnauthorized() *AddAPIkeyUnauthorized
NewAddAPIkeyUnauthorized creates a AddAPIkeyUnauthorized with default headers values
func (*AddAPIkeyUnauthorized) Error ¶
func (o *AddAPIkeyUnauthorized) Error() string
func (*AddAPIkeyUnauthorized) GetPayload ¶
func (o *AddAPIkeyUnauthorized) GetPayload() *models.ErrorResponseBody
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for api keys API
func (*Client) AddAPIkey ¶
func (a *Client) AddAPIkey(params *AddAPIkeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddAPIkeyOK, error)
AddAPIkey creates an API key
Will return details of the created API key.
func (*Client) DeleteAPIkey ¶
func (a *Client) DeleteAPIkey(params *DeleteAPIkeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIkeyOK, error)
DeleteAPIkey deletes API key Deletes an API key.
Deprecated. See: https://grafana.com/docs/grafana/next/administration/api-keys/#migrate-api-keys-to-grafana-service-accounts-using-the-api.
func (*Client) GetAPIkeys
deprecated
func (a *Client) GetAPIkeys(params *GetAPIkeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIkeysOK, error)
GetAPIkeys gets auth keys Will return auth keys.
Deprecated: true.
Deprecated. Please use GET /api/serviceaccounts and GET /api/serviceaccounts/{id}/tokens instead see https://grafana.com/docs/grafana/next/administration/api-keys/#migrate-api-keys-to-grafana-service-accounts-using-the-api.
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 { AddAPIkey(params *AddAPIkeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddAPIkeyOK, error) DeleteAPIkey(params *DeleteAPIkeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIkeyOK, error) GetAPIkeys(params *GetAPIkeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIkeysOK, 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 api keys API client.
type DeleteAPIkeyForbidden ¶
type DeleteAPIkeyForbidden struct {
Payload *models.ErrorResponseBody
}
DeleteAPIkeyForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewDeleteAPIkeyForbidden ¶
func NewDeleteAPIkeyForbidden() *DeleteAPIkeyForbidden
NewDeleteAPIkeyForbidden creates a DeleteAPIkeyForbidden with default headers values
func (*DeleteAPIkeyForbidden) Error ¶
func (o *DeleteAPIkeyForbidden) Error() string
func (*DeleteAPIkeyForbidden) GetPayload ¶
func (o *DeleteAPIkeyForbidden) GetPayload() *models.ErrorResponseBody
type DeleteAPIkeyInternalServerError ¶
type DeleteAPIkeyInternalServerError struct {
Payload *models.ErrorResponseBody
}
DeleteAPIkeyInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewDeleteAPIkeyInternalServerError ¶
func NewDeleteAPIkeyInternalServerError() *DeleteAPIkeyInternalServerError
NewDeleteAPIkeyInternalServerError creates a DeleteAPIkeyInternalServerError with default headers values
func (*DeleteAPIkeyInternalServerError) Error ¶
func (o *DeleteAPIkeyInternalServerError) Error() string
func (*DeleteAPIkeyInternalServerError) GetPayload ¶
func (o *DeleteAPIkeyInternalServerError) GetPayload() *models.ErrorResponseBody
type DeleteAPIkeyNotFound ¶
type DeleteAPIkeyNotFound struct {
Payload *models.ErrorResponseBody
}
DeleteAPIkeyNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewDeleteAPIkeyNotFound ¶
func NewDeleteAPIkeyNotFound() *DeleteAPIkeyNotFound
NewDeleteAPIkeyNotFound creates a DeleteAPIkeyNotFound with default headers values
func (*DeleteAPIkeyNotFound) Error ¶
func (o *DeleteAPIkeyNotFound) Error() string
func (*DeleteAPIkeyNotFound) GetPayload ¶
func (o *DeleteAPIkeyNotFound) GetPayload() *models.ErrorResponseBody
type DeleteAPIkeyOK ¶
type DeleteAPIkeyOK struct {
Payload *models.SuccessResponseBody
}
DeleteAPIkeyOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewDeleteAPIkeyOK ¶
func NewDeleteAPIkeyOK() *DeleteAPIkeyOK
NewDeleteAPIkeyOK creates a DeleteAPIkeyOK with default headers values
func (*DeleteAPIkeyOK) Error ¶
func (o *DeleteAPIkeyOK) Error() string
func (*DeleteAPIkeyOK) GetPayload ¶
func (o *DeleteAPIkeyOK) GetPayload() *models.SuccessResponseBody
type DeleteAPIkeyParams ¶
type DeleteAPIkeyParams struct { // ID. // // Format: int64 ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteAPIkeyParams contains all the parameters to send to the API endpoint
for the delete a p ikey operation. Typically these are written to a http.Request.
func NewDeleteAPIkeyParams ¶
func NewDeleteAPIkeyParams() *DeleteAPIkeyParams
NewDeleteAPIkeyParams creates a new DeleteAPIkeyParams 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 NewDeleteAPIkeyParamsWithContext ¶
func NewDeleteAPIkeyParamsWithContext(ctx context.Context) *DeleteAPIkeyParams
NewDeleteAPIkeyParamsWithContext creates a new DeleteAPIkeyParams object with the ability to set a context for a request.
func NewDeleteAPIkeyParamsWithHTTPClient ¶
func NewDeleteAPIkeyParamsWithHTTPClient(client *http.Client) *DeleteAPIkeyParams
NewDeleteAPIkeyParamsWithHTTPClient creates a new DeleteAPIkeyParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteAPIkeyParamsWithTimeout ¶
func NewDeleteAPIkeyParamsWithTimeout(timeout time.Duration) *DeleteAPIkeyParams
NewDeleteAPIkeyParamsWithTimeout creates a new DeleteAPIkeyParams object with the ability to set a timeout on a request.
func (*DeleteAPIkeyParams) SetContext ¶
func (o *DeleteAPIkeyParams) SetContext(ctx context.Context)
SetContext adds the context to the delete a p ikey params
func (*DeleteAPIkeyParams) SetDefaults ¶
func (o *DeleteAPIkeyParams) SetDefaults()
SetDefaults hydrates default values in the delete a p ikey params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPIkeyParams) SetHTTPClient ¶
func (o *DeleteAPIkeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete a p ikey params
func (*DeleteAPIkeyParams) SetID ¶
func (o *DeleteAPIkeyParams) SetID(id int64)
SetID adds the id to the delete a p ikey params
func (*DeleteAPIkeyParams) SetTimeout ¶
func (o *DeleteAPIkeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete a p ikey params
func (*DeleteAPIkeyParams) WithContext ¶
func (o *DeleteAPIkeyParams) WithContext(ctx context.Context) *DeleteAPIkeyParams
WithContext adds the context to the delete a p ikey params
func (*DeleteAPIkeyParams) WithDefaults ¶
func (o *DeleteAPIkeyParams) WithDefaults() *DeleteAPIkeyParams
WithDefaults hydrates default values in the delete a p ikey params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPIkeyParams) WithHTTPClient ¶
func (o *DeleteAPIkeyParams) WithHTTPClient(client *http.Client) *DeleteAPIkeyParams
WithHTTPClient adds the HTTPClient to the delete a p ikey params
func (*DeleteAPIkeyParams) WithID ¶
func (o *DeleteAPIkeyParams) WithID(id int64) *DeleteAPIkeyParams
WithID adds the id to the delete a p ikey params
func (*DeleteAPIkeyParams) WithTimeout ¶
func (o *DeleteAPIkeyParams) WithTimeout(timeout time.Duration) *DeleteAPIkeyParams
WithTimeout adds the timeout to the delete a p ikey params
func (*DeleteAPIkeyParams) WriteToRequest ¶
func (o *DeleteAPIkeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteAPIkeyReader ¶
type DeleteAPIkeyReader struct {
// contains filtered or unexported fields
}
DeleteAPIkeyReader is a Reader for the DeleteAPIkey structure.
func (*DeleteAPIkeyReader) ReadResponse ¶
func (o *DeleteAPIkeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteAPIkeyUnauthorized ¶
type DeleteAPIkeyUnauthorized struct {
}DeleteAPIkeyUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewDeleteAPIkeyUnauthorized ¶
func NewDeleteAPIkeyUnauthorized() *DeleteAPIkeyUnauthorized
NewDeleteAPIkeyUnauthorized creates a DeleteAPIkeyUnauthorized with default headers values
func (*DeleteAPIkeyUnauthorized) Error ¶
func (o *DeleteAPIkeyUnauthorized) Error() string
func (*DeleteAPIkeyUnauthorized) GetPayload ¶
func (o *DeleteAPIkeyUnauthorized) GetPayload() *models.ErrorResponseBody
type GetAPIkeysForbidden ¶
type GetAPIkeysForbidden struct {
Payload *models.ErrorResponseBody
}
GetAPIkeysForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetAPIkeysForbidden ¶
func NewGetAPIkeysForbidden() *GetAPIkeysForbidden
NewGetAPIkeysForbidden creates a GetAPIkeysForbidden with default headers values
func (*GetAPIkeysForbidden) Error ¶
func (o *GetAPIkeysForbidden) Error() string
func (*GetAPIkeysForbidden) GetPayload ¶
func (o *GetAPIkeysForbidden) GetPayload() *models.ErrorResponseBody
type GetAPIkeysInternalServerError ¶
type GetAPIkeysInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetAPIkeysInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetAPIkeysInternalServerError ¶
func NewGetAPIkeysInternalServerError() *GetAPIkeysInternalServerError
NewGetAPIkeysInternalServerError creates a GetAPIkeysInternalServerError with default headers values
func (*GetAPIkeysInternalServerError) Error ¶
func (o *GetAPIkeysInternalServerError) Error() string
func (*GetAPIkeysInternalServerError) GetPayload ¶
func (o *GetAPIkeysInternalServerError) GetPayload() *models.ErrorResponseBody
type GetAPIkeysNotFound ¶
type GetAPIkeysNotFound struct {
Payload *models.ErrorResponseBody
}
GetAPIkeysNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewGetAPIkeysNotFound ¶
func NewGetAPIkeysNotFound() *GetAPIkeysNotFound
NewGetAPIkeysNotFound creates a GetAPIkeysNotFound with default headers values
func (*GetAPIkeysNotFound) Error ¶
func (o *GetAPIkeysNotFound) Error() string
func (*GetAPIkeysNotFound) GetPayload ¶
func (o *GetAPIkeysNotFound) GetPayload() *models.ErrorResponseBody
type GetAPIkeysOK ¶
GetAPIkeysOK describes a response with status code 200, with default header values.
(empty)
func NewGetAPIkeysOK ¶
func NewGetAPIkeysOK() *GetAPIkeysOK
NewGetAPIkeysOK creates a GetAPIkeysOK with default headers values
func (*GetAPIkeysOK) Error ¶
func (o *GetAPIkeysOK) Error() string
func (*GetAPIkeysOK) GetPayload ¶
func (o *GetAPIkeysOK) GetPayload() []*models.APIKeyDTO
type GetAPIkeysParams ¶
type GetAPIkeysParams struct { /* IncludeExpired. Show expired keys */ IncludeExpired *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIkeysParams contains all the parameters to send to the API endpoint
for the get a p ikeys operation. Typically these are written to a http.Request.
func NewGetAPIkeysParams ¶
func NewGetAPIkeysParams() *GetAPIkeysParams
NewGetAPIkeysParams creates a new GetAPIkeysParams 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 NewGetAPIkeysParamsWithContext ¶
func NewGetAPIkeysParamsWithContext(ctx context.Context) *GetAPIkeysParams
NewGetAPIkeysParamsWithContext creates a new GetAPIkeysParams object with the ability to set a context for a request.
func NewGetAPIkeysParamsWithHTTPClient ¶
func NewGetAPIkeysParamsWithHTTPClient(client *http.Client) *GetAPIkeysParams
NewGetAPIkeysParamsWithHTTPClient creates a new GetAPIkeysParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIkeysParamsWithTimeout ¶
func NewGetAPIkeysParamsWithTimeout(timeout time.Duration) *GetAPIkeysParams
NewGetAPIkeysParamsWithTimeout creates a new GetAPIkeysParams object with the ability to set a timeout on a request.
func (*GetAPIkeysParams) SetContext ¶
func (o *GetAPIkeysParams) SetContext(ctx context.Context)
SetContext adds the context to the get a p ikeys params
func (*GetAPIkeysParams) SetDefaults ¶
func (o *GetAPIkeysParams) SetDefaults()
SetDefaults hydrates default values in the get a p ikeys params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIkeysParams) SetHTTPClient ¶
func (o *GetAPIkeysParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get a p ikeys params
func (*GetAPIkeysParams) SetIncludeExpired ¶
func (o *GetAPIkeysParams) SetIncludeExpired(includeExpired *bool)
SetIncludeExpired adds the includeExpired to the get a p ikeys params
func (*GetAPIkeysParams) SetTimeout ¶
func (o *GetAPIkeysParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get a p ikeys params
func (*GetAPIkeysParams) WithContext ¶
func (o *GetAPIkeysParams) WithContext(ctx context.Context) *GetAPIkeysParams
WithContext adds the context to the get a p ikeys params
func (*GetAPIkeysParams) WithDefaults ¶
func (o *GetAPIkeysParams) WithDefaults() *GetAPIkeysParams
WithDefaults hydrates default values in the get a p ikeys params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIkeysParams) WithHTTPClient ¶
func (o *GetAPIkeysParams) WithHTTPClient(client *http.Client) *GetAPIkeysParams
WithHTTPClient adds the HTTPClient to the get a p ikeys params
func (*GetAPIkeysParams) WithIncludeExpired ¶
func (o *GetAPIkeysParams) WithIncludeExpired(includeExpired *bool) *GetAPIkeysParams
WithIncludeExpired adds the includeExpired to the get a p ikeys params
func (*GetAPIkeysParams) WithTimeout ¶
func (o *GetAPIkeysParams) WithTimeout(timeout time.Duration) *GetAPIkeysParams
WithTimeout adds the timeout to the get a p ikeys params
func (*GetAPIkeysParams) WriteToRequest ¶
func (o *GetAPIkeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIkeysReader ¶
type GetAPIkeysReader struct {
// contains filtered or unexported fields
}
GetAPIkeysReader is a Reader for the GetAPIkeys structure.
func (*GetAPIkeysReader) ReadResponse ¶
func (o *GetAPIkeysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPIkeysUnauthorized ¶
type GetAPIkeysUnauthorized struct {
}GetAPIkeysUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetAPIkeysUnauthorized ¶
func NewGetAPIkeysUnauthorized() *GetAPIkeysUnauthorized
NewGetAPIkeysUnauthorized creates a GetAPIkeysUnauthorized with default headers values
func (*GetAPIkeysUnauthorized) Error ¶
func (o *GetAPIkeysUnauthorized) Error() string
func (*GetAPIkeysUnauthorized) GetPayload ¶
func (o *GetAPIkeysUnauthorized) GetPayload() *models.ErrorResponseBody