consumers

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 AddConsumerOK

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

Success

func NewAddConsumerOK

func NewAddConsumerOK() *AddConsumerOK

NewAddConsumerOK creates a AddConsumerOK with default headers values

func (*AddConsumerOK) Error

func (o *AddConsumerOK) Error() string

func (*AddConsumerOK) GetPayload

func (o *AddConsumerOK) GetPayload() *models.Consumer

type AddConsumerParams

type AddConsumerParams struct {

	// Consumer.
	Consumer *models.Consumer

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

AddConsumerParams contains all the parameters to send to the API endpoint

for the add consumer operation.

Typically these are written to a http.Request.

func NewAddConsumerParams

func NewAddConsumerParams() *AddConsumerParams

NewAddConsumerParams creates a new AddConsumerParams 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 NewAddConsumerParamsWithContext

func NewAddConsumerParamsWithContext(ctx context.Context) *AddConsumerParams

NewAddConsumerParamsWithContext creates a new AddConsumerParams object with the ability to set a context for a request.

func NewAddConsumerParamsWithHTTPClient

func NewAddConsumerParamsWithHTTPClient(client *http.Client) *AddConsumerParams

NewAddConsumerParamsWithHTTPClient creates a new AddConsumerParams object with the ability to set a custom HTTPClient for a request.

func NewAddConsumerParamsWithTimeout

func NewAddConsumerParamsWithTimeout(timeout time.Duration) *AddConsumerParams

NewAddConsumerParamsWithTimeout creates a new AddConsumerParams object with the ability to set a timeout on a request.

func (*AddConsumerParams) SetConsumer

func (o *AddConsumerParams) SetConsumer(consumer *models.Consumer)

SetConsumer adds the consumer to the add consumer params

func (*AddConsumerParams) SetContext

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

SetContext adds the context to the add consumer params

func (*AddConsumerParams) SetDefaults

func (o *AddConsumerParams) SetDefaults()

SetDefaults hydrates default values in the add consumer params (not the query body).

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

func (*AddConsumerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add consumer params

func (*AddConsumerParams) SetTimeout

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

SetTimeout adds the timeout to the add consumer params

func (*AddConsumerParams) WithConsumer

func (o *AddConsumerParams) WithConsumer(consumer *models.Consumer) *AddConsumerParams

WithConsumer adds the consumer to the add consumer params

func (*AddConsumerParams) WithContext

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

WithContext adds the context to the add consumer params

func (*AddConsumerParams) WithDefaults

func (o *AddConsumerParams) WithDefaults() *AddConsumerParams

WithDefaults hydrates default values in the add consumer params (not the query body).

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

func (*AddConsumerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add consumer params

func (*AddConsumerParams) WithTimeout

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

WithTimeout adds the timeout to the add consumer params

func (*AddConsumerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddConsumerReader

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

AddConsumerReader is a Reader for the AddConsumer structure.

func (*AddConsumerReader) ReadResponse

func (o *AddConsumerReader) 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 consumers API

func (*Client) AddConsumer

func (a *Client) AddConsumer(params *AddConsumerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddConsumerOK, error)

AddConsumer add consumer API

func (*Client) DeleteConsumer

func (a *Client) DeleteConsumer(params *DeleteConsumerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConsumerOK, error)

DeleteConsumer delete consumer API

func (*Client) GetConsumerByID

func (a *Client) GetConsumerByID(params *GetConsumerByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConsumerByIDOK, error)

GetConsumerByID get consumer by Id API

func (*Client) GetConsumers

func (a *Client) GetConsumers(params *GetConsumersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConsumersOK, error)

GetConsumers get consumers API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateConsumer

func (a *Client) UpdateConsumer(params *UpdateConsumerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateConsumerOK, error)

UpdateConsumer update consumer API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddConsumer(params *AddConsumerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddConsumerOK, error)

	DeleteConsumer(params *DeleteConsumerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConsumerOK, error)

	GetConsumerByID(params *GetConsumerByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConsumerByIDOK, error)

	GetConsumers(params *GetConsumersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConsumersOK, error)

	UpdateConsumer(params *UpdateConsumerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateConsumerOK, 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 consumers API client.

type DeleteConsumerOK

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

Success

func NewDeleteConsumerOK

func NewDeleteConsumerOK() *DeleteConsumerOK

NewDeleteConsumerOK creates a DeleteConsumerOK with default headers values

func (*DeleteConsumerOK) Error

func (o *DeleteConsumerOK) Error() string

func (*DeleteConsumerOK) GetPayload

func (o *DeleteConsumerOK) GetPayload() bool

type DeleteConsumerParams

type DeleteConsumerParams struct {

	// ID.
	//
	// Format: int32
	ID int32

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

DeleteConsumerParams contains all the parameters to send to the API endpoint

for the delete consumer operation.

Typically these are written to a http.Request.

func NewDeleteConsumerParams

func NewDeleteConsumerParams() *DeleteConsumerParams

NewDeleteConsumerParams creates a new DeleteConsumerParams 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 NewDeleteConsumerParamsWithContext

func NewDeleteConsumerParamsWithContext(ctx context.Context) *DeleteConsumerParams

NewDeleteConsumerParamsWithContext creates a new DeleteConsumerParams object with the ability to set a context for a request.

func NewDeleteConsumerParamsWithHTTPClient

func NewDeleteConsumerParamsWithHTTPClient(client *http.Client) *DeleteConsumerParams

NewDeleteConsumerParamsWithHTTPClient creates a new DeleteConsumerParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteConsumerParamsWithTimeout

func NewDeleteConsumerParamsWithTimeout(timeout time.Duration) *DeleteConsumerParams

NewDeleteConsumerParamsWithTimeout creates a new DeleteConsumerParams object with the ability to set a timeout on a request.

func (*DeleteConsumerParams) SetContext

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

SetContext adds the context to the delete consumer params

func (*DeleteConsumerParams) SetDefaults

func (o *DeleteConsumerParams) SetDefaults()

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

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

func (*DeleteConsumerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete consumer params

func (*DeleteConsumerParams) SetID

func (o *DeleteConsumerParams) SetID(id int32)

SetID adds the id to the delete consumer params

func (*DeleteConsumerParams) SetTimeout

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

SetTimeout adds the timeout to the delete consumer params

func (*DeleteConsumerParams) WithContext

WithContext adds the context to the delete consumer params

func (*DeleteConsumerParams) WithDefaults

func (o *DeleteConsumerParams) WithDefaults() *DeleteConsumerParams

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

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

func (*DeleteConsumerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete consumer params

func (*DeleteConsumerParams) WithID

WithID adds the id to the delete consumer params

func (*DeleteConsumerParams) WithTimeout

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

WithTimeout adds the timeout to the delete consumer params

func (*DeleteConsumerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteConsumerReader

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

DeleteConsumerReader is a Reader for the DeleteConsumer structure.

func (*DeleteConsumerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConsumerByIDOK

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

Success

func NewGetConsumerByIDOK

func NewGetConsumerByIDOK() *GetConsumerByIDOK

NewGetConsumerByIDOK creates a GetConsumerByIDOK with default headers values

func (*GetConsumerByIDOK) Error

func (o *GetConsumerByIDOK) Error() string

func (*GetConsumerByIDOK) GetPayload

func (o *GetConsumerByIDOK) GetPayload() *models.Consumer

type GetConsumerByIDParams

type GetConsumerByIDParams struct {

	// ID.
	//
	// Format: int32
	ID int32

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

GetConsumerByIDParams contains all the parameters to send to the API endpoint

for the get consumer by Id operation.

Typically these are written to a http.Request.

func NewGetConsumerByIDParams

func NewGetConsumerByIDParams() *GetConsumerByIDParams

NewGetConsumerByIDParams creates a new GetConsumerByIDParams 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 NewGetConsumerByIDParamsWithContext

func NewGetConsumerByIDParamsWithContext(ctx context.Context) *GetConsumerByIDParams

NewGetConsumerByIDParamsWithContext creates a new GetConsumerByIDParams object with the ability to set a context for a request.

func NewGetConsumerByIDParamsWithHTTPClient

func NewGetConsumerByIDParamsWithHTTPClient(client *http.Client) *GetConsumerByIDParams

NewGetConsumerByIDParamsWithHTTPClient creates a new GetConsumerByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetConsumerByIDParamsWithTimeout

func NewGetConsumerByIDParamsWithTimeout(timeout time.Duration) *GetConsumerByIDParams

NewGetConsumerByIDParamsWithTimeout creates a new GetConsumerByIDParams object with the ability to set a timeout on a request.

func (*GetConsumerByIDParams) SetContext

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

SetContext adds the context to the get consumer by Id params

func (*GetConsumerByIDParams) SetDefaults

func (o *GetConsumerByIDParams) SetDefaults()

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

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

func (*GetConsumerByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get consumer by Id params

func (*GetConsumerByIDParams) SetID

func (o *GetConsumerByIDParams) SetID(id int32)

SetID adds the id to the get consumer by Id params

func (*GetConsumerByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get consumer by Id params

func (*GetConsumerByIDParams) WithContext

WithContext adds the context to the get consumer by Id params

func (*GetConsumerByIDParams) WithDefaults

func (o *GetConsumerByIDParams) WithDefaults() *GetConsumerByIDParams

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

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

func (*GetConsumerByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get consumer by Id params

func (*GetConsumerByIDParams) WithID

WithID adds the id to the get consumer by Id params

func (*GetConsumerByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get consumer by Id params

func (*GetConsumerByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConsumerByIDReader

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

GetConsumerByIDReader is a Reader for the GetConsumerByID structure.

func (*GetConsumerByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConsumersOK

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

Success

func NewGetConsumersOK

func NewGetConsumersOK() *GetConsumersOK

NewGetConsumersOK creates a GetConsumersOK with default headers values

func (*GetConsumersOK) Error

func (o *GetConsumersOK) Error() string

func (*GetConsumersOK) GetPayload

type GetConsumersParams

type GetConsumersParams struct {

	// OrganizationID.
	//
	// Format: int32
	OrganizationID *int32

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

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

	// Search.
	Search *string

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

GetConsumersParams contains all the parameters to send to the API endpoint

for the get consumers operation.

Typically these are written to a http.Request.

func NewGetConsumersParams

func NewGetConsumersParams() *GetConsumersParams

NewGetConsumersParams creates a new GetConsumersParams 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 NewGetConsumersParamsWithContext

func NewGetConsumersParamsWithContext(ctx context.Context) *GetConsumersParams

NewGetConsumersParamsWithContext creates a new GetConsumersParams object with the ability to set a context for a request.

func NewGetConsumersParamsWithHTTPClient

func NewGetConsumersParamsWithHTTPClient(client *http.Client) *GetConsumersParams

NewGetConsumersParamsWithHTTPClient creates a new GetConsumersParams object with the ability to set a custom HTTPClient for a request.

func NewGetConsumersParamsWithTimeout

func NewGetConsumersParamsWithTimeout(timeout time.Duration) *GetConsumersParams

NewGetConsumersParamsWithTimeout creates a new GetConsumersParams object with the ability to set a timeout on a request.

func (*GetConsumersParams) SetContext

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

SetContext adds the context to the get consumers params

func (*GetConsumersParams) SetDefaults

func (o *GetConsumersParams) SetDefaults()

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

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

func (*GetConsumersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get consumers params

func (*GetConsumersParams) SetOrganizationID

func (o *GetConsumersParams) SetOrganizationID(organizationID *int32)

SetOrganizationID adds the organizationId to the get consumers params

func (*GetConsumersParams) SetPage

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

SetPage adds the page to the get consumers params

func (*GetConsumersParams) SetPageSize

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

SetPageSize adds the pageSize to the get consumers params

func (*GetConsumersParams) SetSearch

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

SetSearch adds the search to the get consumers params

func (*GetConsumersParams) SetTimeout

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

SetTimeout adds the timeout to the get consumers params

func (*GetConsumersParams) WithContext

WithContext adds the context to the get consumers params

func (*GetConsumersParams) WithDefaults

func (o *GetConsumersParams) WithDefaults() *GetConsumersParams

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

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

func (*GetConsumersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get consumers params

func (*GetConsumersParams) WithOrganizationID

func (o *GetConsumersParams) WithOrganizationID(organizationID *int32) *GetConsumersParams

WithOrganizationID adds the organizationID to the get consumers params

func (*GetConsumersParams) WithPage

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

WithPage adds the page to the get consumers params

func (*GetConsumersParams) WithPageSize

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

WithPageSize adds the pageSize to the get consumers params

func (*GetConsumersParams) WithSearch

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

WithSearch adds the search to the get consumers params

func (*GetConsumersParams) WithTimeout

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

WithTimeout adds the timeout to the get consumers params

func (*GetConsumersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConsumersReader

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

GetConsumersReader is a Reader for the GetConsumers structure.

func (*GetConsumersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateConsumerOK

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

Success

func NewUpdateConsumerOK

func NewUpdateConsumerOK() *UpdateConsumerOK

NewUpdateConsumerOK creates a UpdateConsumerOK with default headers values

func (*UpdateConsumerOK) Error

func (o *UpdateConsumerOK) Error() string

func (*UpdateConsumerOK) GetPayload

func (o *UpdateConsumerOK) GetPayload() *models.Consumer

type UpdateConsumerParams

type UpdateConsumerParams struct {

	// Consumer.
	Consumer *models.Consumer

	// ID.
	//
	// Format: int32
	ID int32

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

UpdateConsumerParams contains all the parameters to send to the API endpoint

for the update consumer operation.

Typically these are written to a http.Request.

func NewUpdateConsumerParams

func NewUpdateConsumerParams() *UpdateConsumerParams

NewUpdateConsumerParams creates a new UpdateConsumerParams 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 NewUpdateConsumerParamsWithContext

func NewUpdateConsumerParamsWithContext(ctx context.Context) *UpdateConsumerParams

NewUpdateConsumerParamsWithContext creates a new UpdateConsumerParams object with the ability to set a context for a request.

func NewUpdateConsumerParamsWithHTTPClient

func NewUpdateConsumerParamsWithHTTPClient(client *http.Client) *UpdateConsumerParams

NewUpdateConsumerParamsWithHTTPClient creates a new UpdateConsumerParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateConsumerParamsWithTimeout

func NewUpdateConsumerParamsWithTimeout(timeout time.Duration) *UpdateConsumerParams

NewUpdateConsumerParamsWithTimeout creates a new UpdateConsumerParams object with the ability to set a timeout on a request.

func (*UpdateConsumerParams) SetConsumer

func (o *UpdateConsumerParams) SetConsumer(consumer *models.Consumer)

SetConsumer adds the consumer to the update consumer params

func (*UpdateConsumerParams) SetContext

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

SetContext adds the context to the update consumer params

func (*UpdateConsumerParams) SetDefaults

func (o *UpdateConsumerParams) SetDefaults()

SetDefaults hydrates default values in the update consumer params (not the query body).

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

func (*UpdateConsumerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update consumer params

func (*UpdateConsumerParams) SetID

func (o *UpdateConsumerParams) SetID(id int32)

SetID adds the id to the update consumer params

func (*UpdateConsumerParams) SetTimeout

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

SetTimeout adds the timeout to the update consumer params

func (*UpdateConsumerParams) WithConsumer

func (o *UpdateConsumerParams) WithConsumer(consumer *models.Consumer) *UpdateConsumerParams

WithConsumer adds the consumer to the update consumer params

func (*UpdateConsumerParams) WithContext

WithContext adds the context to the update consumer params

func (*UpdateConsumerParams) WithDefaults

func (o *UpdateConsumerParams) WithDefaults() *UpdateConsumerParams

WithDefaults hydrates default values in the update consumer params (not the query body).

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

func (*UpdateConsumerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update consumer params

func (*UpdateConsumerParams) WithID

WithID adds the id to the update consumer params

func (*UpdateConsumerParams) WithTimeout

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

WithTimeout adds the timeout to the update consumer params

func (*UpdateConsumerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateConsumerReader

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

UpdateConsumerReader is a Reader for the UpdateConsumer structure.

func (*UpdateConsumerReader) ReadResponse

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