clients

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-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 clients API

func (*Client) DeleteClient

func (a *Client) DeleteClient(params *DeleteClientParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteClientOK, error)

DeleteClient delete client API

func (*Client) GetClientByID

func (a *Client) GetClientByID(params *GetClientByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClientByIDOK, error)

GetClientByID get client by Id API

func (*Client) GetClients

func (a *Client) GetClients(params *GetClientsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClientsOK, error)

GetClients get clients API

func (*Client) PostClient

func (a *Client) PostClient(params *PostClientParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClientOK, error)

PostClient post client API

func (*Client) PutClient

func (a *Client) PutClient(params *PutClientParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutClientOK, error)

PutClient put client API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteClient(params *DeleteClientParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteClientOK, error)

	GetClientByID(params *GetClientByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClientByIDOK, error)

	GetClients(params *GetClientsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClientsOK, error)

	PostClient(params *PostClientParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClientOK, error)

	PutClient(params *PutClientParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutClientOK, 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 clients API client.

type DeleteClientOK

type DeleteClientOK struct {
	Payload bool
}
DeleteClientOK describes a response with status code 200, with default header values.

Success

func NewDeleteClientOK

func NewDeleteClientOK() *DeleteClientOK

NewDeleteClientOK creates a DeleteClientOK with default headers values

func (*DeleteClientOK) Error

func (o *DeleteClientOK) Error() string

func (*DeleteClientOK) GetPayload

func (o *DeleteClientOK) GetPayload() bool

type DeleteClientParams

type DeleteClientParams struct {

	// ClientID.
	ClientID string

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

DeleteClientParams contains all the parameters to send to the API endpoint

for the delete client operation.

Typically these are written to a http.Request.

func NewDeleteClientParams

func NewDeleteClientParams() *DeleteClientParams

NewDeleteClientParams creates a new DeleteClientParams 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 NewDeleteClientParamsWithContext

func NewDeleteClientParamsWithContext(ctx context.Context) *DeleteClientParams

NewDeleteClientParamsWithContext creates a new DeleteClientParams object with the ability to set a context for a request.

func NewDeleteClientParamsWithHTTPClient

func NewDeleteClientParamsWithHTTPClient(client *http.Client) *DeleteClientParams

NewDeleteClientParamsWithHTTPClient creates a new DeleteClientParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteClientParamsWithTimeout

func NewDeleteClientParamsWithTimeout(timeout time.Duration) *DeleteClientParams

NewDeleteClientParamsWithTimeout creates a new DeleteClientParams object with the ability to set a timeout on a request.

func (*DeleteClientParams) SetClientID

func (o *DeleteClientParams) SetClientID(clientID string)

SetClientID adds the clientId to the delete client params

func (*DeleteClientParams) SetContext

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

SetContext adds the context to the delete client params

func (*DeleteClientParams) SetDefaults

func (o *DeleteClientParams) SetDefaults()

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

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

func (*DeleteClientParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete client params

func (*DeleteClientParams) SetTimeout

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

SetTimeout adds the timeout to the delete client params

func (*DeleteClientParams) WithClientID

func (o *DeleteClientParams) WithClientID(clientID string) *DeleteClientParams

WithClientID adds the clientID to the delete client params

func (*DeleteClientParams) WithContext

WithContext adds the context to the delete client params

func (*DeleteClientParams) WithDefaults

func (o *DeleteClientParams) WithDefaults() *DeleteClientParams

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

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

func (*DeleteClientParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete client params

func (*DeleteClientParams) WithTimeout

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

WithTimeout adds the timeout to the delete client params

func (*DeleteClientParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteClientReader

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

DeleteClientReader is a Reader for the DeleteClient structure.

func (*DeleteClientReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClientByIDOK

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

Success

func NewGetClientByIDOK

func NewGetClientByIDOK() *GetClientByIDOK

NewGetClientByIDOK creates a GetClientByIDOK with default headers values

func (*GetClientByIDOK) Error

func (o *GetClientByIDOK) Error() string

func (*GetClientByIDOK) GetPayload

func (o *GetClientByIDOK) GetPayload() *models.Client

type GetClientByIDParams

type GetClientByIDParams struct {

	// ClientID.
	ClientID string

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

GetClientByIDParams contains all the parameters to send to the API endpoint

for the get client by Id operation.

Typically these are written to a http.Request.

func NewGetClientByIDParams

func NewGetClientByIDParams() *GetClientByIDParams

NewGetClientByIDParams creates a new GetClientByIDParams 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 NewGetClientByIDParamsWithContext

func NewGetClientByIDParamsWithContext(ctx context.Context) *GetClientByIDParams

NewGetClientByIDParamsWithContext creates a new GetClientByIDParams object with the ability to set a context for a request.

func NewGetClientByIDParamsWithHTTPClient

func NewGetClientByIDParamsWithHTTPClient(client *http.Client) *GetClientByIDParams

NewGetClientByIDParamsWithHTTPClient creates a new GetClientByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetClientByIDParamsWithTimeout

func NewGetClientByIDParamsWithTimeout(timeout time.Duration) *GetClientByIDParams

NewGetClientByIDParamsWithTimeout creates a new GetClientByIDParams object with the ability to set a timeout on a request.

func (*GetClientByIDParams) SetClientID

func (o *GetClientByIDParams) SetClientID(clientID string)

SetClientID adds the clientId to the get client by Id params

func (*GetClientByIDParams) SetContext

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

SetContext adds the context to the get client by Id params

func (*GetClientByIDParams) SetDefaults

func (o *GetClientByIDParams) SetDefaults()

SetDefaults hydrates default values in the get client by Id params (not the query body).

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

func (*GetClientByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get client by Id params

func (*GetClientByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get client by Id params

func (*GetClientByIDParams) WithClientID

func (o *GetClientByIDParams) WithClientID(clientID string) *GetClientByIDParams

WithClientID adds the clientID to the get client by Id params

func (*GetClientByIDParams) WithContext

WithContext adds the context to the get client by Id params

func (*GetClientByIDParams) WithDefaults

func (o *GetClientByIDParams) WithDefaults() *GetClientByIDParams

WithDefaults hydrates default values in the get client by Id params (not the query body).

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

func (*GetClientByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get client by Id params

func (*GetClientByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get client by Id params

func (*GetClientByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetClientByIDReader

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

GetClientByIDReader is a Reader for the GetClientByID structure.

func (*GetClientByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClientsOK

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

Success

func NewGetClientsOK

func NewGetClientsOK() *GetClientsOK

NewGetClientsOK creates a GetClientsOK with default headers values

func (*GetClientsOK) Error

func (o *GetClientsOK) Error() string

func (*GetClientsOK) GetPayload

func (o *GetClientsOK) GetPayload() *models.APICollectionOfClient

type GetClientsParams

type GetClientsParams struct {

	// Page.
	//
	// Format: int32
	Page *int32

	// PageSize.
	//
	// Format: int32
	PageSize *int32

	// Search.
	Search *string

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

GetClientsParams contains all the parameters to send to the API endpoint

for the get clients operation.

Typically these are written to a http.Request.

func NewGetClientsParams

func NewGetClientsParams() *GetClientsParams

NewGetClientsParams creates a new GetClientsParams 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 NewGetClientsParamsWithContext

func NewGetClientsParamsWithContext(ctx context.Context) *GetClientsParams

NewGetClientsParamsWithContext creates a new GetClientsParams object with the ability to set a context for a request.

func NewGetClientsParamsWithHTTPClient

func NewGetClientsParamsWithHTTPClient(client *http.Client) *GetClientsParams

NewGetClientsParamsWithHTTPClient creates a new GetClientsParams object with the ability to set a custom HTTPClient for a request.

func NewGetClientsParamsWithTimeout

func NewGetClientsParamsWithTimeout(timeout time.Duration) *GetClientsParams

NewGetClientsParamsWithTimeout creates a new GetClientsParams object with the ability to set a timeout on a request.

func (*GetClientsParams) SetContext

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

SetContext adds the context to the get clients params

func (*GetClientsParams) SetDefaults

func (o *GetClientsParams) SetDefaults()

SetDefaults hydrates default values in the get clients params (not the query body).

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

func (*GetClientsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get clients params

func (*GetClientsParams) SetPage

func (o *GetClientsParams) SetPage(page *int32)

SetPage adds the page to the get clients params

func (*GetClientsParams) SetPageSize

func (o *GetClientsParams) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the get clients params

func (*GetClientsParams) SetSearch

func (o *GetClientsParams) SetSearch(search *string)

SetSearch adds the search to the get clients params

func (*GetClientsParams) SetTimeout

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

SetTimeout adds the timeout to the get clients params

func (*GetClientsParams) WithContext

func (o *GetClientsParams) WithContext(ctx context.Context) *GetClientsParams

WithContext adds the context to the get clients params

func (*GetClientsParams) WithDefaults

func (o *GetClientsParams) WithDefaults() *GetClientsParams

WithDefaults hydrates default values in the get clients params (not the query body).

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

func (*GetClientsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get clients params

func (*GetClientsParams) WithPage

func (o *GetClientsParams) WithPage(page *int32) *GetClientsParams

WithPage adds the page to the get clients params

func (*GetClientsParams) WithPageSize

func (o *GetClientsParams) WithPageSize(pageSize *int32) *GetClientsParams

WithPageSize adds the pageSize to the get clients params

func (*GetClientsParams) WithSearch

func (o *GetClientsParams) WithSearch(search *string) *GetClientsParams

WithSearch adds the search to the get clients params

func (*GetClientsParams) WithTimeout

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

WithTimeout adds the timeout to the get clients params

func (*GetClientsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetClientsReader

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

GetClientsReader is a Reader for the GetClients structure.

func (*GetClientsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostClientOK

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

Success

func NewPostClientOK

func NewPostClientOK() *PostClientOK

NewPostClientOK creates a PostClientOK with default headers values

func (*PostClientOK) Error

func (o *PostClientOK) Error() string

func (*PostClientOK) GetPayload

func (o *PostClientOK) GetPayload() *models.Client

type PostClientParams

type PostClientParams struct {

	// Client.
	Client *models.Client

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

PostClientParams contains all the parameters to send to the API endpoint

for the post client operation.

Typically these are written to a http.Request.

func NewPostClientParams

func NewPostClientParams() *PostClientParams

NewPostClientParams creates a new PostClientParams 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 NewPostClientParamsWithContext

func NewPostClientParamsWithContext(ctx context.Context) *PostClientParams

NewPostClientParamsWithContext creates a new PostClientParams object with the ability to set a context for a request.

func NewPostClientParamsWithHTTPClient

func NewPostClientParamsWithHTTPClient(client *http.Client) *PostClientParams

NewPostClientParamsWithHTTPClient creates a new PostClientParams object with the ability to set a custom HTTPClient for a request.

func NewPostClientParamsWithTimeout

func NewPostClientParamsWithTimeout(timeout time.Duration) *PostClientParams

NewPostClientParamsWithTimeout creates a new PostClientParams object with the ability to set a timeout on a request.

func (*PostClientParams) SetClient

func (o *PostClientParams) SetClient(client *models.Client)

SetClient adds the client to the post client params

func (*PostClientParams) SetContext

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

SetContext adds the context to the post client params

func (*PostClientParams) SetDefaults

func (o *PostClientParams) SetDefaults()

SetDefaults hydrates default values in the post client params (not the query body).

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

func (*PostClientParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post client params

func (*PostClientParams) SetTimeout

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

SetTimeout adds the timeout to the post client params

func (*PostClientParams) WithClient

func (o *PostClientParams) WithClient(client *models.Client) *PostClientParams

WithClient adds the client to the post client params

func (*PostClientParams) WithContext

func (o *PostClientParams) WithContext(ctx context.Context) *PostClientParams

WithContext adds the context to the post client params

func (*PostClientParams) WithDefaults

func (o *PostClientParams) WithDefaults() *PostClientParams

WithDefaults hydrates default values in the post client params (not the query body).

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

func (*PostClientParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post client params

func (*PostClientParams) WithTimeout

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

WithTimeout adds the timeout to the post client params

func (*PostClientParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostClientReader

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

PostClientReader is a Reader for the PostClient structure.

func (*PostClientReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutClientOK

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

Success

func NewPutClientOK

func NewPutClientOK() *PutClientOK

NewPutClientOK creates a PutClientOK with default headers values

func (*PutClientOK) Error

func (o *PutClientOK) Error() string

func (*PutClientOK) GetPayload

func (o *PutClientOK) GetPayload() *models.Client

type PutClientParams

type PutClientParams struct {

	// Client.
	Client *models.Client

	// ClientID.
	ClientID string

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

PutClientParams contains all the parameters to send to the API endpoint

for the put client operation.

Typically these are written to a http.Request.

func NewPutClientParams

func NewPutClientParams() *PutClientParams

NewPutClientParams creates a new PutClientParams 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 NewPutClientParamsWithContext

func NewPutClientParamsWithContext(ctx context.Context) *PutClientParams

NewPutClientParamsWithContext creates a new PutClientParams object with the ability to set a context for a request.

func NewPutClientParamsWithHTTPClient

func NewPutClientParamsWithHTTPClient(client *http.Client) *PutClientParams

NewPutClientParamsWithHTTPClient creates a new PutClientParams object with the ability to set a custom HTTPClient for a request.

func NewPutClientParamsWithTimeout

func NewPutClientParamsWithTimeout(timeout time.Duration) *PutClientParams

NewPutClientParamsWithTimeout creates a new PutClientParams object with the ability to set a timeout on a request.

func (*PutClientParams) SetClient

func (o *PutClientParams) SetClient(client *models.Client)

SetClient adds the client to the put client params

func (*PutClientParams) SetClientID

func (o *PutClientParams) SetClientID(clientID string)

SetClientID adds the clientId to the put client params

func (*PutClientParams) SetContext

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

SetContext adds the context to the put client params

func (*PutClientParams) SetDefaults

func (o *PutClientParams) SetDefaults()

SetDefaults hydrates default values in the put client params (not the query body).

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

func (*PutClientParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put client params

func (*PutClientParams) SetTimeout

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

SetTimeout adds the timeout to the put client params

func (*PutClientParams) WithClient

func (o *PutClientParams) WithClient(client *models.Client) *PutClientParams

WithClient adds the client to the put client params

func (*PutClientParams) WithClientID

func (o *PutClientParams) WithClientID(clientID string) *PutClientParams

WithClientID adds the clientID to the put client params

func (*PutClientParams) WithContext

func (o *PutClientParams) WithContext(ctx context.Context) *PutClientParams

WithContext adds the context to the put client params

func (*PutClientParams) WithDefaults

func (o *PutClientParams) WithDefaults() *PutClientParams

WithDefaults hydrates default values in the put client params (not the query body).

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

func (*PutClientParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put client params

func (*PutClientParams) WithTimeout

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

WithTimeout adds the timeout to the put client params

func (*PutClientParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutClientReader

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

PutClientReader is a Reader for the PutClient structure.

func (*PutClientReader) ReadResponse

func (o *PutClientReader) 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