clients

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 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) CreateClients added in v1.2.0

func (a *Client) CreateClients(params *CreateClientsParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClientsOK, error)

CreateClients create clients API

func (*Client) DeleteClients

func (a *Client) DeleteClients(params *DeleteClientsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClientsOK, error)

DeleteClients delete clients API

func (*Client) GetClients

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

GetClients get clients API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateClients added in v1.2.0

func (a *Client) UpdateClients(params *UpdateClientsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateClientsOK, error)

UpdateClients update clients API

type ClientService

type ClientService interface {
	CreateClients(params *CreateClientsParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClientsOK, error)

	DeleteClients(params *DeleteClientsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClientsOK, error)

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

	UpdateClients(params *UpdateClientsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateClientsOK, 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 CreateClientsOK added in v1.2.0

type CreateClientsOK struct {
	Payload *models.Client
}

CreateClientsOK handles this case with default header values.

Success

func NewCreateClientsOK added in v1.2.0

func NewCreateClientsOK() *CreateClientsOK

NewCreateClientsOK creates a CreateClientsOK with default headers values

func (*CreateClientsOK) Error added in v1.2.0

func (o *CreateClientsOK) Error() string

func (*CreateClientsOK) GetPayload added in v1.2.0

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

type CreateClientsParams added in v1.2.0

type CreateClientsParams struct {

	/*Client*/
	Client *models.Client

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

CreateClientsParams contains all the parameters to send to the API endpoint for the create clients operation typically these are written to a http.Request

func NewCreateClientsParams added in v1.2.0

func NewCreateClientsParams() *CreateClientsParams

NewCreateClientsParams creates a new CreateClientsParams object with the default values initialized.

func NewCreateClientsParamsWithContext added in v1.2.0

func NewCreateClientsParamsWithContext(ctx context.Context) *CreateClientsParams

NewCreateClientsParamsWithContext creates a new CreateClientsParams object with the default values initialized, and the ability to set a context for a request

func NewCreateClientsParamsWithHTTPClient added in v1.2.0

func NewCreateClientsParamsWithHTTPClient(client *http.Client) *CreateClientsParams

NewCreateClientsParamsWithHTTPClient creates a new CreateClientsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateClientsParamsWithTimeout added in v1.2.0

func NewCreateClientsParamsWithTimeout(timeout time.Duration) *CreateClientsParams

NewCreateClientsParamsWithTimeout creates a new CreateClientsParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateClientsParams) SetClient added in v1.2.0

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

SetClient adds the client to the create clients params

func (*CreateClientsParams) SetContext added in v1.2.0

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

SetContext adds the context to the create clients params

func (*CreateClientsParams) SetHTTPClient added in v1.2.0

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

SetHTTPClient adds the HTTPClient to the create clients params

func (*CreateClientsParams) SetTimeout added in v1.2.0

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

SetTimeout adds the timeout to the create clients params

func (*CreateClientsParams) WithClient added in v1.2.0

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

WithClient adds the client to the create clients params

func (*CreateClientsParams) WithContext added in v1.2.0

WithContext adds the context to the create clients params

func (*CreateClientsParams) WithHTTPClient added in v1.2.0

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

WithHTTPClient adds the HTTPClient to the create clients params

func (*CreateClientsParams) WithTimeout added in v1.2.0

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

WithTimeout adds the timeout to the create clients params

func (*CreateClientsParams) WriteToRequest added in v1.2.0

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

WriteToRequest writes these params to a swagger request

type CreateClientsReader added in v1.2.0

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

CreateClientsReader is a Reader for the CreateClients structure.

func (*CreateClientsReader) ReadResponse added in v1.2.0

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

ReadResponse reads a server response into the received o.

type DeleteClientsOK

type DeleteClientsOK struct {
	Payload bool
}

DeleteClientsOK handles this case with default header values.

Success

func NewDeleteClientsOK

func NewDeleteClientsOK() *DeleteClientsOK

NewDeleteClientsOK creates a DeleteClientsOK with default headers values

func (*DeleteClientsOK) Error

func (o *DeleteClientsOK) Error() string

func (*DeleteClientsOK) GetPayload

func (o *DeleteClientsOK) GetPayload() bool

type DeleteClientsParams

type DeleteClientsParams struct {

	/*ClientID*/
	ClientID string

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

DeleteClientsParams contains all the parameters to send to the API endpoint for the delete clients operation typically these are written to a http.Request

func NewDeleteClientsParams

func NewDeleteClientsParams() *DeleteClientsParams

NewDeleteClientsParams creates a new DeleteClientsParams object with the default values initialized.

func NewDeleteClientsParamsWithContext

func NewDeleteClientsParamsWithContext(ctx context.Context) *DeleteClientsParams

NewDeleteClientsParamsWithContext creates a new DeleteClientsParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteClientsParamsWithHTTPClient

func NewDeleteClientsParamsWithHTTPClient(client *http.Client) *DeleteClientsParams

NewDeleteClientsParamsWithHTTPClient creates a new DeleteClientsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteClientsParamsWithTimeout

func NewDeleteClientsParamsWithTimeout(timeout time.Duration) *DeleteClientsParams

NewDeleteClientsParamsWithTimeout creates a new DeleteClientsParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteClientsParams) SetClientID

func (o *DeleteClientsParams) SetClientID(clientID string)

SetClientID adds the clientId to the delete clients params

func (*DeleteClientsParams) SetContext

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

SetContext adds the context to the delete clients params

func (*DeleteClientsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete clients params

func (*DeleteClientsParams) SetTimeout

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

SetTimeout adds the timeout to the delete clients params

func (*DeleteClientsParams) WithClientID

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

WithClientID adds the clientID to the delete clients params

func (*DeleteClientsParams) WithContext

WithContext adds the context to the delete clients params

func (*DeleteClientsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete clients params

func (*DeleteClientsParams) WithTimeout

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

WithTimeout adds the timeout to the delete clients params

func (*DeleteClientsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteClientsReader

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

DeleteClientsReader is a Reader for the DeleteClients structure.

func (*DeleteClientsReader) ReadResponse

func (o *DeleteClientsReader) 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 handles this case 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*/
	Page *int32
	/*PageSize*/
	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 values initialized.

func NewGetClientsParamsWithContext

func NewGetClientsParamsWithContext(ctx context.Context) *GetClientsParams

NewGetClientsParamsWithContext creates a new GetClientsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 UpdateClientsOK added in v1.2.0

type UpdateClientsOK struct {
	Payload *models.Client
}

UpdateClientsOK handles this case with default header values.

Success

func NewUpdateClientsOK added in v1.2.0

func NewUpdateClientsOK() *UpdateClientsOK

NewUpdateClientsOK creates a UpdateClientsOK with default headers values

func (*UpdateClientsOK) Error added in v1.2.0

func (o *UpdateClientsOK) Error() string

func (*UpdateClientsOK) GetPayload added in v1.2.0

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

type UpdateClientsParams added in v1.2.0

type UpdateClientsParams struct {

	/*Client*/
	Client *models.Client
	/*ClientID*/
	ClientID string

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

UpdateClientsParams contains all the parameters to send to the API endpoint for the update clients operation typically these are written to a http.Request

func NewUpdateClientsParams added in v1.2.0

func NewUpdateClientsParams() *UpdateClientsParams

NewUpdateClientsParams creates a new UpdateClientsParams object with the default values initialized.

func NewUpdateClientsParamsWithContext added in v1.2.0

func NewUpdateClientsParamsWithContext(ctx context.Context) *UpdateClientsParams

NewUpdateClientsParamsWithContext creates a new UpdateClientsParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateClientsParamsWithHTTPClient added in v1.2.0

func NewUpdateClientsParamsWithHTTPClient(client *http.Client) *UpdateClientsParams

NewUpdateClientsParamsWithHTTPClient creates a new UpdateClientsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateClientsParamsWithTimeout added in v1.2.0

func NewUpdateClientsParamsWithTimeout(timeout time.Duration) *UpdateClientsParams

NewUpdateClientsParamsWithTimeout creates a new UpdateClientsParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateClientsParams) SetClient added in v1.2.0

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

SetClient adds the client to the update clients params

func (*UpdateClientsParams) SetClientID added in v1.2.0

func (o *UpdateClientsParams) SetClientID(clientID string)

SetClientID adds the clientId to the update clients params

func (*UpdateClientsParams) SetContext added in v1.2.0

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

SetContext adds the context to the update clients params

func (*UpdateClientsParams) SetHTTPClient added in v1.2.0

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

SetHTTPClient adds the HTTPClient to the update clients params

func (*UpdateClientsParams) SetTimeout added in v1.2.0

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

SetTimeout adds the timeout to the update clients params

func (*UpdateClientsParams) WithClient added in v1.2.0

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

WithClient adds the client to the update clients params

func (*UpdateClientsParams) WithClientID added in v1.2.0

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

WithClientID adds the clientID to the update clients params

func (*UpdateClientsParams) WithContext added in v1.2.0

WithContext adds the context to the update clients params

func (*UpdateClientsParams) WithHTTPClient added in v1.2.0

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

WithHTTPClient adds the HTTPClient to the update clients params

func (*UpdateClientsParams) WithTimeout added in v1.2.0

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

WithTimeout adds the timeout to the update clients params

func (*UpdateClientsParams) WriteToRequest added in v1.2.0

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

WriteToRequest writes these params to a swagger request

type UpdateClientsReader added in v1.2.0

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

UpdateClientsReader is a Reader for the UpdateClients structure.

func (*UpdateClientsReader) ReadResponse added in v1.2.0

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