client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: MIT 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 client API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new client API client.

func (*Client) CreateClient

func (a *Client) CreateClient(params *CreateClientParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClientOK, error)

CreateClient creates a client

func (*Client) DeleteClient

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

DeleteClient deletes a client

func (*Client) GetClients

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

GetClients returns all clients

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateClientBadRequest

type CreateClientBadRequest struct {
	Payload *models.Error
}

CreateClientBadRequest handles this case with default header values.

Bad Request

func NewCreateClientBadRequest

func NewCreateClientBadRequest() *CreateClientBadRequest

NewCreateClientBadRequest creates a CreateClientBadRequest with default headers values

func (*CreateClientBadRequest) Error

func (o *CreateClientBadRequest) Error() string

type CreateClientForbidden

type CreateClientForbidden struct {
	Payload *models.Error
}

CreateClientForbidden handles this case with default header values.

Forbidden

func NewCreateClientForbidden

func NewCreateClientForbidden() *CreateClientForbidden

NewCreateClientForbidden creates a CreateClientForbidden with default headers values

func (*CreateClientForbidden) Error

func (o *CreateClientForbidden) Error() string

type CreateClientOK

type CreateClientOK struct {
	Payload *models.Client
}

CreateClientOK handles this case with default header values.

Ok

func NewCreateClientOK

func NewCreateClientOK() *CreateClientOK

NewCreateClientOK creates a CreateClientOK with default headers values

func (*CreateClientOK) Error

func (o *CreateClientOK) Error() string

type CreateClientParams

type CreateClientParams struct {

	/*Body
	  the client to add

	*/
	Body *models.Client

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

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

func NewCreateClientParams

func NewCreateClientParams() *CreateClientParams

NewCreateClientParams creates a new CreateClientParams object with the default values initialized.

func NewCreateClientParamsWithContext

func NewCreateClientParamsWithContext(ctx context.Context) *CreateClientParams

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

func NewCreateClientParamsWithHTTPClient

func NewCreateClientParamsWithHTTPClient(client *http.Client) *CreateClientParams

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

func NewCreateClientParamsWithTimeout

func NewCreateClientParamsWithTimeout(timeout time.Duration) *CreateClientParams

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

func (*CreateClientParams) SetBody

func (o *CreateClientParams) SetBody(body *models.Client)

SetBody adds the body to the create client params

func (*CreateClientParams) SetContext

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

SetContext adds the context to the create client params

func (*CreateClientParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create client params

func (*CreateClientParams) SetTimeout

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

SetTimeout adds the timeout to the create client params

func (*CreateClientParams) WithBody

func (o *CreateClientParams) WithBody(body *models.Client) *CreateClientParams

WithBody adds the body to the create client params

func (*CreateClientParams) WithContext

WithContext adds the context to the create client params

func (*CreateClientParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create client params

func (*CreateClientParams) WithTimeout

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

WithTimeout adds the timeout to the create client params

func (*CreateClientParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateClientReader

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

CreateClientReader is a Reader for the CreateClient structure.

func (*CreateClientReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateClientUnauthorized

type CreateClientUnauthorized struct {
	Payload *models.Error
}

CreateClientUnauthorized handles this case with default header values.

Unauthorized

func NewCreateClientUnauthorized

func NewCreateClientUnauthorized() *CreateClientUnauthorized

NewCreateClientUnauthorized creates a CreateClientUnauthorized with default headers values

func (*CreateClientUnauthorized) Error

func (o *CreateClientUnauthorized) Error() string

type DeleteClientBadRequest

type DeleteClientBadRequest struct {
	Payload *models.Error
}

DeleteClientBadRequest handles this case with default header values.

Bad Request

func NewDeleteClientBadRequest

func NewDeleteClientBadRequest() *DeleteClientBadRequest

NewDeleteClientBadRequest creates a DeleteClientBadRequest with default headers values

func (*DeleteClientBadRequest) Error

func (o *DeleteClientBadRequest) Error() string

type DeleteClientForbidden

type DeleteClientForbidden struct {
	Payload *models.Error
}

DeleteClientForbidden handles this case with default header values.

Forbidden

func NewDeleteClientForbidden

func NewDeleteClientForbidden() *DeleteClientForbidden

NewDeleteClientForbidden creates a DeleteClientForbidden with default headers values

func (*DeleteClientForbidden) Error

func (o *DeleteClientForbidden) Error() string

type DeleteClientNotFound

type DeleteClientNotFound struct {
	Payload *models.Error
}

DeleteClientNotFound handles this case with default header values.

Not Found

func NewDeleteClientNotFound

func NewDeleteClientNotFound() *DeleteClientNotFound

NewDeleteClientNotFound creates a DeleteClientNotFound with default headers values

func (*DeleteClientNotFound) Error

func (o *DeleteClientNotFound) Error() string

type DeleteClientOK

type DeleteClientOK struct {
}

DeleteClientOK handles this case with default header values.

Ok

func NewDeleteClientOK

func NewDeleteClientOK() *DeleteClientOK

NewDeleteClientOK creates a DeleteClientOK with default headers values

func (*DeleteClientOK) Error

func (o *DeleteClientOK) Error() string

type DeleteClientParams

type DeleteClientParams struct {

	/*ID
	  the client id

	*/
	ID int64

	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 values initialized.

func NewDeleteClientParamsWithContext

func NewDeleteClientParamsWithContext(ctx context.Context) *DeleteClientParams

NewDeleteClientParamsWithContext creates a new DeleteClientParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*DeleteClientParams) SetContext

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

SetContext adds the context to the delete client params

func (*DeleteClientParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete client params

func (*DeleteClientParams) SetID

func (o *DeleteClientParams) SetID(id int64)

SetID adds the id 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) WithContext

WithContext adds the context to the delete client params

func (*DeleteClientParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete client params

func (*DeleteClientParams) WithID

WithID adds the id 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 DeleteClientUnauthorized

type DeleteClientUnauthorized struct {
	Payload *models.Error
}

DeleteClientUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteClientUnauthorized

func NewDeleteClientUnauthorized() *DeleteClientUnauthorized

NewDeleteClientUnauthorized creates a DeleteClientUnauthorized with default headers values

func (*DeleteClientUnauthorized) Error

func (o *DeleteClientUnauthorized) Error() string

type GetClientsForbidden

type GetClientsForbidden struct {
	Payload *models.Error
}

GetClientsForbidden handles this case with default header values.

Forbidden

func NewGetClientsForbidden

func NewGetClientsForbidden() *GetClientsForbidden

NewGetClientsForbidden creates a GetClientsForbidden with default headers values

func (*GetClientsForbidden) Error

func (o *GetClientsForbidden) Error() string

type GetClientsOK

type GetClientsOK struct {
	Payload []*models.Client
}

GetClientsOK handles this case with default header values.

Ok

func NewGetClientsOK

func NewGetClientsOK() *GetClientsOK

NewGetClientsOK creates a GetClientsOK with default headers values

func (*GetClientsOK) Error

func (o *GetClientsOK) Error() string

type GetClientsParams

type GetClientsParams struct {
	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) 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) 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 GetClientsUnauthorized

type GetClientsUnauthorized struct {
	Payload *models.Error
}

GetClientsUnauthorized handles this case with default header values.

Unauthorized

func NewGetClientsUnauthorized

func NewGetClientsUnauthorized() *GetClientsUnauthorized

NewGetClientsUnauthorized creates a GetClientsUnauthorized with default headers values

func (*GetClientsUnauthorized) Error

func (o *GetClientsUnauthorized) Error() string

Jump to

Keyboard shortcuts

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