Documentation ¶
Index ¶
- type AddConsumerOK
- type AddConsumerParams
- func (o *AddConsumerParams) SetConsumer(consumer *models.Consumer)
- func (o *AddConsumerParams) SetContext(ctx context.Context)
- func (o *AddConsumerParams) SetHTTPClient(client *http.Client)
- func (o *AddConsumerParams) SetTimeout(timeout time.Duration)
- func (o *AddConsumerParams) WithConsumer(consumer *models.Consumer) *AddConsumerParams
- func (o *AddConsumerParams) WithContext(ctx context.Context) *AddConsumerParams
- func (o *AddConsumerParams) WithHTTPClient(client *http.Client) *AddConsumerParams
- func (o *AddConsumerParams) WithTimeout(timeout time.Duration) *AddConsumerParams
- func (o *AddConsumerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddConsumerReader
- type Client
- func (a *Client) AddConsumer(params *AddConsumerParams, authInfo runtime.ClientAuthInfoWriter) (*AddConsumerOK, error)
- func (a *Client) DeleteConsumer(params *DeleteConsumerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteConsumerOK, error)
- func (a *Client) GetConsumerByID(params *GetConsumerByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetConsumerByIDOK, error)
- func (a *Client) GetConsumers(params *GetConsumersParams, authInfo runtime.ClientAuthInfoWriter) (*GetConsumersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateConsumer(params *UpdateConsumerParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateConsumerOK, error)
- type ClientService
- type DeleteConsumerOK
- type DeleteConsumerParams
- func NewDeleteConsumerParams() *DeleteConsumerParams
- func NewDeleteConsumerParamsWithContext(ctx context.Context) *DeleteConsumerParams
- func NewDeleteConsumerParamsWithHTTPClient(client *http.Client) *DeleteConsumerParams
- func NewDeleteConsumerParamsWithTimeout(timeout time.Duration) *DeleteConsumerParams
- func (o *DeleteConsumerParams) SetContext(ctx context.Context)
- func (o *DeleteConsumerParams) SetHTTPClient(client *http.Client)
- func (o *DeleteConsumerParams) SetID(id int32)
- func (o *DeleteConsumerParams) SetTimeout(timeout time.Duration)
- func (o *DeleteConsumerParams) WithContext(ctx context.Context) *DeleteConsumerParams
- func (o *DeleteConsumerParams) WithHTTPClient(client *http.Client) *DeleteConsumerParams
- func (o *DeleteConsumerParams) WithID(id int32) *DeleteConsumerParams
- func (o *DeleteConsumerParams) WithTimeout(timeout time.Duration) *DeleteConsumerParams
- func (o *DeleteConsumerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteConsumerReader
- type GetConsumerByIDOK
- type GetConsumerByIDParams
- func NewGetConsumerByIDParams() *GetConsumerByIDParams
- func NewGetConsumerByIDParamsWithContext(ctx context.Context) *GetConsumerByIDParams
- func NewGetConsumerByIDParamsWithHTTPClient(client *http.Client) *GetConsumerByIDParams
- func NewGetConsumerByIDParamsWithTimeout(timeout time.Duration) *GetConsumerByIDParams
- func (o *GetConsumerByIDParams) SetContext(ctx context.Context)
- func (o *GetConsumerByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetConsumerByIDParams) SetID(id int32)
- func (o *GetConsumerByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetConsumerByIDParams) WithContext(ctx context.Context) *GetConsumerByIDParams
- func (o *GetConsumerByIDParams) WithHTTPClient(client *http.Client) *GetConsumerByIDParams
- func (o *GetConsumerByIDParams) WithID(id int32) *GetConsumerByIDParams
- func (o *GetConsumerByIDParams) WithTimeout(timeout time.Duration) *GetConsumerByIDParams
- func (o *GetConsumerByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetConsumerByIDReader
- type GetConsumersOK
- type GetConsumersParams
- func (o *GetConsumersParams) SetContext(ctx context.Context)
- func (o *GetConsumersParams) SetHTTPClient(client *http.Client)
- func (o *GetConsumersParams) SetOrganizationID(organizationID *int32)
- func (o *GetConsumersParams) SetPage(page *int32)
- func (o *GetConsumersParams) SetPageSize(pageSize *int32)
- func (o *GetConsumersParams) SetSearch(search *string)
- func (o *GetConsumersParams) SetTimeout(timeout time.Duration)
- func (o *GetConsumersParams) WithContext(ctx context.Context) *GetConsumersParams
- func (o *GetConsumersParams) WithHTTPClient(client *http.Client) *GetConsumersParams
- func (o *GetConsumersParams) WithOrganizationID(organizationID *int32) *GetConsumersParams
- func (o *GetConsumersParams) WithPage(page *int32) *GetConsumersParams
- func (o *GetConsumersParams) WithPageSize(pageSize *int32) *GetConsumersParams
- func (o *GetConsumersParams) WithSearch(search *string) *GetConsumersParams
- func (o *GetConsumersParams) WithTimeout(timeout time.Duration) *GetConsumersParams
- func (o *GetConsumersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetConsumersReader
- type UpdateConsumerOK
- type UpdateConsumerParams
- func NewUpdateConsumerParams() *UpdateConsumerParams
- func NewUpdateConsumerParamsWithContext(ctx context.Context) *UpdateConsumerParams
- func NewUpdateConsumerParamsWithHTTPClient(client *http.Client) *UpdateConsumerParams
- func NewUpdateConsumerParamsWithTimeout(timeout time.Duration) *UpdateConsumerParams
- func (o *UpdateConsumerParams) SetConsumer(consumer *models.Consumer)
- func (o *UpdateConsumerParams) SetContext(ctx context.Context)
- func (o *UpdateConsumerParams) SetHTTPClient(client *http.Client)
- func (o *UpdateConsumerParams) SetID(id int32)
- func (o *UpdateConsumerParams) SetTimeout(timeout time.Duration)
- func (o *UpdateConsumerParams) WithConsumer(consumer *models.Consumer) *UpdateConsumerParams
- func (o *UpdateConsumerParams) WithContext(ctx context.Context) *UpdateConsumerParams
- func (o *UpdateConsumerParams) WithHTTPClient(client *http.Client) *UpdateConsumerParams
- func (o *UpdateConsumerParams) WithID(id int32) *UpdateConsumerParams
- func (o *UpdateConsumerParams) WithTimeout(timeout time.Duration) *UpdateConsumerParams
- func (o *UpdateConsumerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateConsumerReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddConsumerOK ¶
AddConsumerOK handles this case 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 values initialized.
func NewAddConsumerParamsWithContext ¶
func NewAddConsumerParamsWithContext(ctx context.Context) *AddConsumerParams
NewAddConsumerParamsWithContext creates a new AddConsumerParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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) (*AddConsumerOK, error)
AddConsumer add consumer API
func (*Client) DeleteConsumer ¶
func (a *Client) DeleteConsumer(params *DeleteConsumerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteConsumerOK, error)
DeleteConsumer delete consumer API
func (*Client) GetConsumerByID ¶
func (a *Client) GetConsumerByID(params *GetConsumerByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetConsumerByIDOK, error)
GetConsumerByID get consumer by Id API
func (*Client) GetConsumers ¶ added in v1.1.0
func (a *Client) GetConsumers(params *GetConsumersParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*UpdateConsumerOK, error)
UpdateConsumer update consumer API
type ClientService ¶
type ClientService interface { AddConsumer(params *AddConsumerParams, authInfo runtime.ClientAuthInfoWriter) (*AddConsumerOK, error) DeleteConsumer(params *DeleteConsumerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteConsumerOK, error) GetConsumerByID(params *GetConsumerByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetConsumerByIDOK, error) GetConsumers(params *GetConsumersParams, authInfo runtime.ClientAuthInfoWriter) (*GetConsumersOK, error) UpdateConsumer(params *UpdateConsumerParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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*/ 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 values initialized.
func NewDeleteConsumerParamsWithContext ¶
func NewDeleteConsumerParamsWithContext(ctx context.Context) *DeleteConsumerParams
NewDeleteConsumerParamsWithContext creates a new DeleteConsumerParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *DeleteConsumerParams) WithContext(ctx context.Context) *DeleteConsumerParams
WithContext adds the context to the delete consumer params
func (*DeleteConsumerParams) WithHTTPClient ¶
func (o *DeleteConsumerParams) WithHTTPClient(client *http.Client) *DeleteConsumerParams
WithHTTPClient adds the HTTPClient to the delete consumer params
func (*DeleteConsumerParams) WithID ¶
func (o *DeleteConsumerParams) WithID(id int32) *DeleteConsumerParams
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 ¶
GetConsumerByIDOK handles this case 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*/ 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 values initialized.
func NewGetConsumerByIDParamsWithContext ¶
func NewGetConsumerByIDParamsWithContext(ctx context.Context) *GetConsumerByIDParams
NewGetConsumerByIDParamsWithContext creates a new GetConsumerByIDParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *GetConsumerByIDParams) WithContext(ctx context.Context) *GetConsumerByIDParams
WithContext adds the context to the get consumer by Id params
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 ¶
func (o *GetConsumerByIDParams) WithID(id int32) *GetConsumerByIDParams
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 ¶ added in v1.1.0
type GetConsumersOK struct {
Payload *models.APICollectionOfConsumer
}
GetConsumersOK handles this case with default header values.
Success
func NewGetConsumersOK ¶ added in v1.1.0
func NewGetConsumersOK() *GetConsumersOK
NewGetConsumersOK creates a GetConsumersOK with default headers values
func (*GetConsumersOK) Error ¶ added in v1.1.0
func (o *GetConsumersOK) Error() string
func (*GetConsumersOK) GetPayload ¶ added in v1.1.0
func (o *GetConsumersOK) GetPayload() *models.APICollectionOfConsumer
type GetConsumersParams ¶ added in v1.1.0
type GetConsumersParams struct { /*OrganizationID*/ OrganizationID *int32 /*Page*/ Page *int32 /*PageSize*/ 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 ¶ added in v1.1.0
func NewGetConsumersParams() *GetConsumersParams
NewGetConsumersParams creates a new GetConsumersParams object with the default values initialized.
func NewGetConsumersParamsWithContext ¶ added in v1.1.0
func NewGetConsumersParamsWithContext(ctx context.Context) *GetConsumersParams
NewGetConsumersParamsWithContext creates a new GetConsumersParams object with the default values initialized, and the ability to set a context for a request
func NewGetConsumersParamsWithHTTPClient ¶ added in v1.1.0
func NewGetConsumersParamsWithHTTPClient(client *http.Client) *GetConsumersParams
NewGetConsumersParamsWithHTTPClient creates a new GetConsumersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetConsumersParamsWithTimeout ¶ added in v1.1.0
func NewGetConsumersParamsWithTimeout(timeout time.Duration) *GetConsumersParams
NewGetConsumersParamsWithTimeout creates a new GetConsumersParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetConsumersParams) SetContext ¶ added in v1.1.0
func (o *GetConsumersParams) SetContext(ctx context.Context)
SetContext adds the context to the get consumers params
func (*GetConsumersParams) SetHTTPClient ¶ added in v1.1.0
func (o *GetConsumersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get consumers params
func (*GetConsumersParams) SetOrganizationID ¶ added in v1.1.0
func (o *GetConsumersParams) SetOrganizationID(organizationID *int32)
SetOrganizationID adds the organizationId to the get consumers params
func (*GetConsumersParams) SetPage ¶ added in v1.1.0
func (o *GetConsumersParams) SetPage(page *int32)
SetPage adds the page to the get consumers params
func (*GetConsumersParams) SetPageSize ¶ added in v1.1.0
func (o *GetConsumersParams) SetPageSize(pageSize *int32)
SetPageSize adds the pageSize to the get consumers params
func (*GetConsumersParams) SetSearch ¶ added in v1.1.0
func (o *GetConsumersParams) SetSearch(search *string)
SetSearch adds the search to the get consumers params
func (*GetConsumersParams) SetTimeout ¶ added in v1.1.0
func (o *GetConsumersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get consumers params
func (*GetConsumersParams) WithContext ¶ added in v1.1.0
func (o *GetConsumersParams) WithContext(ctx context.Context) *GetConsumersParams
WithContext adds the context to the get consumers params
func (*GetConsumersParams) WithHTTPClient ¶ added in v1.1.0
func (o *GetConsumersParams) WithHTTPClient(client *http.Client) *GetConsumersParams
WithHTTPClient adds the HTTPClient to the get consumers params
func (*GetConsumersParams) WithOrganizationID ¶ added in v1.1.0
func (o *GetConsumersParams) WithOrganizationID(organizationID *int32) *GetConsumersParams
WithOrganizationID adds the organizationID to the get consumers params
func (*GetConsumersParams) WithPage ¶ added in v1.1.0
func (o *GetConsumersParams) WithPage(page *int32) *GetConsumersParams
WithPage adds the page to the get consumers params
func (*GetConsumersParams) WithPageSize ¶ added in v1.1.0
func (o *GetConsumersParams) WithPageSize(pageSize *int32) *GetConsumersParams
WithPageSize adds the pageSize to the get consumers params
func (*GetConsumersParams) WithSearch ¶ added in v1.1.0
func (o *GetConsumersParams) WithSearch(search *string) *GetConsumersParams
WithSearch adds the search to the get consumers params
func (*GetConsumersParams) WithTimeout ¶ added in v1.1.0
func (o *GetConsumersParams) WithTimeout(timeout time.Duration) *GetConsumersParams
WithTimeout adds the timeout to the get consumers params
func (*GetConsumersParams) WriteToRequest ¶ added in v1.1.0
func (o *GetConsumersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetConsumersReader ¶ added in v1.1.0
type GetConsumersReader struct {
// contains filtered or unexported fields
}
GetConsumersReader is a Reader for the GetConsumers structure.
func (*GetConsumersReader) ReadResponse ¶ added in v1.1.0
func (o *GetConsumersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateConsumerOK ¶
UpdateConsumerOK handles this case 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*/ 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 values initialized.
func NewUpdateConsumerParamsWithContext ¶
func NewUpdateConsumerParamsWithContext(ctx context.Context) *UpdateConsumerParams
NewUpdateConsumerParamsWithContext creates a new UpdateConsumerParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *UpdateConsumerParams) WithContext(ctx context.Context) *UpdateConsumerParams
WithContext adds the context to the update consumer params
func (*UpdateConsumerParams) WithHTTPClient ¶
func (o *UpdateConsumerParams) WithHTTPClient(client *http.Client) *UpdateConsumerParams
WithHTTPClient adds the HTTPClient to the update consumer params
func (*UpdateConsumerParams) WithID ¶
func (o *UpdateConsumerParams) WithID(id int32) *UpdateConsumerParams
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.
Source Files ¶
- add_consumer_parameters.go
- add_consumer_responses.go
- consumers_client.go
- delete_consumer_parameters.go
- delete_consumer_responses.go
- get_consumer_by_id_parameters.go
- get_consumer_by_id_responses.go
- get_consumers_parameters.go
- get_consumers_responses.go
- update_consumer_parameters.go
- update_consumer_responses.go