api_keys

package
v0.0.0-...-59d2d35 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

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 (*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

Code gets the status code for the delete a p ikey internal server error response

func (*DeleteAPIkeyInternalServerError) Error

func (*DeleteAPIkeyInternalServerError) GetPayload

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

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 (*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

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

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 {
	Payload *models.ErrorResponseBody
}

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 (*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

Code gets the status code for the get a p ikeys internal server error response

func (*GetAPIkeysInternalServerError) Error

func (*GetAPIkeysInternalServerError) GetPayload

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

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

type GetAPIkeysOK struct {
	Payload []*models.APIKeyDTO
}

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 {
	Payload *models.ErrorResponseBody
}

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 (*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

Jump to

Keyboard shortcuts

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