dryapi

package module
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 20 Imported by: 0

README

DryAPI Go SDK

Official Go client for DryAPI — one API key, one credit balance, 17 calibrated prediction APIs. Generated from the DryAPI OpenAPI spec.

Install

go get github.com/magebase/dryapi-go-sdk

Quickstart

package main

import (
	"context"
	"fmt"

	dryapi "github.com/magebase/dryapi-go-sdk"
)

func main() {
	cfg := dryapi.NewConfiguration()
	cfg.AddDefaultHeader("Authorization", "Bearer pk_live_...")
	cfg.Servers = dryapi.ServerConfigurations{
		{URL: "https://api.dryapi.dev"},
	}
	client := dryapi.NewAPIClient(cfg)

	resp, _, err := client.DefaultAPI.PredictPost(context.Background()).
		PredictPostRequest(dryapi.PredictPostRequest{
			Model: "property/valuation/v1",
			Features: map[string]interface{}{
				"sqft": 1850, "beds": 3, "baths": 2, "zip": 90210,
			},
		}).Execute()
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Value, resp.ConfidenceInterval)
}

Every prediction returns a prediction_id and feedback_url — send back the ground truth to earn credits:

client.DefaultAPI.PredictionsIdFeedbackPost(context.Background(), resp.PredictionId).
	PredictionsIdFeedbackPostRequest(dryapi.PredictionsIdFeedbackPostRequest{
		ActualValue: 495000, OutcomeDate: "2026-08-01",
	}).Execute()

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// 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 IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

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 {
	DefaultAPI *DefaultAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the DryAPI API v0.32.0 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 APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

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

type ApiHealthGetRequest

type ApiHealthGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiHealthGetRequest) Execute

type ApiModelsGetRequest

type ApiModelsGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiModelsGetRequest) Execute

func (r ApiModelsGetRequest) Execute() ([]string, *http.Response, error)

type ApiModelsIdGetRequest

type ApiModelsIdGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiModelsIdGetRequest) Execute

type ApiPredictPostRequest

type ApiPredictPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiPredictPostRequest) Execute

func (ApiPredictPostRequest) PredictPostRequest

func (r ApiPredictPostRequest) PredictPostRequest(predictPostRequest PredictPostRequest) ApiPredictPostRequest

type ApiPredictionsIdFeedbackPostRequest

type ApiPredictionsIdFeedbackPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiPredictionsIdFeedbackPostRequest) Execute

func (ApiPredictionsIdFeedbackPostRequest) PredictionsIdFeedbackPostRequest

func (r ApiPredictionsIdFeedbackPostRequest) PredictionsIdFeedbackPostRequest(predictionsIdFeedbackPostRequest PredictionsIdFeedbackPostRequest) ApiPredictionsIdFeedbackPostRequest

Ground-truth fields vary per endpoint. Only records containing an actual outcome (actual_value, actual_class, or a domain-specific actual_* field) earn credits back.

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 Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DefaultAPIService

type DefaultAPIService service

DefaultAPIService DefaultAPI service

func (*DefaultAPIService) HealthGet

HealthGet Method for HealthGet

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHealthGetRequest

func (*DefaultAPIService) HealthGetExecute

Execute executes the request

@return HealthGet200Response

func (*DefaultAPIService) ModelsGet

ModelsGet Method for ModelsGet

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiModelsGetRequest

func (*DefaultAPIService) ModelsGetExecute

func (a *DefaultAPIService) ModelsGetExecute(r ApiModelsGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*DefaultAPIService) ModelsIdGet

ModelsIdGet Method for ModelsIdGet

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiModelsIdGetRequest

func (*DefaultAPIService) ModelsIdGetExecute

Execute executes the request

@return ModelsIdGet200Response

func (*DefaultAPIService) PredictPost

PredictPost Method for PredictPost

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPredictPostRequest

func (*DefaultAPIService) PredictPostExecute

Execute executes the request

@return PredictPost200Response

func (*DefaultAPIService) PredictionsIdFeedbackPost

func (a *DefaultAPIService) PredictionsIdFeedbackPost(ctx context.Context, id string) ApiPredictionsIdFeedbackPostRequest

PredictionsIdFeedbackPost Method for PredictionsIdFeedbackPost

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiPredictionsIdFeedbackPostRequest

func (*DefaultAPIService) PredictionsIdFeedbackPostExecute

Execute executes the request

@return PredictionsIdFeedbackPost200Response

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type HealthGet200Response

type HealthGet200Response struct {
	Status string `json:"status"`
}

HealthGet200Response struct for HealthGet200Response

func NewHealthGet200Response

func NewHealthGet200Response(status string) *HealthGet200Response

NewHealthGet200Response instantiates a new HealthGet200Response 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 NewHealthGet200ResponseWithDefaults

func NewHealthGet200ResponseWithDefaults() *HealthGet200Response

NewHealthGet200ResponseWithDefaults instantiates a new HealthGet200Response 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 (*HealthGet200Response) GetStatus

func (o *HealthGet200Response) GetStatus() string

GetStatus returns the Status field value

func (*HealthGet200Response) GetStatusOk

func (o *HealthGet200Response) GetStatusOk() (*string, bool)

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

func (HealthGet200Response) MarshalJSON

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

func (*HealthGet200Response) SetStatus

func (o *HealthGet200Response) SetStatus(v string)

SetStatus sets field value

func (HealthGet200Response) ToMap

func (o HealthGet200Response) ToMap() (map[string]interface{}, error)

func (*HealthGet200Response) UnmarshalJSON

func (o *HealthGet200Response) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type ModelsIdGet200Response

type ModelsIdGet200Response struct {
	Id      string                 `json:"id"`
	Schema  map[string]interface{} `json:"schema"`
	Metrics map[string]interface{} `json:"metrics"`
}

ModelsIdGet200Response struct for ModelsIdGet200Response

func NewModelsIdGet200Response

func NewModelsIdGet200Response(id string, schema map[string]interface{}, metrics map[string]interface{}) *ModelsIdGet200Response

NewModelsIdGet200Response instantiates a new ModelsIdGet200Response 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 NewModelsIdGet200ResponseWithDefaults

func NewModelsIdGet200ResponseWithDefaults() *ModelsIdGet200Response

NewModelsIdGet200ResponseWithDefaults instantiates a new ModelsIdGet200Response 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 (*ModelsIdGet200Response) GetId

func (o *ModelsIdGet200Response) GetId() string

GetId returns the Id field value

func (*ModelsIdGet200Response) GetIdOk

func (o *ModelsIdGet200Response) GetIdOk() (*string, bool)

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

func (*ModelsIdGet200Response) GetMetrics

func (o *ModelsIdGet200Response) GetMetrics() map[string]interface{}

GetMetrics returns the Metrics field value

func (*ModelsIdGet200Response) GetMetricsOk

func (o *ModelsIdGet200Response) GetMetricsOk() (map[string]interface{}, bool)

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

func (*ModelsIdGet200Response) GetSchema

func (o *ModelsIdGet200Response) GetSchema() map[string]interface{}

GetSchema returns the Schema field value

func (*ModelsIdGet200Response) GetSchemaOk

func (o *ModelsIdGet200Response) GetSchemaOk() (map[string]interface{}, bool)

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

func (ModelsIdGet200Response) MarshalJSON

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

func (*ModelsIdGet200Response) SetId

func (o *ModelsIdGet200Response) SetId(v string)

SetId sets field value

func (*ModelsIdGet200Response) SetMetrics

func (o *ModelsIdGet200Response) SetMetrics(v map[string]interface{})

SetMetrics sets field value

func (*ModelsIdGet200Response) SetSchema

func (o *ModelsIdGet200Response) SetSchema(v map[string]interface{})

SetSchema sets field value

func (ModelsIdGet200Response) ToMap

func (o ModelsIdGet200Response) ToMap() (map[string]interface{}, error)

func (*ModelsIdGet200Response) UnmarshalJSON

func (o *ModelsIdGet200Response) UnmarshalJSON(data []byte) (err error)

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableHealthGet200Response

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

func NewNullableHealthGet200Response

func NewNullableHealthGet200Response(val *HealthGet200Response) *NullableHealthGet200Response

func (NullableHealthGet200Response) Get

func (NullableHealthGet200Response) IsSet

func (NullableHealthGet200Response) MarshalJSON

func (v NullableHealthGet200Response) MarshalJSON() ([]byte, error)

func (*NullableHealthGet200Response) Set

func (*NullableHealthGet200Response) UnmarshalJSON

func (v *NullableHealthGet200Response) UnmarshalJSON(src []byte) error

func (*NullableHealthGet200Response) Unset

func (v *NullableHealthGet200Response) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableModelsIdGet200Response

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

func (NullableModelsIdGet200Response) Get

func (NullableModelsIdGet200Response) IsSet

func (NullableModelsIdGet200Response) MarshalJSON

func (v NullableModelsIdGet200Response) MarshalJSON() ([]byte, error)

func (*NullableModelsIdGet200Response) Set

func (*NullableModelsIdGet200Response) UnmarshalJSON

func (v *NullableModelsIdGet200Response) UnmarshalJSON(src []byte) error

func (*NullableModelsIdGet200Response) Unset

func (v *NullableModelsIdGet200Response) Unset()

type NullablePredictPost200Response

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

func (NullablePredictPost200Response) Get

func (NullablePredictPost200Response) IsSet

func (NullablePredictPost200Response) MarshalJSON

func (v NullablePredictPost200Response) MarshalJSON() ([]byte, error)

func (*NullablePredictPost200Response) Set

func (*NullablePredictPost200Response) UnmarshalJSON

func (v *NullablePredictPost200Response) UnmarshalJSON(src []byte) error

func (*NullablePredictPost200Response) Unset

func (v *NullablePredictPost200Response) Unset()

type NullablePredictPost200ResponseConfidence

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

func (NullablePredictPost200ResponseConfidence) Get

func (NullablePredictPost200ResponseConfidence) IsSet

func (NullablePredictPost200ResponseConfidence) MarshalJSON

func (*NullablePredictPost200ResponseConfidence) Set

func (*NullablePredictPost200ResponseConfidence) UnmarshalJSON

func (v *NullablePredictPost200ResponseConfidence) UnmarshalJSON(src []byte) error

func (*NullablePredictPost200ResponseConfidence) Unset

type NullablePredictPost200ResponseConfidenceInterval

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

func (NullablePredictPost200ResponseConfidenceInterval) Get

func (NullablePredictPost200ResponseConfidenceInterval) IsSet

func (NullablePredictPost200ResponseConfidenceInterval) MarshalJSON

func (*NullablePredictPost200ResponseConfidenceInterval) Set

func (*NullablePredictPost200ResponseConfidenceInterval) UnmarshalJSON

func (*NullablePredictPost200ResponseConfidenceInterval) Unset

type NullablePredictPost200ResponseMetadata

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

func (NullablePredictPost200ResponseMetadata) Get

func (NullablePredictPost200ResponseMetadata) IsSet

func (NullablePredictPost200ResponseMetadata) MarshalJSON

func (v NullablePredictPost200ResponseMetadata) MarshalJSON() ([]byte, error)

func (*NullablePredictPost200ResponseMetadata) Set

func (*NullablePredictPost200ResponseMetadata) UnmarshalJSON

func (v *NullablePredictPost200ResponseMetadata) UnmarshalJSON(src []byte) error

func (*NullablePredictPost200ResponseMetadata) Unset

type NullablePredictPost200ResponseTopFactorsInner

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

func (NullablePredictPost200ResponseTopFactorsInner) Get

func (NullablePredictPost200ResponseTopFactorsInner) IsSet

func (NullablePredictPost200ResponseTopFactorsInner) MarshalJSON

func (*NullablePredictPost200ResponseTopFactorsInner) Set

func (*NullablePredictPost200ResponseTopFactorsInner) UnmarshalJSON

func (*NullablePredictPost200ResponseTopFactorsInner) Unset

type NullablePredictPost400Response

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

func (NullablePredictPost400Response) Get

func (NullablePredictPost400Response) IsSet

func (NullablePredictPost400Response) MarshalJSON

func (v NullablePredictPost400Response) MarshalJSON() ([]byte, error)

func (*NullablePredictPost400Response) Set

func (*NullablePredictPost400Response) UnmarshalJSON

func (v *NullablePredictPost400Response) UnmarshalJSON(src []byte) error

func (*NullablePredictPost400Response) Unset

func (v *NullablePredictPost400Response) Unset()

type NullablePredictPostRequest

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

func NewNullablePredictPostRequest

func NewNullablePredictPostRequest(val *PredictPostRequest) *NullablePredictPostRequest

func (NullablePredictPostRequest) Get

func (NullablePredictPostRequest) IsSet

func (v NullablePredictPostRequest) IsSet() bool

func (NullablePredictPostRequest) MarshalJSON

func (v NullablePredictPostRequest) MarshalJSON() ([]byte, error)

func (*NullablePredictPostRequest) Set

func (*NullablePredictPostRequest) UnmarshalJSON

func (v *NullablePredictPostRequest) UnmarshalJSON(src []byte) error

func (*NullablePredictPostRequest) Unset

func (v *NullablePredictPostRequest) Unset()

type NullablePredictionsIdFeedbackPost200Response

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

func (NullablePredictionsIdFeedbackPost200Response) Get

func (NullablePredictionsIdFeedbackPost200Response) IsSet

func (NullablePredictionsIdFeedbackPost200Response) MarshalJSON

func (*NullablePredictionsIdFeedbackPost200Response) Set

func (*NullablePredictionsIdFeedbackPost200Response) UnmarshalJSON

func (*NullablePredictionsIdFeedbackPost200Response) Unset

type NullablePredictionsIdFeedbackPostRequest

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

func (NullablePredictionsIdFeedbackPostRequest) Get

func (NullablePredictionsIdFeedbackPostRequest) IsSet

func (NullablePredictionsIdFeedbackPostRequest) MarshalJSON

func (*NullablePredictionsIdFeedbackPostRequest) Set

func (*NullablePredictionsIdFeedbackPostRequest) UnmarshalJSON

func (v *NullablePredictionsIdFeedbackPostRequest) UnmarshalJSON(src []byte) error

func (*NullablePredictionsIdFeedbackPostRequest) Unset

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type PredictPost200Response

type PredictPost200Response struct {
	Value              float32                                   `json:"value"`
	Interval           []float32                                 `json:"interval,omitempty"`
	ConfidenceLevel    *float32                                  `json:"confidence_level,omitempty"`
	ConfidenceInterval *PredictPost200ResponseConfidenceInterval `json:"confidence_interval,omitempty"`
	Confidence         *PredictPost200ResponseConfidence         `json:"confidence,omitempty"`
	TopFactors         []PredictPost200ResponseTopFactorsInner   `json:"top_factors,omitempty"`
	Metadata           *PredictPost200ResponseMetadata           `json:"metadata,omitempty"`
	Model              string                                    `json:"model"`
	LatencyMs          float32                                   `json:"latency_ms"`
	PredictionId       string                                    `json:"prediction_id"`
	FeedbackUrl        string                                    `json:"feedback_url"`
}

PredictPost200Response struct for PredictPost200Response

func NewPredictPost200Response

func NewPredictPost200Response(value float32, model string, latencyMs float32, predictionId string, feedbackUrl string) *PredictPost200Response

NewPredictPost200Response instantiates a new PredictPost200Response 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 NewPredictPost200ResponseWithDefaults

func NewPredictPost200ResponseWithDefaults() *PredictPost200Response

NewPredictPost200ResponseWithDefaults instantiates a new PredictPost200Response 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 (*PredictPost200Response) GetConfidence

GetConfidence returns the Confidence field value if set, zero value otherwise.

func (*PredictPost200Response) GetConfidenceInterval

GetConfidenceInterval returns the ConfidenceInterval field value if set, zero value otherwise.

func (*PredictPost200Response) GetConfidenceIntervalOk

func (o *PredictPost200Response) GetConfidenceIntervalOk() (*PredictPost200ResponseConfidenceInterval, bool)

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

func (*PredictPost200Response) GetConfidenceLevel

func (o *PredictPost200Response) GetConfidenceLevel() float32

GetConfidenceLevel returns the ConfidenceLevel field value if set, zero value otherwise.

func (*PredictPost200Response) GetConfidenceLevelOk

func (o *PredictPost200Response) GetConfidenceLevelOk() (*float32, bool)

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

func (*PredictPost200Response) GetConfidenceOk

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

func (*PredictPost200Response) GetFeedbackUrl

func (o *PredictPost200Response) GetFeedbackUrl() string

GetFeedbackUrl returns the FeedbackUrl field value

func (*PredictPost200Response) GetFeedbackUrlOk

func (o *PredictPost200Response) GetFeedbackUrlOk() (*string, bool)

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

func (*PredictPost200Response) GetInterval

func (o *PredictPost200Response) GetInterval() []float32

GetInterval returns the Interval field value if set, zero value otherwise.

func (*PredictPost200Response) GetIntervalOk

func (o *PredictPost200Response) GetIntervalOk() ([]float32, bool)

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

func (*PredictPost200Response) GetLatencyMs

func (o *PredictPost200Response) GetLatencyMs() float32

GetLatencyMs returns the LatencyMs field value

func (*PredictPost200Response) GetLatencyMsOk

func (o *PredictPost200Response) GetLatencyMsOk() (*float32, bool)

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

func (*PredictPost200Response) GetMetadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*PredictPost200Response) GetMetadataOk

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

func (*PredictPost200Response) GetModel

func (o *PredictPost200Response) GetModel() string

GetModel returns the Model field value

func (*PredictPost200Response) GetModelOk

func (o *PredictPost200Response) GetModelOk() (*string, bool)

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

func (*PredictPost200Response) GetPredictionId

func (o *PredictPost200Response) GetPredictionId() string

GetPredictionId returns the PredictionId field value

func (*PredictPost200Response) GetPredictionIdOk

func (o *PredictPost200Response) GetPredictionIdOk() (*string, bool)

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

func (*PredictPost200Response) GetTopFactors

GetTopFactors returns the TopFactors field value if set, zero value otherwise.

func (*PredictPost200Response) GetTopFactorsOk

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

func (*PredictPost200Response) GetValue

func (o *PredictPost200Response) GetValue() float32

GetValue returns the Value field value

func (*PredictPost200Response) GetValueOk

func (o *PredictPost200Response) GetValueOk() (*float32, bool)

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

func (*PredictPost200Response) HasConfidence

func (o *PredictPost200Response) HasConfidence() bool

HasConfidence returns a boolean if a field has been set.

func (*PredictPost200Response) HasConfidenceInterval

func (o *PredictPost200Response) HasConfidenceInterval() bool

HasConfidenceInterval returns a boolean if a field has been set.

func (*PredictPost200Response) HasConfidenceLevel

func (o *PredictPost200Response) HasConfidenceLevel() bool

HasConfidenceLevel returns a boolean if a field has been set.

func (*PredictPost200Response) HasInterval

func (o *PredictPost200Response) HasInterval() bool

HasInterval returns a boolean if a field has been set.

func (*PredictPost200Response) HasMetadata

func (o *PredictPost200Response) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*PredictPost200Response) HasTopFactors

func (o *PredictPost200Response) HasTopFactors() bool

HasTopFactors returns a boolean if a field has been set.

func (PredictPost200Response) MarshalJSON

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

func (*PredictPost200Response) SetConfidence

SetConfidence gets a reference to the given PredictPost200ResponseConfidence and assigns it to the Confidence field.

func (*PredictPost200Response) SetConfidenceInterval

SetConfidenceInterval gets a reference to the given PredictPost200ResponseConfidenceInterval and assigns it to the ConfidenceInterval field.

func (*PredictPost200Response) SetConfidenceLevel

func (o *PredictPost200Response) SetConfidenceLevel(v float32)

SetConfidenceLevel gets a reference to the given float32 and assigns it to the ConfidenceLevel field.

func (*PredictPost200Response) SetFeedbackUrl

func (o *PredictPost200Response) SetFeedbackUrl(v string)

SetFeedbackUrl sets field value

func (*PredictPost200Response) SetInterval

func (o *PredictPost200Response) SetInterval(v []float32)

SetInterval gets a reference to the given []float32 and assigns it to the Interval field.

func (*PredictPost200Response) SetLatencyMs

func (o *PredictPost200Response) SetLatencyMs(v float32)

SetLatencyMs sets field value

func (*PredictPost200Response) SetMetadata

SetMetadata gets a reference to the given PredictPost200ResponseMetadata and assigns it to the Metadata field.

func (*PredictPost200Response) SetModel

func (o *PredictPost200Response) SetModel(v string)

SetModel sets field value

func (*PredictPost200Response) SetPredictionId

func (o *PredictPost200Response) SetPredictionId(v string)

SetPredictionId sets field value

func (*PredictPost200Response) SetTopFactors

SetTopFactors gets a reference to the given []PredictPost200ResponseTopFactorsInner and assigns it to the TopFactors field.

func (*PredictPost200Response) SetValue

func (o *PredictPost200Response) SetValue(v float32)

SetValue sets field value

func (PredictPost200Response) ToMap

func (o PredictPost200Response) ToMap() (map[string]interface{}, error)

func (*PredictPost200Response) UnmarshalJSON

func (o *PredictPost200Response) UnmarshalJSON(data []byte) (err error)

type PredictPost200ResponseConfidence

type PredictPost200ResponseConfidence struct {
	Level float32 `json:"level"`
	Score float32 `json:"score"`
}

PredictPost200ResponseConfidence struct for PredictPost200ResponseConfidence

func NewPredictPost200ResponseConfidence

func NewPredictPost200ResponseConfidence(level float32, score float32) *PredictPost200ResponseConfidence

NewPredictPost200ResponseConfidence instantiates a new PredictPost200ResponseConfidence 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 NewPredictPost200ResponseConfidenceWithDefaults

func NewPredictPost200ResponseConfidenceWithDefaults() *PredictPost200ResponseConfidence

NewPredictPost200ResponseConfidenceWithDefaults instantiates a new PredictPost200ResponseConfidence 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 (*PredictPost200ResponseConfidence) GetLevel

GetLevel returns the Level field value

func (*PredictPost200ResponseConfidence) GetLevelOk

func (o *PredictPost200ResponseConfidence) GetLevelOk() (*float32, bool)

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

func (*PredictPost200ResponseConfidence) GetScore

GetScore returns the Score field value

func (*PredictPost200ResponseConfidence) GetScoreOk

func (o *PredictPost200ResponseConfidence) GetScoreOk() (*float32, bool)

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

func (PredictPost200ResponseConfidence) MarshalJSON

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

func (*PredictPost200ResponseConfidence) SetLevel

SetLevel sets field value

func (*PredictPost200ResponseConfidence) SetScore

SetScore sets field value

func (PredictPost200ResponseConfidence) ToMap

func (o PredictPost200ResponseConfidence) ToMap() (map[string]interface{}, error)

func (*PredictPost200ResponseConfidence) UnmarshalJSON

func (o *PredictPost200ResponseConfidence) UnmarshalJSON(data []byte) (err error)

type PredictPost200ResponseConfidenceInterval

type PredictPost200ResponseConfidenceInterval struct {
	Lower    float32 `json:"lower"`
	Upper    float32 `json:"upper"`
	Coverage float32 `json:"coverage"`
}

PredictPost200ResponseConfidenceInterval struct for PredictPost200ResponseConfidenceInterval

func NewPredictPost200ResponseConfidenceInterval

func NewPredictPost200ResponseConfidenceInterval(lower float32, upper float32, coverage float32) *PredictPost200ResponseConfidenceInterval

NewPredictPost200ResponseConfidenceInterval instantiates a new PredictPost200ResponseConfidenceInterval 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 NewPredictPost200ResponseConfidenceIntervalWithDefaults

func NewPredictPost200ResponseConfidenceIntervalWithDefaults() *PredictPost200ResponseConfidenceInterval

NewPredictPost200ResponseConfidenceIntervalWithDefaults instantiates a new PredictPost200ResponseConfidenceInterval 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 (*PredictPost200ResponseConfidenceInterval) GetCoverage

GetCoverage returns the Coverage field value

func (*PredictPost200ResponseConfidenceInterval) GetCoverageOk

func (o *PredictPost200ResponseConfidenceInterval) GetCoverageOk() (*float32, bool)

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

func (*PredictPost200ResponseConfidenceInterval) GetLower

GetLower returns the Lower field value

func (*PredictPost200ResponseConfidenceInterval) GetLowerOk

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

func (*PredictPost200ResponseConfidenceInterval) GetUpper

GetUpper returns the Upper field value

func (*PredictPost200ResponseConfidenceInterval) GetUpperOk

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

func (PredictPost200ResponseConfidenceInterval) MarshalJSON

func (*PredictPost200ResponseConfidenceInterval) SetCoverage

SetCoverage sets field value

func (*PredictPost200ResponseConfidenceInterval) SetLower

SetLower sets field value

func (*PredictPost200ResponseConfidenceInterval) SetUpper

SetUpper sets field value

func (PredictPost200ResponseConfidenceInterval) ToMap

func (o PredictPost200ResponseConfidenceInterval) ToMap() (map[string]interface{}, error)

func (*PredictPost200ResponseConfidenceInterval) UnmarshalJSON

func (o *PredictPost200ResponseConfidenceInterval) UnmarshalJSON(data []byte) (err error)

type PredictPost200ResponseMetadata

type PredictPost200ResponseMetadata struct {
	ModelVersion    string `json:"model_version"`
	TrainingData    string `json:"training_data"`
	PredictionBasis string `json:"prediction_basis"`
}

PredictPost200ResponseMetadata struct for PredictPost200ResponseMetadata

func NewPredictPost200ResponseMetadata

func NewPredictPost200ResponseMetadata(modelVersion string, trainingData string, predictionBasis string) *PredictPost200ResponseMetadata

NewPredictPost200ResponseMetadata instantiates a new PredictPost200ResponseMetadata 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 NewPredictPost200ResponseMetadataWithDefaults

func NewPredictPost200ResponseMetadataWithDefaults() *PredictPost200ResponseMetadata

NewPredictPost200ResponseMetadataWithDefaults instantiates a new PredictPost200ResponseMetadata 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 (*PredictPost200ResponseMetadata) GetModelVersion

func (o *PredictPost200ResponseMetadata) GetModelVersion() string

GetModelVersion returns the ModelVersion field value

func (*PredictPost200ResponseMetadata) GetModelVersionOk

func (o *PredictPost200ResponseMetadata) GetModelVersionOk() (*string, bool)

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

func (*PredictPost200ResponseMetadata) GetPredictionBasis

func (o *PredictPost200ResponseMetadata) GetPredictionBasis() string

GetPredictionBasis returns the PredictionBasis field value

func (*PredictPost200ResponseMetadata) GetPredictionBasisOk

func (o *PredictPost200ResponseMetadata) GetPredictionBasisOk() (*string, bool)

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

func (*PredictPost200ResponseMetadata) GetTrainingData

func (o *PredictPost200ResponseMetadata) GetTrainingData() string

GetTrainingData returns the TrainingData field value

func (*PredictPost200ResponseMetadata) GetTrainingDataOk

func (o *PredictPost200ResponseMetadata) GetTrainingDataOk() (*string, bool)

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

func (PredictPost200ResponseMetadata) MarshalJSON

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

func (*PredictPost200ResponseMetadata) SetModelVersion

func (o *PredictPost200ResponseMetadata) SetModelVersion(v string)

SetModelVersion sets field value

func (*PredictPost200ResponseMetadata) SetPredictionBasis

func (o *PredictPost200ResponseMetadata) SetPredictionBasis(v string)

SetPredictionBasis sets field value

func (*PredictPost200ResponseMetadata) SetTrainingData

func (o *PredictPost200ResponseMetadata) SetTrainingData(v string)

SetTrainingData sets field value

func (PredictPost200ResponseMetadata) ToMap

func (o PredictPost200ResponseMetadata) ToMap() (map[string]interface{}, error)

func (*PredictPost200ResponseMetadata) UnmarshalJSON

func (o *PredictPost200ResponseMetadata) UnmarshalJSON(data []byte) (err error)

type PredictPost200ResponseTopFactorsInner

type PredictPost200ResponseTopFactorsInner struct {
	Feature string  `json:"feature"`
	Impact  float32 `json:"impact"`
}

PredictPost200ResponseTopFactorsInner struct for PredictPost200ResponseTopFactorsInner

func NewPredictPost200ResponseTopFactorsInner

func NewPredictPost200ResponseTopFactorsInner(feature string, impact float32) *PredictPost200ResponseTopFactorsInner

NewPredictPost200ResponseTopFactorsInner instantiates a new PredictPost200ResponseTopFactorsInner 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 NewPredictPost200ResponseTopFactorsInnerWithDefaults

func NewPredictPost200ResponseTopFactorsInnerWithDefaults() *PredictPost200ResponseTopFactorsInner

NewPredictPost200ResponseTopFactorsInnerWithDefaults instantiates a new PredictPost200ResponseTopFactorsInner 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 (*PredictPost200ResponseTopFactorsInner) GetFeature

GetFeature returns the Feature field value

func (*PredictPost200ResponseTopFactorsInner) GetFeatureOk

func (o *PredictPost200ResponseTopFactorsInner) GetFeatureOk() (*string, bool)

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

func (*PredictPost200ResponseTopFactorsInner) GetImpact

GetImpact returns the Impact field value

func (*PredictPost200ResponseTopFactorsInner) GetImpactOk

func (o *PredictPost200ResponseTopFactorsInner) GetImpactOk() (*float32, bool)

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

func (PredictPost200ResponseTopFactorsInner) MarshalJSON

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

func (*PredictPost200ResponseTopFactorsInner) SetFeature

SetFeature sets field value

func (*PredictPost200ResponseTopFactorsInner) SetImpact

SetImpact sets field value

func (PredictPost200ResponseTopFactorsInner) ToMap

func (o PredictPost200ResponseTopFactorsInner) ToMap() (map[string]interface{}, error)

func (*PredictPost200ResponseTopFactorsInner) UnmarshalJSON

func (o *PredictPost200ResponseTopFactorsInner) UnmarshalJSON(data []byte) (err error)

type PredictPost400Response

type PredictPost400Response struct {
	Error string `json:"error"`
}

PredictPost400Response struct for PredictPost400Response

func NewPredictPost400Response

func NewPredictPost400Response(error_ string) *PredictPost400Response

NewPredictPost400Response instantiates a new PredictPost400Response 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 NewPredictPost400ResponseWithDefaults

func NewPredictPost400ResponseWithDefaults() *PredictPost400Response

NewPredictPost400ResponseWithDefaults instantiates a new PredictPost400Response 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 (*PredictPost400Response) GetError

func (o *PredictPost400Response) GetError() string

GetError returns the Error field value

func (*PredictPost400Response) GetErrorOk

func (o *PredictPost400Response) GetErrorOk() (*string, bool)

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

func (PredictPost400Response) MarshalJSON

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

func (*PredictPost400Response) SetError

func (o *PredictPost400Response) SetError(v string)

SetError sets field value

func (PredictPost400Response) ToMap

func (o PredictPost400Response) ToMap() (map[string]interface{}, error)

func (*PredictPost400Response) UnmarshalJSON

func (o *PredictPost400Response) UnmarshalJSON(data []byte) (err error)

type PredictPostRequest

type PredictPostRequest struct {
	Model        string                 `json:"model"`
	Features     map[string]interface{} `json:"features"`
	TrainConsent *bool                  `json:"train_consent,omitempty"`
}

PredictPostRequest struct for PredictPostRequest

func NewPredictPostRequest

func NewPredictPostRequest(model string, features map[string]interface{}) *PredictPostRequest

NewPredictPostRequest instantiates a new PredictPostRequest 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 NewPredictPostRequestWithDefaults

func NewPredictPostRequestWithDefaults() *PredictPostRequest

NewPredictPostRequestWithDefaults instantiates a new PredictPostRequest 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 (*PredictPostRequest) GetFeatures

func (o *PredictPostRequest) GetFeatures() map[string]interface{}

GetFeatures returns the Features field value

func (*PredictPostRequest) GetFeaturesOk

func (o *PredictPostRequest) GetFeaturesOk() (map[string]interface{}, bool)

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

func (*PredictPostRequest) GetModel

func (o *PredictPostRequest) GetModel() string

GetModel returns the Model field value

func (*PredictPostRequest) GetModelOk

func (o *PredictPostRequest) GetModelOk() (*string, bool)

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

func (*PredictPostRequest) GetTrainConsent

func (o *PredictPostRequest) GetTrainConsent() bool

GetTrainConsent returns the TrainConsent field value if set, zero value otherwise.

func (*PredictPostRequest) GetTrainConsentOk

func (o *PredictPostRequest) GetTrainConsentOk() (*bool, bool)

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

func (*PredictPostRequest) HasTrainConsent

func (o *PredictPostRequest) HasTrainConsent() bool

HasTrainConsent returns a boolean if a field has been set.

func (PredictPostRequest) MarshalJSON

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

func (*PredictPostRequest) SetFeatures

func (o *PredictPostRequest) SetFeatures(v map[string]interface{})

SetFeatures sets field value

func (*PredictPostRequest) SetModel

func (o *PredictPostRequest) SetModel(v string)

SetModel sets field value

func (*PredictPostRequest) SetTrainConsent

func (o *PredictPostRequest) SetTrainConsent(v bool)

SetTrainConsent gets a reference to the given bool and assigns it to the TrainConsent field.

func (PredictPostRequest) ToMap

func (o PredictPostRequest) ToMap() (map[string]interface{}, error)

func (*PredictPostRequest) UnmarshalJSON

func (o *PredictPostRequest) UnmarshalJSON(data []byte) (err error)

type PredictionsIdFeedbackPost200Response

type PredictionsIdFeedbackPost200Response struct {
	Received       bool    `json:"received"`
	CreditsAwarded float32 `json:"credits_awarded"`
	Duplicate      *bool   `json:"duplicate,omitempty"`
}

PredictionsIdFeedbackPost200Response struct for PredictionsIdFeedbackPost200Response

func NewPredictionsIdFeedbackPost200Response

func NewPredictionsIdFeedbackPost200Response(received bool, creditsAwarded float32) *PredictionsIdFeedbackPost200Response

NewPredictionsIdFeedbackPost200Response instantiates a new PredictionsIdFeedbackPost200Response 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 NewPredictionsIdFeedbackPost200ResponseWithDefaults

func NewPredictionsIdFeedbackPost200ResponseWithDefaults() *PredictionsIdFeedbackPost200Response

NewPredictionsIdFeedbackPost200ResponseWithDefaults instantiates a new PredictionsIdFeedbackPost200Response 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 (*PredictionsIdFeedbackPost200Response) GetCreditsAwarded

func (o *PredictionsIdFeedbackPost200Response) GetCreditsAwarded() float32

GetCreditsAwarded returns the CreditsAwarded field value

func (*PredictionsIdFeedbackPost200Response) GetCreditsAwardedOk

func (o *PredictionsIdFeedbackPost200Response) GetCreditsAwardedOk() (*float32, bool)

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

func (*PredictionsIdFeedbackPost200Response) GetDuplicate

func (o *PredictionsIdFeedbackPost200Response) GetDuplicate() bool

GetDuplicate returns the Duplicate field value if set, zero value otherwise.

func (*PredictionsIdFeedbackPost200Response) GetDuplicateOk

func (o *PredictionsIdFeedbackPost200Response) GetDuplicateOk() (*bool, bool)

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

func (*PredictionsIdFeedbackPost200Response) GetReceived

func (o *PredictionsIdFeedbackPost200Response) GetReceived() bool

GetReceived returns the Received field value

func (*PredictionsIdFeedbackPost200Response) GetReceivedOk

func (o *PredictionsIdFeedbackPost200Response) GetReceivedOk() (*bool, bool)

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

func (*PredictionsIdFeedbackPost200Response) HasDuplicate

func (o *PredictionsIdFeedbackPost200Response) HasDuplicate() bool

HasDuplicate returns a boolean if a field has been set.

func (PredictionsIdFeedbackPost200Response) MarshalJSON

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

func (*PredictionsIdFeedbackPost200Response) SetCreditsAwarded

func (o *PredictionsIdFeedbackPost200Response) SetCreditsAwarded(v float32)

SetCreditsAwarded sets field value

func (*PredictionsIdFeedbackPost200Response) SetDuplicate

func (o *PredictionsIdFeedbackPost200Response) SetDuplicate(v bool)

SetDuplicate gets a reference to the given bool and assigns it to the Duplicate field.

func (*PredictionsIdFeedbackPost200Response) SetReceived

func (o *PredictionsIdFeedbackPost200Response) SetReceived(v bool)

SetReceived sets field value

func (PredictionsIdFeedbackPost200Response) ToMap

func (o PredictionsIdFeedbackPost200Response) ToMap() (map[string]interface{}, error)

func (*PredictionsIdFeedbackPost200Response) UnmarshalJSON

func (o *PredictionsIdFeedbackPost200Response) UnmarshalJSON(data []byte) (err error)

type PredictionsIdFeedbackPostRequest

type PredictionsIdFeedbackPostRequest struct {
	ActualValue             *float32 `json:"actual_value,omitempty"`
	ActualClass             *bool    `json:"actual_class,omitempty"`
	OutcomeDate             *string  `json:"outcome_date,omitempty"`
	ConfidenceInMeasurement *float32 `json:"confidence_in_measurement,omitempty"`
	Rating                  *int32   `json:"rating,omitempty"`
	Comment                 *string  `json:"comment,omitempty"`
	Issue                   *string  `json:"issue,omitempty"`
}

PredictionsIdFeedbackPostRequest struct for PredictionsIdFeedbackPostRequest

func NewPredictionsIdFeedbackPostRequest

func NewPredictionsIdFeedbackPostRequest() *PredictionsIdFeedbackPostRequest

NewPredictionsIdFeedbackPostRequest instantiates a new PredictionsIdFeedbackPostRequest 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 NewPredictionsIdFeedbackPostRequestWithDefaults

func NewPredictionsIdFeedbackPostRequestWithDefaults() *PredictionsIdFeedbackPostRequest

NewPredictionsIdFeedbackPostRequestWithDefaults instantiates a new PredictionsIdFeedbackPostRequest 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 (*PredictionsIdFeedbackPostRequest) GetActualClass

func (o *PredictionsIdFeedbackPostRequest) GetActualClass() bool

GetActualClass returns the ActualClass field value if set, zero value otherwise.

func (*PredictionsIdFeedbackPostRequest) GetActualClassOk

func (o *PredictionsIdFeedbackPostRequest) GetActualClassOk() (*bool, bool)

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

func (*PredictionsIdFeedbackPostRequest) GetActualValue

func (o *PredictionsIdFeedbackPostRequest) GetActualValue() float32

GetActualValue returns the ActualValue field value if set, zero value otherwise.

func (*PredictionsIdFeedbackPostRequest) GetActualValueOk

func (o *PredictionsIdFeedbackPostRequest) GetActualValueOk() (*float32, bool)

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

func (*PredictionsIdFeedbackPostRequest) GetComment

func (o *PredictionsIdFeedbackPostRequest) GetComment() string

GetComment returns the Comment field value if set, zero value otherwise.

func (*PredictionsIdFeedbackPostRequest) GetCommentOk

func (o *PredictionsIdFeedbackPostRequest) GetCommentOk() (*string, bool)

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

func (*PredictionsIdFeedbackPostRequest) GetConfidenceInMeasurement

func (o *PredictionsIdFeedbackPostRequest) GetConfidenceInMeasurement() float32

GetConfidenceInMeasurement returns the ConfidenceInMeasurement field value if set, zero value otherwise.

func (*PredictionsIdFeedbackPostRequest) GetConfidenceInMeasurementOk

func (o *PredictionsIdFeedbackPostRequest) GetConfidenceInMeasurementOk() (*float32, bool)

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

func (*PredictionsIdFeedbackPostRequest) GetIssue

GetIssue returns the Issue field value if set, zero value otherwise.

func (*PredictionsIdFeedbackPostRequest) GetIssueOk

func (o *PredictionsIdFeedbackPostRequest) GetIssueOk() (*string, bool)

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

func (*PredictionsIdFeedbackPostRequest) GetOutcomeDate

func (o *PredictionsIdFeedbackPostRequest) GetOutcomeDate() string

GetOutcomeDate returns the OutcomeDate field value if set, zero value otherwise.

func (*PredictionsIdFeedbackPostRequest) GetOutcomeDateOk

func (o *PredictionsIdFeedbackPostRequest) GetOutcomeDateOk() (*string, bool)

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

func (*PredictionsIdFeedbackPostRequest) GetRating

func (o *PredictionsIdFeedbackPostRequest) GetRating() int32

GetRating returns the Rating field value if set, zero value otherwise.

func (*PredictionsIdFeedbackPostRequest) GetRatingOk

func (o *PredictionsIdFeedbackPostRequest) GetRatingOk() (*int32, bool)

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

func (*PredictionsIdFeedbackPostRequest) HasActualClass

func (o *PredictionsIdFeedbackPostRequest) HasActualClass() bool

HasActualClass returns a boolean if a field has been set.

func (*PredictionsIdFeedbackPostRequest) HasActualValue

func (o *PredictionsIdFeedbackPostRequest) HasActualValue() bool

HasActualValue returns a boolean if a field has been set.

func (*PredictionsIdFeedbackPostRequest) HasComment

func (o *PredictionsIdFeedbackPostRequest) HasComment() bool

HasComment returns a boolean if a field has been set.

func (*PredictionsIdFeedbackPostRequest) HasConfidenceInMeasurement

func (o *PredictionsIdFeedbackPostRequest) HasConfidenceInMeasurement() bool

HasConfidenceInMeasurement returns a boolean if a field has been set.

func (*PredictionsIdFeedbackPostRequest) HasIssue

func (o *PredictionsIdFeedbackPostRequest) HasIssue() bool

HasIssue returns a boolean if a field has been set.

func (*PredictionsIdFeedbackPostRequest) HasOutcomeDate

func (o *PredictionsIdFeedbackPostRequest) HasOutcomeDate() bool

HasOutcomeDate returns a boolean if a field has been set.

func (*PredictionsIdFeedbackPostRequest) HasRating

func (o *PredictionsIdFeedbackPostRequest) HasRating() bool

HasRating returns a boolean if a field has been set.

func (PredictionsIdFeedbackPostRequest) MarshalJSON

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

func (*PredictionsIdFeedbackPostRequest) SetActualClass

func (o *PredictionsIdFeedbackPostRequest) SetActualClass(v bool)

SetActualClass gets a reference to the given bool and assigns it to the ActualClass field.

func (*PredictionsIdFeedbackPostRequest) SetActualValue

func (o *PredictionsIdFeedbackPostRequest) SetActualValue(v float32)

SetActualValue gets a reference to the given float32 and assigns it to the ActualValue field.

func (*PredictionsIdFeedbackPostRequest) SetComment

func (o *PredictionsIdFeedbackPostRequest) SetComment(v string)

SetComment gets a reference to the given string and assigns it to the Comment field.

func (*PredictionsIdFeedbackPostRequest) SetConfidenceInMeasurement

func (o *PredictionsIdFeedbackPostRequest) SetConfidenceInMeasurement(v float32)

SetConfidenceInMeasurement gets a reference to the given float32 and assigns it to the ConfidenceInMeasurement field.

func (*PredictionsIdFeedbackPostRequest) SetIssue

SetIssue gets a reference to the given string and assigns it to the Issue field.

func (*PredictionsIdFeedbackPostRequest) SetOutcomeDate

func (o *PredictionsIdFeedbackPostRequest) SetOutcomeDate(v string)

SetOutcomeDate gets a reference to the given string and assigns it to the OutcomeDate field.

func (*PredictionsIdFeedbackPostRequest) SetRating

func (o *PredictionsIdFeedbackPostRequest) SetRating(v int32)

SetRating gets a reference to the given int32 and assigns it to the Rating field.

func (PredictionsIdFeedbackPostRequest) ToMap

func (o PredictionsIdFeedbackPostRequest) ToMap() (map[string]interface{}, error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

Jump to

Keyboard shortcuts

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