openapi

package
Version: v0.0.0-...-e744b49 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	CollectionsApi *CollectionsApiService

	EventsApi *EventsApiService

	PipelinesApi *PipelinesApiService

	PromotionsApi *PromotionsApiService

	RecordsApi *RecordsApiService

	RedirectsApi *RedirectsApiService

	SchemaApi *SchemaApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Search.io API API vv4 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ActivePromotion

type ActivePromotion struct {
	// The records that are excluded from the result set by the active promotion.
	ActiveExclusions *[]PromotionExclusion `json:"active_exclusions,omitempty"`
	// The pins that belong to the active promotion. Note that the positions in these pins are the positions specified at pin creation time, which is not necessarily the position that a pin ends up in. For example, if a pin is created at position 2, but the query that the pin is active in has zero results, the pinned result actually appears in position 1.
	ActivePins *[]PromotionPin `json:"active_pins,omitempty"`
	// The ID of the active promotion.
	PromotionId *string `json:"promotion_id,omitempty"`
}

ActivePromotion ActivePromotion is a promotion that is active for a given search.

func NewActivePromotion

func NewActivePromotion() *ActivePromotion

NewActivePromotion instantiates a new ActivePromotion object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewActivePromotionWithDefaults

func NewActivePromotionWithDefaults() *ActivePromotion

NewActivePromotionWithDefaults instantiates a new ActivePromotion object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ActivePromotion) GetActiveExclusions

func (o *ActivePromotion) GetActiveExclusions() []PromotionExclusion

GetActiveExclusions returns the ActiveExclusions field value if set, zero value otherwise.

func (*ActivePromotion) GetActiveExclusionsOk

func (o *ActivePromotion) GetActiveExclusionsOk() (*[]PromotionExclusion, bool)

GetActiveExclusionsOk returns a tuple with the ActiveExclusions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ActivePromotion) GetActivePins

func (o *ActivePromotion) GetActivePins() []PromotionPin

GetActivePins returns the ActivePins field value if set, zero value otherwise.

func (*ActivePromotion) GetActivePinsOk

func (o *ActivePromotion) GetActivePinsOk() (*[]PromotionPin, bool)

GetActivePinsOk returns a tuple with the ActivePins field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ActivePromotion) GetPromotionId

func (o *ActivePromotion) GetPromotionId() string

GetPromotionId returns the PromotionId field value if set, zero value otherwise.

func (*ActivePromotion) GetPromotionIdOk

func (o *ActivePromotion) GetPromotionIdOk() (*string, bool)

GetPromotionIdOk returns a tuple with the PromotionId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ActivePromotion) HasActiveExclusions

func (o *ActivePromotion) HasActiveExclusions() bool

HasActiveExclusions returns a boolean if a field has been set.

func (*ActivePromotion) HasActivePins

func (o *ActivePromotion) HasActivePins() bool

HasActivePins returns a boolean if a field has been set.

func (*ActivePromotion) HasPromotionId

func (o *ActivePromotion) HasPromotionId() bool

HasPromotionId returns a boolean if a field has been set.

func (ActivePromotion) MarshalJSON

func (o ActivePromotion) MarshalJSON() ([]byte, error)

func (*ActivePromotion) SetActiveExclusions

func (o *ActivePromotion) SetActiveExclusions(v []PromotionExclusion)

SetActiveExclusions gets a reference to the given []PromotionExclusion and assigns it to the ActiveExclusions field.

func (*ActivePromotion) SetActivePins

func (o *ActivePromotion) SetActivePins(v []PromotionPin)

SetActivePins gets a reference to the given []PromotionPin and assigns it to the ActivePins field.

func (*ActivePromotion) SetPromotionId

func (o *ActivePromotion) SetPromotionId(v string)

SetPromotionId gets a reference to the given string and assigns it to the PromotionId field.

type ApiBatchCreateSchemaFieldsRequest

type ApiBatchCreateSchemaFieldsRequest struct {
	ApiService *SchemaApiService
	// contains filtered or unexported fields
}

func (ApiBatchCreateSchemaFieldsRequest) BatchCreateSchemaFieldsRequest

func (r ApiBatchCreateSchemaFieldsRequest) BatchCreateSchemaFieldsRequest(batchCreateSchemaFieldsRequest BatchCreateSchemaFieldsRequest) ApiBatchCreateSchemaFieldsRequest

func (ApiBatchCreateSchemaFieldsRequest) Execute

type ApiBatchUpsertRecordsRequest

type ApiBatchUpsertRecordsRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiBatchUpsertRecordsRequest) BatchUpsertRecordsRequest

func (r ApiBatchUpsertRecordsRequest) BatchUpsertRecordsRequest(batchUpsertRecordsRequest BatchUpsertRecordsRequest) ApiBatchUpsertRecordsRequest

func (ApiBatchUpsertRecordsRequest) Execute

type ApiCreateCollectionRequest

type ApiCreateCollectionRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiCreateCollectionRequest) Collection

func (ApiCreateCollectionRequest) CollectionId

func (r ApiCreateCollectionRequest) CollectionId(collectionId string) ApiCreateCollectionRequest

func (ApiCreateCollectionRequest) Execute

type ApiCreatePipelineRequest

type ApiCreatePipelineRequest struct {
	ApiService *PipelinesApiService
	// contains filtered or unexported fields
}

func (ApiCreatePipelineRequest) Execute

func (ApiCreatePipelineRequest) Pipeline

type ApiCreatePromotionRequest

type ApiCreatePromotionRequest struct {
	ApiService *PromotionsApiService
	// contains filtered or unexported fields
}

func (ApiCreatePromotionRequest) Execute

func (ApiCreatePromotionRequest) Promotion

type ApiCreateRedirectRequest

type ApiCreateRedirectRequest struct {
	ApiService *RedirectsApiService
	// contains filtered or unexported fields
}

func (ApiCreateRedirectRequest) Execute

func (ApiCreateRedirectRequest) Redirect

type ApiCreateSchemaFieldRequest

type ApiCreateSchemaFieldRequest struct {
	ApiService *SchemaApiService
	// contains filtered or unexported fields
}

func (ApiCreateSchemaFieldRequest) Execute

func (ApiCreateSchemaFieldRequest) SchemaField

type ApiDeleteCollectionRequest

type ApiDeleteCollectionRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiDeleteCollectionRequest) Execute

func (r ApiDeleteCollectionRequest) Execute() (interface{}, *_nethttp.Response, error)

type ApiDeletePromotionRequest

type ApiDeletePromotionRequest struct {
	ApiService *PromotionsApiService
	// contains filtered or unexported fields
}

func (ApiDeletePromotionRequest) Execute

func (r ApiDeletePromotionRequest) Execute() (interface{}, *_nethttp.Response, error)

type ApiDeleteRecordRequest

type ApiDeleteRecordRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiDeleteRecordRequest) DeleteRecordRequest

func (r ApiDeleteRecordRequest) DeleteRecordRequest(deleteRecordRequest DeleteRecordRequest) ApiDeleteRecordRequest

func (ApiDeleteRecordRequest) Execute

func (r ApiDeleteRecordRequest) Execute() (interface{}, *_nethttp.Response, error)

type ApiDeleteRedirectRequest

type ApiDeleteRedirectRequest struct {
	ApiService *RedirectsApiService
	// contains filtered or unexported fields
}

func (ApiDeleteRedirectRequest) Execute

func (r ApiDeleteRedirectRequest) Execute() (interface{}, *_nethttp.Response, error)

type ApiGeneratePipelinesRequest

type ApiGeneratePipelinesRequest struct {
	ApiService *PipelinesApiService
	// contains filtered or unexported fields
}

func (ApiGeneratePipelinesRequest) Execute

func (ApiGeneratePipelinesRequest) GeneratePipelinesRequest

func (r ApiGeneratePipelinesRequest) GeneratePipelinesRequest(generatePipelinesRequest GeneratePipelinesRequest) ApiGeneratePipelinesRequest

type ApiGetCollectionRequest

type ApiGetCollectionRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiGetCollectionRequest) Execute

type ApiGetDefaultPipelineRequest

type ApiGetDefaultPipelineRequest struct {
	ApiService *PipelinesApiService
	// contains filtered or unexported fields
}

func (ApiGetDefaultPipelineRequest) Execute

func (ApiGetDefaultPipelineRequest) Type_

type ApiGetDefaultVersionRequest

type ApiGetDefaultVersionRequest struct {
	ApiService *PipelinesApiService
	// contains filtered or unexported fields
}

func (ApiGetDefaultVersionRequest) Execute

func (ApiGetDefaultVersionRequest) View

type ApiGetPipelineRequest

type ApiGetPipelineRequest struct {
	ApiService *PipelinesApiService
	// contains filtered or unexported fields
}

func (ApiGetPipelineRequest) Execute

func (ApiGetPipelineRequest) View

type ApiGetPromotionRequest

type ApiGetPromotionRequest struct {
	ApiService *PromotionsApiService
	// contains filtered or unexported fields
}

func (ApiGetPromotionRequest) Execute

type ApiGetRecordRequest

type ApiGetRecordRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiGetRecordRequest) Execute

func (r ApiGetRecordRequest) Execute() (map[string]interface{}, *_nethttp.Response, error)

func (ApiGetRecordRequest) GetRecordRequest

func (r ApiGetRecordRequest) GetRecordRequest(getRecordRequest GetRecordRequest) ApiGetRecordRequest

type ApiGetRedirectRequest

type ApiGetRedirectRequest struct {
	ApiService *RedirectsApiService
	// contains filtered or unexported fields
}

func (ApiGetRedirectRequest) Execute

type ApiListCollectionsRequest

type ApiListCollectionsRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiListCollectionsRequest) Execute

func (ApiListCollectionsRequest) PageSize

func (ApiListCollectionsRequest) PageToken

type ApiListPipelinesRequest

type ApiListPipelinesRequest struct {
	ApiService *PipelinesApiService
	// contains filtered or unexported fields
}

func (ApiListPipelinesRequest) Execute

func (ApiListPipelinesRequest) PageSize

func (ApiListPipelinesRequest) PageToken

func (ApiListPipelinesRequest) View

type ApiListPromotionsRequest

type ApiListPromotionsRequest struct {
	ApiService *PromotionsApiService
	// contains filtered or unexported fields
}

func (ApiListPromotionsRequest) Execute

func (ApiListPromotionsRequest) PageSize

func (ApiListPromotionsRequest) PageToken

type ApiListRedirectsRequest

type ApiListRedirectsRequest struct {
	ApiService *RedirectsApiService
	// contains filtered or unexported fields
}

func (ApiListRedirectsRequest) Execute

func (ApiListRedirectsRequest) PageSize

func (ApiListRedirectsRequest) PageToken

type ApiListSchemaFieldsRequest

type ApiListSchemaFieldsRequest struct {
	ApiService *SchemaApiService
	// contains filtered or unexported fields
}

func (ApiListSchemaFieldsRequest) Execute

func (ApiListSchemaFieldsRequest) PageSize

func (ApiListSchemaFieldsRequest) PageToken

type ApiQueryCollection2Request

type ApiQueryCollection2Request struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiQueryCollection2Request) Execute

func (ApiQueryCollection2Request) QueryCollectionRequest

func (r ApiQueryCollection2Request) QueryCollectionRequest(queryCollectionRequest QueryCollectionRequest) ApiQueryCollection2Request

type ApiQueryCollectionRequest

type ApiQueryCollectionRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiQueryCollectionRequest) Execute

func (ApiQueryCollectionRequest) QueryCollectionRequest

func (r ApiQueryCollectionRequest) QueryCollectionRequest(queryCollectionRequest QueryCollectionRequest) ApiQueryCollectionRequest

type ApiSendEvent2Request

type ApiSendEvent2Request struct {
	ApiService *EventsApiService
	// contains filtered or unexported fields
}

func (ApiSendEvent2Request) Execute

func (r ApiSendEvent2Request) Execute() (map[string]interface{}, *_nethttp.Response, error)

func (ApiSendEvent2Request) SendEventRequest

func (r ApiSendEvent2Request) SendEventRequest(sendEventRequest SendEventRequest) ApiSendEvent2Request

type ApiSendEventRequest

type ApiSendEventRequest struct {
	ApiService *EventsApiService
	// contains filtered or unexported fields
}

func (ApiSendEventRequest) Execute

func (r ApiSendEventRequest) Execute() (map[string]interface{}, *_nethttp.Response, error)

func (ApiSendEventRequest) SendEventRequest

func (r ApiSendEventRequest) SendEventRequest(sendEventRequest SendEventRequest) ApiSendEventRequest

type ApiSetDefaultPipelineRequest

type ApiSetDefaultPipelineRequest struct {
	ApiService *PipelinesApiService
	// contains filtered or unexported fields
}

func (ApiSetDefaultPipelineRequest) Execute

func (r ApiSetDefaultPipelineRequest) Execute() (map[string]interface{}, *_nethttp.Response, error)

func (ApiSetDefaultPipelineRequest) SetDefaultPipelineRequest

func (r ApiSetDefaultPipelineRequest) SetDefaultPipelineRequest(setDefaultPipelineRequest SetDefaultPipelineRequest) ApiSetDefaultPipelineRequest

type ApiSetDefaultVersionRequest

type ApiSetDefaultVersionRequest struct {
	ApiService *PipelinesApiService
	// contains filtered or unexported fields
}

func (ApiSetDefaultVersionRequest) Execute

func (r ApiSetDefaultVersionRequest) Execute() (map[string]interface{}, *_nethttp.Response, error)

func (ApiSetDefaultVersionRequest) SetDefaultVersionRequest

func (r ApiSetDefaultVersionRequest) SetDefaultVersionRequest(setDefaultVersionRequest SetDefaultVersionRequest) ApiSetDefaultVersionRequest

type ApiUpdateCollectionRequest

type ApiUpdateCollectionRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiUpdateCollectionRequest) Collection

func (ApiUpdateCollectionRequest) Execute

func (ApiUpdateCollectionRequest) UpdateMask

type ApiUpdatePromotionRequest

type ApiUpdatePromotionRequest struct {
	ApiService *PromotionsApiService
	// contains filtered or unexported fields
}

func (ApiUpdatePromotionRequest) Execute

func (ApiUpdatePromotionRequest) Promotion

func (ApiUpdatePromotionRequest) UpdateMask

type ApiUpdateRecordRequest

type ApiUpdateRecordRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiUpdateRecordRequest) Execute

func (r ApiUpdateRecordRequest) Execute() (map[string]interface{}, *_nethttp.Response, error)

func (ApiUpdateRecordRequest) UpdateRecordRequest

func (r ApiUpdateRecordRequest) UpdateRecordRequest(updateRecordRequest UpdateRecordRequest) ApiUpdateRecordRequest

type ApiUpdateRedirectRequest

type ApiUpdateRedirectRequest struct {
	ApiService *RedirectsApiService
	// contains filtered or unexported fields
}

func (ApiUpdateRedirectRequest) Execute

func (ApiUpdateRedirectRequest) Redirect

func (ApiUpdateRedirectRequest) UpdateMask

func (r ApiUpdateRedirectRequest) UpdateMask(updateMask string) ApiUpdateRedirectRequest

type ApiUpsertRecordRequest

type ApiUpsertRecordRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiUpsertRecordRequest) Execute

func (ApiUpsertRecordRequest) UpsertRecordRequest

func (r ApiUpsertRecordRequest) UpsertRecordRequest(upsertRecordRequest UpsertRecordRequest) ApiUpsertRecordRequest

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BatchCreateSchemaFieldsRequest

type BatchCreateSchemaFieldsRequest struct {
	// A list of fields to create.  A maximum of 1000 fields can be created in a batch.
	Fields []SchemaField `json:"fields"`
}

BatchCreateSchemaFieldsRequest struct for BatchCreateSchemaFieldsRequest

func NewBatchCreateSchemaFieldsRequest

func NewBatchCreateSchemaFieldsRequest(fields []SchemaField) *BatchCreateSchemaFieldsRequest

NewBatchCreateSchemaFieldsRequest instantiates a new BatchCreateSchemaFieldsRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchCreateSchemaFieldsRequestWithDefaults

func NewBatchCreateSchemaFieldsRequestWithDefaults() *BatchCreateSchemaFieldsRequest

NewBatchCreateSchemaFieldsRequestWithDefaults instantiates a new BatchCreateSchemaFieldsRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchCreateSchemaFieldsRequest) GetFields

GetFields returns the Fields field value

func (*BatchCreateSchemaFieldsRequest) GetFieldsOk

func (o *BatchCreateSchemaFieldsRequest) GetFieldsOk() (*[]SchemaField, bool)

GetFieldsOk returns a tuple with the Fields field value and a boolean to check if the value has been set.

func (BatchCreateSchemaFieldsRequest) MarshalJSON

func (o BatchCreateSchemaFieldsRequest) MarshalJSON() ([]byte, error)

func (*BatchCreateSchemaFieldsRequest) SetFields

func (o *BatchCreateSchemaFieldsRequest) SetFields(v []SchemaField)

SetFields sets field value

type BatchCreateSchemaFieldsResponse

type BatchCreateSchemaFieldsResponse struct {
	// Errors that occurred.
	Errors *[]BatchCreateSchemaFieldsResponseError `json:"errors,omitempty"`
	// Schema fields created.
	Fields *[]SchemaField `json:"fields,omitempty"`
}

BatchCreateSchemaFieldsResponse struct for BatchCreateSchemaFieldsResponse

func NewBatchCreateSchemaFieldsResponse

func NewBatchCreateSchemaFieldsResponse() *BatchCreateSchemaFieldsResponse

NewBatchCreateSchemaFieldsResponse instantiates a new BatchCreateSchemaFieldsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchCreateSchemaFieldsResponseWithDefaults

func NewBatchCreateSchemaFieldsResponseWithDefaults() *BatchCreateSchemaFieldsResponse

NewBatchCreateSchemaFieldsResponseWithDefaults instantiates a new BatchCreateSchemaFieldsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchCreateSchemaFieldsResponse) GetErrors

GetErrors returns the Errors field value if set, zero value otherwise.

func (*BatchCreateSchemaFieldsResponse) GetErrorsOk

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchCreateSchemaFieldsResponse) GetFields

GetFields returns the Fields field value if set, zero value otherwise.

func (*BatchCreateSchemaFieldsResponse) GetFieldsOk

func (o *BatchCreateSchemaFieldsResponse) GetFieldsOk() (*[]SchemaField, bool)

GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchCreateSchemaFieldsResponse) HasErrors

func (o *BatchCreateSchemaFieldsResponse) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (*BatchCreateSchemaFieldsResponse) HasFields

func (o *BatchCreateSchemaFieldsResponse) HasFields() bool

HasFields returns a boolean if a field has been set.

func (BatchCreateSchemaFieldsResponse) MarshalJSON

func (o BatchCreateSchemaFieldsResponse) MarshalJSON() ([]byte, error)

func (*BatchCreateSchemaFieldsResponse) SetErrors

SetErrors gets a reference to the given []BatchCreateSchemaFieldsResponseError and assigns it to the Errors field.

func (*BatchCreateSchemaFieldsResponse) SetFields

func (o *BatchCreateSchemaFieldsResponse) SetFields(v []SchemaField)

SetFields gets a reference to the given []SchemaField and assigns it to the Fields field.

type BatchCreateSchemaFieldsResponseError

type BatchCreateSchemaFieldsResponseError struct {
	// Index of the schema field in `fields` that this error corresponds to.
	Index  *int32  `json:"index,omitempty"`
	Status *Status `json:"status,omitempty"`
}

BatchCreateSchemaFieldsResponseError struct for BatchCreateSchemaFieldsResponseError

func NewBatchCreateSchemaFieldsResponseError

func NewBatchCreateSchemaFieldsResponseError() *BatchCreateSchemaFieldsResponseError

NewBatchCreateSchemaFieldsResponseError instantiates a new BatchCreateSchemaFieldsResponseError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchCreateSchemaFieldsResponseErrorWithDefaults

func NewBatchCreateSchemaFieldsResponseErrorWithDefaults() *BatchCreateSchemaFieldsResponseError

NewBatchCreateSchemaFieldsResponseErrorWithDefaults instantiates a new BatchCreateSchemaFieldsResponseError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchCreateSchemaFieldsResponseError) GetIndex

GetIndex returns the Index field value if set, zero value otherwise.

func (*BatchCreateSchemaFieldsResponseError) GetIndexOk

func (o *BatchCreateSchemaFieldsResponseError) GetIndexOk() (*int32, bool)

GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchCreateSchemaFieldsResponseError) GetStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*BatchCreateSchemaFieldsResponseError) GetStatusOk

func (o *BatchCreateSchemaFieldsResponseError) GetStatusOk() (*Status, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchCreateSchemaFieldsResponseError) HasIndex

HasIndex returns a boolean if a field has been set.

func (*BatchCreateSchemaFieldsResponseError) HasStatus

HasStatus returns a boolean if a field has been set.

func (BatchCreateSchemaFieldsResponseError) MarshalJSON

func (o BatchCreateSchemaFieldsResponseError) MarshalJSON() ([]byte, error)

func (*BatchCreateSchemaFieldsResponseError) SetIndex

SetIndex gets a reference to the given int32 and assigns it to the Index field.

func (*BatchCreateSchemaFieldsResponseError) SetStatus

SetStatus gets a reference to the given Status and assigns it to the Status field.

type BatchUpsertRecordsRequest

type BatchUpsertRecordsRequest struct {
	Pipeline *BatchUpsertRecordsRequestPipeline `json:"pipeline,omitempty"`
	// A list of records to upsert.  A maximum of 200 records can be upsert in a batch.
	Records []map[string]interface{} `json:"records"`
	// The initial values for the variables the pipeline operates on and transforms throughout its steps.
	Variables *map[string]map[string]interface{} `json:"variables,omitempty"`
}

BatchUpsertRecordsRequest struct for BatchUpsertRecordsRequest

func NewBatchUpsertRecordsRequest

func NewBatchUpsertRecordsRequest(records []map[string]interface{}) *BatchUpsertRecordsRequest

NewBatchUpsertRecordsRequest instantiates a new BatchUpsertRecordsRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchUpsertRecordsRequestWithDefaults

func NewBatchUpsertRecordsRequestWithDefaults() *BatchUpsertRecordsRequest

NewBatchUpsertRecordsRequestWithDefaults instantiates a new BatchUpsertRecordsRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchUpsertRecordsRequest) GetPipeline

GetPipeline returns the Pipeline field value if set, zero value otherwise.

func (*BatchUpsertRecordsRequest) GetPipelineOk

GetPipelineOk returns a tuple with the Pipeline field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsRequest) GetRecords

func (o *BatchUpsertRecordsRequest) GetRecords() []map[string]interface{}

GetRecords returns the Records field value

func (*BatchUpsertRecordsRequest) GetRecordsOk

func (o *BatchUpsertRecordsRequest) GetRecordsOk() (*[]map[string]interface{}, bool)

GetRecordsOk returns a tuple with the Records field value and a boolean to check if the value has been set.

func (*BatchUpsertRecordsRequest) GetVariables

func (o *BatchUpsertRecordsRequest) GetVariables() map[string]map[string]interface{}

GetVariables returns the Variables field value if set, zero value otherwise.

func (*BatchUpsertRecordsRequest) GetVariablesOk

func (o *BatchUpsertRecordsRequest) GetVariablesOk() (*map[string]map[string]interface{}, bool)

GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsRequest) HasPipeline

func (o *BatchUpsertRecordsRequest) HasPipeline() bool

HasPipeline returns a boolean if a field has been set.

func (*BatchUpsertRecordsRequest) HasVariables

func (o *BatchUpsertRecordsRequest) HasVariables() bool

HasVariables returns a boolean if a field has been set.

func (BatchUpsertRecordsRequest) MarshalJSON

func (o BatchUpsertRecordsRequest) MarshalJSON() ([]byte, error)

func (*BatchUpsertRecordsRequest) SetPipeline

SetPipeline gets a reference to the given BatchUpsertRecordsRequestPipeline and assigns it to the Pipeline field.

func (*BatchUpsertRecordsRequest) SetRecords

func (o *BatchUpsertRecordsRequest) SetRecords(v []map[string]interface{})

SetRecords sets field value

func (*BatchUpsertRecordsRequest) SetVariables

func (o *BatchUpsertRecordsRequest) SetVariables(v map[string]map[string]interface{})

SetVariables gets a reference to the given map[string]map[string]interface{} and assigns it to the Variables field.

type BatchUpsertRecordsRequestPipeline

type BatchUpsertRecordsRequestPipeline struct {
	// The record pipeline's name, e.g. `my-pipeline`.
	Name string `json:"name"`
	// The record pipeline's version, e.g. `42`.  If not provided the default version is used.
	Version *string `json:"version,omitempty"`
}

BatchUpsertRecordsRequestPipeline The pipeline to use when upserting the records. If not provided the default record pipeline is used.

func NewBatchUpsertRecordsRequestPipeline

func NewBatchUpsertRecordsRequestPipeline(name string) *BatchUpsertRecordsRequestPipeline

NewBatchUpsertRecordsRequestPipeline instantiates a new BatchUpsertRecordsRequestPipeline object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchUpsertRecordsRequestPipelineWithDefaults

func NewBatchUpsertRecordsRequestPipelineWithDefaults() *BatchUpsertRecordsRequestPipeline

NewBatchUpsertRecordsRequestPipelineWithDefaults instantiates a new BatchUpsertRecordsRequestPipeline object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchUpsertRecordsRequestPipeline) GetName

GetName returns the Name field value

func (*BatchUpsertRecordsRequestPipeline) GetNameOk

func (o *BatchUpsertRecordsRequestPipeline) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*BatchUpsertRecordsRequestPipeline) GetVersion

func (o *BatchUpsertRecordsRequestPipeline) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*BatchUpsertRecordsRequestPipeline) GetVersionOk

func (o *BatchUpsertRecordsRequestPipeline) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsRequestPipeline) HasVersion

func (o *BatchUpsertRecordsRequestPipeline) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (BatchUpsertRecordsRequestPipeline) MarshalJSON

func (o BatchUpsertRecordsRequestPipeline) MarshalJSON() ([]byte, error)

func (*BatchUpsertRecordsRequestPipeline) SetName

SetName sets field value

func (*BatchUpsertRecordsRequestPipeline) SetVersion

func (o *BatchUpsertRecordsRequestPipeline) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

type BatchUpsertRecordsResponse

type BatchUpsertRecordsResponse struct {
	// Errors that occurred.
	Errors *[]BatchUpsertRecordsResponseError `json:"errors,omitempty"`
	// A list of keys of the records that were inserted.  If a record was inserted, keys contains an entry containing the index of the inserted record from `records` and the key. You can use the key if you need to retrieve or delete the record.  If a record was updated, keys contains no such entry for the updated record.
	Keys *[]BatchUpsertRecordsResponseKey `json:"keys,omitempty"`
	// A list of modified variables returned by the pipeline after it has finished processing each record.
	Variables *[]BatchUpsertRecordsResponseVariables `json:"variables,omitempty"`
}

BatchUpsertRecordsResponse struct for BatchUpsertRecordsResponse

func NewBatchUpsertRecordsResponse

func NewBatchUpsertRecordsResponse() *BatchUpsertRecordsResponse

NewBatchUpsertRecordsResponse instantiates a new BatchUpsertRecordsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchUpsertRecordsResponseWithDefaults

func NewBatchUpsertRecordsResponseWithDefaults() *BatchUpsertRecordsResponse

NewBatchUpsertRecordsResponseWithDefaults instantiates a new BatchUpsertRecordsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchUpsertRecordsResponse) GetErrors

GetErrors returns the Errors field value if set, zero value otherwise.

func (*BatchUpsertRecordsResponse) GetErrorsOk

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsResponse) GetKeys

GetKeys returns the Keys field value if set, zero value otherwise.

func (*BatchUpsertRecordsResponse) GetKeysOk

GetKeysOk returns a tuple with the Keys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsResponse) GetVariables

GetVariables returns the Variables field value if set, zero value otherwise.

func (*BatchUpsertRecordsResponse) GetVariablesOk

GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsResponse) HasErrors

func (o *BatchUpsertRecordsResponse) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (*BatchUpsertRecordsResponse) HasKeys

func (o *BatchUpsertRecordsResponse) HasKeys() bool

HasKeys returns a boolean if a field has been set.

func (*BatchUpsertRecordsResponse) HasVariables

func (o *BatchUpsertRecordsResponse) HasVariables() bool

HasVariables returns a boolean if a field has been set.

func (BatchUpsertRecordsResponse) MarshalJSON

func (o BatchUpsertRecordsResponse) MarshalJSON() ([]byte, error)

func (*BatchUpsertRecordsResponse) SetErrors

SetErrors gets a reference to the given []BatchUpsertRecordsResponseError and assigns it to the Errors field.

func (*BatchUpsertRecordsResponse) SetKeys

SetKeys gets a reference to the given []BatchUpsertRecordsResponseKey and assigns it to the Keys field.

func (*BatchUpsertRecordsResponse) SetVariables

SetVariables gets a reference to the given []BatchUpsertRecordsResponseVariables and assigns it to the Variables field.

type BatchUpsertRecordsResponseError

type BatchUpsertRecordsResponseError struct {
	// Index of the record in `records` that this error corresponds to.
	Index  *int32  `json:"index,omitempty"`
	Status *Status `json:"status,omitempty"`
}

BatchUpsertRecordsResponseError struct for BatchUpsertRecordsResponseError

func NewBatchUpsertRecordsResponseError

func NewBatchUpsertRecordsResponseError() *BatchUpsertRecordsResponseError

NewBatchUpsertRecordsResponseError instantiates a new BatchUpsertRecordsResponseError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchUpsertRecordsResponseErrorWithDefaults

func NewBatchUpsertRecordsResponseErrorWithDefaults() *BatchUpsertRecordsResponseError

NewBatchUpsertRecordsResponseErrorWithDefaults instantiates a new BatchUpsertRecordsResponseError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchUpsertRecordsResponseError) GetIndex

func (o *BatchUpsertRecordsResponseError) GetIndex() int32

GetIndex returns the Index field value if set, zero value otherwise.

func (*BatchUpsertRecordsResponseError) GetIndexOk

func (o *BatchUpsertRecordsResponseError) GetIndexOk() (*int32, bool)

GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsResponseError) GetStatus

func (o *BatchUpsertRecordsResponseError) GetStatus() Status

GetStatus returns the Status field value if set, zero value otherwise.

func (*BatchUpsertRecordsResponseError) GetStatusOk

func (o *BatchUpsertRecordsResponseError) GetStatusOk() (*Status, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsResponseError) HasIndex

func (o *BatchUpsertRecordsResponseError) HasIndex() bool

HasIndex returns a boolean if a field has been set.

func (*BatchUpsertRecordsResponseError) HasStatus

func (o *BatchUpsertRecordsResponseError) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (BatchUpsertRecordsResponseError) MarshalJSON

func (o BatchUpsertRecordsResponseError) MarshalJSON() ([]byte, error)

func (*BatchUpsertRecordsResponseError) SetIndex

func (o *BatchUpsertRecordsResponseError) SetIndex(v int32)

SetIndex gets a reference to the given int32 and assigns it to the Index field.

func (*BatchUpsertRecordsResponseError) SetStatus

func (o *BatchUpsertRecordsResponseError) SetStatus(v Status)

SetStatus gets a reference to the given Status and assigns it to the Status field.

type BatchUpsertRecordsResponseKey

type BatchUpsertRecordsResponseKey struct {
	// Index of the record in `records` that this key corresponds to.
	Index *int32     `json:"index,omitempty"`
	Key   *RecordKey `json:"key,omitempty"`
}

BatchUpsertRecordsResponseKey struct for BatchUpsertRecordsResponseKey

func NewBatchUpsertRecordsResponseKey

func NewBatchUpsertRecordsResponseKey() *BatchUpsertRecordsResponseKey

NewBatchUpsertRecordsResponseKey instantiates a new BatchUpsertRecordsResponseKey object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchUpsertRecordsResponseKeyWithDefaults

func NewBatchUpsertRecordsResponseKeyWithDefaults() *BatchUpsertRecordsResponseKey

NewBatchUpsertRecordsResponseKeyWithDefaults instantiates a new BatchUpsertRecordsResponseKey object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchUpsertRecordsResponseKey) GetIndex

func (o *BatchUpsertRecordsResponseKey) GetIndex() int32

GetIndex returns the Index field value if set, zero value otherwise.

func (*BatchUpsertRecordsResponseKey) GetIndexOk

func (o *BatchUpsertRecordsResponseKey) GetIndexOk() (*int32, bool)

GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsResponseKey) GetKey

GetKey returns the Key field value if set, zero value otherwise.

func (*BatchUpsertRecordsResponseKey) GetKeyOk

func (o *BatchUpsertRecordsResponseKey) GetKeyOk() (*RecordKey, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsResponseKey) HasIndex

func (o *BatchUpsertRecordsResponseKey) HasIndex() bool

HasIndex returns a boolean if a field has been set.

func (*BatchUpsertRecordsResponseKey) HasKey

func (o *BatchUpsertRecordsResponseKey) HasKey() bool

HasKey returns a boolean if a field has been set.

func (BatchUpsertRecordsResponseKey) MarshalJSON

func (o BatchUpsertRecordsResponseKey) MarshalJSON() ([]byte, error)

func (*BatchUpsertRecordsResponseKey) SetIndex

func (o *BatchUpsertRecordsResponseKey) SetIndex(v int32)

SetIndex gets a reference to the given int32 and assigns it to the Index field.

func (*BatchUpsertRecordsResponseKey) SetKey

SetKey gets a reference to the given RecordKey and assigns it to the Key field.

type BatchUpsertRecordsResponseVariables

type BatchUpsertRecordsResponseVariables struct {
	// Index of the record in `records` that these variables correspond to.
	Index *int32 `json:"index,omitempty"`
	// The variables.
	Variables *map[string]map[string]interface{} `json:"variables,omitempty"`
}

BatchUpsertRecordsResponseVariables struct for BatchUpsertRecordsResponseVariables

func NewBatchUpsertRecordsResponseVariables

func NewBatchUpsertRecordsResponseVariables() *BatchUpsertRecordsResponseVariables

NewBatchUpsertRecordsResponseVariables instantiates a new BatchUpsertRecordsResponseVariables object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBatchUpsertRecordsResponseVariablesWithDefaults

func NewBatchUpsertRecordsResponseVariablesWithDefaults() *BatchUpsertRecordsResponseVariables

NewBatchUpsertRecordsResponseVariablesWithDefaults instantiates a new BatchUpsertRecordsResponseVariables object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BatchUpsertRecordsResponseVariables) GetIndex

GetIndex returns the Index field value if set, zero value otherwise.

func (*BatchUpsertRecordsResponseVariables) GetIndexOk

func (o *BatchUpsertRecordsResponseVariables) GetIndexOk() (*int32, bool)

GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpsertRecordsResponseVariables) GetVariables

func (o *BatchUpsertRecordsResponseVariables) GetVariables() map[string]map[