business_metrics

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 1

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 business metrics API

func (*Client) CreateBusinessMetric added in v0.0.9

func (a *Client) CreateBusinessMetric(params *CreateBusinessMetricParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBusinessMetricCreated, error)

CreateBusinessMetric Create a new BusinessMetric.

func (*Client) DeleteBusinessMetric added in v0.0.9

func (a *Client) DeleteBusinessMetric(params *DeleteBusinessMetricParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBusinessMetricNoContent, error)

DeleteBusinessMetric Deletes an existing BusinessMetric.

func (*Client) GetBusinessMetric

func (a *Client) GetBusinessMetric(params *GetBusinessMetricParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBusinessMetricOK, error)

GetBusinessMetric Return a specific BusinessMetrics.

func (*Client) GetBusinessMetrics

func (a *Client) GetBusinessMetrics(params *GetBusinessMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBusinessMetricsOK, error)

GetBusinessMetrics Return all BusinessMetrics that the current API token has access to.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateBusinessMetric added in v0.0.9

func (a *Client) UpdateBusinessMetric(params *UpdateBusinessMetricParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBusinessMetricOK, error)

UpdateBusinessMetric Updates an existing BusinessMetric.

func (*Client) UpdateBusinessMetricValuesCSV added in v0.0.11

UpdateBusinessMetricValuesCSV Updates the values for an existing BusinessMetric from a CSV file.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateBusinessMetric(params *CreateBusinessMetricParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBusinessMetricCreated, error)

	DeleteBusinessMetric(params *DeleteBusinessMetricParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBusinessMetricNoContent, error)

	GetBusinessMetric(params *GetBusinessMetricParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBusinessMetricOK, error)

	GetBusinessMetrics(params *GetBusinessMetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBusinessMetricsOK, error)

	UpdateBusinessMetric(params *UpdateBusinessMetricParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBusinessMetricOK, error)

	UpdateBusinessMetricValuesCSV(params *UpdateBusinessMetricValuesCSVParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBusinessMetricValuesCSVCreated, 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 business metrics API client.

type CreateBusinessMetricBadRequest added in v0.0.9

type CreateBusinessMetricBadRequest struct {
	Payload *models.Errors
}

CreateBusinessMetricBadRequest describes a response with status code 400, with default header values.

BadRequest

func NewCreateBusinessMetricBadRequest added in v0.0.9

func NewCreateBusinessMetricBadRequest() *CreateBusinessMetricBadRequest

NewCreateBusinessMetricBadRequest creates a CreateBusinessMetricBadRequest with default headers values

func (*CreateBusinessMetricBadRequest) Code added in v0.0.9

Code gets the status code for the create business metric bad request response

func (*CreateBusinessMetricBadRequest) Error added in v0.0.9

func (*CreateBusinessMetricBadRequest) GetPayload added in v0.0.9

func (o *CreateBusinessMetricBadRequest) GetPayload() *models.Errors

func (*CreateBusinessMetricBadRequest) IsClientError added in v0.0.9

func (o *CreateBusinessMetricBadRequest) IsClientError() bool

IsClientError returns true when this create business metric bad request response has a 4xx status code

func (*CreateBusinessMetricBadRequest) IsCode added in v0.0.9

func (o *CreateBusinessMetricBadRequest) IsCode(code int) bool

IsCode returns true when this create business metric bad request response a status code equal to that given

func (*CreateBusinessMetricBadRequest) IsRedirect added in v0.0.9

func (o *CreateBusinessMetricBadRequest) IsRedirect() bool

IsRedirect returns true when this create business metric bad request response has a 3xx status code

func (*CreateBusinessMetricBadRequest) IsServerError added in v0.0.9

func (o *CreateBusinessMetricBadRequest) IsServerError() bool

IsServerError returns true when this create business metric bad request response has a 5xx status code

func (*CreateBusinessMetricBadRequest) IsSuccess added in v0.0.9

func (o *CreateBusinessMetricBadRequest) IsSuccess() bool

IsSuccess returns true when this create business metric bad request response has a 2xx status code

func (*CreateBusinessMetricBadRequest) String added in v0.0.9

type CreateBusinessMetricCreated added in v0.0.9

type CreateBusinessMetricCreated struct {
	Payload *models.BusinessMetric
}

CreateBusinessMetricCreated describes a response with status code 201, with default header values.

CreateBusinessMetricCreated create business metric created

func NewCreateBusinessMetricCreated added in v0.0.9

func NewCreateBusinessMetricCreated() *CreateBusinessMetricCreated

NewCreateBusinessMetricCreated creates a CreateBusinessMetricCreated with default headers values

func (*CreateBusinessMetricCreated) Code added in v0.0.9

func (o *CreateBusinessMetricCreated) Code() int

Code gets the status code for the create business metric created response

func (*CreateBusinessMetricCreated) Error added in v0.0.9

func (*CreateBusinessMetricCreated) GetPayload added in v0.0.9

func (*CreateBusinessMetricCreated) IsClientError added in v0.0.9

func (o *CreateBusinessMetricCreated) IsClientError() bool

IsClientError returns true when this create business metric created response has a 4xx status code

func (*CreateBusinessMetricCreated) IsCode added in v0.0.9

func (o *CreateBusinessMetricCreated) IsCode(code int) bool

IsCode returns true when this create business metric created response a status code equal to that given

func (*CreateBusinessMetricCreated) IsRedirect added in v0.0.9

func (o *CreateBusinessMetricCreated) IsRedirect() bool

IsRedirect returns true when this create business metric created response has a 3xx status code

func (*CreateBusinessMetricCreated) IsServerError added in v0.0.9

func (o *CreateBusinessMetricCreated) IsServerError() bool

IsServerError returns true when this create business metric created response has a 5xx status code

func (*CreateBusinessMetricCreated) IsSuccess added in v0.0.9

func (o *CreateBusinessMetricCreated) IsSuccess() bool

IsSuccess returns true when this create business metric created response has a 2xx status code

func (*CreateBusinessMetricCreated) String added in v0.0.9

func (o *CreateBusinessMetricCreated) String() string

type CreateBusinessMetricForbidden added in v0.0.9

type CreateBusinessMetricForbidden struct {
	Payload *models.Errors
}

CreateBusinessMetricForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateBusinessMetricForbidden added in v0.0.9

func NewCreateBusinessMetricForbidden() *CreateBusinessMetricForbidden

NewCreateBusinessMetricForbidden creates a CreateBusinessMetricForbidden with default headers values

func (*CreateBusinessMetricForbidden) Code added in v0.0.9

Code gets the status code for the create business metric forbidden response

func (*CreateBusinessMetricForbidden) Error added in v0.0.9

func (*CreateBusinessMetricForbidden) GetPayload added in v0.0.9

func (o *CreateBusinessMetricForbidden) GetPayload() *models.Errors

func (*CreateBusinessMetricForbidden) IsClientError added in v0.0.9

func (o *CreateBusinessMetricForbidden) IsClientError() bool

IsClientError returns true when this create business metric forbidden response has a 4xx status code

func (*CreateBusinessMetricForbidden) IsCode added in v0.0.9

func (o *CreateBusinessMetricForbidden) IsCode(code int) bool

IsCode returns true when this create business metric forbidden response a status code equal to that given

func (*CreateBusinessMetricForbidden) IsRedirect added in v0.0.9

func (o *CreateBusinessMetricForbidden) IsRedirect() bool

IsRedirect returns true when this create business metric forbidden response has a 3xx status code

func (*CreateBusinessMetricForbidden) IsServerError added in v0.0.9

func (o *CreateBusinessMetricForbidden) IsServerError() bool

IsServerError returns true when this create business metric forbidden response has a 5xx status code

func (*CreateBusinessMetricForbidden) IsSuccess added in v0.0.9

func (o *CreateBusinessMetricForbidden) IsSuccess() bool

IsSuccess returns true when this create business metric forbidden response has a 2xx status code

func (*CreateBusinessMetricForbidden) String added in v0.0.9

type CreateBusinessMetricNotFound added in v0.0.9

type CreateBusinessMetricNotFound struct {
	Payload *models.Errors
}

CreateBusinessMetricNotFound describes a response with status code 404, with default header values.

NotFound

func NewCreateBusinessMetricNotFound added in v0.0.9

func NewCreateBusinessMetricNotFound() *CreateBusinessMetricNotFound

NewCreateBusinessMetricNotFound creates a CreateBusinessMetricNotFound with default headers values

func (*CreateBusinessMetricNotFound) Code added in v0.0.9

Code gets the status code for the create business metric not found response

func (*CreateBusinessMetricNotFound) Error added in v0.0.9

func (*CreateBusinessMetricNotFound) GetPayload added in v0.0.9

func (o *CreateBusinessMetricNotFound) GetPayload() *models.Errors

func (*CreateBusinessMetricNotFound) IsClientError added in v0.0.9

func (o *CreateBusinessMetricNotFound) IsClientError() bool

IsClientError returns true when this create business metric not found response has a 4xx status code

func (*CreateBusinessMetricNotFound) IsCode added in v0.0.9

func (o *CreateBusinessMetricNotFound) IsCode(code int) bool

IsCode returns true when this create business metric not found response a status code equal to that given

func (*CreateBusinessMetricNotFound) IsRedirect added in v0.0.9

func (o *CreateBusinessMetricNotFound) IsRedirect() bool

IsRedirect returns true when this create business metric not found response has a 3xx status code

func (*CreateBusinessMetricNotFound) IsServerError added in v0.0.9

func (o *CreateBusinessMetricNotFound) IsServerError() bool

IsServerError returns true when this create business metric not found response has a 5xx status code

func (*CreateBusinessMetricNotFound) IsSuccess added in v0.0.9

func (o *CreateBusinessMetricNotFound) IsSuccess() bool

IsSuccess returns true when this create business metric not found response has a 2xx status code

func (*CreateBusinessMetricNotFound) String added in v0.0.9

type CreateBusinessMetricParams added in v0.0.9

type CreateBusinessMetricParams struct {

	// CreateBusinessMetric.
	CreateBusinessMetric *models.CreateBusinessMetric

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

CreateBusinessMetricParams contains all the parameters to send to the API endpoint

for the create business metric operation.

Typically these are written to a http.Request.

func NewCreateBusinessMetricParams added in v0.0.9

func NewCreateBusinessMetricParams() *CreateBusinessMetricParams

NewCreateBusinessMetricParams creates a new CreateBusinessMetricParams 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 NewCreateBusinessMetricParamsWithContext added in v0.0.9

func NewCreateBusinessMetricParamsWithContext(ctx context.Context) *CreateBusinessMetricParams

NewCreateBusinessMetricParamsWithContext creates a new CreateBusinessMetricParams object with the ability to set a context for a request.

func NewCreateBusinessMetricParamsWithHTTPClient added in v0.0.9

func NewCreateBusinessMetricParamsWithHTTPClient(client *http.Client) *CreateBusinessMetricParams

NewCreateBusinessMetricParamsWithHTTPClient creates a new CreateBusinessMetricParams object with the ability to set a custom HTTPClient for a request.

func NewCreateBusinessMetricParamsWithTimeout added in v0.0.9

func NewCreateBusinessMetricParamsWithTimeout(timeout time.Duration) *CreateBusinessMetricParams

NewCreateBusinessMetricParamsWithTimeout creates a new CreateBusinessMetricParams object with the ability to set a timeout on a request.

func (*CreateBusinessMetricParams) SetContext added in v0.0.9

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

SetContext adds the context to the create business metric params

func (*CreateBusinessMetricParams) SetCreateBusinessMetric added in v0.0.14

func (o *CreateBusinessMetricParams) SetCreateBusinessMetric(createBusinessMetric *models.CreateBusinessMetric)

SetCreateBusinessMetric adds the createBusinessMetric to the create business metric params

func (*CreateBusinessMetricParams) SetDefaults added in v0.0.9

func (o *CreateBusinessMetricParams) SetDefaults()

SetDefaults hydrates default values in the create business metric params (not the query body).

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

func (*CreateBusinessMetricParams) SetHTTPClient added in v0.0.9

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

SetHTTPClient adds the HTTPClient to the create business metric params

func (*CreateBusinessMetricParams) SetTimeout added in v0.0.9

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

SetTimeout adds the timeout to the create business metric params

func (*CreateBusinessMetricParams) WithContext added in v0.0.9

WithContext adds the context to the create business metric params

func (*CreateBusinessMetricParams) WithCreateBusinessMetric added in v0.0.14

func (o *CreateBusinessMetricParams) WithCreateBusinessMetric(createBusinessMetric *models.CreateBusinessMetric) *CreateBusinessMetricParams

WithCreateBusinessMetric adds the createBusinessMetric to the create business metric params

func (*CreateBusinessMetricParams) WithDefaults added in v0.0.9

WithDefaults hydrates default values in the create business metric params (not the query body).

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

func (*CreateBusinessMetricParams) WithHTTPClient added in v0.0.9

WithHTTPClient adds the HTTPClient to the create business metric params

func (*CreateBusinessMetricParams) WithTimeout added in v0.0.9

WithTimeout adds the timeout to the create business metric params

func (*CreateBusinessMetricParams) WriteToRequest added in v0.0.9

WriteToRequest writes these params to a swagger request

type CreateBusinessMetricReader added in v0.0.9

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

CreateBusinessMetricReader is a Reader for the CreateBusinessMetric structure.

func (*CreateBusinessMetricReader) ReadResponse added in v0.0.9

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

ReadResponse reads a server response into the received o.

type CreateBusinessMetricUnprocessableEntity added in v0.0.9

type CreateBusinessMetricUnprocessableEntity struct {
	Payload *models.Errors
}

CreateBusinessMetricUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewCreateBusinessMetricUnprocessableEntity added in v0.0.9

func NewCreateBusinessMetricUnprocessableEntity() *CreateBusinessMetricUnprocessableEntity

NewCreateBusinessMetricUnprocessableEntity creates a CreateBusinessMetricUnprocessableEntity with default headers values

func (*CreateBusinessMetricUnprocessableEntity) Code added in v0.0.9

Code gets the status code for the create business metric unprocessable entity response

func (*CreateBusinessMetricUnprocessableEntity) Error added in v0.0.9

func (*CreateBusinessMetricUnprocessableEntity) GetPayload added in v0.0.9

func (*CreateBusinessMetricUnprocessableEntity) IsClientError added in v0.0.9

func (o *CreateBusinessMetricUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create business metric unprocessable entity response has a 4xx status code

func (*CreateBusinessMetricUnprocessableEntity) IsCode added in v0.0.9

IsCode returns true when this create business metric unprocessable entity response a status code equal to that given

func (*CreateBusinessMetricUnprocessableEntity) IsRedirect added in v0.0.9

IsRedirect returns true when this create business metric unprocessable entity response has a 3xx status code

func (*CreateBusinessMetricUnprocessableEntity) IsServerError added in v0.0.9

func (o *CreateBusinessMetricUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create business metric unprocessable entity response has a 5xx status code

func (*CreateBusinessMetricUnprocessableEntity) IsSuccess added in v0.0.9

IsSuccess returns true when this create business metric unprocessable entity response has a 2xx status code

func (*CreateBusinessMetricUnprocessableEntity) String added in v0.0.9

type DeleteBusinessMetricForbidden added in v0.0.9

type DeleteBusinessMetricForbidden struct {
	Payload *models.Errors
}

DeleteBusinessMetricForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteBusinessMetricForbidden added in v0.0.9

func NewDeleteBusinessMetricForbidden() *DeleteBusinessMetricForbidden

NewDeleteBusinessMetricForbidden creates a DeleteBusinessMetricForbidden with default headers values

func (*DeleteBusinessMetricForbidden) Code added in v0.0.9

Code gets the status code for the delete business metric forbidden response

func (*DeleteBusinessMetricForbidden) Error added in v0.0.9

func (*DeleteBusinessMetricForbidden) GetPayload added in v0.0.9

func (o *DeleteBusinessMetricForbidden) GetPayload() *models.Errors

func (*DeleteBusinessMetricForbidden) IsClientError added in v0.0.9

func (o *DeleteBusinessMetricForbidden) IsClientError() bool

IsClientError returns true when this delete business metric forbidden response has a 4xx status code

func (*DeleteBusinessMetricForbidden) IsCode added in v0.0.9

func (o *DeleteBusinessMetricForbidden) IsCode(code int) bool

IsCode returns true when this delete business metric forbidden response a status code equal to that given

func (*DeleteBusinessMetricForbidden) IsRedirect added in v0.0.9

func (o *DeleteBusinessMetricForbidden) IsRedirect() bool

IsRedirect returns true when this delete business metric forbidden response has a 3xx status code

func (*DeleteBusinessMetricForbidden) IsServerError added in v0.0.9

func (o *DeleteBusinessMetricForbidden) IsServerError() bool

IsServerError returns true when this delete business metric forbidden response has a 5xx status code

func (*DeleteBusinessMetricForbidden) IsSuccess added in v0.0.9

func (o *DeleteBusinessMetricForbidden) IsSuccess() bool

IsSuccess returns true when this delete business metric forbidden response has a 2xx status code

func (*DeleteBusinessMetricForbidden) String added in v0.0.9

type DeleteBusinessMetricNoContent added in v0.0.9

type DeleteBusinessMetricNoContent struct {
	Payload *models.BusinessMetric
}

DeleteBusinessMetricNoContent describes a response with status code 204, with default header values.

DeleteBusinessMetricNoContent delete business metric no content

func NewDeleteBusinessMetricNoContent added in v0.0.9

func NewDeleteBusinessMetricNoContent() *DeleteBusinessMetricNoContent

NewDeleteBusinessMetricNoContent creates a DeleteBusinessMetricNoContent with default headers values

func (*DeleteBusinessMetricNoContent) Code added in v0.0.9

Code gets the status code for the delete business metric no content response

func (*DeleteBusinessMetricNoContent) Error added in v0.0.9

func (*DeleteBusinessMetricNoContent) GetPayload added in v0.0.9

func (*DeleteBusinessMetricNoContent) IsClientError added in v0.0.9

func (o *DeleteBusinessMetricNoContent) IsClientError() bool

IsClientError returns true when this delete business metric no content response has a 4xx status code

func (*DeleteBusinessMetricNoContent) IsCode added in v0.0.9

func (o *DeleteBusinessMetricNoContent) IsCode(code int) bool

IsCode returns true when this delete business metric no content response a status code equal to that given

func (*DeleteBusinessMetricNoContent) IsRedirect added in v0.0.9

func (o *DeleteBusinessMetricNoContent) IsRedirect() bool

IsRedirect returns true when this delete business metric no content response has a 3xx status code

func (*DeleteBusinessMetricNoContent) IsServerError added in v0.0.9

func (o *DeleteBusinessMetricNoContent) IsServerError() bool

IsServerError returns true when this delete business metric no content response has a 5xx status code

func (*DeleteBusinessMetricNoContent) IsSuccess added in v0.0.9

func (o *DeleteBusinessMetricNoContent) IsSuccess() bool

IsSuccess returns true when this delete business metric no content response has a 2xx status code

func (*DeleteBusinessMetricNoContent) String added in v0.0.9

type DeleteBusinessMetricNotFound added in v0.0.9

type DeleteBusinessMetricNotFound struct {
	Payload *models.Errors
}

DeleteBusinessMetricNotFound describes a response with status code 404, with default header values.

NotFound

func NewDeleteBusinessMetricNotFound added in v0.0.9

func NewDeleteBusinessMetricNotFound() *DeleteBusinessMetricNotFound

NewDeleteBusinessMetricNotFound creates a DeleteBusinessMetricNotFound with default headers values

func (*DeleteBusinessMetricNotFound) Code added in v0.0.9

Code gets the status code for the delete business metric not found response

func (*DeleteBusinessMetricNotFound) Error added in v0.0.9

func (*DeleteBusinessMetricNotFound) GetPayload added in v0.0.9

func (o *DeleteBusinessMetricNotFound) GetPayload() *models.Errors

func (*DeleteBusinessMetricNotFound) IsClientError added in v0.0.9

func (o *DeleteBusinessMetricNotFound) IsClientError() bool

IsClientError returns true when this delete business metric not found response has a 4xx status code

func (*DeleteBusinessMetricNotFound) IsCode added in v0.0.9

func (o *DeleteBusinessMetricNotFound) IsCode(code int) bool

IsCode returns true when this delete business metric not found response a status code equal to that given

func (*DeleteBusinessMetricNotFound) IsRedirect added in v0.0.9

func (o *DeleteBusinessMetricNotFound) IsRedirect() bool

IsRedirect returns true when this delete business metric not found response has a 3xx status code

func (*DeleteBusinessMetricNotFound) IsServerError added in v0.0.9

func (o *DeleteBusinessMetricNotFound) IsServerError() bool

IsServerError returns true when this delete business metric not found response has a 5xx status code

func (*DeleteBusinessMetricNotFound) IsSuccess added in v0.0.9

func (o *DeleteBusinessMetricNotFound) IsSuccess() bool

IsSuccess returns true when this delete business metric not found response has a 2xx status code

func (*DeleteBusinessMetricNotFound) String added in v0.0.9

type DeleteBusinessMetricParams added in v0.0.9

type DeleteBusinessMetricParams struct {

	// BusinessMetricToken.
	BusinessMetricToken string

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

DeleteBusinessMetricParams contains all the parameters to send to the API endpoint

for the delete business metric operation.

Typically these are written to a http.Request.

func NewDeleteBusinessMetricParams added in v0.0.9

func NewDeleteBusinessMetricParams() *DeleteBusinessMetricParams

NewDeleteBusinessMetricParams creates a new DeleteBusinessMetricParams 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 NewDeleteBusinessMetricParamsWithContext added in v0.0.9

func NewDeleteBusinessMetricParamsWithContext(ctx context.Context) *DeleteBusinessMetricParams

NewDeleteBusinessMetricParamsWithContext creates a new DeleteBusinessMetricParams object with the ability to set a context for a request.

func NewDeleteBusinessMetricParamsWithHTTPClient added in v0.0.9

func NewDeleteBusinessMetricParamsWithHTTPClient(client *http.Client) *DeleteBusinessMetricParams

NewDeleteBusinessMetricParamsWithHTTPClient creates a new DeleteBusinessMetricParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteBusinessMetricParamsWithTimeout added in v0.0.9

func NewDeleteBusinessMetricParamsWithTimeout(timeout time.Duration) *DeleteBusinessMetricParams

NewDeleteBusinessMetricParamsWithTimeout creates a new DeleteBusinessMetricParams object with the ability to set a timeout on a request.

func (*DeleteBusinessMetricParams) SetBusinessMetricToken added in v0.0.9

func (o *DeleteBusinessMetricParams) SetBusinessMetricToken(businessMetricToken string)

SetBusinessMetricToken adds the businessMetricToken to the delete business metric params

func (*DeleteBusinessMetricParams) SetContext added in v0.0.9

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

SetContext adds the context to the delete business metric params

func (*DeleteBusinessMetricParams) SetDefaults added in v0.0.9

func (o *DeleteBusinessMetricParams) SetDefaults()

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

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

func (*DeleteBusinessMetricParams) SetHTTPClient added in v0.0.9

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

SetHTTPClient adds the HTTPClient to the delete business metric params

func (*DeleteBusinessMetricParams) SetTimeout added in v0.0.9

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

SetTimeout adds the timeout to the delete business metric params

func (*DeleteBusinessMetricParams) WithBusinessMetricToken added in v0.0.9

func (o *DeleteBusinessMetricParams) WithBusinessMetricToken(businessMetricToken string) *DeleteBusinessMetricParams

WithBusinessMetricToken adds the businessMetricToken to the delete business metric params

func (*DeleteBusinessMetricParams) WithContext added in v0.0.9

WithContext adds the context to the delete business metric params

func (*DeleteBusinessMetricParams) WithDefaults added in v0.0.9

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

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

func (*DeleteBusinessMetricParams) WithHTTPClient added in v0.0.9

WithHTTPClient adds the HTTPClient to the delete business metric params

func (*DeleteBusinessMetricParams) WithTimeout added in v0.0.9

WithTimeout adds the timeout to the delete business metric params

func (*DeleteBusinessMetricParams) WriteToRequest added in v0.0.9

WriteToRequest writes these params to a swagger request

type DeleteBusinessMetricReader added in v0.0.9

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

DeleteBusinessMetricReader is a Reader for the DeleteBusinessMetric structure.

func (*DeleteBusinessMetricReader) ReadResponse added in v0.0.9

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

ReadResponse reads a server response into the received o.

type GetBusinessMetricNotFound

type GetBusinessMetricNotFound struct {
	Payload *models.Errors
}

GetBusinessMetricNotFound describes a response with status code 404, with default header values.

NotFound

func NewGetBusinessMetricNotFound

func NewGetBusinessMetricNotFound() *GetBusinessMetricNotFound

NewGetBusinessMetricNotFound creates a GetBusinessMetricNotFound with default headers values

func (*GetBusinessMetricNotFound) Code

func (o *GetBusinessMetricNotFound) Code() int

Code gets the status code for the get business metric not found response

func (*GetBusinessMetricNotFound) Error

func (o *GetBusinessMetricNotFound) Error() string

func (*GetBusinessMetricNotFound) GetPayload

func (o *GetBusinessMetricNotFound) GetPayload() *models.Errors

func (*GetBusinessMetricNotFound) IsClientError

func (o *GetBusinessMetricNotFound) IsClientError() bool

IsClientError returns true when this get business metric not found response has a 4xx status code

func (*GetBusinessMetricNotFound) IsCode

func (o *GetBusinessMetricNotFound) IsCode(code int) bool

IsCode returns true when this get business metric not found response a status code equal to that given

func (*GetBusinessMetricNotFound) IsRedirect

func (o *GetBusinessMetricNotFound) IsRedirect() bool

IsRedirect returns true when this get business metric not found response has a 3xx status code

func (*GetBusinessMetricNotFound) IsServerError

func (o *GetBusinessMetricNotFound) IsServerError() bool

IsServerError returns true when this get business metric not found response has a 5xx status code

func (*GetBusinessMetricNotFound) IsSuccess

func (o *GetBusinessMetricNotFound) IsSuccess() bool

IsSuccess returns true when this get business metric not found response has a 2xx status code

func (*GetBusinessMetricNotFound) String

func (o *GetBusinessMetricNotFound) String() string

type GetBusinessMetricOK

type GetBusinessMetricOK struct {
	Payload *models.BusinessMetric
}

GetBusinessMetricOK describes a response with status code 200, with default header values.

GetBusinessMetricOK get business metric o k

func NewGetBusinessMetricOK

func NewGetBusinessMetricOK() *GetBusinessMetricOK

NewGetBusinessMetricOK creates a GetBusinessMetricOK with default headers values

func (*GetBusinessMetricOK) Code

func (o *GetBusinessMetricOK) Code() int

Code gets the status code for the get business metric o k response

func (*GetBusinessMetricOK) Error

func (o *GetBusinessMetricOK) Error() string

func (*GetBusinessMetricOK) GetPayload

func (o *GetBusinessMetricOK) GetPayload() *models.BusinessMetric

func (*GetBusinessMetricOK) IsClientError

func (o *GetBusinessMetricOK) IsClientError() bool

IsClientError returns true when this get business metric o k response has a 4xx status code

func (*GetBusinessMetricOK) IsCode

func (o *GetBusinessMetricOK) IsCode(code int) bool

IsCode returns true when this get business metric o k response a status code equal to that given

func (*GetBusinessMetricOK) IsRedirect

func (o *GetBusinessMetricOK) IsRedirect() bool

IsRedirect returns true when this get business metric o k response has a 3xx status code

func (*GetBusinessMetricOK) IsServerError

func (o *GetBusinessMetricOK) IsServerError() bool

IsServerError returns true when this get business metric o k response has a 5xx status code

func (*GetBusinessMetricOK) IsSuccess

func (o *GetBusinessMetricOK) IsSuccess() bool

IsSuccess returns true when this get business metric o k response has a 2xx status code

func (*GetBusinessMetricOK) String

func (o *GetBusinessMetricOK) String() string

type GetBusinessMetricParams

type GetBusinessMetricParams struct {

	// BusinessMetricToken.
	BusinessMetricToken string

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

GetBusinessMetricParams contains all the parameters to send to the API endpoint

for the get business metric operation.

Typically these are written to a http.Request.

func NewGetBusinessMetricParams

func NewGetBusinessMetricParams() *GetBusinessMetricParams

NewGetBusinessMetricParams creates a new GetBusinessMetricParams 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 NewGetBusinessMetricParamsWithContext

func NewGetBusinessMetricParamsWithContext(ctx context.Context) *GetBusinessMetricParams

NewGetBusinessMetricParamsWithContext creates a new GetBusinessMetricParams object with the ability to set a context for a request.

func NewGetBusinessMetricParamsWithHTTPClient

func NewGetBusinessMetricParamsWithHTTPClient(client *http.Client) *GetBusinessMetricParams

NewGetBusinessMetricParamsWithHTTPClient creates a new GetBusinessMetricParams object with the ability to set a custom HTTPClient for a request.

func NewGetBusinessMetricParamsWithTimeout

func NewGetBusinessMetricParamsWithTimeout(timeout time.Duration) *GetBusinessMetricParams

NewGetBusinessMetricParamsWithTimeout creates a new GetBusinessMetricParams object with the ability to set a timeout on a request.

func (*GetBusinessMetricParams) SetBusinessMetricToken

func (o *GetBusinessMetricParams) SetBusinessMetricToken(businessMetricToken string)

SetBusinessMetricToken adds the businessMetricToken to the get business metric params

func (*GetBusinessMetricParams) SetContext

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

SetContext adds the context to the get business metric params

func (*GetBusinessMetricParams) SetDefaults

func (o *GetBusinessMetricParams) SetDefaults()

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

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

func (*GetBusinessMetricParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get business metric params

func (*GetBusinessMetricParams) SetTimeout

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

SetTimeout adds the timeout to the get business metric params

func (*GetBusinessMetricParams) WithBusinessMetricToken

func (o *GetBusinessMetricParams) WithBusinessMetricToken(businessMetricToken string) *GetBusinessMetricParams

WithBusinessMetricToken adds the businessMetricToken to the get business metric params

func (*GetBusinessMetricParams) WithContext

WithContext adds the context to the get business metric params

func (*GetBusinessMetricParams) WithDefaults

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

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

func (*GetBusinessMetricParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get business metric params

func (*GetBusinessMetricParams) WithTimeout

WithTimeout adds the timeout to the get business metric params

func (*GetBusinessMetricParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetBusinessMetricReader

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

GetBusinessMetricReader is a Reader for the GetBusinessMetric structure.

func (*GetBusinessMetricReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBusinessMetricsOK

type GetBusinessMetricsOK struct {
	Payload *models.BusinessMetrics
}

GetBusinessMetricsOK describes a response with status code 200, with default header values.

GetBusinessMetricsOK get business metrics o k

func NewGetBusinessMetricsOK

func NewGetBusinessMetricsOK() *GetBusinessMetricsOK

NewGetBusinessMetricsOK creates a GetBusinessMetricsOK with default headers values

func (*GetBusinessMetricsOK) Code

func (o *GetBusinessMetricsOK) Code() int

Code gets the status code for the get business metrics o k response

func (*GetBusinessMetricsOK) Error

func (o *GetBusinessMetricsOK) Error() string

func (*GetBusinessMetricsOK) GetPayload

func (o *GetBusinessMetricsOK) GetPayload() *models.BusinessMetrics

func (*GetBusinessMetricsOK) IsClientError

func (o *GetBusinessMetricsOK) IsClientError() bool

IsClientError returns true when this get business metrics o k response has a 4xx status code

func (*GetBusinessMetricsOK) IsCode

func (o *GetBusinessMetricsOK) IsCode(code int) bool

IsCode returns true when this get business metrics o k response a status code equal to that given

func (*GetBusinessMetricsOK) IsRedirect

func (o *GetBusinessMetricsOK) IsRedirect() bool

IsRedirect returns true when this get business metrics o k response has a 3xx status code

func (*GetBusinessMetricsOK) IsServerError

func (o *GetBusinessMetricsOK) IsServerError() bool

IsServerError returns true when this get business metrics o k response has a 5xx status code

func (*GetBusinessMetricsOK) IsSuccess

func (o *GetBusinessMetricsOK) IsSuccess() bool

IsSuccess returns true when this get business metrics o k response has a 2xx status code

func (*GetBusinessMetricsOK) String

func (o *GetBusinessMetricsOK) String() string

type GetBusinessMetricsParams

type GetBusinessMetricsParams struct {

	/* Limit.

	   The amount of results to return. The maximum is 1000.

	   Format: int32
	*/
	Limit *int32

	/* Page.

	   The page of results to return.

	   Format: int32
	*/
	Page *int32

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

GetBusinessMetricsParams contains all the parameters to send to the API endpoint

for the get business metrics operation.

Typically these are written to a http.Request.

func NewGetBusinessMetricsParams

func NewGetBusinessMetricsParams() *GetBusinessMetricsParams

NewGetBusinessMetricsParams creates a new GetBusinessMetricsParams 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 NewGetBusinessMetricsParamsWithContext

func NewGetBusinessMetricsParamsWithContext(ctx context.Context) *GetBusinessMetricsParams

NewGetBusinessMetricsParamsWithContext creates a new GetBusinessMetricsParams object with the ability to set a context for a request.

func NewGetBusinessMetricsParamsWithHTTPClient

func NewGetBusinessMetricsParamsWithHTTPClient(client *http.Client) *GetBusinessMetricsParams

NewGetBusinessMetricsParamsWithHTTPClient creates a new GetBusinessMetricsParams object with the ability to set a custom HTTPClient for a request.

func NewGetBusinessMetricsParamsWithTimeout

func NewGetBusinessMetricsParamsWithTimeout(timeout time.Duration) *GetBusinessMetricsParams

NewGetBusinessMetricsParamsWithTimeout creates a new GetBusinessMetricsParams object with the ability to set a timeout on a request.

func (*GetBusinessMetricsParams) SetContext

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

SetContext adds the context to the get business metrics params

func (*GetBusinessMetricsParams) SetDefaults

func (o *GetBusinessMetricsParams) SetDefaults()

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

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

func (*GetBusinessMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get business metrics params

func (*GetBusinessMetricsParams) SetLimit

func (o *GetBusinessMetricsParams) SetLimit(limit *int32)

SetLimit adds the limit to the get business metrics params

func (*GetBusinessMetricsParams) SetPage

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

SetPage adds the page to the get business metrics params

func (*GetBusinessMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the get business metrics params

func (*GetBusinessMetricsParams) WithContext

WithContext adds the context to the get business metrics params

func (*GetBusinessMetricsParams) WithDefaults

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

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

func (*GetBusinessMetricsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get business metrics params

func (*GetBusinessMetricsParams) WithLimit

WithLimit adds the limit to the get business metrics params

func (*GetBusinessMetricsParams) WithPage

WithPage adds the page to the get business metrics params

func (*GetBusinessMetricsParams) WithTimeout

WithTimeout adds the timeout to the get business metrics params

func (*GetBusinessMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetBusinessMetricsReader

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

GetBusinessMetricsReader is a Reader for the GetBusinessMetrics structure.

func (*GetBusinessMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateBusinessMetricBadRequest added in v0.0.9

type UpdateBusinessMetricBadRequest struct {
	Payload *models.Errors
}

UpdateBusinessMetricBadRequest describes a response with status code 400, with default header values.

BadRequest

func NewUpdateBusinessMetricBadRequest added in v0.0.9

func NewUpdateBusinessMetricBadRequest() *UpdateBusinessMetricBadRequest

NewUpdateBusinessMetricBadRequest creates a UpdateBusinessMetricBadRequest with default headers values

func (*UpdateBusinessMetricBadRequest) Code added in v0.0.9

Code gets the status code for the update business metric bad request response

func (*UpdateBusinessMetricBadRequest) Error added in v0.0.9

func (*UpdateBusinessMetricBadRequest) GetPayload added in v0.0.9

func (o *UpdateBusinessMetricBadRequest) GetPayload() *models.Errors

func (*UpdateBusinessMetricBadRequest) IsClientError added in v0.0.9

func (o *UpdateBusinessMetricBadRequest) IsClientError() bool

IsClientError returns true when this update business metric bad request response has a 4xx status code

func (*UpdateBusinessMetricBadRequest) IsCode added in v0.0.9

func (o *UpdateBusinessMetricBadRequest) IsCode(code int) bool

IsCode returns true when this update business metric bad request response a status code equal to that given

func (*UpdateBusinessMetricBadRequest) IsRedirect added in v0.0.9

func (o *UpdateBusinessMetricBadRequest) IsRedirect() bool

IsRedirect returns true when this update business metric bad request response has a 3xx status code

func (*UpdateBusinessMetricBadRequest) IsServerError added in v0.0.9

func (o *UpdateBusinessMetricBadRequest) IsServerError() bool

IsServerError returns true when this update business metric bad request response has a 5xx status code

func (*UpdateBusinessMetricBadRequest) IsSuccess added in v0.0.9

func (o *UpdateBusinessMetricBadRequest) IsSuccess() bool

IsSuccess returns true when this update business metric bad request response has a 2xx status code

func (*UpdateBusinessMetricBadRequest) String added in v0.0.9

type UpdateBusinessMetricForbidden added in v0.0.9

type UpdateBusinessMetricForbidden struct {
	Payload *models.Errors
}

UpdateBusinessMetricForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateBusinessMetricForbidden added in v0.0.9

func NewUpdateBusinessMetricForbidden() *UpdateBusinessMetricForbidden

NewUpdateBusinessMetricForbidden creates a UpdateBusinessMetricForbidden with default headers values

func (*UpdateBusinessMetricForbidden) Code added in v0.0.9

Code gets the status code for the update business metric forbidden response

func (*UpdateBusinessMetricForbidden) Error added in v0.0.9

func (*UpdateBusinessMetricForbidden) GetPayload added in v0.0.9

func (o *UpdateBusinessMetricForbidden) GetPayload() *models.Errors

func (*UpdateBusinessMetricForbidden) IsClientError added in v0.0.9

func (o *UpdateBusinessMetricForbidden) IsClientError() bool

IsClientError returns true when this update business metric forbidden response has a 4xx status code

func (*UpdateBusinessMetricForbidden) IsCode added in v0.0.9

func (o *UpdateBusinessMetricForbidden) IsCode(code int) bool

IsCode returns true when this update business metric forbidden response a status code equal to that given

func (*UpdateBusinessMetricForbidden) IsRedirect added in v0.0.9

func (o *UpdateBusinessMetricForbidden) IsRedirect() bool

IsRedirect returns true when this update business metric forbidden response has a 3xx status code

func (*UpdateBusinessMetricForbidden) IsServerError added in v0.0.9

func (o *UpdateBusinessMetricForbidden) IsServerError() bool

IsServerError returns true when this update business metric forbidden response has a 5xx status code

func (*UpdateBusinessMetricForbidden) IsSuccess added in v0.0.9

func (o *UpdateBusinessMetricForbidden) IsSuccess() bool

IsSuccess returns true when this update business metric forbidden response has a 2xx status code

func (*UpdateBusinessMetricForbidden) String added in v0.0.9

type UpdateBusinessMetricNotFound added in v0.0.9

type UpdateBusinessMetricNotFound struct {
	Payload *models.Errors
}

UpdateBusinessMetricNotFound describes a response with status code 404, with default header values.

NotFound

func NewUpdateBusinessMetricNotFound added in v0.0.9

func NewUpdateBusinessMetricNotFound() *UpdateBusinessMetricNotFound

NewUpdateBusinessMetricNotFound creates a UpdateBusinessMetricNotFound with default headers values

func (*UpdateBusinessMetricNotFound) Code added in v0.0.9

Code gets the status code for the update business metric not found response

func (*UpdateBusinessMetricNotFound) Error added in v0.0.9

func (*UpdateBusinessMetricNotFound) GetPayload added in v0.0.9

func (o *UpdateBusinessMetricNotFound) GetPayload() *models.Errors

func (*UpdateBusinessMetricNotFound) IsClientError added in v0.0.9

func (o *UpdateBusinessMetricNotFound) IsClientError() bool

IsClientError returns true when this update business metric not found response has a 4xx status code

func (*UpdateBusinessMetricNotFound) IsCode added in v0.0.9

func (o *UpdateBusinessMetricNotFound) IsCode(code int) bool

IsCode returns true when this update business metric not found response a status code equal to that given

func (*UpdateBusinessMetricNotFound) IsRedirect added in v0.0.9

func (o *UpdateBusinessMetricNotFound) IsRedirect() bool

IsRedirect returns true when this update business metric not found response has a 3xx status code

func (*UpdateBusinessMetricNotFound) IsServerError added in v0.0.9

func (o *UpdateBusinessMetricNotFound) IsServerError() bool

IsServerError returns true when this update business metric not found response has a 5xx status code

func (*UpdateBusinessMetricNotFound) IsSuccess added in v0.0.9

func (o *UpdateBusinessMetricNotFound) IsSuccess() bool

IsSuccess returns true when this update business metric not found response has a 2xx status code

func (*UpdateBusinessMetricNotFound) String added in v0.0.9

type UpdateBusinessMetricOK added in v0.0.19

type UpdateBusinessMetricOK struct {
	Payload *models.BusinessMetric
}

UpdateBusinessMetricOK describes a response with status code 200, with default header values.

UpdateBusinessMetricOK update business metric o k

func NewUpdateBusinessMetricOK added in v0.0.19

func NewUpdateBusinessMetricOK() *UpdateBusinessMetricOK

NewUpdateBusinessMetricOK creates a UpdateBusinessMetricOK with default headers values

func (*UpdateBusinessMetricOK) Code added in v0.0.19

func (o *UpdateBusinessMetricOK) Code() int

Code gets the status code for the update business metric o k response

func (*UpdateBusinessMetricOK) Error added in v0.0.19

func (o *UpdateBusinessMetricOK) Error() string

func (*UpdateBusinessMetricOK) GetPayload added in v0.0.19

func (o *UpdateBusinessMetricOK) GetPayload() *models.BusinessMetric

func (*UpdateBusinessMetricOK) IsClientError added in v0.0.19

func (o *UpdateBusinessMetricOK) IsClientError() bool

IsClientError returns true when this update business metric o k response has a 4xx status code

func (*UpdateBusinessMetricOK) IsCode added in v0.0.19

func (o *UpdateBusinessMetricOK) IsCode(code int) bool

IsCode returns true when this update business metric o k response a status code equal to that given

func (*UpdateBusinessMetricOK) IsRedirect added in v0.0.19

func (o *UpdateBusinessMetricOK) IsRedirect() bool

IsRedirect returns true when this update business metric o k response has a 3xx status code

func (*UpdateBusinessMetricOK) IsServerError added in v0.0.19

func (o *UpdateBusinessMetricOK) IsServerError() bool

IsServerError returns true when this update business metric o k response has a 5xx status code

func (*UpdateBusinessMetricOK) IsSuccess added in v0.0.19

func (o *UpdateBusinessMetricOK) IsSuccess() bool

IsSuccess returns true when this update business metric o k response has a 2xx status code

func (*UpdateBusinessMetricOK) String added in v0.0.19

func (o *UpdateBusinessMetricOK) String() string

type UpdateBusinessMetricParams added in v0.0.9

type UpdateBusinessMetricParams struct {

	// BusinessMetricToken.
	BusinessMetricToken string

	// UpdateBusinessMetric.
	UpdateBusinessMetric *models.UpdateBusinessMetric

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

UpdateBusinessMetricParams contains all the parameters to send to the API endpoint

for the update business metric operation.

Typically these are written to a http.Request.

func NewUpdateBusinessMetricParams added in v0.0.9

func NewUpdateBusinessMetricParams() *UpdateBusinessMetricParams

NewUpdateBusinessMetricParams creates a new UpdateBusinessMetricParams 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 NewUpdateBusinessMetricParamsWithContext added in v0.0.9

func NewUpdateBusinessMetricParamsWithContext(ctx context.Context) *UpdateBusinessMetricParams

NewUpdateBusinessMetricParamsWithContext creates a new UpdateBusinessMetricParams object with the ability to set a context for a request.

func NewUpdateBusinessMetricParamsWithHTTPClient added in v0.0.9

func NewUpdateBusinessMetricParamsWithHTTPClient(client *http.Client) *UpdateBusinessMetricParams

NewUpdateBusinessMetricParamsWithHTTPClient creates a new UpdateBusinessMetricParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateBusinessMetricParamsWithTimeout added in v0.0.9

func NewUpdateBusinessMetricParamsWithTimeout(timeout time.Duration) *UpdateBusinessMetricParams

NewUpdateBusinessMetricParamsWithTimeout creates a new UpdateBusinessMetricParams object with the ability to set a timeout on a request.

func (*UpdateBusinessMetricParams) SetBusinessMetricToken added in v0.0.9

func (o *UpdateBusinessMetricParams) SetBusinessMetricToken(businessMetricToken string)

SetBusinessMetricToken adds the businessMetricToken to the update business metric params

func (*UpdateBusinessMetricParams) SetContext added in v0.0.9

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

SetContext adds the context to the update business metric params

func (*UpdateBusinessMetricParams) SetDefaults added in v0.0.9

func (o *UpdateBusinessMetricParams) SetDefaults()

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

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

func (*UpdateBusinessMetricParams) SetHTTPClient added in v0.0.9

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

SetHTTPClient adds the HTTPClient to the update business metric params

func (*UpdateBusinessMetricParams) SetTimeout added in v0.0.9

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

SetTimeout adds the timeout to the update business metric params

func (*UpdateBusinessMetricParams) SetUpdateBusinessMetric added in v0.0.14

func (o *UpdateBusinessMetricParams) SetUpdateBusinessMetric(updateBusinessMetric *models.UpdateBusinessMetric)

SetUpdateBusinessMetric adds the updateBusinessMetric to the update business metric params

func (*UpdateBusinessMetricParams) WithBusinessMetricToken added in v0.0.9

func (o *UpdateBusinessMetricParams) WithBusinessMetricToken(businessMetricToken string) *UpdateBusinessMetricParams

WithBusinessMetricToken adds the businessMetricToken to the update business metric params

func (*UpdateBusinessMetricParams) WithContext added in v0.0.9

WithContext adds the context to the update business metric params

func (*UpdateBusinessMetricParams) WithDefaults added in v0.0.9

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

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

func (*UpdateBusinessMetricParams) WithHTTPClient added in v0.0.9

WithHTTPClient adds the HTTPClient to the update business metric params

func (*UpdateBusinessMetricParams) WithTimeout added in v0.0.9

WithTimeout adds the timeout to the update business metric params

func (*UpdateBusinessMetricParams) WithUpdateBusinessMetric added in v0.0.14

func (o *UpdateBusinessMetricParams) WithUpdateBusinessMetric(updateBusinessMetric *models.UpdateBusinessMetric) *UpdateBusinessMetricParams

WithUpdateBusinessMetric adds the updateBusinessMetric to the update business metric params

func (*UpdateBusinessMetricParams) WriteToRequest added in v0.0.9

WriteToRequest writes these params to a swagger request

type UpdateBusinessMetricReader added in v0.0.9

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

UpdateBusinessMetricReader is a Reader for the UpdateBusinessMetric structure.

func (*UpdateBusinessMetricReader) ReadResponse added in v0.0.9

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

ReadResponse reads a server response into the received o.

type UpdateBusinessMetricUnprocessableEntity added in v0.0.9

type UpdateBusinessMetricUnprocessableEntity struct {
	Payload *models.Errors
}

UpdateBusinessMetricUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewUpdateBusinessMetricUnprocessableEntity added in v0.0.9

func NewUpdateBusinessMetricUnprocessableEntity() *UpdateBusinessMetricUnprocessableEntity

NewUpdateBusinessMetricUnprocessableEntity creates a UpdateBusinessMetricUnprocessableEntity with default headers values

func (*UpdateBusinessMetricUnprocessableEntity) Code added in v0.0.9

Code gets the status code for the update business metric unprocessable entity response

func (*UpdateBusinessMetricUnprocessableEntity) Error added in v0.0.9

func (*UpdateBusinessMetricUnprocessableEntity) GetPayload added in v0.0.9

func (*UpdateBusinessMetricUnprocessableEntity) IsClientError added in v0.0.9

func (o *UpdateBusinessMetricUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update business metric unprocessable entity response has a 4xx status code

func (*UpdateBusinessMetricUnprocessableEntity) IsCode added in v0.0.9

IsCode returns true when this update business metric unprocessable entity response a status code equal to that given

func (*UpdateBusinessMetricUnprocessableEntity) IsRedirect added in v0.0.9

IsRedirect returns true when this update business metric unprocessable entity response has a 3xx status code

func (*UpdateBusinessMetricUnprocessableEntity) IsServerError added in v0.0.9

func (o *UpdateBusinessMetricUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update business metric unprocessable entity response has a 5xx status code

func (*UpdateBusinessMetricUnprocessableEntity) IsSuccess added in v0.0.9

IsSuccess returns true when this update business metric unprocessable entity response has a 2xx status code

func (*UpdateBusinessMetricUnprocessableEntity) String added in v0.0.9

type UpdateBusinessMetricValuesCSVBadRequest added in v0.0.11

type UpdateBusinessMetricValuesCSVBadRequest struct {
	Payload *models.Errors
}

UpdateBusinessMetricValuesCSVBadRequest describes a response with status code 400, with default header values.

BadRequest

func NewUpdateBusinessMetricValuesCSVBadRequest added in v0.0.11

func NewUpdateBusinessMetricValuesCSVBadRequest() *UpdateBusinessMetricValuesCSVBadRequest

NewUpdateBusinessMetricValuesCSVBadRequest creates a UpdateBusinessMetricValuesCSVBadRequest with default headers values

func (*UpdateBusinessMetricValuesCSVBadRequest) Code added in v0.0.11

Code gets the status code for the update business metric values c s v bad request response

func (*UpdateBusinessMetricValuesCSVBadRequest) Error added in v0.0.11

func (*UpdateBusinessMetricValuesCSVBadRequest) GetPayload added in v0.0.11

func (*UpdateBusinessMetricValuesCSVBadRequest) IsClientError added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVBadRequest) IsClientError() bool

IsClientError returns true when this update business metric values c s v bad request response has a 4xx status code

func (*UpdateBusinessMetricValuesCSVBadRequest) IsCode added in v0.0.11

IsCode returns true when this update business metric values c s v bad request response a status code equal to that given

func (*UpdateBusinessMetricValuesCSVBadRequest) IsRedirect added in v0.0.11

IsRedirect returns true when this update business metric values c s v bad request response has a 3xx status code

func (*UpdateBusinessMetricValuesCSVBadRequest) IsServerError added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVBadRequest) IsServerError() bool

IsServerError returns true when this update business metric values c s v bad request response has a 5xx status code

func (*UpdateBusinessMetricValuesCSVBadRequest) IsSuccess added in v0.0.11

IsSuccess returns true when this update business metric values c s v bad request response has a 2xx status code

func (*UpdateBusinessMetricValuesCSVBadRequest) String added in v0.0.11

type UpdateBusinessMetricValuesCSVCreated added in v0.0.11

type UpdateBusinessMetricValuesCSVCreated struct {
	Payload *models.BusinessMetric
}

UpdateBusinessMetricValuesCSVCreated describes a response with status code 201, with default header values.

UpdateBusinessMetricValuesCSVCreated update business metric values c s v created

func NewUpdateBusinessMetricValuesCSVCreated added in v0.0.11

func NewUpdateBusinessMetricValuesCSVCreated() *UpdateBusinessMetricValuesCSVCreated

NewUpdateBusinessMetricValuesCSVCreated creates a UpdateBusinessMetricValuesCSVCreated with default headers values

func (*UpdateBusinessMetricValuesCSVCreated) Code added in v0.0.11

Code gets the status code for the update business metric values c s v created response

func (*UpdateBusinessMetricValuesCSVCreated) Error added in v0.0.11

func (*UpdateBusinessMetricValuesCSVCreated) GetPayload added in v0.0.11

func (*UpdateBusinessMetricValuesCSVCreated) IsClientError added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVCreated) IsClientError() bool

IsClientError returns true when this update business metric values c s v created response has a 4xx status code

func (*UpdateBusinessMetricValuesCSVCreated) IsCode added in v0.0.11

IsCode returns true when this update business metric values c s v created response a status code equal to that given

func (*UpdateBusinessMetricValuesCSVCreated) IsRedirect added in v0.0.11

IsRedirect returns true when this update business metric values c s v created response has a 3xx status code

func (*UpdateBusinessMetricValuesCSVCreated) IsServerError added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVCreated) IsServerError() bool

IsServerError returns true when this update business metric values c s v created response has a 5xx status code

func (*UpdateBusinessMetricValuesCSVCreated) IsSuccess added in v0.0.11

IsSuccess returns true when this update business metric values c s v created response has a 2xx status code

func (*UpdateBusinessMetricValuesCSVCreated) String added in v0.0.11

type UpdateBusinessMetricValuesCSVForbidden added in v0.0.11

type UpdateBusinessMetricValuesCSVForbidden struct {
	Payload *models.Errors
}

UpdateBusinessMetricValuesCSVForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateBusinessMetricValuesCSVForbidden added in v0.0.11

func NewUpdateBusinessMetricValuesCSVForbidden() *UpdateBusinessMetricValuesCSVForbidden

NewUpdateBusinessMetricValuesCSVForbidden creates a UpdateBusinessMetricValuesCSVForbidden with default headers values

func (*UpdateBusinessMetricValuesCSVForbidden) Code added in v0.0.11

Code gets the status code for the update business metric values c s v forbidden response

func (*UpdateBusinessMetricValuesCSVForbidden) Error added in v0.0.11

func (*UpdateBusinessMetricValuesCSVForbidden) GetPayload added in v0.0.11

func (*UpdateBusinessMetricValuesCSVForbidden) IsClientError added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVForbidden) IsClientError() bool

IsClientError returns true when this update business metric values c s v forbidden response has a 4xx status code

func (*UpdateBusinessMetricValuesCSVForbidden) IsCode added in v0.0.11

IsCode returns true when this update business metric values c s v forbidden response a status code equal to that given

func (*UpdateBusinessMetricValuesCSVForbidden) IsRedirect added in v0.0.11

IsRedirect returns true when this update business metric values c s v forbidden response has a 3xx status code

func (*UpdateBusinessMetricValuesCSVForbidden) IsServerError added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVForbidden) IsServerError() bool

IsServerError returns true when this update business metric values c s v forbidden response has a 5xx status code

func (*UpdateBusinessMetricValuesCSVForbidden) IsSuccess added in v0.0.11

IsSuccess returns true when this update business metric values c s v forbidden response has a 2xx status code

func (*UpdateBusinessMetricValuesCSVForbidden) String added in v0.0.11

type UpdateBusinessMetricValuesCSVNotFound added in v0.0.11

type UpdateBusinessMetricValuesCSVNotFound struct {
	Payload *models.Errors
}

UpdateBusinessMetricValuesCSVNotFound describes a response with status code 404, with default header values.

NotFound

func NewUpdateBusinessMetricValuesCSVNotFound added in v0.0.11

func NewUpdateBusinessMetricValuesCSVNotFound() *UpdateBusinessMetricValuesCSVNotFound

NewUpdateBusinessMetricValuesCSVNotFound creates a UpdateBusinessMetricValuesCSVNotFound with default headers values

func (*UpdateBusinessMetricValuesCSVNotFound) Code added in v0.0.11

Code gets the status code for the update business metric values c s v not found response

func (*UpdateBusinessMetricValuesCSVNotFound) Error added in v0.0.11

func (*UpdateBusinessMetricValuesCSVNotFound) GetPayload added in v0.0.11

func (*UpdateBusinessMetricValuesCSVNotFound) IsClientError added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVNotFound) IsClientError() bool

IsClientError returns true when this update business metric values c s v not found response has a 4xx status code

func (*UpdateBusinessMetricValuesCSVNotFound) IsCode added in v0.0.11

IsCode returns true when this update business metric values c s v not found response a status code equal to that given

func (*UpdateBusinessMetricValuesCSVNotFound) IsRedirect added in v0.0.11

IsRedirect returns true when this update business metric values c s v not found response has a 3xx status code

func (*UpdateBusinessMetricValuesCSVNotFound) IsServerError added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVNotFound) IsServerError() bool

IsServerError returns true when this update business metric values c s v not found response has a 5xx status code

func (*UpdateBusinessMetricValuesCSVNotFound) IsSuccess added in v0.0.11

IsSuccess returns true when this update business metric values c s v not found response has a 2xx status code

func (*UpdateBusinessMetricValuesCSVNotFound) String added in v0.0.11

type UpdateBusinessMetricValuesCSVParams added in v0.0.11

type UpdateBusinessMetricValuesCSVParams struct {

	// BusinessMetricToken.
	BusinessMetricToken string

	/* Csv.

	   CSV file containing BusinessMetric dates and amounts
	*/
	Csv runtime.NamedReadCloser

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

UpdateBusinessMetricValuesCSVParams contains all the parameters to send to the API endpoint

for the update business metric values c s v operation.

Typically these are written to a http.Request.

func NewUpdateBusinessMetricValuesCSVParams added in v0.0.11

func NewUpdateBusinessMetricValuesCSVParams() *UpdateBusinessMetricValuesCSVParams

NewUpdateBusinessMetricValuesCSVParams creates a new UpdateBusinessMetricValuesCSVParams 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 NewUpdateBusinessMetricValuesCSVParamsWithContext added in v0.0.11

func NewUpdateBusinessMetricValuesCSVParamsWithContext(ctx context.Context) *UpdateBusinessMetricValuesCSVParams

NewUpdateBusinessMetricValuesCSVParamsWithContext creates a new UpdateBusinessMetricValuesCSVParams object with the ability to set a context for a request.

func NewUpdateBusinessMetricValuesCSVParamsWithHTTPClient added in v0.0.11

func NewUpdateBusinessMetricValuesCSVParamsWithHTTPClient(client *http.Client) *UpdateBusinessMetricValuesCSVParams

NewUpdateBusinessMetricValuesCSVParamsWithHTTPClient creates a new UpdateBusinessMetricValuesCSVParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateBusinessMetricValuesCSVParamsWithTimeout added in v0.0.11

func NewUpdateBusinessMetricValuesCSVParamsWithTimeout(timeout time.Duration) *UpdateBusinessMetricValuesCSVParams

NewUpdateBusinessMetricValuesCSVParamsWithTimeout creates a new UpdateBusinessMetricValuesCSVParams object with the ability to set a timeout on a request.

func (*UpdateBusinessMetricValuesCSVParams) SetBusinessMetricToken added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVParams) SetBusinessMetricToken(businessMetricToken string)

SetBusinessMetricToken adds the businessMetricToken to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) SetContext added in v0.0.11

SetContext adds the context to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) SetCsv added in v0.0.11

SetCsv adds the csv to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) SetDefaults added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVParams) SetDefaults()

SetDefaults hydrates default values in the update business metric values c s v params (not the query body).

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

func (*UpdateBusinessMetricValuesCSVParams) SetHTTPClient added in v0.0.11

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

SetHTTPClient adds the HTTPClient to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) SetTimeout added in v0.0.11

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

SetTimeout adds the timeout to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) WithBusinessMetricToken added in v0.0.11

func (o *UpdateBusinessMetricValuesCSVParams) WithBusinessMetricToken(businessMetricToken string) *UpdateBusinessMetricValuesCSVParams

WithBusinessMetricToken adds the businessMetricToken to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) WithContext added in v0.0.11

WithContext adds the context to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) WithCsv added in v0.0.11

WithCsv adds the csv to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) WithDefaults added in v0.0.11

WithDefaults hydrates default values in the update business metric values c s v params (not the query body).

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

func (*UpdateBusinessMetricValuesCSVParams) WithHTTPClient added in v0.0.11

WithHTTPClient adds the HTTPClient to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) WithTimeout added in v0.0.11

WithTimeout adds the timeout to the update business metric values c s v params

func (*UpdateBusinessMetricValuesCSVParams) WriteToRequest added in v0.0.11

WriteToRequest writes these params to a swagger request

type UpdateBusinessMetricValuesCSVReader added in v0.0.11

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

UpdateBusinessMetricValuesCSVReader is a Reader for the UpdateBusinessMetricValuesCSV structure.

func (*UpdateBusinessMetricValuesCSVReader) ReadResponse added in v0.0.11

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

ReadResponse reads a server response into the received o.

type UpdateBusinessMetricValuesCSVUnprocessableEntity added in v0.0.11

type UpdateBusinessMetricValuesCSVUnprocessableEntity struct {
	Payload *models.Errors
}

UpdateBusinessMetricValuesCSVUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewUpdateBusinessMetricValuesCSVUnprocessableEntity added in v0.0.11

func NewUpdateBusinessMetricValuesCSVUnprocessableEntity() *UpdateBusinessMetricValuesCSVUnprocessableEntity

NewUpdateBusinessMetricValuesCSVUnprocessableEntity creates a UpdateBusinessMetricValuesCSVUnprocessableEntity with default headers values

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) Code added in v0.0.11

Code gets the status code for the update business metric values c s v unprocessable entity response

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) Error added in v0.0.11

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) GetPayload added in v0.0.11

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) IsClientError added in v0.0.11

IsClientError returns true when this update business metric values c s v unprocessable entity response has a 4xx status code

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) IsCode added in v0.0.11

IsCode returns true when this update business metric values c s v unprocessable entity response a status code equal to that given

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) IsRedirect added in v0.0.11

IsRedirect returns true when this update business metric values c s v unprocessable entity response has a 3xx status code

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) IsServerError added in v0.0.11

IsServerError returns true when this update business metric values c s v unprocessable entity response has a 5xx status code

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) IsSuccess added in v0.0.11

IsSuccess returns true when this update business metric values c s v unprocessable entity response has a 2xx status code

func (*UpdateBusinessMetricValuesCSVUnprocessableEntity) String added in v0.0.11

Jump to

Keyboard shortcuts

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