Documentation ¶
Index ¶
- type AddAPIkeyGone
- func (o *AddAPIkeyGone) Code() int
- func (o *AddAPIkeyGone) Error() string
- func (o *AddAPIkeyGone) GetPayload() *models.ErrorResponseBody
- func (o *AddAPIkeyGone) IsClientError() bool
- func (o *AddAPIkeyGone) IsCode(code int) bool
- func (o *AddAPIkeyGone) IsRedirect() bool
- func (o *AddAPIkeyGone) IsServerError() bool
- func (o *AddAPIkeyGone) IsSuccess() bool
- func (o *AddAPIkeyGone) String() string
- type AddAPIkeyParams
- 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) 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 Client
- func (a *Client) AddAPIkey(opts ...ClientOption) error
- func (a *Client) AddAPIkeyWithParams(params *AddAPIkeyParams, opts ...ClientOption) error
- func (a *Client) DeleteAPIkey(id int64, opts ...ClientOption) (*DeleteAPIkeyOK, error)
- func (a *Client) DeleteAPIkeyWithParams(params *DeleteAPIkeyParams, opts ...ClientOption) (*DeleteAPIkeyOK, error)
- func (a *Client) GetAPIkeys(params *GetAPIkeysParams, opts ...ClientOption) (*GetAPIkeysOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteAPIkeyForbidden
- func (o *DeleteAPIkeyForbidden) Code() int
- func (o *DeleteAPIkeyForbidden) Error() string
- func (o *DeleteAPIkeyForbidden) GetPayload() *models.ErrorResponseBody
- func (o *DeleteAPIkeyForbidden) IsClientError() bool
- func (o *DeleteAPIkeyForbidden) IsCode(code int) bool
- func (o *DeleteAPIkeyForbidden) IsRedirect() bool
- func (o *DeleteAPIkeyForbidden) IsServerError() bool
- func (o *DeleteAPIkeyForbidden) IsSuccess() bool
- func (o *DeleteAPIkeyForbidden) String() string
- type DeleteAPIkeyInternalServerError
- func (o *DeleteAPIkeyInternalServerError) Code() int
- func (o *DeleteAPIkeyInternalServerError) Error() string
- func (o *DeleteAPIkeyInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *DeleteAPIkeyInternalServerError) IsClientError() bool
- func (o *DeleteAPIkeyInternalServerError) IsCode(code int) bool
- func (o *DeleteAPIkeyInternalServerError) IsRedirect() bool
- func (o *DeleteAPIkeyInternalServerError) IsServerError() bool
- func (o *DeleteAPIkeyInternalServerError) IsSuccess() bool
- func (o *DeleteAPIkeyInternalServerError) String() string
- type DeleteAPIkeyNotFound
- func (o *DeleteAPIkeyNotFound) Code() int
- func (o *DeleteAPIkeyNotFound) Error() string
- func (o *DeleteAPIkeyNotFound) GetPayload() *models.ErrorResponseBody
- func (o *DeleteAPIkeyNotFound) IsClientError() bool
- func (o *DeleteAPIkeyNotFound) IsCode(code int) bool
- func (o *DeleteAPIkeyNotFound) IsRedirect() bool
- func (o *DeleteAPIkeyNotFound) IsServerError() bool
- func (o *DeleteAPIkeyNotFound) IsSuccess() bool
- func (o *DeleteAPIkeyNotFound) String() string
- type DeleteAPIkeyOK
- func (o *DeleteAPIkeyOK) Code() int
- func (o *DeleteAPIkeyOK) Error() string
- func (o *DeleteAPIkeyOK) GetPayload() *models.SuccessResponseBody
- func (o *DeleteAPIkeyOK) IsClientError() bool
- func (o *DeleteAPIkeyOK) IsCode(code int) bool
- func (o *DeleteAPIkeyOK) IsRedirect() bool
- func (o *DeleteAPIkeyOK) IsServerError() bool
- func (o *DeleteAPIkeyOK) IsSuccess() bool
- func (o *DeleteAPIkeyOK) String() string
- 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
- func (o *DeleteAPIkeyUnauthorized) Code() int
- func (o *DeleteAPIkeyUnauthorized) Error() string
- func (o *DeleteAPIkeyUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *DeleteAPIkeyUnauthorized) IsClientError() bool
- func (o *DeleteAPIkeyUnauthorized) IsCode(code int) bool
- func (o *DeleteAPIkeyUnauthorized) IsRedirect() bool
- func (o *DeleteAPIkeyUnauthorized) IsServerError() bool
- func (o *DeleteAPIkeyUnauthorized) IsSuccess() bool
- func (o *DeleteAPIkeyUnauthorized) String() string
- type GetAPIkeysForbidden
- func (o *GetAPIkeysForbidden) Code() int
- func (o *GetAPIkeysForbidden) Error() string
- func (o *GetAPIkeysForbidden) GetPayload() *models.ErrorResponseBody
- func (o *GetAPIkeysForbidden) IsClientError() bool
- func (o *GetAPIkeysForbidden) IsCode(code int) bool
- func (o *GetAPIkeysForbidden) IsRedirect() bool
- func (o *GetAPIkeysForbidden) IsServerError() bool
- func (o *GetAPIkeysForbidden) IsSuccess() bool
- func (o *GetAPIkeysForbidden) String() string
- type GetAPIkeysInternalServerError
- func (o *GetAPIkeysInternalServerError) Code() int
- func (o *GetAPIkeysInternalServerError) Error() string
- func (o *GetAPIkeysInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *GetAPIkeysInternalServerError) IsClientError() bool
- func (o *GetAPIkeysInternalServerError) IsCode(code int) bool
- func (o *GetAPIkeysInternalServerError) IsRedirect() bool
- func (o *GetAPIkeysInternalServerError) IsServerError() bool
- func (o *GetAPIkeysInternalServerError) IsSuccess() bool
- func (o *GetAPIkeysInternalServerError) String() string
- type GetAPIkeysNotFound
- func (o *GetAPIkeysNotFound) Code() int
- func (o *GetAPIkeysNotFound) Error() string
- func (o *GetAPIkeysNotFound) GetPayload() *models.ErrorResponseBody
- func (o *GetAPIkeysNotFound) IsClientError() bool
- func (o *GetAPIkeysNotFound) IsCode(code int) bool
- func (o *GetAPIkeysNotFound) IsRedirect() bool
- func (o *GetAPIkeysNotFound) IsServerError() bool
- func (o *GetAPIkeysNotFound) IsSuccess() bool
- func (o *GetAPIkeysNotFound) String() string
- type GetAPIkeysOK
- func (o *GetAPIkeysOK) Code() int
- func (o *GetAPIkeysOK) Error() string
- func (o *GetAPIkeysOK) GetPayload() []*models.APIKeyDTO
- func (o *GetAPIkeysOK) IsClientError() bool
- func (o *GetAPIkeysOK) IsCode(code int) bool
- func (o *GetAPIkeysOK) IsRedirect() bool
- func (o *GetAPIkeysOK) IsServerError() bool
- func (o *GetAPIkeysOK) IsSuccess() bool
- func (o *GetAPIkeysOK) String() string
- 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
- func (o *GetAPIkeysUnauthorized) Code() int
- func (o *GetAPIkeysUnauthorized) Error() string
- func (o *GetAPIkeysUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *GetAPIkeysUnauthorized) IsClientError() bool
- func (o *GetAPIkeysUnauthorized) IsCode(code int) bool
- func (o *GetAPIkeysUnauthorized) IsRedirect() bool
- func (o *GetAPIkeysUnauthorized) IsServerError() bool
- func (o *GetAPIkeysUnauthorized) IsSuccess() bool
- func (o *GetAPIkeysUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAPIkeyGone ¶
type AddAPIkeyGone struct {
Payload *models.ErrorResponseBody
}
AddAPIkeyGone describes a response with status code 410, with default header values.
GoneError is returned when the requested endpoint was removed.
func NewAddAPIkeyGone ¶
func NewAddAPIkeyGone() *AddAPIkeyGone
NewAddAPIkeyGone creates a AddAPIkeyGone with default headers values
func (*AddAPIkeyGone) Code ¶
func (o *AddAPIkeyGone) Code() int
Code gets the status code for the add a p ikey gone response
func (*AddAPIkeyGone) Error ¶
func (o *AddAPIkeyGone) Error() string
func (*AddAPIkeyGone) GetPayload ¶
func (o *AddAPIkeyGone) GetPayload() *models.ErrorResponseBody
func (*AddAPIkeyGone) IsClientError ¶
func (o *AddAPIkeyGone) IsClientError() bool
IsClientError returns true when this add a p ikey gone response has a 4xx status code
func (*AddAPIkeyGone) IsCode ¶
func (o *AddAPIkeyGone) IsCode(code int) bool
IsCode returns true when this add a p ikey gone response a status code equal to that given
func (*AddAPIkeyGone) IsRedirect ¶
func (o *AddAPIkeyGone) IsRedirect() bool
IsRedirect returns true when this add a p ikey gone response has a 3xx status code
func (*AddAPIkeyGone) IsServerError ¶
func (o *AddAPIkeyGone) IsServerError() bool
IsServerError returns true when this add a p ikey gone response has a 5xx status code
func (*AddAPIkeyGone) IsSuccess ¶
func (o *AddAPIkeyGone) IsSuccess() bool
IsSuccess returns true when this add a p ikey gone response has a 2xx status code
func (*AddAPIkeyGone) String ¶
func (o *AddAPIkeyGone) String() string
type AddAPIkeyParams ¶
type AddAPIkeyParams struct { 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) 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) 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 Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for api keys API
func (*Client) AddAPIkey ¶
func (a *Client) AddAPIkey(opts ...ClientOption) error
AddAPIkey creates an API key
Will return details of the created API key.
func (*Client) AddAPIkeyWithParams ¶
func (a *Client) AddAPIkeyWithParams(params *AddAPIkeyParams, opts ...ClientOption) error
func (*Client) DeleteAPIkey ¶
func (a *Client) DeleteAPIkey(id int64, opts ...ClientOption) (*DeleteAPIkeyOK, error)
DeleteAPIkey deletes API key
Deletes an API key. Deprecated. See: https://grafana.com/docs/grafana/next/administration/service-accounts/migrate-api-keys/.
func (*Client) DeleteAPIkeyWithParams ¶
func (a *Client) DeleteAPIkeyWithParams(params *DeleteAPIkeyParams, opts ...ClientOption) (*DeleteAPIkeyOK, error)
func (*Client) GetAPIkeys ¶
func (a *Client) GetAPIkeys(params *GetAPIkeysParams, opts ...ClientOption) (*GetAPIkeysOK, error)
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
func WithAuthInfo ¶
func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption
WithAuthInfo changes the transport on the client
type ClientService ¶
type ClientService interface { AddAPIkey(opts ...ClientOption) error AddAPIkeyWithParams(params *AddAPIkeyParams, opts ...ClientOption) error DeleteAPIkey(id int64, opts ...ClientOption) (*DeleteAPIkeyOK, error) DeleteAPIkeyWithParams(params *DeleteAPIkeyParams, opts ...ClientOption) (*DeleteAPIkeyOK, error) GetAPIkeys(params *GetAPIkeysParams, 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) Code ¶
func (o *DeleteAPIkeyForbidden) Code() int
Code gets the status code for the delete a p ikey forbidden response
func (*DeleteAPIkeyForbidden) Error ¶
func (o *DeleteAPIkeyForbidden) Error() string
func (*DeleteAPIkeyForbidden) GetPayload ¶
func (o *DeleteAPIkeyForbidden) GetPayload() *models.ErrorResponseBody
func (*DeleteAPIkeyForbidden) IsClientError ¶
func (o *DeleteAPIkeyForbidden) IsClientError() bool
IsClientError returns true when this delete a p ikey forbidden response has a 4xx status code
func (*DeleteAPIkeyForbidden) IsCode ¶
func (o *DeleteAPIkeyForbidden) IsCode(code int) bool
IsCode returns true when this delete a p ikey forbidden response a status code equal to that given
func (*DeleteAPIkeyForbidden) IsRedirect ¶
func (o *DeleteAPIkeyForbidden) IsRedirect() bool
IsRedirect returns true when this delete a p ikey forbidden response has a 3xx status code
func (*DeleteAPIkeyForbidden) IsServerError ¶
func (o *DeleteAPIkeyForbidden) IsServerError() bool
IsServerError returns true when this delete a p ikey forbidden response has a 5xx status code
func (*DeleteAPIkeyForbidden) IsSuccess ¶
func (o *DeleteAPIkeyForbidden) IsSuccess() bool
IsSuccess returns true when this delete a p ikey forbidden response has a 2xx status code
func (*DeleteAPIkeyForbidden) String ¶
func (o *DeleteAPIkeyForbidden) String() string
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) Code ¶
func (o *DeleteAPIkeyInternalServerError) Code() int
Code gets the status code for the delete a p ikey internal server error response
func (*DeleteAPIkeyInternalServerError) Error ¶
func (o *DeleteAPIkeyInternalServerError) Error() string
func (*DeleteAPIkeyInternalServerError) GetPayload ¶
func (o *DeleteAPIkeyInternalServerError) GetPayload() *models.ErrorResponseBody
func (*DeleteAPIkeyInternalServerError) IsClientError ¶
func (o *DeleteAPIkeyInternalServerError) IsClientError() bool
IsClientError returns true when this delete a p ikey internal server error response has a 4xx status code
func (*DeleteAPIkeyInternalServerError) IsCode ¶
func (o *DeleteAPIkeyInternalServerError) IsCode(code int) bool
IsCode returns true when this delete a p ikey internal server error response a status code equal to that given
func (*DeleteAPIkeyInternalServerError) IsRedirect ¶
func (o *DeleteAPIkeyInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete a p ikey internal server error response has a 3xx status code
func (*DeleteAPIkeyInternalServerError) IsServerError ¶
func (o *DeleteAPIkeyInternalServerError) IsServerError() bool
IsServerError returns true when this delete a p ikey internal server error response has a 5xx status code
func (*DeleteAPIkeyInternalServerError) IsSuccess ¶
func (o *DeleteAPIkeyInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete a p ikey internal server error response has a 2xx status code
func (*DeleteAPIkeyInternalServerError) String ¶
func (o *DeleteAPIkeyInternalServerError) String() string
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) Code ¶
func (o *DeleteAPIkeyNotFound) Code() int
Code gets the status code for the delete a p ikey not found response
func (*DeleteAPIkeyNotFound) Error ¶
func (o *DeleteAPIkeyNotFound) Error() string
func (*DeleteAPIkeyNotFound) GetPayload ¶
func (o *DeleteAPIkeyNotFound) GetPayload() *models.ErrorResponseBody
func (*DeleteAPIkeyNotFound) IsClientError ¶
func (o *DeleteAPIkeyNotFound) IsClientError() bool
IsClientError returns true when this delete a p ikey not found response has a 4xx status code
func (*DeleteAPIkeyNotFound) IsCode ¶
func (o *DeleteAPIkeyNotFound) IsCode(code int) bool
IsCode returns true when this delete a p ikey not found response a status code equal to that given
func (*DeleteAPIkeyNotFound) IsRedirect ¶
func (o *DeleteAPIkeyNotFound) IsRedirect() bool
IsRedirect returns true when this delete a p ikey not found response has a 3xx status code
func (*DeleteAPIkeyNotFound) IsServerError ¶
func (o *DeleteAPIkeyNotFound) IsServerError() bool
IsServerError returns true when this delete a p ikey not found response has a 5xx status code
func (*DeleteAPIkeyNotFound) IsSuccess ¶
func (o *DeleteAPIkeyNotFound) IsSuccess() bool
IsSuccess returns true when this delete a p ikey not found response has a 2xx status code
func (*DeleteAPIkeyNotFound) String ¶
func (o *DeleteAPIkeyNotFound) String() string
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) Code ¶
func (o *DeleteAPIkeyOK) Code() int
Code gets the status code for the delete a p ikey Ok response
func (*DeleteAPIkeyOK) Error ¶
func (o *DeleteAPIkeyOK) Error() string
func (*DeleteAPIkeyOK) GetPayload ¶
func (o *DeleteAPIkeyOK) GetPayload() *models.SuccessResponseBody
func (*DeleteAPIkeyOK) IsClientError ¶
func (o *DeleteAPIkeyOK) IsClientError() bool
IsClientError returns true when this delete a p ikey Ok response has a 4xx status code
func (*DeleteAPIkeyOK) IsCode ¶
func (o *DeleteAPIkeyOK) IsCode(code int) bool
IsCode returns true when this delete a p ikey Ok response a status code equal to that given
func (*DeleteAPIkeyOK) IsRedirect ¶
func (o *DeleteAPIkeyOK) IsRedirect() bool
IsRedirect returns true when this delete a p ikey Ok response has a 3xx status code
func (*DeleteAPIkeyOK) IsServerError ¶
func (o *DeleteAPIkeyOK) IsServerError() bool
IsServerError returns true when this delete a p ikey Ok response has a 5xx status code
func (*DeleteAPIkeyOK) IsSuccess ¶
func (o *DeleteAPIkeyOK) IsSuccess() bool
IsSuccess returns true when this delete a p ikey Ok response has a 2xx status code
func (*DeleteAPIkeyOK) String ¶
func (o *DeleteAPIkeyOK) String() string
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) Code ¶
func (o *DeleteAPIkeyUnauthorized) Code() int
Code gets the status code for the delete a p ikey unauthorized response
func (*DeleteAPIkeyUnauthorized) Error ¶
func (o *DeleteAPIkeyUnauthorized) Error() string
func (*DeleteAPIkeyUnauthorized) GetPayload ¶
func (o *DeleteAPIkeyUnauthorized) GetPayload() *models.ErrorResponseBody
func (*DeleteAPIkeyUnauthorized) IsClientError ¶
func (o *DeleteAPIkeyUnauthorized) IsClientError() bool
IsClientError returns true when this delete a p ikey unauthorized response has a 4xx status code
func (*DeleteAPIkeyUnauthorized) IsCode ¶
func (o *DeleteAPIkeyUnauthorized) IsCode(code int) bool
IsCode returns true when this delete a p ikey unauthorized response a status code equal to that given
func (*DeleteAPIkeyUnauthorized) IsRedirect ¶
func (o *DeleteAPIkeyUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete a p ikey unauthorized response has a 3xx status code
func (*DeleteAPIkeyUnauthorized) IsServerError ¶
func (o *DeleteAPIkeyUnauthorized) IsServerError() bool
IsServerError returns true when this delete a p ikey unauthorized response has a 5xx status code
func (*DeleteAPIkeyUnauthorized) IsSuccess ¶
func (o *DeleteAPIkeyUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete a p ikey unauthorized response has a 2xx status code
func (*DeleteAPIkeyUnauthorized) String ¶
func (o *DeleteAPIkeyUnauthorized) String() string
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) Code ¶
func (o *GetAPIkeysForbidden) Code() int
Code gets the status code for the get a p ikeys forbidden response
func (*GetAPIkeysForbidden) Error ¶
func (o *GetAPIkeysForbidden) Error() string
func (*GetAPIkeysForbidden) GetPayload ¶
func (o *GetAPIkeysForbidden) GetPayload() *models.ErrorResponseBody
func (*GetAPIkeysForbidden) IsClientError ¶
func (o *GetAPIkeysForbidden) IsClientError() bool
IsClientError returns true when this get a p ikeys forbidden response has a 4xx status code
func (*GetAPIkeysForbidden) IsCode ¶
func (o *GetAPIkeysForbidden) IsCode(code int) bool
IsCode returns true when this get a p ikeys forbidden response a status code equal to that given
func (*GetAPIkeysForbidden) IsRedirect ¶
func (o *GetAPIkeysForbidden) IsRedirect() bool
IsRedirect returns true when this get a p ikeys forbidden response has a 3xx status code
func (*GetAPIkeysForbidden) IsServerError ¶
func (o *GetAPIkeysForbidden) IsServerError() bool
IsServerError returns true when this get a p ikeys forbidden response has a 5xx status code
func (*GetAPIkeysForbidden) IsSuccess ¶
func (o *GetAPIkeysForbidden) IsSuccess() bool
IsSuccess returns true when this get a p ikeys forbidden response has a 2xx status code
func (*GetAPIkeysForbidden) String ¶
func (o *GetAPIkeysForbidden) String() string
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) Code ¶
func (o *GetAPIkeysInternalServerError) Code() int
Code gets the status code for the get a p ikeys internal server error response
func (*GetAPIkeysInternalServerError) Error ¶
func (o *GetAPIkeysInternalServerError) Error() string
func (*GetAPIkeysInternalServerError) GetPayload ¶
func (o *GetAPIkeysInternalServerError) GetPayload() *models.ErrorResponseBody
func (*GetAPIkeysInternalServerError) IsClientError ¶
func (o *GetAPIkeysInternalServerError) IsClientError() bool
IsClientError returns true when this get a p ikeys internal server error response has a 4xx status code
func (*GetAPIkeysInternalServerError) IsCode ¶
func (o *GetAPIkeysInternalServerError) IsCode(code int) bool
IsCode returns true when this get a p ikeys internal server error response a status code equal to that given
func (*GetAPIkeysInternalServerError) IsRedirect ¶
func (o *GetAPIkeysInternalServerError) IsRedirect() bool
IsRedirect returns true when this get a p ikeys internal server error response has a 3xx status code
func (*GetAPIkeysInternalServerError) IsServerError ¶
func (o *GetAPIkeysInternalServerError) IsServerError() bool
IsServerError returns true when this get a p ikeys internal server error response has a 5xx status code
func (*GetAPIkeysInternalServerError) IsSuccess ¶
func (o *GetAPIkeysInternalServerError) IsSuccess() bool
IsSuccess returns true when this get a p ikeys internal server error response has a 2xx status code
func (*GetAPIkeysInternalServerError) String ¶
func (o *GetAPIkeysInternalServerError) String() string
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) Code ¶
func (o *GetAPIkeysNotFound) Code() int
Code gets the status code for the get a p ikeys not found response
func (*GetAPIkeysNotFound) Error ¶
func (o *GetAPIkeysNotFound) Error() string
func (*GetAPIkeysNotFound) GetPayload ¶
func (o *GetAPIkeysNotFound) GetPayload() *models.ErrorResponseBody
func (*GetAPIkeysNotFound) IsClientError ¶
func (o *GetAPIkeysNotFound) IsClientError() bool
IsClientError returns true when this get a p ikeys not found response has a 4xx status code
func (*GetAPIkeysNotFound) IsCode ¶
func (o *GetAPIkeysNotFound) IsCode(code int) bool
IsCode returns true when this get a p ikeys not found response a status code equal to that given
func (*GetAPIkeysNotFound) IsRedirect ¶
func (o *GetAPIkeysNotFound) IsRedirect() bool
IsRedirect returns true when this get a p ikeys not found response has a 3xx status code
func (*GetAPIkeysNotFound) IsServerError ¶
func (o *GetAPIkeysNotFound) IsServerError() bool
IsServerError returns true when this get a p ikeys not found response has a 5xx status code
func (*GetAPIkeysNotFound) IsSuccess ¶
func (o *GetAPIkeysNotFound) IsSuccess() bool
IsSuccess returns true when this get a p ikeys not found response has a 2xx status code
func (*GetAPIkeysNotFound) String ¶
func (o *GetAPIkeysNotFound) String() string
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) Code ¶
func (o *GetAPIkeysOK) Code() int
Code gets the status code for the get a p ikeys Ok response
func (*GetAPIkeysOK) Error ¶
func (o *GetAPIkeysOK) Error() string
func (*GetAPIkeysOK) GetPayload ¶
func (o *GetAPIkeysOK) GetPayload() []*models.APIKeyDTO
func (*GetAPIkeysOK) IsClientError ¶
func (o *GetAPIkeysOK) IsClientError() bool
IsClientError returns true when this get a p ikeys Ok response has a 4xx status code
func (*GetAPIkeysOK) IsCode ¶
func (o *GetAPIkeysOK) IsCode(code int) bool
IsCode returns true when this get a p ikeys Ok response a status code equal to that given
func (*GetAPIkeysOK) IsRedirect ¶
func (o *GetAPIkeysOK) IsRedirect() bool
IsRedirect returns true when this get a p ikeys Ok response has a 3xx status code
func (*GetAPIkeysOK) IsServerError ¶
func (o *GetAPIkeysOK) IsServerError() bool
IsServerError returns true when this get a p ikeys Ok response has a 5xx status code
func (*GetAPIkeysOK) IsSuccess ¶
func (o *GetAPIkeysOK) IsSuccess() bool
IsSuccess returns true when this get a p ikeys Ok response has a 2xx status code
func (*GetAPIkeysOK) String ¶
func (o *GetAPIkeysOK) String() string
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) Code ¶
func (o *GetAPIkeysUnauthorized) Code() int
Code gets the status code for the get a p ikeys unauthorized response
func (*GetAPIkeysUnauthorized) Error ¶
func (o *GetAPIkeysUnauthorized) Error() string
func (*GetAPIkeysUnauthorized) GetPayload ¶
func (o *GetAPIkeysUnauthorized) GetPayload() *models.ErrorResponseBody
func (*GetAPIkeysUnauthorized) IsClientError ¶
func (o *GetAPIkeysUnauthorized) IsClientError() bool
IsClientError returns true when this get a p ikeys unauthorized response has a 4xx status code
func (*GetAPIkeysUnauthorized) IsCode ¶
func (o *GetAPIkeysUnauthorized) IsCode(code int) bool
IsCode returns true when this get a p ikeys unauthorized response a status code equal to that given
func (*GetAPIkeysUnauthorized) IsRedirect ¶
func (o *GetAPIkeysUnauthorized) IsRedirect() bool
IsRedirect returns true when this get a p ikeys unauthorized response has a 3xx status code
func (*GetAPIkeysUnauthorized) IsServerError ¶
func (o *GetAPIkeysUnauthorized) IsServerError() bool
IsServerError returns true when this get a p ikeys unauthorized response has a 5xx status code
func (*GetAPIkeysUnauthorized) IsSuccess ¶
func (o *GetAPIkeysUnauthorized) IsSuccess() bool
IsSuccess returns true when this get a p ikeys unauthorized response has a 2xx status code
func (*GetAPIkeysUnauthorized) String ¶
func (o *GetAPIkeysUnauthorized) String() string