customer_management

package
v0.0.0-...-af0b780 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0, Apache-2.0 Imports: 10 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 customer management API

func (*Client) CustomerDetail

func (a *Client) CustomerDetail(params *CustomerDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomerDetailOK, error)

CustomerDetail gets a customer s details

func (*Client) DeleteCustomer

func (a *Client) DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerOK, error)

DeleteCustomer deletes a customer

func (*Client) GetHostInfo

func (a *Client) GetHostInfo(params *GetHostInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetHostInfoOK, error)

GetHostInfo gets a customer s host info

func (*Client) ListOfCustomers

func (a *Client) ListOfCustomers(params *ListOfCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOfCustomersOK, error)

ListOfCustomers lists customers

func (*Client) Metrics

func (a *Client) Metrics(params *MetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetricsOK, error)

Metrics adds metrics to a customer

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCustomer

func (a *Client) UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerOK, error)

UpdateCustomer updates a customer

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CustomerDetail(params *CustomerDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomerDetailOK, error)

	ListOfCustomers(params *ListOfCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOfCustomersOK, error)

	UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerOK, error)

	DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerOK, error)

	GetHostInfo(params *GetHostInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetHostInfoOK, error)

	Metrics(params *MetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetricsOK, 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 customer management API client.

type CustomerDetailOK

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

successful operation

func NewCustomerDetailOK

func NewCustomerDetailOK() *CustomerDetailOK

NewCustomerDetailOK creates a CustomerDetailOK with default headers values

func (*CustomerDetailOK) Error

func (o *CustomerDetailOK) Error() string

func (*CustomerDetailOK) GetPayload

func (o *CustomerDetailOK) GetPayload() *models.CustomerDetailsData

type CustomerDetailParams

type CustomerDetailParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

CustomerDetailParams contains all the parameters to send to the API endpoint

for the customer detail operation.

Typically these are written to a http.Request.

func NewCustomerDetailParams

func NewCustomerDetailParams() *CustomerDetailParams

NewCustomerDetailParams creates a new CustomerDetailParams 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 NewCustomerDetailParamsWithContext

func NewCustomerDetailParamsWithContext(ctx context.Context) *CustomerDetailParams

NewCustomerDetailParamsWithContext creates a new CustomerDetailParams object with the ability to set a context for a request.

func NewCustomerDetailParamsWithHTTPClient

func NewCustomerDetailParamsWithHTTPClient(client *http.Client) *CustomerDetailParams

NewCustomerDetailParamsWithHTTPClient creates a new CustomerDetailParams object with the ability to set a custom HTTPClient for a request.

func NewCustomerDetailParamsWithTimeout

func NewCustomerDetailParamsWithTimeout(timeout time.Duration) *CustomerDetailParams

NewCustomerDetailParamsWithTimeout creates a new CustomerDetailParams object with the ability to set a timeout on a request.

func (*CustomerDetailParams) SetCUUID

func (o *CustomerDetailParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the customer detail params

func (*CustomerDetailParams) SetContext

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

SetContext adds the context to the customer detail params

func (*CustomerDetailParams) SetDefaults

func (o *CustomerDetailParams) SetDefaults()

SetDefaults hydrates default values in the customer detail params (not the query body).

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

func (*CustomerDetailParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer detail params

func (*CustomerDetailParams) SetTimeout

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

SetTimeout adds the timeout to the customer detail params

func (*CustomerDetailParams) WithCUUID

WithCUUID adds the cUUID to the customer detail params

func (*CustomerDetailParams) WithContext

WithContext adds the context to the customer detail params

func (*CustomerDetailParams) WithDefaults

func (o *CustomerDetailParams) WithDefaults() *CustomerDetailParams

WithDefaults hydrates default values in the customer detail params (not the query body).

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

func (*CustomerDetailParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the customer detail params

func (*CustomerDetailParams) WithTimeout

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

WithTimeout adds the timeout to the customer detail params

func (*CustomerDetailParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CustomerDetailReader

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

CustomerDetailReader is a Reader for the CustomerDetail structure.

func (*CustomerDetailReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCustomerOK

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

successful operation

func NewDeleteCustomerOK

func NewDeleteCustomerOK() *DeleteCustomerOK

NewDeleteCustomerOK creates a DeleteCustomerOK with default headers values

func (*DeleteCustomerOK) Error

func (o *DeleteCustomerOK) Error() string

func (*DeleteCustomerOK) GetPayload

func (o *DeleteCustomerOK) GetPayload() *models.YBPSuccess

type DeleteCustomerParams

type DeleteCustomerParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

DeleteCustomerParams contains all the parameters to send to the API endpoint

for the delete customer operation.

Typically these are written to a http.Request.

func NewDeleteCustomerParams

func NewDeleteCustomerParams() *DeleteCustomerParams

NewDeleteCustomerParams creates a new DeleteCustomerParams 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 NewDeleteCustomerParamsWithContext

func NewDeleteCustomerParamsWithContext(ctx context.Context) *DeleteCustomerParams

NewDeleteCustomerParamsWithContext creates a new DeleteCustomerParams object with the ability to set a context for a request.

func NewDeleteCustomerParamsWithHTTPClient

func NewDeleteCustomerParamsWithHTTPClient(client *http.Client) *DeleteCustomerParams

NewDeleteCustomerParamsWithHTTPClient creates a new DeleteCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCustomerParamsWithTimeout

func NewDeleteCustomerParamsWithTimeout(timeout time.Duration) *DeleteCustomerParams

NewDeleteCustomerParamsWithTimeout creates a new DeleteCustomerParams object with the ability to set a timeout on a request.

func (*DeleteCustomerParams) SetCUUID

func (o *DeleteCustomerParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the delete customer params

func (*DeleteCustomerParams) SetContext

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

SetContext adds the context to the delete customer params

func (*DeleteCustomerParams) SetDefaults

func (o *DeleteCustomerParams) SetDefaults()

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

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

func (*DeleteCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete customer params

func (*DeleteCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the delete customer params

func (*DeleteCustomerParams) WithCUUID

WithCUUID adds the cUUID to the delete customer params

func (*DeleteCustomerParams) WithContext

WithContext adds the context to the delete customer params

func (*DeleteCustomerParams) WithDefaults

func (o *DeleteCustomerParams) WithDefaults() *DeleteCustomerParams

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

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

func (*DeleteCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete customer params

func (*DeleteCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the delete customer params

func (*DeleteCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteCustomerReader

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

DeleteCustomerReader is a Reader for the DeleteCustomer structure.

func (*DeleteCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHostInfoOK

type GetHostInfoOK struct {
	Payload map[string]interface{}
}
GetHostInfoOK describes a response with status code 200, with default header values.

successful operation

func NewGetHostInfoOK

func NewGetHostInfoOK() *GetHostInfoOK

NewGetHostInfoOK creates a GetHostInfoOK with default headers values

func (*GetHostInfoOK) Error

func (o *GetHostInfoOK) Error() string

func (*GetHostInfoOK) GetPayload

func (o *GetHostInfoOK) GetPayload() map[string]interface{}

type GetHostInfoParams

type GetHostInfoParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

GetHostInfoParams contains all the parameters to send to the API endpoint

for the get host info operation.

Typically these are written to a http.Request.

func NewGetHostInfoParams

func NewGetHostInfoParams() *GetHostInfoParams

NewGetHostInfoParams creates a new GetHostInfoParams 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 NewGetHostInfoParamsWithContext

func NewGetHostInfoParamsWithContext(ctx context.Context) *GetHostInfoParams

NewGetHostInfoParamsWithContext creates a new GetHostInfoParams object with the ability to set a context for a request.

func NewGetHostInfoParamsWithHTTPClient

func NewGetHostInfoParamsWithHTTPClient(client *http.Client) *GetHostInfoParams

NewGetHostInfoParamsWithHTTPClient creates a new GetHostInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetHostInfoParamsWithTimeout

func NewGetHostInfoParamsWithTimeout(timeout time.Duration) *GetHostInfoParams

NewGetHostInfoParamsWithTimeout creates a new GetHostInfoParams object with the ability to set a timeout on a request.

func (*GetHostInfoParams) SetCUUID

func (o *GetHostInfoParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the get host info params

func (*GetHostInfoParams) SetContext

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

SetContext adds the context to the get host info params

func (*GetHostInfoParams) SetDefaults

func (o *GetHostInfoParams) SetDefaults()

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

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

func (*GetHostInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get host info params

func (*GetHostInfoParams) SetTimeout

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

SetTimeout adds the timeout to the get host info params

func (*GetHostInfoParams) WithCUUID

func (o *GetHostInfoParams) WithCUUID(cUUID strfmt.UUID) *GetHostInfoParams

WithCUUID adds the cUUID to the get host info params

func (*GetHostInfoParams) WithContext

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

WithContext adds the context to the get host info params

func (*GetHostInfoParams) WithDefaults

func (o *GetHostInfoParams) WithDefaults() *GetHostInfoParams

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

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

func (*GetHostInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get host info params

func (*GetHostInfoParams) WithTimeout

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

WithTimeout adds the timeout to the get host info params

func (*GetHostInfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetHostInfoReader

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

GetHostInfoReader is a Reader for the GetHostInfo structure.

func (*GetHostInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListOfCustomersOK

type ListOfCustomersOK struct {
	Payload []*models.Customer
}
ListOfCustomersOK describes a response with status code 200, with default header values.

successful operation

func NewListOfCustomersOK

func NewListOfCustomersOK() *ListOfCustomersOK

NewListOfCustomersOK creates a ListOfCustomersOK with default headers values

func (*ListOfCustomersOK) Error

func (o *ListOfCustomersOK) Error() string

func (*ListOfCustomersOK) GetPayload

func (o *ListOfCustomersOK) GetPayload() []*models.Customer

type ListOfCustomersParams

type ListOfCustomersParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListOfCustomersParams contains all the parameters to send to the API endpoint

for the list of customers operation.

Typically these are written to a http.Request.

func NewListOfCustomersParams

func NewListOfCustomersParams() *ListOfCustomersParams

NewListOfCustomersParams creates a new ListOfCustomersParams 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 NewListOfCustomersParamsWithContext

func NewListOfCustomersParamsWithContext(ctx context.Context) *ListOfCustomersParams

NewListOfCustomersParamsWithContext creates a new ListOfCustomersParams object with the ability to set a context for a request.

func NewListOfCustomersParamsWithHTTPClient

func NewListOfCustomersParamsWithHTTPClient(client *http.Client) *ListOfCustomersParams

NewListOfCustomersParamsWithHTTPClient creates a new ListOfCustomersParams object with the ability to set a custom HTTPClient for a request.

func NewListOfCustomersParamsWithTimeout

func NewListOfCustomersParamsWithTimeout(timeout time.Duration) *ListOfCustomersParams

NewListOfCustomersParamsWithTimeout creates a new ListOfCustomersParams object with the ability to set a timeout on a request.

func (*ListOfCustomersParams) SetContext

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

SetContext adds the context to the list of customers params

func (*ListOfCustomersParams) SetDefaults

func (o *ListOfCustomersParams) SetDefaults()

SetDefaults hydrates default values in the list of customers params (not the query body).

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

func (*ListOfCustomersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list of customers params

func (*ListOfCustomersParams) SetTimeout

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

SetTimeout adds the timeout to the list of customers params

func (*ListOfCustomersParams) WithContext

WithContext adds the context to the list of customers params

func (*ListOfCustomersParams) WithDefaults

func (o *ListOfCustomersParams) WithDefaults() *ListOfCustomersParams

WithDefaults hydrates default values in the list of customers params (not the query body).

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

func (*ListOfCustomersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list of customers params

func (*ListOfCustomersParams) WithTimeout

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

WithTimeout adds the timeout to the list of customers params

func (*ListOfCustomersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListOfCustomersReader

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

ListOfCustomersReader is a Reader for the ListOfCustomers structure.

func (*ListOfCustomersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MetricsBadRequest

type MetricsBadRequest struct {
	Payload *models.YBPError
}
MetricsBadRequest describes a response with status code 400, with default header values.

When request fails validations.

func NewMetricsBadRequest

func NewMetricsBadRequest() *MetricsBadRequest

NewMetricsBadRequest creates a MetricsBadRequest with default headers values

func (*MetricsBadRequest) Error

func (o *MetricsBadRequest) Error() string

func (*MetricsBadRequest) GetPayload

func (o *MetricsBadRequest) GetPayload() *models.YBPError

type MetricsOK

type MetricsOK struct {
	Payload map[string]interface{}
}
MetricsOK describes a response with status code 200, with default header values.

successful operation

func NewMetricsOK

func NewMetricsOK() *MetricsOK

NewMetricsOK creates a MetricsOK with default headers values

func (*MetricsOK) Error

func (o *MetricsOK) Error() string

func (*MetricsOK) GetPayload

func (o *MetricsOK) GetPayload() map[string]interface{}

type MetricsParams

type MetricsParams struct {

	/* Metrics.

	   Metrics to be added
	*/
	Metrics *models.MetricQueryParams

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

MetricsParams contains all the parameters to send to the API endpoint

for the metrics operation.

Typically these are written to a http.Request.

func NewMetricsParams

func NewMetricsParams() *MetricsParams

NewMetricsParams creates a new MetricsParams 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 NewMetricsParamsWithContext

func NewMetricsParamsWithContext(ctx context.Context) *MetricsParams

NewMetricsParamsWithContext creates a new MetricsParams object with the ability to set a context for a request.

func NewMetricsParamsWithHTTPClient

func NewMetricsParamsWithHTTPClient(client *http.Client) *MetricsParams

NewMetricsParamsWithHTTPClient creates a new MetricsParams object with the ability to set a custom HTTPClient for a request.

func NewMetricsParamsWithTimeout

func NewMetricsParamsWithTimeout(timeout time.Duration) *MetricsParams

NewMetricsParamsWithTimeout creates a new MetricsParams object with the ability to set a timeout on a request.

func (*MetricsParams) SetCUUID

func (o *MetricsParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the metrics params

func (*MetricsParams) SetContext

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

SetContext adds the context to the metrics params

func (*MetricsParams) SetDefaults

func (o *MetricsParams) SetDefaults()

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

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

func (*MetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the metrics params

func (*MetricsParams) SetMetrics

func (o *MetricsParams) SetMetrics(metrics *models.MetricQueryParams)

SetMetrics adds the metrics to the metrics params

func (*MetricsParams) SetTimeout

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

SetTimeout adds the timeout to the metrics params

func (*MetricsParams) WithCUUID

func (o *MetricsParams) WithCUUID(cUUID strfmt.UUID) *MetricsParams

WithCUUID adds the cUUID to the metrics params

func (*MetricsParams) WithContext

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

WithContext adds the context to the metrics params

func (*MetricsParams) WithDefaults

func (o *MetricsParams) WithDefaults() *MetricsParams

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

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

func (*MetricsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the metrics params

func (*MetricsParams) WithMetrics

func (o *MetricsParams) WithMetrics(metrics *models.MetricQueryParams) *MetricsParams

WithMetrics adds the metrics to the metrics params

func (*MetricsParams) WithTimeout

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

WithTimeout adds the timeout to the metrics params

func (*MetricsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type MetricsReader

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

MetricsReader is a Reader for the Metrics structure.

func (*MetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCustomerOK

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

successful operation

func NewUpdateCustomerOK

func NewUpdateCustomerOK() *UpdateCustomerOK

NewUpdateCustomerOK creates a UpdateCustomerOK with default headers values

func (*UpdateCustomerOK) Error

func (o *UpdateCustomerOK) Error() string

func (*UpdateCustomerOK) GetPayload

func (o *UpdateCustomerOK) GetPayload() *models.Customer

type UpdateCustomerParams

type UpdateCustomerParams struct {

	/* Customer.

	   Customer data to be updated
	*/
	Customer *models.CustomerAlertData

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

UpdateCustomerParams contains all the parameters to send to the API endpoint

for the update customer operation.

Typically these are written to a http.Request.

func NewUpdateCustomerParams

func NewUpdateCustomerParams() *UpdateCustomerParams

NewUpdateCustomerParams creates a new UpdateCustomerParams 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 NewUpdateCustomerParamsWithContext

func NewUpdateCustomerParamsWithContext(ctx context.Context) *UpdateCustomerParams

NewUpdateCustomerParamsWithContext creates a new UpdateCustomerParams object with the ability to set a context for a request.

func NewUpdateCustomerParamsWithHTTPClient

func NewUpdateCustomerParamsWithHTTPClient(client *http.Client) *UpdateCustomerParams

NewUpdateCustomerParamsWithHTTPClient creates a new UpdateCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateCustomerParamsWithTimeout

func NewUpdateCustomerParamsWithTimeout(timeout time.Duration) *UpdateCustomerParams

NewUpdateCustomerParamsWithTimeout creates a new UpdateCustomerParams object with the ability to set a timeout on a request.

func (*UpdateCustomerParams) SetCUUID

func (o *UpdateCustomerParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the update customer params

func (*UpdateCustomerParams) SetContext

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

SetContext adds the context to the update customer params

func (*UpdateCustomerParams) SetCustomer

func (o *UpdateCustomerParams) SetCustomer(customer *models.CustomerAlertData)

SetCustomer adds the customer to the update customer params

func (*UpdateCustomerParams) SetDefaults

func (o *UpdateCustomerParams) SetDefaults()

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

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

func (*UpdateCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update customer params

func (*UpdateCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the update customer params

func (*UpdateCustomerParams) WithCUUID

WithCUUID adds the cUUID to the update customer params

func (*UpdateCustomerParams) WithContext

WithContext adds the context to the update customer params

func (*UpdateCustomerParams) WithCustomer

WithCustomer adds the customer to the update customer params

func (*UpdateCustomerParams) WithDefaults

func (o *UpdateCustomerParams) WithDefaults() *UpdateCustomerParams

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

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

func (*UpdateCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update customer params

func (*UpdateCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the update customer params

func (*UpdateCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateCustomerReader

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

UpdateCustomerReader is a Reader for the UpdateCustomer structure.

func (*UpdateCustomerReader) ReadResponse

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