key

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for key API

func (*Client) KeyCreateHTTP

func (a *Client) KeyCreateHTTP(params *KeyCreateHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyCreateHTTPOK, error)

KeyCreateHTTP creates key

Creates key and returns it

func (*Client) KeyDeleteHTTP

func (a *Client) KeyDeleteHTTP(params *KeyDeleteHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyDeleteHTTPNoContent, error)

KeyDeleteHTTP deletes key

Deletes key

func (*Client) KeyListHTTPV1

func (a *Client) KeyListHTTPV1(params *KeyListHTTPV1Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyListHTTPV1OK, error)

KeyListHTTPV1 shows all keys

Shows all keys

func (*Client) KeyListHTTPV2

func (a *Client) KeyListHTTPV2(params *KeyListHTTPV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyListHTTPV2OK, error)

KeyListHTTPV2 shows all keys

Shows all keys

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 {
	KeyCreateHTTP(params *KeyCreateHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyCreateHTTPOK, error)

	KeyDeleteHTTP(params *KeyDeleteHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyDeleteHTTPNoContent, error)

	KeyListHTTPV1(params *KeyListHTTPV1Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyListHTTPV1OK, error)

	KeyListHTTPV2(params *KeyListHTTPV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyListHTTPV2OK, 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 key API client.

type KeyCreateHTTPBadRequest

type KeyCreateHTTPBadRequest struct {
	Payload *models.ErrResponse
}
KeyCreateHTTPBadRequest describes a response with status code 400, with default header values.

ErrResponse

func NewKeyCreateHTTPBadRequest

func NewKeyCreateHTTPBadRequest() *KeyCreateHTTPBadRequest

NewKeyCreateHTTPBadRequest creates a KeyCreateHTTPBadRequest with default headers values

func (*KeyCreateHTTPBadRequest) Error

func (o *KeyCreateHTTPBadRequest) Error() string

func (*KeyCreateHTTPBadRequest) GetPayload

func (o *KeyCreateHTTPBadRequest) GetPayload() *models.ErrResponse

type KeyCreateHTTPBody

type KeyCreateHTTPBody struct {

	// key
	Key string `json:"key,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

KeyCreateHTTPBody key create HTTP body swagger:model KeyCreateHTTPBody

func (*KeyCreateHTTPBody) ContextValidate

func (o *KeyCreateHTTPBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this key create HTTP body based on context it is used

func (*KeyCreateHTTPBody) MarshalBinary

func (o *KeyCreateHTTPBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*KeyCreateHTTPBody) UnmarshalBinary

func (o *KeyCreateHTTPBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*KeyCreateHTTPBody) Validate

func (o *KeyCreateHTTPBody) Validate(formats strfmt.Registry) error

Validate validates this key create HTTP body

type KeyCreateHTTPConflict

type KeyCreateHTTPConflict struct {
	Payload *models.ErrResponse
}
KeyCreateHTTPConflict describes a response with status code 409, with default header values.

ErrResponse

func NewKeyCreateHTTPConflict

func NewKeyCreateHTTPConflict() *KeyCreateHTTPConflict

NewKeyCreateHTTPConflict creates a KeyCreateHTTPConflict with default headers values

func (*KeyCreateHTTPConflict) Error

func (o *KeyCreateHTTPConflict) Error() string

func (*KeyCreateHTTPConflict) GetPayload

func (o *KeyCreateHTTPConflict) GetPayload() *models.ErrResponse

type KeyCreateHTTPOK

type KeyCreateHTTPOK struct {
	Payload *models.Key
}
KeyCreateHTTPOK describes a response with status code 200, with default header values.

Key

func NewKeyCreateHTTPOK

func NewKeyCreateHTTPOK() *KeyCreateHTTPOK

NewKeyCreateHTTPOK creates a KeyCreateHTTPOK with default headers values

func (*KeyCreateHTTPOK) Error

func (o *KeyCreateHTTPOK) Error() string

func (*KeyCreateHTTPOK) GetPayload

func (o *KeyCreateHTTPOK) GetPayload() *models.Key

type KeyCreateHTTPParams

type KeyCreateHTTPParams struct {

	// Body.
	Body KeyCreateHTTPBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

KeyCreateHTTPParams contains all the parameters to send to the API endpoint

for the key create Http operation.

Typically these are written to a http.Request.

func NewKeyCreateHTTPParams

func NewKeyCreateHTTPParams() *KeyCreateHTTPParams

NewKeyCreateHTTPParams creates a new KeyCreateHTTPParams 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 NewKeyCreateHTTPParamsWithContext

func NewKeyCreateHTTPParamsWithContext(ctx context.Context) *KeyCreateHTTPParams

NewKeyCreateHTTPParamsWithContext creates a new KeyCreateHTTPParams object with the ability to set a context for a request.

func NewKeyCreateHTTPParamsWithHTTPClient

func NewKeyCreateHTTPParamsWithHTTPClient(client *http.Client) *KeyCreateHTTPParams

NewKeyCreateHTTPParamsWithHTTPClient creates a new KeyCreateHTTPParams object with the ability to set a custom HTTPClient for a request.

func NewKeyCreateHTTPParamsWithTimeout

func NewKeyCreateHTTPParamsWithTimeout(timeout time.Duration) *KeyCreateHTTPParams

NewKeyCreateHTTPParamsWithTimeout creates a new KeyCreateHTTPParams object with the ability to set a timeout on a request.

func (*KeyCreateHTTPParams) SetBody

func (o *KeyCreateHTTPParams) SetBody(body KeyCreateHTTPBody)

SetBody adds the body to the key create Http params

func (*KeyCreateHTTPParams) SetContext

func (o *KeyCreateHTTPParams) SetContext(ctx context.Context)

SetContext adds the context to the key create Http params

func (*KeyCreateHTTPParams) SetDefaults

func (o *KeyCreateHTTPParams) SetDefaults()

SetDefaults hydrates default values in the key create Http params (not the query body).

All values with no default are reset to their zero value.

func (*KeyCreateHTTPParams) SetHTTPClient

func (o *KeyCreateHTTPParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the key create Http params

func (*KeyCreateHTTPParams) SetTimeout

func (o *KeyCreateHTTPParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the key create Http params

func (*KeyCreateHTTPParams) WithBody

WithBody adds the body to the key create Http params

func (*KeyCreateHTTPParams) WithContext

WithContext adds the context to the key create Http params

func (*KeyCreateHTTPParams) WithDefaults

func (o *KeyCreateHTTPParams) WithDefaults() *KeyCreateHTTPParams

WithDefaults hydrates default values in the key create Http params (not the query body).

All values with no default are reset to their zero value.

func (*KeyCreateHTTPParams) WithHTTPClient

func (o *KeyCreateHTTPParams) WithHTTPClient(client *http.Client) *KeyCreateHTTPParams

WithHTTPClient adds the HTTPClient to the key create Http params

func (*KeyCreateHTTPParams) WithTimeout

func (o *KeyCreateHTTPParams) WithTimeout(timeout time.Duration) *KeyCreateHTTPParams

WithTimeout adds the timeout to the key create Http params

func (*KeyCreateHTTPParams) WriteToRequest

func (o *KeyCreateHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type KeyCreateHTTPReader

type KeyCreateHTTPReader struct {
	// contains filtered or unexported fields
}

KeyCreateHTTPReader is a Reader for the KeyCreateHTTP structure.

func (*KeyCreateHTTPReader) ReadResponse

func (o *KeyCreateHTTPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type KeyDeleteHTTPBadRequest

type KeyDeleteHTTPBadRequest struct {
	Payload *models.ErrResponse
}
KeyDeleteHTTPBadRequest describes a response with status code 400, with default header values.

ErrResponse

func NewKeyDeleteHTTPBadRequest

func NewKeyDeleteHTTPBadRequest() *KeyDeleteHTTPBadRequest

NewKeyDeleteHTTPBadRequest creates a KeyDeleteHTTPBadRequest with default headers values

func (*KeyDeleteHTTPBadRequest) Error

func (o *KeyDeleteHTTPBadRequest) Error() string

func (*KeyDeleteHTTPBadRequest) GetPayload

func (o *KeyDeleteHTTPBadRequest) GetPayload() *models.ErrResponse

type KeyDeleteHTTPNoContent

type KeyDeleteHTTPNoContent struct {
}
KeyDeleteHTTPNoContent describes a response with status code 204, with default header values.

A SuccessResponse is a response that shows that operations was completed successfully

func NewKeyDeleteHTTPNoContent

func NewKeyDeleteHTTPNoContent() *KeyDeleteHTTPNoContent

NewKeyDeleteHTTPNoContent creates a KeyDeleteHTTPNoContent with default headers values

func (*KeyDeleteHTTPNoContent) Error

func (o *KeyDeleteHTTPNoContent) Error() string

type KeyDeleteHTTPParams

type KeyDeleteHTTPParams struct {

	// ID.
	//
	// Format: int64
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

KeyDeleteHTTPParams contains all the parameters to send to the API endpoint

for the key delete Http operation.

Typically these are written to a http.Request.

func NewKeyDeleteHTTPParams

func NewKeyDeleteHTTPParams() *KeyDeleteHTTPParams

NewKeyDeleteHTTPParams creates a new KeyDeleteHTTPParams 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 NewKeyDeleteHTTPParamsWithContext

func NewKeyDeleteHTTPParamsWithContext(ctx context.Context) *KeyDeleteHTTPParams

NewKeyDeleteHTTPParamsWithContext creates a new KeyDeleteHTTPParams object with the ability to set a context for a request.

func NewKeyDeleteHTTPParamsWithHTTPClient

func NewKeyDeleteHTTPParamsWithHTTPClient(client *http.Client) *KeyDeleteHTTPParams

NewKeyDeleteHTTPParamsWithHTTPClient creates a new KeyDeleteHTTPParams object with the ability to set a custom HTTPClient for a request.

func NewKeyDeleteHTTPParamsWithTimeout

func NewKeyDeleteHTTPParamsWithTimeout(timeout time.Duration) *KeyDeleteHTTPParams

NewKeyDeleteHTTPParamsWithTimeout creates a new KeyDeleteHTTPParams object with the ability to set a timeout on a request.

func (*KeyDeleteHTTPParams) SetContext

func (o *KeyDeleteHTTPParams) SetContext(ctx context.Context)

SetContext adds the context to the key delete Http params

func (*KeyDeleteHTTPParams) SetDefaults

func (o *KeyDeleteHTTPParams) SetDefaults()

SetDefaults hydrates default values in the key delete Http params (not the query body).

All values with no default are reset to their zero value.

func (*KeyDeleteHTTPParams) SetHTTPClient

func (o *KeyDeleteHTTPParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the key delete Http params

func (*KeyDeleteHTTPParams) SetID

func (o *KeyDeleteHTTPParams) SetID(id int64)

SetID adds the id to the key delete Http params

func (*KeyDeleteHTTPParams) SetTimeout

func (o *KeyDeleteHTTPParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the key delete Http params

func (*KeyDeleteHTTPParams) WithContext

WithContext adds the context to the key delete Http params

func (*KeyDeleteHTTPParams) WithDefaults

func (o *KeyDeleteHTTPParams) WithDefaults() *KeyDeleteHTTPParams

WithDefaults hydrates default values in the key delete Http params (not the query body).

All values with no default are reset to their zero value.

func (*KeyDeleteHTTPParams) WithHTTPClient

func (o *KeyDeleteHTTPParams) WithHTTPClient(client *http.Client) *KeyDeleteHTTPParams

WithHTTPClient adds the HTTPClient to the key delete Http params

func (*KeyDeleteHTTPParams) WithID

WithID adds the id to the key delete Http params

func (*KeyDeleteHTTPParams) WithTimeout

func (o *KeyDeleteHTTPParams) WithTimeout(timeout time.Duration) *KeyDeleteHTTPParams

WithTimeout adds the timeout to the key delete Http params

func (*KeyDeleteHTTPParams) WriteToRequest

func (o *KeyDeleteHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type KeyDeleteHTTPReader

type KeyDeleteHTTPReader struct {
	// contains filtered or unexported fields
}

KeyDeleteHTTPReader is a Reader for the KeyDeleteHTTP structure.

func (*KeyDeleteHTTPReader) ReadResponse

func (o *KeyDeleteHTTPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type KeyListHTTPV1BadRequest

type KeyListHTTPV1BadRequest struct {
	Payload *models.ErrResponse
}
KeyListHTTPV1BadRequest describes a response with status code 400, with default header values.

ErrResponse

func NewKeyListHTTPV1BadRequest

func NewKeyListHTTPV1BadRequest() *KeyListHTTPV1BadRequest

NewKeyListHTTPV1BadRequest creates a KeyListHTTPV1BadRequest with default headers values

func (*KeyListHTTPV1BadRequest) Error

func (o *KeyListHTTPV1BadRequest) Error() string

func (*KeyListHTTPV1BadRequest) GetPayload

func (o *KeyListHTTPV1BadRequest) GetPayload() *models.ErrResponse

type KeyListHTTPV1OK

type KeyListHTTPV1OK struct {
	Payload *models.KeyListEndpointRes
}
KeyListHTTPV1OK describes a response with status code 200, with default header values.

KeyListEndpointRes

func NewKeyListHTTPV1OK

func NewKeyListHTTPV1OK() *KeyListHTTPV1OK

NewKeyListHTTPV1OK creates a KeyListHTTPV1OK with default headers values

func (*KeyListHTTPV1OK) Error

func (o *KeyListHTTPV1OK) Error() string

func (*KeyListHTTPV1OK) GetPayload

func (o *KeyListHTTPV1OK) GetPayload() *models.KeyListEndpointRes

type KeyListHTTPV1Params

type KeyListHTTPV1Params struct {

	// Created.
	Created *string

	// ID.
	ID *string

	/* Limit.

	   Max number of records in response

	   Format: uint64
	*/
	Limit *uint64

	// Name.
	Name *string

	/* Offset.

	   Amount of records to skip before beginning to write in response.

	   Format: uint64
	*/
	Offset *uint64

	/* OrderBy.

	   Field name to sort by
	*/
	By *string

	/* OrderDirection.

	   Ascending or descending order
	*/
	Direction *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

KeyListHTTPV1Params contains all the parameters to send to the API endpoint

for the key list Http v1 operation.

Typically these are written to a http.Request.

func NewKeyListHTTPV1Params

func NewKeyListHTTPV1Params() *KeyListHTTPV1Params

NewKeyListHTTPV1Params creates a new KeyListHTTPV1Params 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 NewKeyListHTTPV1ParamsWithContext

func NewKeyListHTTPV1ParamsWithContext(ctx context.Context) *KeyListHTTPV1Params

NewKeyListHTTPV1ParamsWithContext creates a new KeyListHTTPV1Params object with the ability to set a context for a request.

func NewKeyListHTTPV1ParamsWithHTTPClient

func NewKeyListHTTPV1ParamsWithHTTPClient(client *http.Client) *KeyListHTTPV1Params

NewKeyListHTTPV1ParamsWithHTTPClient creates a new KeyListHTTPV1Params object with the ability to set a custom HTTPClient for a request.

func NewKeyListHTTPV1ParamsWithTimeout

func NewKeyListHTTPV1ParamsWithTimeout(timeout time.Duration) *KeyListHTTPV1Params

NewKeyListHTTPV1ParamsWithTimeout creates a new KeyListHTTPV1Params object with the ability to set a timeout on a request.

func (*KeyListHTTPV1Params) SetBy

func (o *KeyListHTTPV1Params) SetBy(orderBy *string)

SetBy adds the orderBy to the key list Http v1 params

func (*KeyListHTTPV1Params) SetContext

func (o *KeyListHTTPV1Params) SetContext(ctx context.Context)

SetContext adds the context to the key list Http v1 params

func (*KeyListHTTPV1Params) SetCreated

func (o *KeyListHTTPV1Params) SetCreated(created *string)

SetCreated adds the created to the key list Http v1 params

func (*KeyListHTTPV1Params) SetDefaults

func (o *KeyListHTTPV1Params) SetDefaults()

SetDefaults hydrates default values in the key list Http v1 params (not the query body).

All values with no default are reset to their zero value.

func (*KeyListHTTPV1Params) SetDirection

func (o *KeyListHTTPV1Params) SetDirection(orderDirection *string)

SetDirection adds the orderDirection to the key list Http v1 params

func (*KeyListHTTPV1Params) SetHTTPClient

func (o *KeyListHTTPV1Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the key list Http v1 params

func (*KeyListHTTPV1Params) SetID

func (o *KeyListHTTPV1Params) SetID(id *string)

SetID adds the id to the key list Http v1 params

func (*KeyListHTTPV1Params) SetLimit

func (o *KeyListHTTPV1Params) SetLimit(limit *uint64)

SetLimit adds the limit to the key list Http v1 params

func (*KeyListHTTPV1Params) SetName

func (o *KeyListHTTPV1Params) SetName(name *string)

SetName adds the name to the key list Http v1 params

func (*KeyListHTTPV1Params) SetOffset

func (o *KeyListHTTPV1Params) SetOffset(offset *uint64)

SetOffset adds the offset to the key list Http v1 params

func (*KeyListHTTPV1Params) SetTimeout

func (o *KeyListHTTPV1Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the key list Http v1 params

func (*KeyListHTTPV1Params) WithBy

func (o *KeyListHTTPV1Params) WithBy(orderBy *string) *KeyListHTTPV1Params

WithBy adds the orderBy to the key list Http v1 params

func (*KeyListHTTPV1Params) WithContext

WithContext adds the context to the key list Http v1 params

func (*KeyListHTTPV1Params) WithCreated

func (o *KeyListHTTPV1Params) WithCreated(created *string) *KeyListHTTPV1Params

WithCreated adds the created to the key list Http v1 params

func (*KeyListHTTPV1Params) WithDefaults

func (o *KeyListHTTPV1Params) WithDefaults() *KeyListHTTPV1Params

WithDefaults hydrates default values in the key list Http v1 params (not the query body).

All values with no default are reset to their zero value.

func (*KeyListHTTPV1Params) WithDirection

func (o *KeyListHTTPV1Params) WithDirection(orderDirection *string) *KeyListHTTPV1Params

WithDirection adds the orderDirection to the key list Http v1 params

func (*KeyListHTTPV1Params) WithHTTPClient

func (o *KeyListHTTPV1Params) WithHTTPClient(client *http.Client) *KeyListHTTPV1Params

WithHTTPClient adds the HTTPClient to the key list Http v1 params

func (*KeyListHTTPV1Params) WithID

WithID adds the id to the key list Http v1 params

func (*KeyListHTTPV1Params) WithLimit

func (o *KeyListHTTPV1Params) WithLimit(limit *uint64) *KeyListHTTPV1Params

WithLimit adds the limit to the key list Http v1 params

func (*KeyListHTTPV1Params) WithName

func (o *KeyListHTTPV1Params) WithName(name *string) *KeyListHTTPV1Params

WithName adds the name to the key list Http v1 params

func (*KeyListHTTPV1Params) WithOffset

func (o *KeyListHTTPV1Params) WithOffset(offset *uint64) *KeyListHTTPV1Params

WithOffset adds the offset to the key list Http v1 params

func (*KeyListHTTPV1Params) WithTimeout

func (o *KeyListHTTPV1Params) WithTimeout(timeout time.Duration) *KeyListHTTPV1Params

WithTimeout adds the timeout to the key list Http v1 params

func (*KeyListHTTPV1Params) WriteToRequest

func (o *KeyListHTTPV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type KeyListHTTPV1Reader

type KeyListHTTPV1Reader struct {
	// contains filtered or unexported fields
}

KeyListHTTPV1Reader is a Reader for the KeyListHTTPV1 structure.

func (*KeyListHTTPV1Reader) ReadResponse

func (o *KeyListHTTPV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type KeyListHTTPV2BadRequest

type KeyListHTTPV2BadRequest struct {
	Payload *models.ErrResponse
}
KeyListHTTPV2BadRequest describes a response with status code 400, with default header values.

ErrResponse

func NewKeyListHTTPV2BadRequest

func NewKeyListHTTPV2BadRequest() *KeyListHTTPV2BadRequest

NewKeyListHTTPV2BadRequest creates a KeyListHTTPV2BadRequest with default headers values

func (*KeyListHTTPV2BadRequest) Error

func (o *KeyListHTTPV2BadRequest) Error() string

func (*KeyListHTTPV2BadRequest) GetPayload

func (o *KeyListHTTPV2BadRequest) GetPayload() *models.ErrResponse

type KeyListHTTPV2OK

type KeyListHTTPV2OK struct {
	Payload *models.KeyListEndpointRes
}
KeyListHTTPV2OK describes a response with status code 200, with default header values.

KeyListEndpointRes

func NewKeyListHTTPV2OK

func NewKeyListHTTPV2OK() *KeyListHTTPV2OK

NewKeyListHTTPV2OK creates a KeyListHTTPV2OK with default headers values

func (*KeyListHTTPV2OK) Error

func (o *KeyListHTTPV2OK) Error() string

func (*KeyListHTTPV2OK) GetPayload

func (o *KeyListHTTPV2OK) GetPayload() *models.KeyListEndpointRes

type KeyListHTTPV2Params

type KeyListHTTPV2Params struct {

	// Created.
	Created *string

	// ID.
	ID *string

	/* Limit.

	   Max number of records in response

	   Format: uint64
	*/
	Limit *uint64

	// Name.
	Name *string

	/* Offset.

	   Amount of records to skip before beginning to write in response.

	   Format: uint64
	*/
	Offset *uint64

	/* OrderBy.

	   Field name to sort by
	*/
	By *string

	/* OrderDirection.

	   Ascending or descending order
	*/
	Direction *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

KeyListHTTPV2Params contains all the parameters to send to the API endpoint

for the key list Http v2 operation.

Typically these are written to a http.Request.

func NewKeyListHTTPV2Params

func NewKeyListHTTPV2Params() *KeyListHTTPV2Params

NewKeyListHTTPV2Params creates a new KeyListHTTPV2Params 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 NewKeyListHTTPV2ParamsWithContext

func NewKeyListHTTPV2ParamsWithContext(ctx context.Context) *KeyListHTTPV2Params

NewKeyListHTTPV2ParamsWithContext creates a new KeyListHTTPV2Params object with the ability to set a context for a request.

func NewKeyListHTTPV2ParamsWithHTTPClient

func NewKeyListHTTPV2ParamsWithHTTPClient(client *http.Client) *KeyListHTTPV2Params

NewKeyListHTTPV2ParamsWithHTTPClient creates a new KeyListHTTPV2Params object with the ability to set a custom HTTPClient for a request.

func NewKeyListHTTPV2ParamsWithTimeout

func NewKeyListHTTPV2ParamsWithTimeout(timeout time.Duration) *KeyListHTTPV2Params

NewKeyListHTTPV2ParamsWithTimeout creates a new KeyListHTTPV2Params object with the ability to set a timeout on a request.

func (*KeyListHTTPV2Params) SetBy

func (o *KeyListHTTPV2Params) SetBy(orderBy *string)

SetBy adds the orderBy to the key list Http v2 params

func (*KeyListHTTPV2Params) SetContext

func (o *KeyListHTTPV2Params) SetContext(ctx context.Context)

SetContext adds the context to the key list Http v2 params

func (*KeyListHTTPV2Params) SetCreated

func (o *KeyListHTTPV2Params) SetCreated(created *string)

SetCreated adds the created to the key list Http v2 params

func (*KeyListHTTPV2Params) SetDefaults

func (o *KeyListHTTPV2Params) SetDefaults()

SetDefaults hydrates default values in the key list Http v2 params (not the query body).

All values with no default are reset to their zero value.

func (*KeyListHTTPV2Params) SetDirection

func (o *KeyListHTTPV2Params) SetDirection(orderDirection *string)

SetDirection adds the orderDirection to the key list Http v2 params

func (*KeyListHTTPV2Params) SetHTTPClient

func (o *KeyListHTTPV2Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the key list Http v2 params

func (*KeyListHTTPV2Params) SetID

func (o *KeyListHTTPV2Params) SetID(id *string)

SetID adds the id to the key list Http v2 params

func (*KeyListHTTPV2Params) SetLimit

func (o *KeyListHTTPV2Params) SetLimit(limit *uint64)

SetLimit adds the limit to the key list Http v2 params

func (*KeyListHTTPV2Params) SetName

func (o *KeyListHTTPV2Params) SetName(name *string)

SetName adds the name to the key list Http v2 params

func (*KeyListHTTPV2Params) SetOffset

func (o *KeyListHTTPV2Params) SetOffset(offset *uint64)

SetOffset adds the offset to the key list Http v2 params

func (*KeyListHTTPV2Params) SetTimeout

func (o *KeyListHTTPV2Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the key list Http v2 params

func (*KeyListHTTPV2Params) WithBy

func (o *KeyListHTTPV2Params) WithBy(orderBy *string) *KeyListHTTPV2Params

WithBy adds the orderBy to the key list Http v2 params

func (*KeyListHTTPV2Params) WithContext

WithContext adds the context to the key list Http v2 params

func (*KeyListHTTPV2Params) WithCreated

func (o *KeyListHTTPV2Params) WithCreated(created *string) *KeyListHTTPV2Params

WithCreated adds the created to the key list Http v2 params

func (*KeyListHTTPV2Params) WithDefaults

func (o *KeyListHTTPV2Params) WithDefaults() *KeyListHTTPV2Params

WithDefaults hydrates default values in the key list Http v2 params (not the query body).

All values with no default are reset to their zero value.

func (*KeyListHTTPV2Params) WithDirection

func (o *KeyListHTTPV2Params) WithDirection(orderDirection *string) *KeyListHTTPV2Params

WithDirection adds the orderDirection to the key list Http v2 params

func (*KeyListHTTPV2Params) WithHTTPClient

func (o *KeyListHTTPV2Params) WithHTTPClient(client *http.Client) *KeyListHTTPV2Params

WithHTTPClient adds the HTTPClient to the key list Http v2 params

func (*KeyListHTTPV2Params) WithID

WithID adds the id to the key list Http v2 params

func (*KeyListHTTPV2Params) WithLimit

func (o *KeyListHTTPV2Params) WithLimit(limit *uint64) *KeyListHTTPV2Params

WithLimit adds the limit to the key list Http v2 params

func (*KeyListHTTPV2Params) WithName

func (o *KeyListHTTPV2Params) WithName(name *string) *KeyListHTTPV2Params

WithName adds the name to the key list Http v2 params

func (*KeyListHTTPV2Params) WithOffset

func (o *KeyListHTTPV2Params) WithOffset(offset *uint64) *KeyListHTTPV2Params

WithOffset adds the offset to the key list Http v2 params

func (*KeyListHTTPV2Params) WithTimeout

func (o *KeyListHTTPV2Params) WithTimeout(timeout time.Duration) *KeyListHTTPV2Params

WithTimeout adds the timeout to the key list Http v2 params

func (*KeyListHTTPV2Params) WriteToRequest

func (o *KeyListHTTPV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type KeyListHTTPV2Reader

type KeyListHTTPV2Reader struct {
	// contains filtered or unexported fields
}

KeyListHTTPV2Reader is a Reader for the KeyListHTTPV2 structure.

func (*KeyListHTTPV2Reader) ReadResponse

func (o *KeyListHTTPV2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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