management

package
v0.0.0-...-6cc63a5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Package management provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.8.1 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewCreateExperimentRequest

func NewCreateExperimentRequest(server string, projectId int64, body CreateExperimentJSONRequestBody) (*http.Request, error)

NewCreateExperimentRequest calls the generic CreateExperiment builder with application/json body

func NewCreateExperimentRequestWithBody

func NewCreateExperimentRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)

NewCreateExperimentRequestWithBody generates requests for CreateExperiment with any type of body

func NewCreateProjectSettingsRequest

func NewCreateProjectSettingsRequest(server string, projectId int64, body CreateProjectSettingsJSONRequestBody) (*http.Request, error)

NewCreateProjectSettingsRequest calls the generic CreateProjectSettings builder with application/json body

func NewCreateProjectSettingsRequestWithBody

func NewCreateProjectSettingsRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectSettingsRequestWithBody generates requests for CreateProjectSettings with any type of body

func NewCreateSegmentRequest

func NewCreateSegmentRequest(server string, projectId int64, body CreateSegmentJSONRequestBody) (*http.Request, error)

NewCreateSegmentRequest calls the generic CreateSegment builder with application/json body

func NewCreateSegmentRequestWithBody

func NewCreateSegmentRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)

NewCreateSegmentRequestWithBody generates requests for CreateSegment with any type of body

func NewCreateSegmenterRequest

func NewCreateSegmenterRequest(server string, projectId int64, body CreateSegmenterJSONRequestBody) (*http.Request, error)

NewCreateSegmenterRequest calls the generic CreateSegmenter builder with application/json body

func NewCreateSegmenterRequestWithBody

func NewCreateSegmenterRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)

NewCreateSegmenterRequestWithBody generates requests for CreateSegmenter with any type of body

func NewCreateTreatmentRequest

func NewCreateTreatmentRequest(server string, projectId int64, body CreateTreatmentJSONRequestBody) (*http.Request, error)

NewCreateTreatmentRequest calls the generic CreateTreatment builder with application/json body

func NewCreateTreatmentRequestWithBody

func NewCreateTreatmentRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)

NewCreateTreatmentRequestWithBody generates requests for CreateTreatment with any type of body

func NewDeleteSegmentRequest

func NewDeleteSegmentRequest(server string, projectId int64, segmentId int64) (*http.Request, error)

NewDeleteSegmentRequest generates requests for DeleteSegment

func NewDeleteSegmenterRequest

func NewDeleteSegmenterRequest(server string, projectId int64, name string) (*http.Request, error)

NewDeleteSegmenterRequest generates requests for DeleteSegmenter

func NewDeleteTreatmentRequest

func NewDeleteTreatmentRequest(server string, projectId int64, treatmentId int64) (*http.Request, error)

NewDeleteTreatmentRequest generates requests for DeleteTreatment

func NewDisableExperimentRequest

func NewDisableExperimentRequest(server string, projectId int64, experimentId int64) (*http.Request, error)

NewDisableExperimentRequest generates requests for DisableExperiment

func NewEnableExperimentRequest

func NewEnableExperimentRequest(server string, projectId int64, experimentId int64) (*http.Request, error)

NewEnableExperimentRequest generates requests for EnableExperiment

func NewGetExperimentHistoryRequest

func NewGetExperimentHistoryRequest(server string, projectId int64, experimentId int64, version int64) (*http.Request, error)

NewGetExperimentHistoryRequest generates requests for GetExperimentHistory

func NewGetExperimentRequest

func NewGetExperimentRequest(server string, projectId int64, experimentId int64) (*http.Request, error)

NewGetExperimentRequest generates requests for GetExperiment

func NewGetProjectExperimentVariablesRequest

func NewGetProjectExperimentVariablesRequest(server string, projectId int64) (*http.Request, error)

NewGetProjectExperimentVariablesRequest generates requests for GetProjectExperimentVariables

func NewGetProjectSettingsRequest

func NewGetProjectSettingsRequest(server string, projectId int64) (*http.Request, error)

NewGetProjectSettingsRequest generates requests for GetProjectSettings

func NewGetSegmentHistoryRequest

func NewGetSegmentHistoryRequest(server string, projectId int64, segmentId int64, version int64) (*http.Request, error)

NewGetSegmentHistoryRequest generates requests for GetSegmentHistory

func NewGetSegmentRequest

func NewGetSegmentRequest(server string, projectId int64, segmentId int64) (*http.Request, error)

NewGetSegmentRequest generates requests for GetSegment

func NewGetSegmenterRequest

func NewGetSegmenterRequest(server string, projectId int64, name string) (*http.Request, error)

NewGetSegmenterRequest generates requests for GetSegmenter

func NewGetTreatmentHistoryRequest

func NewGetTreatmentHistoryRequest(server string, projectId int64, treatmentId int64, version int64) (*http.Request, error)

NewGetTreatmentHistoryRequest generates requests for GetTreatmentHistory

func NewGetTreatmentRequest

func NewGetTreatmentRequest(server string, projectId int64, treatmentId int64) (*http.Request, error)

NewGetTreatmentRequest generates requests for GetTreatment

func NewGetTreatmentServiceConfigRequest

func NewGetTreatmentServiceConfigRequest(server string) (*http.Request, error)

NewGetTreatmentServiceConfigRequest generates requests for GetTreatmentServiceConfig

func NewListExperimentHistoryRequest

func NewListExperimentHistoryRequest(server string, projectId int64, experimentId int64, params *ListExperimentHistoryParams) (*http.Request, error)

NewListExperimentHistoryRequest generates requests for ListExperimentHistory

func NewListExperimentsRequest

func NewListExperimentsRequest(server string, projectId int64, params *ListExperimentsParams) (*http.Request, error)

NewListExperimentsRequest generates requests for ListExperiments

func NewListProjectsRequest

func NewListProjectsRequest(server string) (*http.Request, error)

NewListProjectsRequest generates requests for ListProjects

func NewListSegmentHistoryRequest

func NewListSegmentHistoryRequest(server string, projectId int64, segmentId int64, params *ListSegmentHistoryParams) (*http.Request, error)

NewListSegmentHistoryRequest generates requests for ListSegmentHistory

func NewListSegmentersRequest

func NewListSegmentersRequest(server string, projectId int64, params *ListSegmentersParams) (*http.Request, error)

NewListSegmentersRequest generates requests for ListSegmenters

func NewListSegmentsRequest

func NewListSegmentsRequest(server string, projectId int64, params *ListSegmentsParams) (*http.Request, error)

NewListSegmentsRequest generates requests for ListSegments

func NewListTreatmentHistoryRequest

func NewListTreatmentHistoryRequest(server string, projectId int64, treatmentId int64, params *ListTreatmentHistoryParams) (*http.Request, error)

NewListTreatmentHistoryRequest generates requests for ListTreatmentHistory

func NewListTreatmentsRequest

func NewListTreatmentsRequest(server string, projectId int64, params *ListTreatmentsParams) (*http.Request, error)

NewListTreatmentsRequest generates requests for ListTreatments

func NewUpdateExperimentRequest

func NewUpdateExperimentRequest(server string, projectId int64, experimentId int64, body UpdateExperimentJSONRequestBody) (*http.Request, error)

NewUpdateExperimentRequest calls the generic UpdateExperiment builder with application/json body

func NewUpdateExperimentRequestWithBody

func NewUpdateExperimentRequestWithBody(server string, projectId int64, experimentId int64, contentType string, body io.Reader) (*http.Request, error)

NewUpdateExperimentRequestWithBody generates requests for UpdateExperiment with any type of body

func NewUpdateProjectSettingsRequest

func NewUpdateProjectSettingsRequest(server string, projectId int64, body UpdateProjectSettingsJSONRequestBody) (*http.Request, error)

NewUpdateProjectSettingsRequest calls the generic UpdateProjectSettings builder with application/json body

func NewUpdateProjectSettingsRequestWithBody

func NewUpdateProjectSettingsRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProjectSettingsRequestWithBody generates requests for UpdateProjectSettings with any type of body

func NewUpdateSegmentRequest

func NewUpdateSegmentRequest(server string, projectId int64, segmentId int64, body UpdateSegmentJSONRequestBody) (*http.Request, error)

NewUpdateSegmentRequest calls the generic UpdateSegment builder with application/json body

func NewUpdateSegmentRequestWithBody

func NewUpdateSegmentRequestWithBody(server string, projectId int64, segmentId int64, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSegmentRequestWithBody generates requests for UpdateSegment with any type of body

func NewUpdateSegmenterRequest

func NewUpdateSegmenterRequest(server string, projectId int64, name string, body UpdateSegmenterJSONRequestBody) (*http.Request, error)

NewUpdateSegmenterRequest calls the generic UpdateSegmenter builder with application/json body

func NewUpdateSegmenterRequestWithBody

func NewUpdateSegmenterRequestWithBody(server string, projectId int64, name string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSegmenterRequestWithBody generates requests for UpdateSegmenter with any type of body

func NewUpdateTreatmentRequest

func NewUpdateTreatmentRequest(server string, projectId int64, treatmentId int64, body UpdateTreatmentJSONRequestBody) (*http.Request, error)

NewUpdateTreatmentRequest calls the generic UpdateTreatment builder with application/json body

func NewUpdateTreatmentRequestWithBody

func NewUpdateTreatmentRequestWithBody(server string, projectId int64, treatmentId int64, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTreatmentRequestWithBody generates requests for UpdateTreatment with any type of body

func NewValidateEntityRequest

func NewValidateEntityRequest(server string, body ValidateEntityJSONRequestBody) (*http.Request, error)

NewValidateEntityRequest calls the generic ValidateEntity builder with application/json body

func NewValidateEntityRequestWithBody

func NewValidateEntityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewValidateEntityRequestWithBody generates requests for ValidateEntity with any type of body

Types

type BadRequest

type BadRequest externalRef0.Error

BadRequest defines model for BadRequest.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateExperiment

func (c *Client) CreateExperiment(ctx context.Context, projectId int64, body CreateExperimentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateExperimentWithBody

func (c *Client) CreateExperimentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProjectSettings

func (c *Client) CreateProjectSettings(ctx context.Context, projectId int64, body CreateProjectSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProjectSettingsWithBody

func (c *Client) CreateProjectSettingsWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSegment

func (c *Client) CreateSegment(ctx context.Context, projectId int64, body CreateSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSegmentWithBody

func (c *Client) CreateSegmentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSegmenter

func (c *Client) CreateSegmenter(ctx context.Context, projectId int64, body CreateSegmenterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSegmenterWithBody

func (c *Client) CreateSegmenterWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTreatment

func (c *Client) CreateTreatment(ctx context.Context, projectId int64, body CreateTreatmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTreatmentWithBody

func (c *Client) CreateTreatmentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSegment

func (c *Client) DeleteSegment(ctx context.Context, projectId int64, segmentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSegmenter

func (c *Client) DeleteSegmenter(ctx context.Context, projectId int64, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteTreatment

func (c *Client) DeleteTreatment(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DisableExperiment

func (c *Client) DisableExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) EnableExperiment

func (c *Client) EnableExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExperiment

func (c *Client) GetExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetExperimentHistory

func (c *Client) GetExperimentHistory(ctx context.Context, projectId int64, experimentId int64, version int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectExperimentVariables

func (c *Client) GetProjectExperimentVariables(ctx context.Context, projectId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectSettings

func (c *Client) GetProjectSettings(ctx context.Context, projectId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSegment

func (c *Client) GetSegment(ctx context.Context, projectId int64, segmentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSegmentHistory

func (c *Client) GetSegmentHistory(ctx context.Context, projectId int64, segmentId int64, version int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSegmenter

func (c *Client) GetSegmenter(ctx context.Context, projectId int64, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTreatment

func (c *Client) GetTreatment(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTreatmentHistory

func (c *Client) GetTreatmentHistory(ctx context.Context, projectId int64, treatmentId int64, version int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTreatmentServiceConfig

func (c *Client) GetTreatmentServiceConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListExperimentHistory

func (c *Client) ListExperimentHistory(ctx context.Context, projectId int64, experimentId int64, params *ListExperimentHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListExperiments

func (c *Client) ListExperiments(ctx context.Context, projectId int64, params *ListExperimentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSegmentHistory

func (c *Client) ListSegmentHistory(ctx context.Context, projectId int64, segmentId int64, params *ListSegmentHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSegmenters

func (c *Client) ListSegmenters(ctx context.Context, projectId int64, params *ListSegmentersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSegments

func (c *Client) ListSegments(ctx context.Context, projectId int64, params *ListSegmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListTreatmentHistory

func (c *Client) ListTreatmentHistory(ctx context.Context, projectId int64, treatmentId int64, params *ListTreatmentHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListTreatments

func (c *Client) ListTreatments(ctx context.Context, projectId int64, params *ListTreatmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateExperiment

func (c *Client) UpdateExperiment(ctx context.Context, projectId int64, experimentId int64, body UpdateExperimentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateExperimentWithBody

func (c *Client) UpdateExperimentWithBody(ctx context.Context, projectId int64, experimentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProjectSettings

func (c *Client) UpdateProjectSettings(ctx context.Context, projectId int64, body UpdateProjectSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProjectSettingsWithBody

func (c *Client) UpdateProjectSettingsWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSegment

func (c *Client) UpdateSegment(ctx context.Context, projectId int64, segmentId int64, body UpdateSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSegmentWithBody

func (c *Client) UpdateSegmentWithBody(ctx context.Context, projectId int64, segmentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSegmenter

func (c *Client) UpdateSegmenter(ctx context.Context, projectId int64, name string, body UpdateSegmenterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSegmenterWithBody

func (c *Client) UpdateSegmenterWithBody(ctx context.Context, projectId int64, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTreatment

func (c *Client) UpdateTreatment(ctx context.Context, projectId int64, treatmentId int64, body UpdateTreatmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTreatmentWithBody

func (c *Client) UpdateTreatmentWithBody(ctx context.Context, projectId int64, treatmentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ValidateEntity

func (c *Client) ValidateEntity(ctx context.Context, body ValidateEntityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ValidateEntityWithBody

func (c *Client) ValidateEntityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListProjects request
	ListProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectExperimentVariables request
	GetProjectExperimentVariables(ctx context.Context, projectId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListExperiments request
	ListExperiments(ctx context.Context, projectId int64, params *ListExperimentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateExperiment request  with any body
	CreateExperimentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateExperiment(ctx context.Context, projectId int64, body CreateExperimentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExperiment request
	GetExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateExperiment request  with any body
	UpdateExperimentWithBody(ctx context.Context, projectId int64, experimentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateExperiment(ctx context.Context, projectId int64, experimentId int64, body UpdateExperimentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableExperiment request
	DisableExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnableExperiment request
	EnableExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListExperimentHistory request
	ListExperimentHistory(ctx context.Context, projectId int64, experimentId int64, params *ListExperimentHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExperimentHistory request
	GetExperimentHistory(ctx context.Context, projectId int64, experimentId int64, version int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSegmenters request
	ListSegmenters(ctx context.Context, projectId int64, params *ListSegmentersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSegmenter request  with any body
	CreateSegmenterWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSegmenter(ctx context.Context, projectId int64, body CreateSegmenterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSegmenter request
	DeleteSegmenter(ctx context.Context, projectId int64, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSegmenter request
	GetSegmenter(ctx context.Context, projectId int64, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSegmenter request  with any body
	UpdateSegmenterWithBody(ctx context.Context, projectId int64, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSegmenter(ctx context.Context, projectId int64, name string, body UpdateSegmenterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSegments request
	ListSegments(ctx context.Context, projectId int64, params *ListSegmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSegment request  with any body
	CreateSegmentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSegment(ctx context.Context, projectId int64, body CreateSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSegment request
	DeleteSegment(ctx context.Context, projectId int64, segmentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSegment request
	GetSegment(ctx context.Context, projectId int64, segmentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSegment request  with any body
	UpdateSegmentWithBody(ctx context.Context, projectId int64, segmentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSegment(ctx context.Context, projectId int64, segmentId int64, body UpdateSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSegmentHistory request
	ListSegmentHistory(ctx context.Context, projectId int64, segmentId int64, params *ListSegmentHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSegmentHistory request
	GetSegmentHistory(ctx context.Context, projectId int64, segmentId int64, version int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectSettings request
	GetProjectSettings(ctx context.Context, projectId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectSettings request  with any body
	CreateProjectSettingsWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateProjectSettings(ctx context.Context, projectId int64, body CreateProjectSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProjectSettings request  with any body
	UpdateProjectSettingsWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateProjectSettings(ctx context.Context, projectId int64, body UpdateProjectSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTreatments request
	ListTreatments(ctx context.Context, projectId int64, params *ListTreatmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTreatment request  with any body
	CreateTreatmentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateTreatment(ctx context.Context, projectId int64, body CreateTreatmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTreatment request
	DeleteTreatment(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTreatment request
	GetTreatment(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTreatment request  with any body
	UpdateTreatmentWithBody(ctx context.Context, projectId int64, treatmentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateTreatment(ctx context.Context, projectId int64, treatmentId int64, body UpdateTreatmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTreatmentHistory request
	ListTreatmentHistory(ctx context.Context, projectId int64, treatmentId int64, params *ListTreatmentHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTreatmentHistory request
	GetTreatmentHistory(ctx context.Context, projectId int64, treatmentId int64, version int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTreatmentServiceConfig request
	GetTreatmentServiceConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ValidateEntity request  with any body
	ValidateEntityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ValidateEntity(ctx context.Context, body ValidateEntityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateExperimentWithBodyWithResponse

func (c *ClientWithResponses) CreateExperimentWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExperimentResponse, error)

CreateExperimentWithBodyWithResponse request with arbitrary body returning *CreateExperimentResponse

func (*ClientWithResponses) CreateExperimentWithResponse

func (c *ClientWithResponses) CreateExperimentWithResponse(ctx context.Context, projectId int64, body CreateExperimentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExperimentResponse, error)

func (*ClientWithResponses) CreateProjectSettingsWithBodyWithResponse

func (c *ClientWithResponses) CreateProjectSettingsWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectSettingsResponse, error)

CreateProjectSettingsWithBodyWithResponse request with arbitrary body returning *CreateProjectSettingsResponse

func (*ClientWithResponses) CreateProjectSettingsWithResponse

func (c *ClientWithResponses) CreateProjectSettingsWithResponse(ctx context.Context, projectId int64, body CreateProjectSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectSettingsResponse, error)

func (*ClientWithResponses) CreateSegmentWithBodyWithResponse

func (c *ClientWithResponses) CreateSegmentWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSegmentResponse, error)

CreateSegmentWithBodyWithResponse request with arbitrary body returning *CreateSegmentResponse

func (*ClientWithResponses) CreateSegmentWithResponse

func (c *ClientWithResponses) CreateSegmentWithResponse(ctx context.Context, projectId int64, body CreateSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSegmentResponse, error)

func (*ClientWithResponses) CreateSegmenterWithBodyWithResponse

func (c *ClientWithResponses) CreateSegmenterWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSegmenterResponse, error)

CreateSegmenterWithBodyWithResponse request with arbitrary body returning *CreateSegmenterResponse

func (*ClientWithResponses) CreateSegmenterWithResponse

func (c *ClientWithResponses) CreateSegmenterWithResponse(ctx context.Context, projectId int64, body CreateSegmenterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSegmenterResponse, error)

func (*ClientWithResponses) CreateTreatmentWithBodyWithResponse

func (c *ClientWithResponses) CreateTreatmentWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTreatmentResponse, error)

CreateTreatmentWithBodyWithResponse request with arbitrary body returning *CreateTreatmentResponse

func (*ClientWithResponses) CreateTreatmentWithResponse

func (c *ClientWithResponses) CreateTreatmentWithResponse(ctx context.Context, projectId int64, body CreateTreatmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTreatmentResponse, error)

func (*ClientWithResponses) DeleteSegmentWithResponse

func (c *ClientWithResponses) DeleteSegmentWithResponse(ctx context.Context, projectId int64, segmentId int64, reqEditors ...RequestEditorFn) (*DeleteSegmentResponse, error)

DeleteSegmentWithResponse request returning *DeleteSegmentResponse

func (*ClientWithResponses) DeleteSegmenterWithResponse

func (c *ClientWithResponses) DeleteSegmenterWithResponse(ctx context.Context, projectId int64, name string, reqEditors ...RequestEditorFn) (*DeleteSegmenterResponse, error)

DeleteSegmenterWithResponse request returning *DeleteSegmenterResponse

func (*ClientWithResponses) DeleteTreatmentWithResponse

func (c *ClientWithResponses) DeleteTreatmentWithResponse(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...RequestEditorFn) (*DeleteTreatmentResponse, error)

DeleteTreatmentWithResponse request returning *DeleteTreatmentResponse

func (*ClientWithResponses) DisableExperimentWithResponse

func (c *ClientWithResponses) DisableExperimentWithResponse(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*DisableExperimentResponse, error)

DisableExperimentWithResponse request returning *DisableExperimentResponse

func (*ClientWithResponses) EnableExperimentWithResponse

func (c *ClientWithResponses) EnableExperimentWithResponse(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*EnableExperimentResponse, error)

EnableExperimentWithResponse request returning *EnableExperimentResponse

func (*ClientWithResponses) GetExperimentHistoryWithResponse

func (c *ClientWithResponses) GetExperimentHistoryWithResponse(ctx context.Context, projectId int64, experimentId int64, version int64, reqEditors ...RequestEditorFn) (*GetExperimentHistoryResponse, error)

GetExperimentHistoryWithResponse request returning *GetExperimentHistoryResponse

func (*ClientWithResponses) GetExperimentWithResponse

func (c *ClientWithResponses) GetExperimentWithResponse(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*GetExperimentResponse, error)

GetExperimentWithResponse request returning *GetExperimentResponse

func (*ClientWithResponses) GetProjectExperimentVariablesWithResponse

func (c *ClientWithResponses) GetProjectExperimentVariablesWithResponse(ctx context.Context, projectId int64, reqEditors ...RequestEditorFn) (*GetProjectExperimentVariablesResponse, error)

GetProjectExperimentVariablesWithResponse request returning *GetProjectExperimentVariablesResponse

func (*ClientWithResponses) GetProjectSettingsWithResponse

func (c *ClientWithResponses) GetProjectSettingsWithResponse(ctx context.Context, projectId int64, reqEditors ...RequestEditorFn) (*GetProjectSettingsResponse, error)

GetProjectSettingsWithResponse request returning *GetProjectSettingsResponse

func (*ClientWithResponses) GetSegmentHistoryWithResponse

func (c *ClientWithResponses) GetSegmentHistoryWithResponse(ctx context.Context, projectId int64, segmentId int64, version int64, reqEditors ...RequestEditorFn) (*GetSegmentHistoryResponse, error)

GetSegmentHistoryWithResponse request returning *GetSegmentHistoryResponse

func (*ClientWithResponses) GetSegmentWithResponse

func (c *ClientWithResponses) GetSegmentWithResponse(ctx context.Context, projectId int64, segmentId int64, reqEditors ...RequestEditorFn) (*GetSegmentResponse, error)

GetSegmentWithResponse request returning *GetSegmentResponse

func (*ClientWithResponses) GetSegmenterWithResponse

func (c *ClientWithResponses) GetSegmenterWithResponse(ctx context.Context, projectId int64, name string, reqEditors ...RequestEditorFn) (*GetSegmenterResponse, error)

GetSegmenterWithResponse request returning *GetSegmenterResponse

func (*ClientWithResponses) GetTreatmentHistoryWithResponse

func (c *ClientWithResponses) GetTreatmentHistoryWithResponse(ctx context.Context, projectId int64, treatmentId int64, version int64, reqEditors ...RequestEditorFn) (*GetTreatmentHistoryResponse, error)

GetTreatmentHistoryWithResponse request returning *GetTreatmentHistoryResponse

func (*ClientWithResponses) GetTreatmentServiceConfigWithResponse

func (c *ClientWithResponses) GetTreatmentServiceConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTreatmentServiceConfigResponse, error)

GetTreatmentServiceConfigWithResponse request returning *GetTreatmentServiceConfigResponse

func (*ClientWithResponses) GetTreatmentWithResponse

func (c *ClientWithResponses) GetTreatmentWithResponse(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...RequestEditorFn) (*GetTreatmentResponse, error)

GetTreatmentWithResponse request returning *GetTreatmentResponse

func (*ClientWithResponses) ListExperimentHistoryWithResponse

func (c *ClientWithResponses) ListExperimentHistoryWithResponse(ctx context.Context, projectId int64, experimentId int64, params *ListExperimentHistoryParams, reqEditors ...RequestEditorFn) (*ListExperimentHistoryResponse, error)

ListExperimentHistoryWithResponse request returning *ListExperimentHistoryResponse

func (*ClientWithResponses) ListExperimentsWithResponse

func (c *ClientWithResponses) ListExperimentsWithResponse(ctx context.Context, projectId int64, params *ListExperimentsParams, reqEditors ...RequestEditorFn) (*ListExperimentsResponse, error)

ListExperimentsWithResponse request returning *ListExperimentsResponse

func (*ClientWithResponses) ListProjectsWithResponse

func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error)

ListProjectsWithResponse request returning *ListProjectsResponse

func (*ClientWithResponses) ListSegmentHistoryWithResponse

func (c *ClientWithResponses) ListSegmentHistoryWithResponse(ctx context.Context, projectId int64, segmentId int64, params *ListSegmentHistoryParams, reqEditors ...RequestEditorFn) (*ListSegmentHistoryResponse, error)

ListSegmentHistoryWithResponse request returning *ListSegmentHistoryResponse

func (*ClientWithResponses) ListSegmentersWithResponse

func (c *ClientWithResponses) ListSegmentersWithResponse(ctx context.Context, projectId int64, params *ListSegmentersParams, reqEditors ...RequestEditorFn) (*ListSegmentersResponse, error)

ListSegmentersWithResponse request returning *ListSegmentersResponse

func (*ClientWithResponses) ListSegmentsWithResponse

func (c *ClientWithResponses) ListSegmentsWithResponse(ctx context.Context, projectId int64, params *ListSegmentsParams, reqEditors ...RequestEditorFn) (*ListSegmentsResponse, error)

ListSegmentsWithResponse request returning *ListSegmentsResponse

func (*ClientWithResponses) ListTreatmentHistoryWithResponse

func (c *ClientWithResponses) ListTreatmentHistoryWithResponse(ctx context.Context, projectId int64, treatmentId int64, params *ListTreatmentHistoryParams, reqEditors ...RequestEditorFn) (*ListTreatmentHistoryResponse, error)

ListTreatmentHistoryWithResponse request returning *ListTreatmentHistoryResponse

func (*ClientWithResponses) ListTreatmentsWithResponse

func (c *ClientWithResponses) ListTreatmentsWithResponse(ctx context.Context, projectId int64, params *ListTreatmentsParams, reqEditors ...RequestEditorFn) (*ListTreatmentsResponse, error)

ListTreatmentsWithResponse request returning *ListTreatmentsResponse

func (*ClientWithResponses) UpdateExperimentWithBodyWithResponse

func (c *ClientWithResponses) UpdateExperimentWithBodyWithResponse(ctx context.Context, projectId int64, experimentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExperimentResponse, error)

UpdateExperimentWithBodyWithResponse request with arbitrary body returning *UpdateExperimentResponse

func (*ClientWithResponses) UpdateExperimentWithResponse

func (c *ClientWithResponses) UpdateExperimentWithResponse(ctx context.Context, projectId int64, experimentId int64, body UpdateExperimentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExperimentResponse, error)

func (*ClientWithResponses) UpdateProjectSettingsWithBodyWithResponse

func (c *ClientWithResponses) UpdateProjectSettingsWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectSettingsResponse, error)

UpdateProjectSettingsWithBodyWithResponse request with arbitrary body returning *UpdateProjectSettingsResponse

func (*ClientWithResponses) UpdateProjectSettingsWithResponse

func (c *ClientWithResponses) UpdateProjectSettingsWithResponse(ctx context.Context, projectId int64, body UpdateProjectSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectSettingsResponse, error)

func (*ClientWithResponses) UpdateSegmentWithBodyWithResponse

func (c *ClientWithResponses) UpdateSegmentWithBodyWithResponse(ctx context.Context, projectId int64, segmentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSegmentResponse, error)

UpdateSegmentWithBodyWithResponse request with arbitrary body returning *UpdateSegmentResponse

func (*ClientWithResponses) UpdateSegmentWithResponse

func (c *ClientWithResponses) UpdateSegmentWithResponse(ctx context.Context, projectId int64, segmentId int64, body UpdateSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSegmentResponse, error)

func (*ClientWithResponses) UpdateSegmenterWithBodyWithResponse

func (c *ClientWithResponses) UpdateSegmenterWithBodyWithResponse(ctx context.Context, projectId int64, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSegmenterResponse, error)

UpdateSegmenterWithBodyWithResponse request with arbitrary body returning *UpdateSegmenterResponse

func (*ClientWithResponses) UpdateSegmenterWithResponse

func (c *ClientWithResponses) UpdateSegmenterWithResponse(ctx context.Context, projectId int64, name string, body UpdateSegmenterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSegmenterResponse, error)

func (*ClientWithResponses) UpdateTreatmentWithBodyWithResponse

func (c *ClientWithResponses) UpdateTreatmentWithBodyWithResponse(ctx context.Context, projectId int64, treatmentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTreatmentResponse, error)

UpdateTreatmentWithBodyWithResponse request with arbitrary body returning *UpdateTreatmentResponse

func (*ClientWithResponses) UpdateTreatmentWithResponse

func (c *ClientWithResponses) UpdateTreatmentWithResponse(ctx context.Context, projectId int64, treatmentId int64, body UpdateTreatmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTreatmentResponse, error)

func (*ClientWithResponses) ValidateEntityWithBodyWithResponse

func (c *ClientWithResponses) ValidateEntityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateEntityResponse, error)

ValidateEntityWithBodyWithResponse request with arbitrary body returning *ValidateEntityResponse

func (*ClientWithResponses) ValidateEntityWithResponse

func (c *ClientWithResponses) ValidateEntityWithResponse(ctx context.Context, body ValidateEntityJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateEntityResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListProjects request
	ListProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error)

	// GetProjectExperimentVariables request
	GetProjectExperimentVariablesWithResponse(ctx context.Context, projectId int64, reqEditors ...RequestEditorFn) (*GetProjectExperimentVariablesResponse, error)

	// ListExperiments request
	ListExperimentsWithResponse(ctx context.Context, projectId int64, params *ListExperimentsParams, reqEditors ...RequestEditorFn) (*ListExperimentsResponse, error)

	// CreateExperiment request  with any body
	CreateExperimentWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExperimentResponse, error)

	CreateExperimentWithResponse(ctx context.Context, projectId int64, body CreateExperimentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExperimentResponse, error)

	// GetExperiment request
	GetExperimentWithResponse(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*GetExperimentResponse, error)

	// UpdateExperiment request  with any body
	UpdateExperimentWithBodyWithResponse(ctx context.Context, projectId int64, experimentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExperimentResponse, error)

	UpdateExperimentWithResponse(ctx context.Context, projectId int64, experimentId int64, body UpdateExperimentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExperimentResponse, error)

	// DisableExperiment request
	DisableExperimentWithResponse(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*DisableExperimentResponse, error)

	// EnableExperiment request
	EnableExperimentWithResponse(ctx context.Context, projectId int64, experimentId int64, reqEditors ...RequestEditorFn) (*EnableExperimentResponse, error)

	// ListExperimentHistory request
	ListExperimentHistoryWithResponse(ctx context.Context, projectId int64, experimentId int64, params *ListExperimentHistoryParams, reqEditors ...RequestEditorFn) (*ListExperimentHistoryResponse, error)

	// GetExperimentHistory request
	GetExperimentHistoryWithResponse(ctx context.Context, projectId int64, experimentId int64, version int64, reqEditors ...RequestEditorFn) (*GetExperimentHistoryResponse, error)

	// ListSegmenters request
	ListSegmentersWithResponse(ctx context.Context, projectId int64, params *ListSegmentersParams, reqEditors ...RequestEditorFn) (*ListSegmentersResponse, error)

	// CreateSegmenter request  with any body
	CreateSegmenterWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSegmenterResponse, error)

	CreateSegmenterWithResponse(ctx context.Context, projectId int64, body CreateSegmenterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSegmenterResponse, error)

	// DeleteSegmenter request
	DeleteSegmenterWithResponse(ctx context.Context, projectId int64, name string, reqEditors ...RequestEditorFn) (*DeleteSegmenterResponse, error)

	// GetSegmenter request
	GetSegmenterWithResponse(ctx context.Context, projectId int64, name string, reqEditors ...RequestEditorFn) (*GetSegmenterResponse, error)

	// UpdateSegmenter request  with any body
	UpdateSegmenterWithBodyWithResponse(ctx context.Context, projectId int64, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSegmenterResponse, error)

	UpdateSegmenterWithResponse(ctx context.Context, projectId int64, name string, body UpdateSegmenterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSegmenterResponse, error)

	// ListSegments request
	ListSegmentsWithResponse(ctx context.Context, projectId int64, params *ListSegmentsParams, reqEditors ...RequestEditorFn) (*ListSegmentsResponse, error)

	// CreateSegment request  with any body
	CreateSegmentWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSegmentResponse, error)

	CreateSegmentWithResponse(ctx context.Context, projectId int64, body CreateSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSegmentResponse, error)

	// DeleteSegment request
	DeleteSegmentWithResponse(ctx context.Context, projectId int64, segmentId int64, reqEditors ...RequestEditorFn) (*DeleteSegmentResponse, error)

	// GetSegment request
	GetSegmentWithResponse(ctx context.Context, projectId int64, segmentId int64, reqEditors ...RequestEditorFn) (*GetSegmentResponse, error)

	// UpdateSegment request  with any body
	UpdateSegmentWithBodyWithResponse(ctx context.Context, projectId int64, segmentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSegmentResponse, error)

	UpdateSegmentWithResponse(ctx context.Context, projectId int64, segmentId int64, body UpdateSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSegmentResponse, error)

	// ListSegmentHistory request
	ListSegmentHistoryWithResponse(ctx context.Context, projectId int64, segmentId int64, params *ListSegmentHistoryParams, reqEditors ...RequestEditorFn) (*ListSegmentHistoryResponse, error)

	// GetSegmentHistory request
	GetSegmentHistoryWithResponse(ctx context.Context, projectId int64, segmentId int64, version int64, reqEditors ...RequestEditorFn) (*GetSegmentHistoryResponse, error)

	// GetProjectSettings request
	GetProjectSettingsWithResponse(ctx context.Context, projectId int64, reqEditors ...RequestEditorFn) (*GetProjectSettingsResponse, error)

	// CreateProjectSettings request  with any body
	CreateProjectSettingsWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectSettingsResponse, error)

	CreateProjectSettingsWithResponse(ctx context.Context, projectId int64, body CreateProjectSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectSettingsResponse, error)

	// UpdateProjectSettings request  with any body
	UpdateProjectSettingsWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectSettingsResponse, error)

	UpdateProjectSettingsWithResponse(ctx context.Context, projectId int64, body UpdateProjectSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectSettingsResponse, error)

	// ListTreatments request
	ListTreatmentsWithResponse(ctx context.Context, projectId int64, params *ListTreatmentsParams, reqEditors ...RequestEditorFn) (*ListTreatmentsResponse, error)

	// CreateTreatment request  with any body
	CreateTreatmentWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTreatmentResponse, error)

	CreateTreatmentWithResponse(ctx context.Context, projectId int64, body CreateTreatmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTreatmentResponse, error)

	// DeleteTreatment request
	DeleteTreatmentWithResponse(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...RequestEditorFn) (*DeleteTreatmentResponse, error)

	// GetTreatment request
	GetTreatmentWithResponse(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...RequestEditorFn) (*GetTreatmentResponse, error)

	// UpdateTreatment request  with any body
	UpdateTreatmentWithBodyWithResponse(ctx context.Context, projectId int64, treatmentId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTreatmentResponse, error)

	UpdateTreatmentWithResponse(ctx context.Context, projectId int64, treatmentId int64, body UpdateTreatmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTreatmentResponse, error)

	// ListTreatmentHistory request
	ListTreatmentHistoryWithResponse(ctx context.Context, projectId int64, treatmentId int64, params *ListTreatmentHistoryParams, reqEditors ...RequestEditorFn) (*ListTreatmentHistoryResponse, error)

	// GetTreatmentHistory request
	GetTreatmentHistoryWithResponse(ctx context.Context, projectId int64, treatmentId int64, version int64, reqEditors ...RequestEditorFn) (*GetTreatmentHistoryResponse, error)

	// GetTreatmentServiceConfig request
	GetTreatmentServiceConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTreatmentServiceConfigResponse, error)

	// ValidateEntity request  with any body
	ValidateEntityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateEntityResponse, error)

	ValidateEntityWithResponse(ctx context.Context, body ValidateEntityJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateEntityResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateExperimentJSONRequestBody

type CreateExperimentJSONRequestBody CreateExperimentRequestBody

CreateExperimentJSONRequestBody defines body for CreateExperiment for application/json ContentType.

type CreateExperimentRequestBody

type CreateExperimentRequestBody struct {
	Description *string                            `json:"description"`
	EndTime     time.Time                          `json:"end_time"`
	Interval    *int32                             `json:"interval"`
	Name        string                             `json:"name"`
	Segment     externalRef0.ExperimentSegment     `json:"segment"`
	StartTime   time.Time                          `json:"start_time"`
	Status      externalRef0.ExperimentStatus      `json:"status"`
	Tier        *externalRef0.ExperimentTier       `json:"tier,omitempty"`
	Treatments  []externalRef0.ExperimentTreatment `json:"treatments"`
	Type        externalRef0.ExperimentType        `json:"type"`
	UpdatedBy   *string                            `json:"updated_by,omitempty"`
}

CreateExperimentRequestBody defines model for CreateExperimentRequestBody.

type CreateExperimentResponse

type CreateExperimentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Experiment `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseCreateExperimentResponse

func ParseCreateExperimentResponse(rsp *http.Response) (*CreateExperimentResponse, error)

ParseCreateExperimentResponse parses an HTTP response from a CreateExperimentWithResponse call

func (CreateExperimentResponse) Status

func (r CreateExperimentResponse) Status() string

Status returns HTTPResponse.Status

func (CreateExperimentResponse) StatusCode

func (r CreateExperimentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateExperimentSuccess

type CreateExperimentSuccess struct {
	Data externalRef0.Experiment `json:"data"`
}

CreateExperimentSuccess defines model for CreateExperimentSuccess.

type CreateProjectSettingsJSONRequestBody

type CreateProjectSettingsJSONRequestBody CreateProjectSettingsRequestBody

CreateProjectSettingsJSONRequestBody defines body for CreateProjectSettings for application/json ContentType.

type CreateProjectSettingsRequestBody

type CreateProjectSettingsRequestBody struct {
	EnableS2idClustering *bool                          `json:"enable_s2id_clustering,omitempty"`
	RandomizationKey     string                         `json:"randomization_key"`
	Segmenters           externalRef0.ProjectSegmenters `json:"segmenters"`

	// Object containing information to define a valid treatment schema
	TreatmentSchema *externalRef0.TreatmentSchema `json:"treatment_schema,omitempty"`
	ValidationUrl   *string                       `json:"validation_url,omitempty"`
}

CreateProjectSettingsRequestBody defines model for CreateProjectSettingsRequestBody.

type CreateProjectSettingsResponse

type CreateProjectSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.ProjectSettings `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseCreateProjectSettingsResponse

func ParseCreateProjectSettingsResponse(rsp *http.Response) (*CreateProjectSettingsResponse, error)

ParseCreateProjectSettingsResponse parses an HTTP response from a CreateProjectSettingsWithResponse call

func (CreateProjectSettingsResponse) Status

Status returns HTTPResponse.Status

func (CreateProjectSettingsResponse) StatusCode

func (r CreateProjectSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProjectSettingsSuccess

type CreateProjectSettingsSuccess struct {
	Data externalRef0.ProjectSettings `json:"data"`
}

CreateProjectSettingsSuccess defines model for CreateProjectSettingsSuccess.

type CreateSegmentJSONRequestBody

type CreateSegmentJSONRequestBody CreateSegmentRequestBody

CreateSegmentJSONRequestBody defines body for CreateSegment for application/json ContentType.

type CreateSegmentRequestBody

type CreateSegmentRequestBody struct {
	Name      string                         `json:"name"`
	Segment   externalRef0.ExperimentSegment `json:"segment"`
	UpdatedBy *string                        `json:"updated_by,omitempty"`
}

CreateSegmentRequestBody defines model for CreateSegmentRequestBody.

type CreateSegmentResponse

type CreateSegmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Segment `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseCreateSegmentResponse

func ParseCreateSegmentResponse(rsp *http.Response) (*CreateSegmentResponse, error)

ParseCreateSegmentResponse parses an HTTP response from a CreateSegmentWithResponse call

func (CreateSegmentResponse) Status

func (r CreateSegmentResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSegmentResponse) StatusCode

func (r CreateSegmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSegmentSuccess

type CreateSegmentSuccess struct {
	Data externalRef0.Segment `json:"data"`
}

CreateSegmentSuccess defines model for CreateSegmentSuccess.

type CreateSegmenterJSONRequestBody

type CreateSegmenterJSONRequestBody CreateSegmenterRequestBody

CreateSegmenterJSONRequestBody defines body for CreateSegmenter for application/json ContentType.

type CreateSegmenterRequestBody

type CreateSegmenterRequestBody struct {
	Constraints *[]externalRef0.Constraint     `json:"constraints,omitempty"`
	Description *string                        `json:"description,omitempty"`
	MultiValued bool                           `json:"multi_valued"`
	Name        string                         `json:"name"`
	Options     *externalRef0.SegmenterOptions `json:"options,omitempty"`
	Required    bool                           `json:"required"`
	Type        externalRef0.SegmenterType     `json:"type"`
}

CreateSegmenterRequestBody defines model for CreateSegmenterRequestBody.

type CreateSegmenterResponse

type CreateSegmenterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Segmenter `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseCreateSegmenterResponse

func ParseCreateSegmenterResponse(rsp *http.Response) (*CreateSegmenterResponse, error)

ParseCreateSegmenterResponse parses an HTTP response from a CreateSegmenterWithResponse call

func (CreateSegmenterResponse) Status

func (r CreateSegmenterResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSegmenterResponse) StatusCode

func (r CreateSegmenterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSegmenterSuccess

type CreateSegmenterSuccess struct {
	Data externalRef0.Segmenter `json:"data"`
}

CreateSegmenterSuccess defines model for CreateSegmenterSuccess.

type CreateTreatmentJSONRequestBody

type CreateTreatmentJSONRequestBody CreateTreatmentRequestBody

CreateTreatmentJSONRequestBody defines body for CreateTreatment for application/json ContentType.

type CreateTreatmentRequestBody

type CreateTreatmentRequestBody struct {
	Configuration map[string]interface{} `json:"configuration"`
	Name          string                 `json:"name"`
	UpdatedBy     *string                `json:"updated_by,omitempty"`
}

CreateTreatmentRequestBody defines model for CreateTreatmentRequestBody.

type CreateTreatmentResponse

type CreateTreatmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Treatment `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseCreateTreatmentResponse

func ParseCreateTreatmentResponse(rsp *http.Response) (*CreateTreatmentResponse, error)

ParseCreateTreatmentResponse parses an HTTP response from a CreateTreatmentWithResponse call

func (CreateTreatmentResponse) Status

func (r CreateTreatmentResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTreatmentResponse) StatusCode

func (r CreateTreatmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTreatmentSuccess

type CreateTreatmentSuccess struct {
	Data externalRef0.Treatment `json:"data"`
}

CreateTreatmentSuccess defines model for CreateTreatmentSuccess.

type DeleteSegmentResponse

type DeleteSegmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id *int `json:"id,omitempty"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseDeleteSegmentResponse

func ParseDeleteSegmentResponse(rsp *http.Response) (*DeleteSegmentResponse, error)

ParseDeleteSegmentResponse parses an HTTP response from a DeleteSegmentWithResponse call

func (DeleteSegmentResponse) Status

func (r DeleteSegmentResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSegmentResponse) StatusCode

func (r DeleteSegmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSegmentSuccess

type DeleteSegmentSuccess struct {
	Id *int `json:"id,omitempty"`
}

DeleteSegmentSuccess defines model for DeleteSegmentSuccess.

type DeleteSegmenterResponse

type DeleteSegmenterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Name *string `json:"name,omitempty"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseDeleteSegmenterResponse

func ParseDeleteSegmenterResponse(rsp *http.Response) (*DeleteSegmenterResponse, error)

ParseDeleteSegmenterResponse parses an HTTP response from a DeleteSegmenterWithResponse call

func (DeleteSegmenterResponse) Status

func (r DeleteSegmenterResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSegmenterResponse) StatusCode

func (r DeleteSegmenterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSegmenterSuccess

type DeleteSegmenterSuccess struct {
	Name *string `json:"name,omitempty"`
}

DeleteSegmenterSuccess defines model for DeleteSegmenterSuccess.

type DeleteTreatmentResponse

type DeleteTreatmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id *int `json:"id,omitempty"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseDeleteTreatmentResponse

func ParseDeleteTreatmentResponse(rsp *http.Response) (*DeleteTreatmentResponse, error)

ParseDeleteTreatmentResponse parses an HTTP response from a DeleteTreatmentWithResponse call

func (DeleteTreatmentResponse) Status

func (r DeleteTreatmentResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteTreatmentResponse) StatusCode

func (r DeleteTreatmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTreatmentSuccess

type DeleteTreatmentSuccess struct {
	Id *int `json:"id,omitempty"`
}

DeleteTreatmentSuccess defines model for DeleteTreatmentSuccess.

type DisableExperimentResponse

type DisableExperimentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *externalRef0.Error
	JSON500      *externalRef0.Error
}

func ParseDisableExperimentResponse

func ParseDisableExperimentResponse(rsp *http.Response) (*DisableExperimentResponse, error)

ParseDisableExperimentResponse parses an HTTP response from a DisableExperimentWithResponse call

func (DisableExperimentResponse) Status

func (r DisableExperimentResponse) Status() string

Status returns HTTPResponse.Status

func (DisableExperimentResponse) StatusCode

func (r DisableExperimentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnableExperimentResponse

type EnableExperimentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *externalRef0.Error
	JSON500      *externalRef0.Error
}

func ParseEnableExperimentResponse

func ParseEnableExperimentResponse(rsp *http.Response) (*EnableExperimentResponse, error)

ParseEnableExperimentResponse parses an HTTP response from a EnableExperimentWithResponse call

func (EnableExperimentResponse) Status

func (r EnableExperimentResponse) Status() string

Status returns HTTPResponse.Status

func (EnableExperimentResponse) StatusCode

func (r EnableExperimentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExperimentHistoryResponse

type GetExperimentHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.ExperimentHistory `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetExperimentHistoryResponse

func ParseGetExperimentHistoryResponse(rsp *http.Response) (*GetExperimentHistoryResponse, error)

ParseGetExperimentHistoryResponse parses an HTTP response from a GetExperimentHistoryWithResponse call

func (GetExperimentHistoryResponse) Status

Status returns HTTPResponse.Status

func (GetExperimentHistoryResponse) StatusCode

func (r GetExperimentHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExperimentHistorySuccess

type GetExperimentHistorySuccess struct {
	Data externalRef0.ExperimentHistory `json:"data"`
}

GetExperimentHistorySuccess defines model for GetExperimentHistorySuccess.

type GetExperimentResponse

type GetExperimentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Experiment `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetExperimentResponse

func ParseGetExperimentResponse(rsp *http.Response) (*GetExperimentResponse, error)

ParseGetExperimentResponse parses an HTTP response from a GetExperimentWithResponse call

func (GetExperimentResponse) Status

func (r GetExperimentResponse) Status() string

Status returns HTTPResponse.Status

func (GetExperimentResponse) StatusCode

func (r GetExperimentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExperimentSuccess

type GetExperimentSuccess struct {
	Data externalRef0.Experiment `json:"data"`
}

GetExperimentSuccess defines model for GetExperimentSuccess.

type GetProjectExperimentVariablesResponse

type GetProjectExperimentVariablesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []string `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetProjectExperimentVariablesResponse

func ParseGetProjectExperimentVariablesResponse(rsp *http.Response) (*GetProjectExperimentVariablesResponse, error)

ParseGetProjectExperimentVariablesResponse parses an HTTP response from a GetProjectExperimentVariablesWithResponse call

func (GetProjectExperimentVariablesResponse) Status

Status returns HTTPResponse.Status

func (GetProjectExperimentVariablesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetProjectExperimentVariablesSuccess

type GetProjectExperimentVariablesSuccess struct {
	Data []string `json:"data"`
}

GetProjectExperimentVariablesSuccess defines model for GetProjectExperimentVariablesSuccess.

type GetProjectSettingsResponse

type GetProjectSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.ProjectSettings `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetProjectSettingsResponse

func ParseGetProjectSettingsResponse(rsp *http.Response) (*GetProjectSettingsResponse, error)

ParseGetProjectSettingsResponse parses an HTTP response from a GetProjectSettingsWithResponse call

func (GetProjectSettingsResponse) Status

Status returns HTTPResponse.Status

func (GetProjectSettingsResponse) StatusCode

func (r GetProjectSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectSettingsSuccess

type GetProjectSettingsSuccess struct {
	Data externalRef0.ProjectSettings `json:"data"`
}

GetProjectSettingsSuccess defines model for GetProjectSettingsSuccess.

type GetSegmentHistoryResponse

type GetSegmentHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.SegmentHistory `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetSegmentHistoryResponse

func ParseGetSegmentHistoryResponse(rsp *http.Response) (*GetSegmentHistoryResponse, error)

ParseGetSegmentHistoryResponse parses an HTTP response from a GetSegmentHistoryWithResponse call

func (GetSegmentHistoryResponse) Status

func (r GetSegmentHistoryResponse) Status() string

Status returns HTTPResponse.Status

func (GetSegmentHistoryResponse) StatusCode

func (r GetSegmentHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSegmentHistorySuccess

type GetSegmentHistorySuccess struct {
	Data externalRef0.SegmentHistory `json:"data"`
}

GetSegmentHistorySuccess defines model for GetSegmentHistorySuccess.

type GetSegmentResponse

type GetSegmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Segment `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetSegmentResponse

func ParseGetSegmentResponse(rsp *http.Response) (*GetSegmentResponse, error)

ParseGetSegmentResponse parses an HTTP response from a GetSegmentWithResponse call

func (GetSegmentResponse) Status

func (r GetSegmentResponse) Status() string

Status returns HTTPResponse.Status

func (GetSegmentResponse) StatusCode

func (r GetSegmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSegmentSuccess

type GetSegmentSuccess struct {
	Data externalRef0.Segment `json:"data"`
}

GetSegmentSuccess defines model for GetSegmentSuccess.

type GetSegmenterResponse

type GetSegmenterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Segmenter `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetSegmenterResponse

func ParseGetSegmenterResponse(rsp *http.Response) (*GetSegmenterResponse, error)

ParseGetSegmenterResponse parses an HTTP response from a GetSegmenterWithResponse call

func (GetSegmenterResponse) Status

func (r GetSegmenterResponse) Status() string

Status returns HTTPResponse.Status

func (GetSegmenterResponse) StatusCode

func (r GetSegmenterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSegmenterSuccess

type GetSegmenterSuccess struct {
	Data externalRef0.Segmenter `json:"data"`
}

GetSegmenterSuccess defines model for GetSegmenterSuccess.

type GetTreatmentHistoryResponse

type GetTreatmentHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.TreatmentHistory `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetTreatmentHistoryResponse

func ParseGetTreatmentHistoryResponse(rsp *http.Response) (*GetTreatmentHistoryResponse, error)

ParseGetTreatmentHistoryResponse parses an HTTP response from a GetTreatmentHistoryWithResponse call

func (GetTreatmentHistoryResponse) Status

Status returns HTTPResponse.Status

func (GetTreatmentHistoryResponse) StatusCode

func (r GetTreatmentHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTreatmentHistorySuccess

type GetTreatmentHistorySuccess struct {
	Data externalRef0.TreatmentHistory `json:"data"`
}

GetTreatmentHistorySuccess defines model for GetTreatmentHistorySuccess.

type GetTreatmentResponse

type GetTreatmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Treatment `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseGetTreatmentResponse

func ParseGetTreatmentResponse(rsp *http.Response) (*GetTreatmentResponse, error)

ParseGetTreatmentResponse parses an HTTP response from a GetTreatmentWithResponse call

func (GetTreatmentResponse) Status

func (r GetTreatmentResponse) Status() string

Status returns HTTPResponse.Status

func (GetTreatmentResponse) StatusCode

func (r GetTreatmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTreatmentServiceConfigResponse

type GetTreatmentServiceConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.TreatmentServiceConfig `json:"data"`
	}
	JSON500 *externalRef0.Error
}

func ParseGetTreatmentServiceConfigResponse

func ParseGetTreatmentServiceConfigResponse(rsp *http.Response) (*GetTreatmentServiceConfigResponse, error)

ParseGetTreatmentServiceConfigResponse parses an HTTP response from a GetTreatmentServiceConfigWithResponse call

func (GetTreatmentServiceConfigResponse) Status

Status returns HTTPResponse.Status

func (GetTreatmentServiceConfigResponse) StatusCode

func (r GetTreatmentServiceConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTreatmentServiceConfigSuccess

type GetTreatmentServiceConfigSuccess struct {
	Data externalRef0.TreatmentServiceConfig `json:"data"`
}

GetTreatmentServiceConfigSuccess defines model for GetTreatmentServiceConfigSuccess.

type GetTreatmentSuccess

type GetTreatmentSuccess struct {
	Data externalRef0.Treatment `json:"data"`
}

GetTreatmentSuccess defines model for GetTreatmentSuccess.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InternalServerError

type InternalServerError externalRef0.Error

InternalServerError defines model for InternalServerError.

type ListExperimentHistoryParams

type ListExperimentHistoryParams struct {

	// Result page number. It defaults to 1.
	Page *int32 `json:"page,omitempty"`

	// Number of items on each page. It defaults to 10.
	PageSize *int32 `json:"page_size,omitempty"`
}

ListExperimentHistoryParams defines parameters for ListExperimentHistory.

type ListExperimentHistoryResponse

type ListExperimentHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data   []externalRef0.ExperimentHistory `json:"data"`
		Paging *externalRef0.Paging             `json:"paging,omitempty"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseListExperimentHistoryResponse

func ParseListExperimentHistoryResponse(rsp *http.Response) (*ListExperimentHistoryResponse, error)

ParseListExperimentHistoryResponse parses an HTTP response from a ListExperimentHistoryWithResponse call

func (ListExperimentHistoryResponse) Status

Status returns HTTPResponse.Status

func (ListExperimentHistoryResponse) StatusCode

func (r ListExperimentHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListExperimentHistorySuccess

type ListExperimentHistorySuccess struct {
	Data   []externalRef0.ExperimentHistory `json:"data"`
	Paging *externalRef0.Paging             `json:"paging,omitempty"`
}

ListExperimentHistorySuccess defines model for ListExperimentHistorySuccess.

type ListExperimentsParams

type ListExperimentsParams struct {
	Status *externalRef0.ExperimentStatus `json:"status,omitempty"`

	// status_friendly is a combination of the status field, in conjunction with the duration,
	// that produces a user-friendly classification of the experiment statuses. When this parameter
	// is supplied, the status, start_time and end_time filters can also be set. However, the final
	// result would be an intersection of the application of each of these filters.
	StatusFriendly *[]externalRef0.ExperimentStatusFriendly `json:"status_friendly,omitempty"`

	// Used together with the start_time, to filter experiments that are at least partially running in the input range.
	EndTime   *time.Time                   `json:"end_time,omitempty"`
	Tier      *externalRef0.ExperimentTier `json:"tier,omitempty"`
	Type      *externalRef0.ExperimentType `json:"type,omitempty"`
	Name      *string                      `json:"name,omitempty"`
	UpdatedBy *string                      `json:"updated_by,omitempty"`

	// Search experiment name and description for a partial match of the search text
	Search *string `json:"search,omitempty"`

	// Result page number. It defaults to 1.
	Page *int32 `json:"page,omitempty"`

	// Number of items on each page. It defaults to 10.
	PageSize *int32 `json:"page_size,omitempty"`

	// Used together with the end_time, to filter experiments that are at least partially running in the input range.
	StartTime *time.Time              `json:"start_time,omitempty"`
	Segment   *map[string]interface{} `json:"segment,omitempty"`

	// controls whether or not weak segmenter matches (experiments where the segmenter is optional) should be returned
	IncludeWeakMatch *bool `json:"include_weak_match,omitempty"`

	// A selector to restrict the list of returned objects by their fields. If unset, all the fields will be returned.
	// Paginated responses will be returned if both or either of `page` and `page_size` parameters are provided.
	Fields *[]externalRef0.ExperimentField `json:"fields,omitempty"`
}

ListExperimentsParams defines parameters for ListExperiments.

type ListExperimentsResponse

type ListExperimentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data   []externalRef0.Experiment `json:"data"`
		Paging *externalRef0.Paging      `json:"paging,omitempty"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseListExperimentsResponse

func ParseListExperimentsResponse(rsp *http.Response) (*ListExperimentsResponse, error)

ParseListExperimentsResponse parses an HTTP response from a ListExperimentsWithResponse call

func (ListExperimentsResponse) Status

func (r ListExperimentsResponse) Status() string

Status returns HTTPResponse.Status

func (ListExperimentsResponse) StatusCode

func (r ListExperimentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListExperimentsSuccess

type ListExperimentsSuccess struct {
	Data   []externalRef0.Experiment `json:"data"`
	Paging *externalRef0.Paging      `json:"paging,omitempty"`
}

ListExperimentsSuccess defines model for ListExperimentsSuccess.

type ListProjectsResponse

type ListProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []externalRef0.Project `json:"data"`
	}
	JSON500 *externalRef0.Error
}

func ParseListProjectsResponse

func ParseListProjectsResponse(rsp *http.Response) (*ListProjectsResponse, error)

ParseListProjectsResponse parses an HTTP response from a ListProjectsWithResponse call

func (ListProjectsResponse) Status

func (r ListProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (ListProjectsResponse) StatusCode

func (r ListProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectsSuccess

type ListProjectsSuccess struct {
	Data []externalRef0.Project `json:"data"`
}

ListProjectsSuccess defines model for ListProjectsSuccess.

type ListSegmentHistoryParams

type ListSegmentHistoryParams struct {

	// Result page number. It defaults to 1.
	Page *int32 `json:"page,omitempty"`

	// Number of items on each page. It defaults to 10.
	PageSize *int32 `json:"page_size,omitempty"`
}

ListSegmentHistoryParams defines parameters for ListSegmentHistory.

type ListSegmentHistoryResponse

type ListSegmentHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data   []externalRef0.SegmentHistory `json:"data"`
		Paging *externalRef0.Paging          `json:"paging,omitempty"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseListSegmentHistoryResponse

func ParseListSegmentHistoryResponse(rsp *http.Response) (*ListSegmentHistoryResponse, error)

ParseListSegmentHistoryResponse parses an HTTP response from a ListSegmentHistoryWithResponse call

func (ListSegmentHistoryResponse) Status

Status returns HTTPResponse.Status

func (ListSegmentHistoryResponse) StatusCode

func (r ListSegmentHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSegmentHistorySuccess

type ListSegmentHistorySuccess struct {
	Data   []externalRef0.SegmentHistory `json:"data"`
	Paging *externalRef0.Paging          `json:"paging,omitempty"`
}

ListSegmentHistorySuccess defines model for ListSegmentHistorySuccess.

type ListSegmentersParams

type ListSegmentersParams struct {
	Scope  *externalRef0.SegmenterScope  `json:"scope,omitempty"`
	Status *externalRef0.SegmenterStatus `json:"status,omitempty"`

	// Search treatment name for a partial match of the search text
	Search *string `json:"search,omitempty"`
}

ListSegmentersParams defines parameters for ListSegmenters.

type ListSegmentersResponse

type ListSegmentersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []externalRef0.Segmenter `json:"data"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseListSegmentersResponse

func ParseListSegmentersResponse(rsp *http.Response) (*ListSegmentersResponse, error)

ParseListSegmentersResponse parses an HTTP response from a ListSegmentersWithResponse call

func (ListSegmentersResponse) Status

func (r ListSegmentersResponse) Status() string

Status returns HTTPResponse.Status

func (ListSegmentersResponse) StatusCode

func (r ListSegmentersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSegmentersSuccess

type ListSegmentersSuccess struct {
	Data []externalRef0.Segmenter `json:"data"`
}

ListSegmentersSuccess defines model for ListSegmentersSuccess.

type ListSegmentsParams

type ListSegmentsParams struct {
	UpdatedBy *string `json:"updated_by,omitempty"`

	// Search segment name for a partial match of the search text
	Search *string `json:"search,omitempty"`

	// Result page number. If empty and neither `fields` nor `page` is set, it defaults to 1.
	Page *int32 `json:"page,omitempty"`

	// Number of items on each page. If empty and neither `fields` nor `page_size` is set, it defaults to 10.
	PageSize *int32 `json:"page_size,omitempty"`

	// A selector to restrict the list of returned objects by their fields. If unset, all the fields will be returned.
	// Paginated responses will be returned if both or either of `page` and `page_size` parameters are provided.
	Fields *[]externalRef0.SegmentField `json:"fields,omitempty"`
}

ListSegmentsParams defines parameters for ListSegments.

type ListSegmentsResponse

type ListSegmentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data   []externalRef0.Segment `json:"data"`
		Paging *externalRef0.Paging   `json:"paging,omitempty"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseListSegmentsResponse

func ParseListSegmentsResponse(rsp *http.Response) (*ListSegmentsResponse, error)

ParseListSegmentsResponse parses an HTTP response from a ListSegmentsWithResponse call

func (ListSegmentsResponse) Status

func (r ListSegmentsResponse) Status() string

Status returns HTTPResponse.Status

func (ListSegmentsResponse) StatusCode

func (r ListSegmentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSegmentsSuccess

type ListSegmentsSuccess struct {
	Data   []externalRef0.Segment `json:"data"`
	Paging *externalRef0.Paging   `json:"paging,omitempty"`
}

ListSegmentsSuccess defines model for ListSegmentsSuccess.

type ListTreatmentHistoryParams

type ListTreatmentHistoryParams struct {

	// Result page number. If empty, it defaults to 1.
	Page *int32 `json:"page,omitempty"`

	// Number of items on each page. If empty, it defaults to 10.
	PageSize *int32 `json:"page_size,omitempty"`
}

ListTreatmentHistoryParams defines parameters for ListTreatmentHistory.

type ListTreatmentHistoryResponse

type ListTreatmentHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data   []externalRef0.TreatmentHistory `json:"data"`
		Paging *externalRef0.Paging            `json:"paging,omitempty"`
	}
	JSON404 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseListTreatmentHistoryResponse

func ParseListTreatmentHistoryResponse(rsp *http.Response) (*ListTreatmentHistoryResponse, error)

ParseListTreatmentHistoryResponse parses an HTTP response from a ListTreatmentHistoryWithResponse call

func (ListTreatmentHistoryResponse) Status

Status returns HTTPResponse.Status

func (ListTreatmentHistoryResponse) StatusCode

func (r ListTreatmentHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTreatmentHistorySuccess

type ListTreatmentHistorySuccess struct {
	Data   []externalRef0.TreatmentHistory `json:"data"`
	Paging *externalRef0.Paging            `json:"paging,omitempty"`
}

ListTreatmentHistorySuccess defines model for ListTreatmentHistorySuccess.

type ListTreatmentsParams

type ListTreatmentsParams struct {
	UpdatedBy *string `json:"updated_by,omitempty"`

	// Search treatment name for a partial match of the search text
	Search *string `json:"search,omitempty"`

	// Result page number. If empty and neither `fields` nor `page` is set, it defaults to 1.
	Page *int32 `json:"page,omitempty"`

	// Number of items on each page. If empty and neither `fields` nor `page_size` is set, it defaults to 10.
	PageSize *int32 `json:"page_size,omitempty"`

	// A selector to restrict the list of returned objects by their fields. If unset, all the fields will be returned.
	// Paginated responses will be returned if both or either of `page` and `page_size` parameters are provided.
	Fields *[]externalRef0.TreatmentField `json:"fields,omitempty"`
}

ListTreatmentsParams defines parameters for ListTreatments.

type ListTreatmentsResponse

type ListTreatmentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data   []externalRef0.Treatment `json:"data"`
		Paging *externalRef0.Paging     `json:"paging,omitempty"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseListTreatmentsResponse

func ParseListTreatmentsResponse(rsp *http.Response) (*ListTreatmentsResponse, error)

ParseListTreatmentsResponse parses an HTTP response from a ListTreatmentsWithResponse call

func (ListTreatmentsResponse) Status

func (r ListTreatmentsResponse) Status() string

Status returns HTTPResponse.Status

func (ListTreatmentsResponse) StatusCode

func (r ListTreatmentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTreatmentsSuccess

type ListTreatmentsSuccess struct {
	Data   []externalRef0.Treatment `json:"data"`
	Paging *externalRef0.Paging     `json:"paging,omitempty"`
}

ListTreatmentsSuccess defines model for ListTreatmentsSuccess.

type NotFound

type NotFound externalRef0.Error

NotFound defines model for NotFound.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdateExperimentJSONRequestBody

type UpdateExperimentJSONRequestBody UpdateExperimentRequestBody

UpdateExperimentJSONRequestBody defines body for UpdateExperiment for application/json ContentType.

type UpdateExperimentRequestBody

type UpdateExperimentRequestBody struct {
	Description *string                            `json:"description"`
	EndTime     time.Time                          `json:"end_time"`
	Interval    *int32                             `json:"interval"`
	Segment     externalRef0.ExperimentSegment     `json:"segment"`
	StartTime   time.Time                          `json:"start_time"`
	Status      externalRef0.ExperimentStatus      `json:"status"`
	Tier        *externalRef0.ExperimentTier       `json:"tier,omitempty"`
	Treatments  []externalRef0.ExperimentTreatment `json:"treatments"`
	Type        externalRef0.ExperimentType        `json:"type"`
	UpdatedBy   *string                            `json:"updated_by,omitempty"`
}

UpdateExperimentRequestBody defines model for UpdateExperimentRequestBody.

type UpdateExperimentResponse

type UpdateExperimentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Experiment `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseUpdateExperimentResponse

func ParseUpdateExperimentResponse(rsp *http.Response) (*UpdateExperimentResponse, error)

ParseUpdateExperimentResponse parses an HTTP response from a UpdateExperimentWithResponse call

func (UpdateExperimentResponse) Status

func (r UpdateExperimentResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateExperimentResponse) StatusCode

func (r UpdateExperimentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateExperimentSuccess

type UpdateExperimentSuccess struct {
	Data externalRef0.Experiment `json:"data"`
}

UpdateExperimentSuccess defines model for UpdateExperimentSuccess.

type UpdateProjectSettingsJSONRequestBody

type UpdateProjectSettingsJSONRequestBody UpdateProjectSettingsRequestBody

UpdateProjectSettingsJSONRequestBody defines body for UpdateProjectSettings for application/json ContentType.

type UpdateProjectSettingsRequestBody

type UpdateProjectSettingsRequestBody struct {
	EnableS2idClustering *bool                          `json:"enable_s2id_clustering,omitempty"`
	RandomizationKey     string                         `json:"randomization_key"`
	Segmenters           externalRef0.ProjectSegmenters `json:"segmenters"`

	// Object containing information to define a valid treatment schema
	TreatmentSchema *externalRef0.TreatmentSchema `json:"treatment_schema,omitempty"`
	ValidationUrl   *string                       `json:"validation_url,omitempty"`
}

UpdateProjectSettingsRequestBody defines model for UpdateProjectSettingsRequestBody.

type UpdateProjectSettingsResponse

type UpdateProjectSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.ProjectSettings `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseUpdateProjectSettingsResponse

func ParseUpdateProjectSettingsResponse(rsp *http.Response) (*UpdateProjectSettingsResponse, error)

ParseUpdateProjectSettingsResponse parses an HTTP response from a UpdateProjectSettingsWithResponse call

func (UpdateProjectSettingsResponse) Status

Status returns HTTPResponse.Status

func (UpdateProjectSettingsResponse) StatusCode

func (r UpdateProjectSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateProjectSettingsSuccess

type UpdateProjectSettingsSuccess struct {
	Data externalRef0.ProjectSettings `json:"data"`
}

UpdateProjectSettingsSuccess defines model for UpdateProjectSettingsSuccess.

type UpdateSegmentJSONRequestBody

type UpdateSegmentJSONRequestBody UpdateSegmentRequestBody

UpdateSegmentJSONRequestBody defines body for UpdateSegment for application/json ContentType.

type UpdateSegmentRequestBody

type UpdateSegmentRequestBody struct {
	Segment   externalRef0.ExperimentSegment `json:"segment"`
	UpdatedBy *string                        `json:"updated_by,omitempty"`
}

UpdateSegmentRequestBody defines model for UpdateSegmentRequestBody.

type UpdateSegmentResponse

type UpdateSegmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Segment `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseUpdateSegmentResponse

func ParseUpdateSegmentResponse(rsp *http.Response) (*UpdateSegmentResponse, error)

ParseUpdateSegmentResponse parses an HTTP response from a UpdateSegmentWithResponse call

func (UpdateSegmentResponse) Status

func (r UpdateSegmentResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateSegmentResponse) StatusCode

func (r UpdateSegmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSegmentSuccess

type UpdateSegmentSuccess struct {
	Data externalRef0.Segment `json:"data"`
}

UpdateSegmentSuccess defines model for UpdateSegmentSuccess.

type UpdateSegmenterJSONRequestBody

type UpdateSegmenterJSONRequestBody UpdateSegmenterRequestBody

UpdateSegmenterJSONRequestBody defines body for UpdateSegmenter for application/json ContentType.

type UpdateSegmenterRequestBody

type UpdateSegmenterRequestBody struct {
	Constraints *[]externalRef0.Constraint     `json:"constraints,omitempty"`
	Description *string                        `json:"description,omitempty"`
	MultiValued bool                           `json:"multi_valued"`
	Options     *externalRef0.SegmenterOptions `json:"options,omitempty"`
	Required    bool                           `json:"required"`
}

UpdateSegmenterRequestBody defines model for UpdateSegmenterRequestBody.

type UpdateSegmenterResponse

type UpdateSegmenterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Segmenter `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseUpdateSegmenterResponse

func ParseUpdateSegmenterResponse(rsp *http.Response) (*UpdateSegmenterResponse, error)

ParseUpdateSegmenterResponse parses an HTTP response from a UpdateSegmenterWithResponse call

func (UpdateSegmenterResponse) Status

func (r UpdateSegmenterResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateSegmenterResponse) StatusCode

func (r UpdateSegmenterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSegmenterSuccess

type UpdateSegmenterSuccess struct {
	Data externalRef0.Segmenter `json:"data"`
}

UpdateSegmenterSuccess defines model for UpdateSegmenterSuccess.

type UpdateTreatmentJSONRequestBody

type UpdateTreatmentJSONRequestBody UpdateTreatmentRequestBody

UpdateTreatmentJSONRequestBody defines body for UpdateTreatment for application/json ContentType.

type UpdateTreatmentRequestBody

type UpdateTreatmentRequestBody struct {
	Configuration map[string]interface{} `json:"configuration"`
	UpdatedBy     *string                `json:"updated_by,omitempty"`
}

UpdateTreatmentRequestBody defines model for UpdateTreatmentRequestBody.

type UpdateTreatmentResponse

type UpdateTreatmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data externalRef0.Treatment `json:"data"`
	}
	JSON400 *externalRef0.Error
	JSON500 *externalRef0.Error
}

func ParseUpdateTreatmentResponse

func ParseUpdateTreatmentResponse(rsp *http.Response) (*UpdateTreatmentResponse, error)

ParseUpdateTreatmentResponse parses an HTTP response from a UpdateTreatmentWithResponse call

func (UpdateTreatmentResponse) Status

func (r UpdateTreatmentResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateTreatmentResponse) StatusCode

func (r UpdateTreatmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTreatmentSuccess

type UpdateTreatmentSuccess struct {
	Data externalRef0.Treatment `json:"data"`
}

UpdateTreatmentSuccess defines model for UpdateTreatmentSuccess.

type ValidateEntityJSONRequestBody

type ValidateEntityJSONRequestBody ValidateEntityRequestBody

ValidateEntityJSONRequestBody defines body for ValidateEntity for application/json ContentType.

type ValidateEntityRequestBody

type ValidateEntityRequestBody struct {
	Data map[string]interface{} `json:"data"`

	// Object containing information to define a valid treatment schema
	TreatmentSchema *externalRef0.TreatmentSchema `json:"treatment_schema,omitempty"`
	ValidationUrl   *string                       `json:"validation_url,omitempty"`
}

ValidateEntityRequestBody defines model for ValidateEntityRequestBody.

type ValidateEntityResponse

type ValidateEntityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *externalRef0.Error
	JSON500      *externalRef0.Error
}

func ParseValidateEntityResponse

func ParseValidateEntityResponse(rsp *http.Response) (*ValidateEntityResponse, error)

ParseValidateEntityResponse parses an HTTP response from a ValidateEntityWithResponse call

func (ValidateEntityResponse) Status

func (r ValidateEntityResponse) Status() string

Status returns HTTPResponse.Status

func (ValidateEntityResponse) StatusCode

func (r ValidateEntityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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