Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AdminAPIService
- func (a *AdminAPIService) Health(ctx context.Context) ApiHealthRequest
- func (a *AdminAPIService) HealthExecute(r ApiHealthRequest) (*HealthResponse, *http.Response, error)
- func (a *AdminAPIService) Metrics(ctx context.Context) ApiMetricsRequest
- func (a *AdminAPIService) MetricsExecute(r ApiMetricsRequest) (string, *http.Response, error)
- func (a *AdminAPIService) Ready(ctx context.Context) ApiReadyRequest
- func (a *AdminAPIService) ReadyExecute(r ApiReadyRequest) (*ReadyResponse, *http.Response, error)
- func (a *AdminAPIService) Status(ctx context.Context) ApiStatusRequest
- func (a *AdminAPIService) StatusExecute(r ApiStatusRequest) (map[string]interface{}, *http.Response, error)
- type ApiCreateRecordRequest
- type ApiHealthRequest
- type ApiListModelsRequest
- type ApiMetricsRequest
- type ApiQueryRecordsRequest
- type ApiReadyRequest
- type ApiStatusRequest
- type ApiValidateModelPayloadRequest
- type BasicAuth
- type Configuration
- type CreateRequest
- func (o *CreateRequest) GetPayload() map[string]interface{}
- func (o *CreateRequest) GetPayloadOk() (map[string]interface{}, bool)
- func (o CreateRequest) MarshalJSON() ([]byte, error)
- func (o *CreateRequest) SetPayload(v map[string]interface{})
- func (o CreateRequest) ToMap() (map[string]interface{}, error)
- func (o *CreateRequest) UnmarshalJSON(data []byte) (err error)
- type DiscoveryAPIService
- type ErrorResponse
- func (o *ErrorResponse) GetCode() string
- func (o *ErrorResponse) GetCodeOk() (*string, bool)
- func (o *ErrorResponse) GetDetails() interface{}
- func (o *ErrorResponse) GetDetailsOk() (*interface{}, bool)
- func (o *ErrorResponse) GetMessage() string
- func (o *ErrorResponse) GetMessageOk() (*string, bool)
- func (o *ErrorResponse) HasDetails() bool
- func (o ErrorResponse) MarshalJSON() ([]byte, error)
- func (o *ErrorResponse) SetCode(v string)
- func (o *ErrorResponse) SetDetails(v interface{})
- func (o *ErrorResponse) SetMessage(v string)
- func (o ErrorResponse) ToMap() (map[string]interface{}, error)
- func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error)
- type GenericOpenAPIError
- type HealthResponse
- func (o *HealthResponse) GetStatus() string
- func (o *HealthResponse) GetStatusOk() (*string, bool)
- func (o HealthResponse) MarshalJSON() ([]byte, error)
- func (o *HealthResponse) SetStatus(v string)
- func (o HealthResponse) ToMap() (map[string]interface{}, error)
- func (o *HealthResponse) UnmarshalJSON(data []byte) (err error)
- type MappedNullable
- type ModelVersion
- func (o *ModelVersion) GetId() string
- func (o *ModelVersion) GetIdOk() (*string, bool)
- func (o *ModelVersion) GetVersion() string
- func (o *ModelVersion) GetVersionOk() (*string, bool)
- func (o ModelVersion) MarshalJSON() ([]byte, error)
- func (o *ModelVersion) SetId(v string)
- func (o *ModelVersion) SetVersion(v string)
- func (o ModelVersion) ToMap() (map[string]interface{}, error)
- func (o *ModelVersion) UnmarshalJSON(data []byte) (err error)
- type ModelsAPIService
- func (a *ModelsAPIService) CreateRecord(ctx context.Context, model string, version string) ApiCreateRecordRequest
- func (a *ModelsAPIService) CreateRecordExecute(r ApiCreateRecordRequest) (*Record, *http.Response, error)
- func (a *ModelsAPIService) QueryRecords(ctx context.Context, model string, version string) ApiQueryRecordsRequest
- func (a *ModelsAPIService) QueryRecordsExecute(r ApiQueryRecordsRequest) (*QueryResponse, *http.Response, error)
- func (a *ModelsAPIService) ValidateModelPayload(ctx context.Context, model string, version string) ApiValidateModelPayloadRequest
- func (a *ModelsAPIService) ValidateModelPayloadExecute(r ApiValidateModelPayloadRequest) (*ValidationReport, *http.Response, error)
- type ModelsResponse
- func (o *ModelsResponse) GetModels() []ModelVersion
- func (o *ModelsResponse) GetModelsOk() ([]ModelVersion, bool)
- func (o ModelsResponse) MarshalJSON() ([]byte, error)
- func (o *ModelsResponse) SetModels(v []ModelVersion)
- func (o ModelsResponse) ToMap() (map[string]interface{}, error)
- func (o *ModelsResponse) UnmarshalJSON(data []byte) (err error)
- type NullableBool
- type NullableCreateRequest
- func (v NullableCreateRequest) Get() *CreateRequest
- func (v NullableCreateRequest) IsSet() bool
- func (v NullableCreateRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateRequest) Set(val *CreateRequest)
- func (v *NullableCreateRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateRequest) Unset()
- type NullableErrorResponse
- func (v NullableErrorResponse) Get() *ErrorResponse
- func (v NullableErrorResponse) IsSet() bool
- func (v NullableErrorResponse) MarshalJSON() ([]byte, error)
- func (v *NullableErrorResponse) Set(val *ErrorResponse)
- func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error
- func (v *NullableErrorResponse) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableHealthResponse
- func (v NullableHealthResponse) Get() *HealthResponse
- func (v NullableHealthResponse) IsSet() bool
- func (v NullableHealthResponse) MarshalJSON() ([]byte, error)
- func (v *NullableHealthResponse) Set(val *HealthResponse)
- func (v *NullableHealthResponse) UnmarshalJSON(src []byte) error
- func (v *NullableHealthResponse) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableModelVersion
- func (v NullableModelVersion) Get() *ModelVersion
- func (v NullableModelVersion) IsSet() bool
- func (v NullableModelVersion) MarshalJSON() ([]byte, error)
- func (v *NullableModelVersion) Set(val *ModelVersion)
- func (v *NullableModelVersion) UnmarshalJSON(src []byte) error
- func (v *NullableModelVersion) Unset()
- type NullableModelsResponse
- func (v NullableModelsResponse) Get() *ModelsResponse
- func (v NullableModelsResponse) IsSet() bool
- func (v NullableModelsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableModelsResponse) Set(val *ModelsResponse)
- func (v *NullableModelsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableModelsResponse) Unset()
- type NullableQueryRequest
- func (v NullableQueryRequest) Get() *QueryRequest
- func (v NullableQueryRequest) IsSet() bool
- func (v NullableQueryRequest) MarshalJSON() ([]byte, error)
- func (v *NullableQueryRequest) Set(val *QueryRequest)
- func (v *NullableQueryRequest) UnmarshalJSON(src []byte) error
- func (v *NullableQueryRequest) Unset()
- type NullableQueryResponse
- func (v NullableQueryResponse) Get() *QueryResponse
- func (v NullableQueryResponse) IsSet() bool
- func (v NullableQueryResponse) MarshalJSON() ([]byte, error)
- func (v *NullableQueryResponse) Set(val *QueryResponse)
- func (v *NullableQueryResponse) UnmarshalJSON(src []byte) error
- func (v *NullableQueryResponse) Unset()
- type NullableReadyResponse
- func (v NullableReadyResponse) Get() *ReadyResponse
- func (v NullableReadyResponse) IsSet() bool
- func (v NullableReadyResponse) MarshalJSON() ([]byte, error)
- func (v *NullableReadyResponse) Set(val *ReadyResponse)
- func (v *NullableReadyResponse) UnmarshalJSON(src []byte) error
- func (v *NullableReadyResponse) Unset()
- type NullableRecord
- type NullableString
- type NullableTime
- type NullableValidateRequest
- func (v NullableValidateRequest) Get() *ValidateRequest
- func (v NullableValidateRequest) IsSet() bool
- func (v NullableValidateRequest) MarshalJSON() ([]byte, error)
- func (v *NullableValidateRequest) Set(val *ValidateRequest)
- func (v *NullableValidateRequest) UnmarshalJSON(src []byte) error
- func (v *NullableValidateRequest) Unset()
- type NullableValidationReport
- func (v NullableValidationReport) Get() *ValidationReport
- func (v NullableValidationReport) IsSet() bool
- func (v NullableValidationReport) MarshalJSON() ([]byte, error)
- func (v *NullableValidationReport) Set(val *ValidationReport)
- func (v *NullableValidationReport) UnmarshalJSON(src []byte) error
- func (v *NullableValidationReport) Unset()
- type NullableValidationResult
- func (v NullableValidationResult) Get() *ValidationResult
- func (v NullableValidationResult) IsSet() bool
- func (v NullableValidationResult) MarshalJSON() ([]byte, error)
- func (v *NullableValidationResult) Set(val *ValidationResult)
- func (v *NullableValidationResult) UnmarshalJSON(src []byte) error
- func (v *NullableValidationResult) Unset()
- type QueryRequest
- func (o *QueryRequest) GetFilter() map[string]interface{}
- func (o *QueryRequest) GetFilterOk() (map[string]interface{}, bool)
- func (o QueryRequest) MarshalJSON() ([]byte, error)
- func (o *QueryRequest) SetFilter(v map[string]interface{})
- func (o QueryRequest) ToMap() (map[string]interface{}, error)
- func (o *QueryRequest) UnmarshalJSON(data []byte) (err error)
- type QueryResponse
- func (o *QueryResponse) GetRecords() []Record
- func (o *QueryResponse) GetRecordsOk() ([]Record, bool)
- func (o QueryResponse) MarshalJSON() ([]byte, error)
- func (o *QueryResponse) SetRecords(v []Record)
- func (o QueryResponse) ToMap() (map[string]interface{}, error)
- func (o *QueryResponse) UnmarshalJSON(data []byte) (err error)
- type ReadyResponse
- func (o *ReadyResponse) GetStatus() string
- func (o *ReadyResponse) GetStatusOk() (*string, bool)
- func (o ReadyResponse) MarshalJSON() ([]byte, error)
- func (o *ReadyResponse) SetStatus(v string)
- func (o ReadyResponse) ToMap() (map[string]interface{}, error)
- func (o *ReadyResponse) UnmarshalJSON(data []byte) (err error)
- type Record
- func (o *Record) GetId() string
- func (o *Record) GetIdOk() (*string, bool)
- func (o *Record) GetModel() string
- func (o *Record) GetModelOk() (*string, bool)
- func (o *Record) GetPayload() map[string]interface{}
- func (o *Record) GetPayloadOk() (map[string]interface{}, bool)
- func (o *Record) GetVersion() string
- func (o *Record) GetVersionOk() (*string, bool)
- func (o Record) MarshalJSON() ([]byte, error)
- func (o *Record) SetId(v string)
- func (o *Record) SetModel(v string)
- func (o *Record) SetPayload(v map[string]interface{})
- func (o *Record) SetVersion(v string)
- func (o Record) ToMap() (map[string]interface{}, error)
- func (o *Record) UnmarshalJSON(data []byte) (err error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type ValidateRequest
- func (o *ValidateRequest) GetPayload() map[string]interface{}
- func (o *ValidateRequest) GetPayloadOk() (map[string]interface{}, bool)
- func (o ValidateRequest) MarshalJSON() ([]byte, error)
- func (o *ValidateRequest) SetPayload(v map[string]interface{})
- func (o ValidateRequest) ToMap() (map[string]interface{}, error)
- func (o *ValidateRequest) UnmarshalJSON(data []byte) (err error)
- type ValidationReport
- func (o *ValidationReport) GetPassed() bool
- func (o *ValidationReport) GetPassedOk() (*bool, bool)
- func (o *ValidationReport) GetResults() []ValidationResult
- func (o *ValidationReport) GetResultsOk() ([]ValidationResult, bool)
- func (o ValidationReport) MarshalJSON() ([]byte, error)
- func (o *ValidationReport) SetPassed(v bool)
- func (o *ValidationReport) SetResults(v []ValidationResult)
- func (o ValidationReport) ToMap() (map[string]interface{}, error)
- func (o *ValidationReport) UnmarshalJSON(data []byte) (err error)
- type ValidationResult
- func (o *ValidationResult) GetMessage() string
- func (o *ValidationResult) GetMessageOk() (*string, bool)
- func (o *ValidationResult) GetPath() string
- func (o *ValidationResult) GetPathOk() (*string, bool)
- func (o *ValidationResult) GetSeverity() string
- func (o *ValidationResult) GetSeverityOk() (*string, bool)
- func (o *ValidationResult) HasMessage() bool
- func (o *ValidationResult) HasPath() bool
- func (o *ValidationResult) HasSeverity() bool
- func (o ValidationResult) MarshalJSON() ([]byte, error)
- func (o *ValidationResult) SetMessage(v string)
- func (o *ValidationResult) SetPath(v string)
- func (o *ValidationResult) SetSeverity(v string)
- func (o ValidationResult) ToMap() (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
var ( // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // 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 ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct {
AdminAPI *AdminAPIService
DiscoveryAPI *DiscoveryAPIService
ModelsAPI *ModelsAPIService
// contains filtered or unexported fields
}
APIClient manages communication with the CE-RISE Hex Core Service API API v0.0.1 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 ¶
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 AdminAPIService ¶
type AdminAPIService service
AdminAPIService AdminAPI service
func (*AdminAPIService) Health ¶
func (a *AdminAPIService) Health(ctx context.Context) ApiHealthRequest
Health Liveness probe
Returns service process liveness.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHealthRequest
func (*AdminAPIService) HealthExecute ¶
func (a *AdminAPIService) HealthExecute(r ApiHealthRequest) (*HealthResponse, *http.Response, error)
Execute executes the request
@return HealthResponse
func (*AdminAPIService) Metrics ¶
func (a *AdminAPIService) Metrics(ctx context.Context) ApiMetricsRequest
Metrics Prometheus metrics
Returns Prometheus exposition format when metrics are enabled.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiMetricsRequest
func (*AdminAPIService) MetricsExecute ¶
func (a *AdminAPIService) MetricsExecute(r ApiMetricsRequest) (string, *http.Response, error)
Execute executes the request
@return string
func (*AdminAPIService) Ready ¶
func (a *AdminAPIService) Ready(ctx context.Context) ApiReadyRequest
Ready Readiness probe
Returns readiness based on runtime adapter and registry state.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiReadyRequest
func (*AdminAPIService) ReadyExecute ¶
func (a *AdminAPIService) ReadyExecute(r ApiReadyRequest) (*ReadyResponse, *http.Response, error)
Execute executes the request
@return ReadyResponse
func (*AdminAPIService) Status ¶
func (a *AdminAPIService) Status(ctx context.Context) ApiStatusRequest
Status Runtime status
Returns runtime status payload useful for operations dashboards.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiStatusRequest
func (*AdminAPIService) StatusExecute ¶
func (a *AdminAPIService) StatusExecute(r ApiStatusRequest) (map[string]interface{}, *http.Response, error)
Execute executes the request
@return map[string]interface{}
type ApiCreateRecordRequest ¶
type ApiCreateRecordRequest struct {
ApiService *ModelsAPIService
// contains filtered or unexported fields
}
func (ApiCreateRecordRequest) CreateRequest ¶
func (r ApiCreateRecordRequest) CreateRequest(createRequest CreateRequest) ApiCreateRecordRequest
func (ApiCreateRecordRequest) Execute ¶
func (r ApiCreateRecordRequest) Execute() (*Record, *http.Response, error)
func (ApiCreateRecordRequest) IdempotencyKey ¶
func (r ApiCreateRecordRequest) IdempotencyKey(idempotencyKey string) ApiCreateRecordRequest
Client-generated key used to deduplicate retries for side-effecting requests.
type ApiHealthRequest ¶
type ApiHealthRequest struct {
ApiService *AdminAPIService
// contains filtered or unexported fields
}
func (ApiHealthRequest) Execute ¶
func (r ApiHealthRequest) Execute() (*HealthResponse, *http.Response, error)
type ApiListModelsRequest ¶
type ApiListModelsRequest struct {
ApiService *DiscoveryAPIService
// contains filtered or unexported fields
}
func (ApiListModelsRequest) Execute ¶
func (r ApiListModelsRequest) Execute() (*ModelsResponse, *http.Response, error)
type ApiMetricsRequest ¶
type ApiMetricsRequest struct {
ApiService *AdminAPIService
// contains filtered or unexported fields
}
type ApiQueryRecordsRequest ¶
type ApiQueryRecordsRequest struct {
ApiService *ModelsAPIService
// contains filtered or unexported fields
}
func (ApiQueryRecordsRequest) Execute ¶
func (r ApiQueryRecordsRequest) Execute() (*QueryResponse, *http.Response, error)
func (ApiQueryRecordsRequest) QueryRequest ¶
func (r ApiQueryRecordsRequest) QueryRequest(queryRequest QueryRequest) ApiQueryRecordsRequest
type ApiReadyRequest ¶
type ApiReadyRequest struct {
ApiService *AdminAPIService
// contains filtered or unexported fields
}
func (ApiReadyRequest) Execute ¶
func (r ApiReadyRequest) Execute() (*ReadyResponse, *http.Response, error)
type ApiStatusRequest ¶
type ApiStatusRequest struct {
ApiService *AdminAPIService
// contains filtered or unexported fields
}
type ApiValidateModelPayloadRequest ¶
type ApiValidateModelPayloadRequest struct {
ApiService *ModelsAPIService
// contains filtered or unexported fields
}
func (ApiValidateModelPayloadRequest) Execute ¶
func (r ApiValidateModelPayloadRequest) Execute() (*ValidationReport, *http.Response, error)
func (ApiValidateModelPayloadRequest) ValidateRequest ¶
func (r ApiValidateModelPayloadRequest) ValidateRequest(validateRequest ValidateRequest) ApiValidateModelPayloadRequest
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) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type CreateRequest ¶
type CreateRequest struct {
// Payload to validate and persist as a new record.
Payload map[string]interface{} `json:"payload"`
}
CreateRequest struct for CreateRequest
func NewCreateRequest ¶
func NewCreateRequest(payload map[string]interface{}) *CreateRequest
NewCreateRequest instantiates a new CreateRequest 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 NewCreateRequestWithDefaults ¶
func NewCreateRequestWithDefaults() *CreateRequest
NewCreateRequestWithDefaults instantiates a new CreateRequest 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 (*CreateRequest) GetPayload ¶
func (o *CreateRequest) GetPayload() map[string]interface{}
GetPayload returns the Payload field value
func (*CreateRequest) GetPayloadOk ¶
func (o *CreateRequest) GetPayloadOk() (map[string]interface{}, bool)
GetPayloadOk returns a tuple with the Payload field value and a boolean to check if the value has been set.
func (CreateRequest) MarshalJSON ¶
func (o CreateRequest) MarshalJSON() ([]byte, error)
func (*CreateRequest) SetPayload ¶
func (o *CreateRequest) SetPayload(v map[string]interface{})
SetPayload sets field value
func (CreateRequest) ToMap ¶
func (o CreateRequest) ToMap() (map[string]interface{}, error)
func (*CreateRequest) UnmarshalJSON ¶
func (o *CreateRequest) UnmarshalJSON(data []byte) (err error)
type DiscoveryAPIService ¶
type DiscoveryAPIService service
DiscoveryAPIService DiscoveryAPI service
func (*DiscoveryAPIService) ListModels ¶
func (a *DiscoveryAPIService) ListModels(ctx context.Context) ApiListModelsRequest
ListModels List available model versions
Returns model/version pairs currently loaded in the active registry index.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListModelsRequest
func (*DiscoveryAPIService) ListModelsExecute ¶
func (a *DiscoveryAPIService) ListModelsExecute(r ApiListModelsRequest) (*ModelsResponse, *http.Response, error)
Execute executes the request
@return ModelsResponse
type ErrorResponse ¶
type ErrorResponse struct {
// Stable machine-readable error code.
Code string `json:"code"`
// Human-readable error message.
Message string `json:"message"`
// Optional error details payload.
Details interface{} `json:"details,omitempty"`
}
ErrorResponse struct for ErrorResponse
func NewErrorResponse ¶
func NewErrorResponse(code string, message string) *ErrorResponse
NewErrorResponse instantiates a new ErrorResponse 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 NewErrorResponseWithDefaults ¶
func NewErrorResponseWithDefaults() *ErrorResponse
NewErrorResponseWithDefaults instantiates a new ErrorResponse 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 (*ErrorResponse) GetCode ¶
func (o *ErrorResponse) GetCode() string
GetCode returns the Code field value
func (*ErrorResponse) GetCodeOk ¶
func (o *ErrorResponse) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.
func (*ErrorResponse) GetDetails ¶
func (o *ErrorResponse) GetDetails() interface{}
GetDetails returns the Details field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ErrorResponse) GetDetailsOk ¶
func (o *ErrorResponse) GetDetailsOk() (*interface{}, bool)
GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ErrorResponse) GetMessage ¶
func (o *ErrorResponse) GetMessage() string
GetMessage returns the Message field value
func (*ErrorResponse) GetMessageOk ¶
func (o *ErrorResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*ErrorResponse) HasDetails ¶
func (o *ErrorResponse) HasDetails() bool
HasDetails returns a boolean if a field has been set.
func (ErrorResponse) MarshalJSON ¶
func (o ErrorResponse) MarshalJSON() ([]byte, error)
func (*ErrorResponse) SetDetails ¶
func (o *ErrorResponse) SetDetails(v interface{})
SetDetails gets a reference to the given interface{} and assigns it to the Details field.
func (*ErrorResponse) SetMessage ¶
func (o *ErrorResponse) SetMessage(v string)
SetMessage sets field value
func (ErrorResponse) ToMap ¶
func (o ErrorResponse) ToMap() (map[string]interface{}, error)
func (*ErrorResponse) UnmarshalJSON ¶
func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error)
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 HealthResponse ¶
type HealthResponse struct {
// Health status string.
Status string `json:"status"`
}
HealthResponse struct for HealthResponse
func NewHealthResponse ¶
func NewHealthResponse(status string) *HealthResponse
NewHealthResponse instantiates a new HealthResponse 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 NewHealthResponseWithDefaults ¶
func NewHealthResponseWithDefaults() *HealthResponse
NewHealthResponseWithDefaults instantiates a new HealthResponse 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 (*HealthResponse) GetStatus ¶
func (o *HealthResponse) GetStatus() string
GetStatus returns the Status field value
func (*HealthResponse) GetStatusOk ¶
func (o *HealthResponse) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (HealthResponse) MarshalJSON ¶
func (o HealthResponse) MarshalJSON() ([]byte, error)
func (*HealthResponse) SetStatus ¶
func (o *HealthResponse) SetStatus(v string)
SetStatus sets field value
func (HealthResponse) ToMap ¶
func (o HealthResponse) ToMap() (map[string]interface{}, error)
func (*HealthResponse) UnmarshalJSON ¶
func (o *HealthResponse) UnmarshalJSON(data []byte) (err error)
type MappedNullable ¶
type ModelVersion ¶
type ModelVersion struct {
// Model identifier.
Id string `json:"id"`
// Model version string.
Version string `json:"version"`
}
ModelVersion struct for ModelVersion
func NewModelVersion ¶
func NewModelVersion(id string, version string) *ModelVersion
NewModelVersion instantiates a new ModelVersion 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 NewModelVersionWithDefaults ¶
func NewModelVersionWithDefaults() *ModelVersion
NewModelVersionWithDefaults instantiates a new ModelVersion 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 (*ModelVersion) GetIdOk ¶
func (o *ModelVersion) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*ModelVersion) GetVersion ¶
func (o *ModelVersion) GetVersion() string
GetVersion returns the Version field value
func (*ModelVersion) GetVersionOk ¶
func (o *ModelVersion) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.
func (ModelVersion) MarshalJSON ¶
func (o ModelVersion) MarshalJSON() ([]byte, error)
func (*ModelVersion) SetVersion ¶
func (o *ModelVersion) SetVersion(v string)
SetVersion sets field value
func (ModelVersion) ToMap ¶
func (o ModelVersion) ToMap() (map[string]interface{}, error)
func (*ModelVersion) UnmarshalJSON ¶
func (o *ModelVersion) UnmarshalJSON(data []byte) (err error)
type ModelsAPIService ¶
type ModelsAPIService service
ModelsAPIService ModelsAPI service
func (*ModelsAPIService) CreateRecord ¶
func (a *ModelsAPIService) CreateRecord(ctx context.Context, model string, version string) ApiCreateRecordRequest
CreateRecord Validate and create a record
Validates input payload and writes a new record through the configured record store adapter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param model Model identifier. @param version Model version. @return ApiCreateRecordRequest
func (*ModelsAPIService) CreateRecordExecute ¶
func (a *ModelsAPIService) CreateRecordExecute(r ApiCreateRecordRequest) (*Record, *http.Response, error)
Execute executes the request
@return Record
func (*ModelsAPIService) QueryRecords ¶
func (a *ModelsAPIService) QueryRecords(ctx context.Context, model string, version string) ApiQueryRecordsRequest
QueryRecords Query records for a model version
Applies a filter object and returns matching records provided by the record store adapter.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param model Model identifier. @param version Model version. @return ApiQueryRecordsRequest
func (*ModelsAPIService) QueryRecordsExecute ¶
func (a *ModelsAPIService) QueryRecordsExecute(r ApiQueryRecordsRequest) (*QueryResponse, *http.Response, error)
Execute executes the request
@return QueryResponse
func (*ModelsAPIService) ValidateModelPayload ¶
func (a *ModelsAPIService) ValidateModelPayload(ctx context.Context, model string, version string) ApiValidateModelPayloadRequest
ValidateModelPayload Validate payload against model rules
Runs configured validators for the selected model/version and returns a merged validation report.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param model Model identifier, for example `re-indicators-specification`. @param version Model version string, for example `0.0.3`. @return ApiValidateModelPayloadRequest
func (*ModelsAPIService) ValidateModelPayloadExecute ¶
func (a *ModelsAPIService) ValidateModelPayloadExecute(r ApiValidateModelPayloadRequest) (*ValidationReport, *http.Response, error)
Execute executes the request
@return ValidationReport
type ModelsResponse ¶
type ModelsResponse struct {
Models []ModelVersion `json:"models"`
}
ModelsResponse struct for ModelsResponse
func NewModelsResponse ¶
func NewModelsResponse(models []ModelVersion) *ModelsResponse
NewModelsResponse instantiates a new ModelsResponse 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 NewModelsResponseWithDefaults ¶
func NewModelsResponseWithDefaults() *ModelsResponse
NewModelsResponseWithDefaults instantiates a new ModelsResponse 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 (*ModelsResponse) GetModels ¶
func (o *ModelsResponse) GetModels() []ModelVersion
GetModels returns the Models field value
func (*ModelsResponse) GetModelsOk ¶
func (o *ModelsResponse) GetModelsOk() ([]ModelVersion, bool)
GetModelsOk returns a tuple with the Models field value and a boolean to check if the value has been set.
func (ModelsResponse) MarshalJSON ¶
func (o ModelsResponse) MarshalJSON() ([]byte, error)
func (*ModelsResponse) SetModels ¶
func (o *ModelsResponse) SetModels(v []ModelVersion)
SetModels sets field value
func (ModelsResponse) ToMap ¶
func (o ModelsResponse) ToMap() (map[string]interface{}, error)
func (*ModelsResponse) UnmarshalJSON ¶
func (o *ModelsResponse) 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 NullableCreateRequest ¶
type NullableCreateRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateRequest ¶
func NewNullableCreateRequest(val *CreateRequest) *NullableCreateRequest
func (NullableCreateRequest) Get ¶
func (v NullableCreateRequest) Get() *CreateRequest
func (NullableCreateRequest) IsSet ¶
func (v NullableCreateRequest) IsSet() bool
func (NullableCreateRequest) MarshalJSON ¶
func (v NullableCreateRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateRequest) Set ¶
func (v *NullableCreateRequest) Set(val *CreateRequest)
func (*NullableCreateRequest) UnmarshalJSON ¶
func (v *NullableCreateRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateRequest) Unset ¶
func (v *NullableCreateRequest) Unset()
type NullableErrorResponse ¶
type NullableErrorResponse struct {
// contains filtered or unexported fields
}
func NewNullableErrorResponse ¶
func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse
func (NullableErrorResponse) Get ¶
func (v NullableErrorResponse) Get() *ErrorResponse
func (NullableErrorResponse) IsSet ¶
func (v NullableErrorResponse) IsSet() bool
func (NullableErrorResponse) MarshalJSON ¶
func (v NullableErrorResponse) MarshalJSON() ([]byte, error)
func (*NullableErrorResponse) Set ¶
func (v *NullableErrorResponse) Set(val *ErrorResponse)
func (*NullableErrorResponse) UnmarshalJSON ¶
func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error
func (*NullableErrorResponse) Unset ¶
func (v *NullableErrorResponse) 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 NullableHealthResponse ¶
type NullableHealthResponse struct {
// contains filtered or unexported fields
}
func NewNullableHealthResponse ¶
func NewNullableHealthResponse(val *HealthResponse) *NullableHealthResponse
func (NullableHealthResponse) Get ¶
func (v NullableHealthResponse) Get() *HealthResponse
func (NullableHealthResponse) IsSet ¶
func (v NullableHealthResponse) IsSet() bool
func (NullableHealthResponse) MarshalJSON ¶
func (v NullableHealthResponse) MarshalJSON() ([]byte, error)
func (*NullableHealthResponse) Set ¶
func (v *NullableHealthResponse) Set(val *HealthResponse)
func (*NullableHealthResponse) UnmarshalJSON ¶
func (v *NullableHealthResponse) UnmarshalJSON(src []byte) error
func (*NullableHealthResponse) Unset ¶
func (v *NullableHealthResponse) 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 NullableModelVersion ¶
type NullableModelVersion struct {
// contains filtered or unexported fields
}
func NewNullableModelVersion ¶
func NewNullableModelVersion(val *ModelVersion) *NullableModelVersion
func (NullableModelVersion) Get ¶
func (v NullableModelVersion) Get() *ModelVersion
func (NullableModelVersion) IsSet ¶
func (v NullableModelVersion) IsSet() bool
func (NullableModelVersion) MarshalJSON ¶
func (v NullableModelVersion) MarshalJSON() ([]byte, error)
func (*NullableModelVersion) Set ¶
func (v *NullableModelVersion) Set(val *ModelVersion)
func (*NullableModelVersion) UnmarshalJSON ¶
func (v *NullableModelVersion) UnmarshalJSON(src []byte) error
func (*NullableModelVersion) Unset ¶
func (v *NullableModelVersion) Unset()
type NullableModelsResponse ¶
type NullableModelsResponse struct {
// contains filtered or unexported fields
}
func NewNullableModelsResponse ¶
func NewNullableModelsResponse(val *ModelsResponse) *NullableModelsResponse
func (NullableModelsResponse) Get ¶
func (v NullableModelsResponse) Get() *ModelsResponse
func (NullableModelsResponse) IsSet ¶
func (v NullableModelsResponse) IsSet() bool
func (NullableModelsResponse) MarshalJSON ¶
func (v NullableModelsResponse) MarshalJSON() ([]byte, error)
func (*NullableModelsResponse) Set ¶
func (v *NullableModelsResponse) Set(val *ModelsResponse)
func (*NullableModelsResponse) UnmarshalJSON ¶
func (v *NullableModelsResponse) UnmarshalJSON(src []byte) error
func (*NullableModelsResponse) Unset ¶
func (v *NullableModelsResponse) Unset()
type NullableQueryRequest ¶
type NullableQueryRequest struct {
// contains filtered or unexported fields
}
func NewNullableQueryRequest ¶
func NewNullableQueryRequest(val *QueryRequest) *NullableQueryRequest
func (NullableQueryRequest) Get ¶
func (v NullableQueryRequest) Get() *QueryRequest
func (NullableQueryRequest) IsSet ¶
func (v NullableQueryRequest) IsSet() bool
func (NullableQueryRequest) MarshalJSON ¶
func (v NullableQueryRequest) MarshalJSON() ([]byte, error)
func (*NullableQueryRequest) Set ¶
func (v *NullableQueryRequest) Set(val *QueryRequest)
func (*NullableQueryRequest) UnmarshalJSON ¶
func (v *NullableQueryRequest) UnmarshalJSON(src []byte) error
func (*NullableQueryRequest) Unset ¶
func (v *NullableQueryRequest) Unset()
type NullableQueryResponse ¶
type NullableQueryResponse struct {
// contains filtered or unexported fields
}
func NewNullableQueryResponse ¶
func NewNullableQueryResponse(val *QueryResponse) *NullableQueryResponse
func (NullableQueryResponse) Get ¶
func (v NullableQueryResponse) Get() *QueryResponse
func (NullableQueryResponse) IsSet ¶
func (v NullableQueryResponse) IsSet() bool
func (NullableQueryResponse) MarshalJSON ¶
func (v NullableQueryResponse) MarshalJSON() ([]byte, error)
func (*NullableQueryResponse) Set ¶
func (v *NullableQueryResponse) Set(val *QueryResponse)
func (*NullableQueryResponse) UnmarshalJSON ¶
func (v *NullableQueryResponse) UnmarshalJSON(src []byte) error
func (*NullableQueryResponse) Unset ¶
func (v *NullableQueryResponse) Unset()
type NullableReadyResponse ¶
type NullableReadyResponse struct {
// contains filtered or unexported fields
}
func NewNullableReadyResponse ¶
func NewNullableReadyResponse(val *ReadyResponse) *NullableReadyResponse
func (NullableReadyResponse) Get ¶
func (v NullableReadyResponse) Get() *ReadyResponse
func (NullableReadyResponse) IsSet ¶
func (v NullableReadyResponse) IsSet() bool
func (NullableReadyResponse) MarshalJSON ¶
func (v NullableReadyResponse) MarshalJSON() ([]byte, error)
func (*NullableReadyResponse) Set ¶
func (v *NullableReadyResponse) Set(val *ReadyResponse)
func (*NullableReadyResponse) UnmarshalJSON ¶
func (v *NullableReadyResponse) UnmarshalJSON(src []byte) error
func (*NullableReadyResponse) Unset ¶
func (v *NullableReadyResponse) Unset()
type NullableRecord ¶
type NullableRecord struct {
// contains filtered or unexported fields
}
func NewNullableRecord ¶
func NewNullableRecord(val *Record) *NullableRecord
func (NullableRecord) Get ¶
func (v NullableRecord) Get() *Record
func (NullableRecord) IsSet ¶
func (v NullableRecord) IsSet() bool
func (NullableRecord) MarshalJSON ¶
func (v NullableRecord) MarshalJSON() ([]byte, error)
func (*NullableRecord) Set ¶
func (v *NullableRecord) Set(val *Record)
func (*NullableRecord) UnmarshalJSON ¶
func (v *NullableRecord) UnmarshalJSON(src []byte) error
func (*NullableRecord) Unset ¶
func (v *NullableRecord) 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 NullableValidateRequest ¶
type NullableValidateRequest struct {
// contains filtered or unexported fields
}
func NewNullableValidateRequest ¶
func NewNullableValidateRequest(val *ValidateRequest) *NullableValidateRequest
func (NullableValidateRequest) Get ¶
func (v NullableValidateRequest) Get() *ValidateRequest
func (NullableValidateRequest) IsSet ¶
func (v NullableValidateRequest) IsSet() bool
func (NullableValidateRequest) MarshalJSON ¶
func (v NullableValidateRequest) MarshalJSON() ([]byte, error)
func (*NullableValidateRequest) Set ¶
func (v *NullableValidateRequest) Set(val *ValidateRequest)
func (*NullableValidateRequest) UnmarshalJSON ¶
func (v *NullableValidateRequest) UnmarshalJSON(src []byte) error
func (*NullableValidateRequest) Unset ¶
func (v *NullableValidateRequest) Unset()
type NullableValidationReport ¶
type NullableValidationReport struct {
// contains filtered or unexported fields
}
func NewNullableValidationReport ¶
func NewNullableValidationReport(val *ValidationReport) *NullableValidationReport
func (NullableValidationReport) Get ¶
func (v NullableValidationReport) Get() *ValidationReport
func (NullableValidationReport) IsSet ¶
func (v NullableValidationReport) IsSet() bool
func (NullableValidationReport) MarshalJSON ¶
func (v NullableValidationReport) MarshalJSON() ([]byte, error)
func (*NullableValidationReport) Set ¶
func (v *NullableValidationReport) Set(val *ValidationReport)
func (*NullableValidationReport) UnmarshalJSON ¶
func (v *NullableValidationReport) UnmarshalJSON(src []byte) error
func (*NullableValidationReport) Unset ¶
func (v *NullableValidationReport) Unset()
type NullableValidationResult ¶
type NullableValidationResult struct {
// contains filtered or unexported fields
}
func NewNullableValidationResult ¶
func NewNullableValidationResult(val *ValidationResult) *NullableValidationResult
func (NullableValidationResult) Get ¶
func (v NullableValidationResult) Get() *ValidationResult
func (NullableValidationResult) IsSet ¶
func (v NullableValidationResult) IsSet() bool
func (NullableValidationResult) MarshalJSON ¶
func (v NullableValidationResult) MarshalJSON() ([]byte, error)
func (*NullableValidationResult) Set ¶
func (v *NullableValidationResult) Set(val *ValidationResult)
func (*NullableValidationResult) UnmarshalJSON ¶
func (v *NullableValidationResult) UnmarshalJSON(src []byte) error
func (*NullableValidationResult) Unset ¶
func (v *NullableValidationResult) Unset()
type QueryRequest ¶
type QueryRequest struct {
// Adapter-specific filter object for query execution.
Filter map[string]interface{} `json:"filter"`
}
QueryRequest struct for QueryRequest
func NewQueryRequest ¶
func NewQueryRequest(filter map[string]interface{}) *QueryRequest
NewQueryRequest instantiates a new QueryRequest 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 NewQueryRequestWithDefaults ¶
func NewQueryRequestWithDefaults() *QueryRequest
NewQueryRequestWithDefaults instantiates a new QueryRequest 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 (*QueryRequest) GetFilter ¶
func (o *QueryRequest) GetFilter() map[string]interface{}
GetFilter returns the Filter field value
func (*QueryRequest) GetFilterOk ¶
func (o *QueryRequest) GetFilterOk() (map[string]interface{}, bool)
GetFilterOk returns a tuple with the Filter field value and a boolean to check if the value has been set.
func (QueryRequest) MarshalJSON ¶
func (o QueryRequest) MarshalJSON() ([]byte, error)
func (*QueryRequest) SetFilter ¶
func (o *QueryRequest) SetFilter(v map[string]interface{})
SetFilter sets field value
func (QueryRequest) ToMap ¶
func (o QueryRequest) ToMap() (map[string]interface{}, error)
func (*QueryRequest) UnmarshalJSON ¶
func (o *QueryRequest) UnmarshalJSON(data []byte) (err error)
type QueryResponse ¶
type QueryResponse struct {
Records []Record `json:"records"`
}
QueryResponse struct for QueryResponse
func NewQueryResponse ¶
func NewQueryResponse(records []Record) *QueryResponse
NewQueryResponse instantiates a new QueryResponse 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 NewQueryResponseWithDefaults ¶
func NewQueryResponseWithDefaults() *QueryResponse
NewQueryResponseWithDefaults instantiates a new QueryResponse 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 (*QueryResponse) GetRecords ¶
func (o *QueryResponse) GetRecords() []Record
GetRecords returns the Records field value
func (*QueryResponse) GetRecordsOk ¶
func (o *QueryResponse) GetRecordsOk() ([]Record, bool)
GetRecordsOk returns a tuple with the Records field value and a boolean to check if the value has been set.
func (QueryResponse) MarshalJSON ¶
func (o QueryResponse) MarshalJSON() ([]byte, error)
func (*QueryResponse) SetRecords ¶
func (o *QueryResponse) SetRecords(v []Record)
SetRecords sets field value
func (QueryResponse) ToMap ¶
func (o QueryResponse) ToMap() (map[string]interface{}, error)
func (*QueryResponse) UnmarshalJSON ¶
func (o *QueryResponse) UnmarshalJSON(data []byte) (err error)
type ReadyResponse ¶
type ReadyResponse struct {
// Readiness status string.
Status string `json:"status"`
}
ReadyResponse struct for ReadyResponse
func NewReadyResponse ¶
func NewReadyResponse(status string) *ReadyResponse
NewReadyResponse instantiates a new ReadyResponse 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 NewReadyResponseWithDefaults ¶
func NewReadyResponseWithDefaults() *ReadyResponse
NewReadyResponseWithDefaults instantiates a new ReadyResponse 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 (*ReadyResponse) GetStatus ¶
func (o *ReadyResponse) GetStatus() string
GetStatus returns the Status field value
func (*ReadyResponse) GetStatusOk ¶
func (o *ReadyResponse) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (ReadyResponse) MarshalJSON ¶
func (o ReadyResponse) MarshalJSON() ([]byte, error)
func (*ReadyResponse) SetStatus ¶
func (o *ReadyResponse) SetStatus(v string)
SetStatus sets field value
func (ReadyResponse) ToMap ¶
func (o ReadyResponse) ToMap() (map[string]interface{}, error)
func (*ReadyResponse) UnmarshalJSON ¶
func (o *ReadyResponse) UnmarshalJSON(data []byte) (err error)
type Record ¶
type Record struct {
// Record identifier returned by the store adapter.
Id string `json:"id"`
// Model identifier used for this record.
Model string `json:"model"`
// Model version used for this record.
Version string `json:"version"`
// Opaque business payload routed to the IO adapter.
Payload map[string]interface{} `json:"payload"`
}
Record struct for Record
func NewRecord ¶
NewRecord instantiates a new Record 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 NewRecordWithDefaults ¶
func NewRecordWithDefaults() *Record
NewRecordWithDefaults instantiates a new Record 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 (*Record) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Record) GetModelOk ¶
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*Record) GetPayload ¶
GetPayload returns the Payload field value
func (*Record) GetPayloadOk ¶
GetPayloadOk returns a tuple with the Payload field value and a boolean to check if the value has been set.
func (*Record) GetVersion ¶
GetVersion returns the Version field value
func (*Record) GetVersionOk ¶
GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.
func (Record) MarshalJSON ¶
func (*Record) SetPayload ¶
SetPayload sets field value
func (*Record) UnmarshalJSON ¶
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
type ServerVariable ¶
ServerVariable stores the information about a server variable
type ValidateRequest ¶
type ValidateRequest struct {
// Candidate record payload to validate.
Payload map[string]interface{} `json:"payload"`
}
ValidateRequest struct for ValidateRequest
func NewValidateRequest ¶
func NewValidateRequest(payload map[string]interface{}) *ValidateRequest
NewValidateRequest instantiates a new ValidateRequest 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 NewValidateRequestWithDefaults ¶
func NewValidateRequestWithDefaults() *ValidateRequest
NewValidateRequestWithDefaults instantiates a new ValidateRequest 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 (*ValidateRequest) GetPayload ¶
func (o *ValidateRequest) GetPayload() map[string]interface{}
GetPayload returns the Payload field value
func (*ValidateRequest) GetPayloadOk ¶
func (o *ValidateRequest) GetPayloadOk() (map[string]interface{}, bool)
GetPayloadOk returns a tuple with the Payload field value and a boolean to check if the value has been set.
func (ValidateRequest) MarshalJSON ¶
func (o ValidateRequest) MarshalJSON() ([]byte, error)
func (*ValidateRequest) SetPayload ¶
func (o *ValidateRequest) SetPayload(v map[string]interface{})
SetPayload sets field value
func (ValidateRequest) ToMap ¶
func (o ValidateRequest) ToMap() (map[string]interface{}, error)
func (*ValidateRequest) UnmarshalJSON ¶
func (o *ValidateRequest) UnmarshalJSON(data []byte) (err error)
type ValidationReport ¶
type ValidationReport struct {
// True when no blocking validation issues were found.
Passed bool `json:"passed"`
Results []ValidationResult `json:"results"`
}
ValidationReport struct for ValidationReport
func NewValidationReport ¶
func NewValidationReport(passed bool, results []ValidationResult) *ValidationReport
NewValidationReport instantiates a new ValidationReport 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 NewValidationReportWithDefaults ¶
func NewValidationReportWithDefaults() *ValidationReport
NewValidationReportWithDefaults instantiates a new ValidationReport 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 (*ValidationReport) GetPassed ¶
func (o *ValidationReport) GetPassed() bool
GetPassed returns the Passed field value
func (*ValidationReport) GetPassedOk ¶
func (o *ValidationReport) GetPassedOk() (*bool, bool)
GetPassedOk returns a tuple with the Passed field value and a boolean to check if the value has been set.
func (*ValidationReport) GetResults ¶
func (o *ValidationReport) GetResults() []ValidationResult
GetResults returns the Results field value
func (*ValidationReport) GetResultsOk ¶
func (o *ValidationReport) GetResultsOk() ([]ValidationResult, bool)
GetResultsOk returns a tuple with the Results field value and a boolean to check if the value has been set.
func (ValidationReport) MarshalJSON ¶
func (o ValidationReport) MarshalJSON() ([]byte, error)
func (*ValidationReport) SetPassed ¶
func (o *ValidationReport) SetPassed(v bool)
SetPassed sets field value
func (*ValidationReport) SetResults ¶
func (o *ValidationReport) SetResults(v []ValidationResult)
SetResults sets field value
func (ValidationReport) ToMap ¶
func (o ValidationReport) ToMap() (map[string]interface{}, error)
func (*ValidationReport) UnmarshalJSON ¶
func (o *ValidationReport) UnmarshalJSON(data []byte) (err error)
type ValidationResult ¶
type ValidationResult struct {
// JSON path or pointer of the failing field when available.
Path *string `json:"path,omitempty"`
// Human-readable validation message.
Message *string `json:"message,omitempty"`
// Validation severity label when provided by validator.
Severity *string `json:"severity,omitempty"`
}
ValidationResult struct for ValidationResult
func NewValidationResult ¶
func NewValidationResult() *ValidationResult
NewValidationResult instantiates a new ValidationResult 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 NewValidationResultWithDefaults ¶
func NewValidationResultWithDefaults() *ValidationResult
NewValidationResultWithDefaults instantiates a new ValidationResult 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 (*ValidationResult) GetMessage ¶
func (o *ValidationResult) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*ValidationResult) GetMessageOk ¶
func (o *ValidationResult) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ValidationResult) GetPath ¶
func (o *ValidationResult) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (*ValidationResult) GetPathOk ¶
func (o *ValidationResult) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ValidationResult) GetSeverity ¶
func (o *ValidationResult) GetSeverity() string
GetSeverity returns the Severity field value if set, zero value otherwise.
func (*ValidationResult) GetSeverityOk ¶
func (o *ValidationResult) GetSeverityOk() (*string, bool)
GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ValidationResult) HasMessage ¶
func (o *ValidationResult) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (*ValidationResult) HasPath ¶
func (o *ValidationResult) HasPath() bool
HasPath returns a boolean if a field has been set.
func (*ValidationResult) HasSeverity ¶
func (o *ValidationResult) HasSeverity() bool
HasSeverity returns a boolean if a field has been set.
func (ValidationResult) MarshalJSON ¶
func (o ValidationResult) MarshalJSON() ([]byte, error)
func (*ValidationResult) SetMessage ¶
func (o *ValidationResult) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (*ValidationResult) SetPath ¶
func (o *ValidationResult) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (*ValidationResult) SetSeverity ¶
func (o *ValidationResult) SetSeverity(v string)
SetSeverity gets a reference to the given string and assigns it to the Severity field.
func (ValidationResult) ToMap ¶
func (o ValidationResult) ToMap() (map[string]interface{}, error)
Source Files
¶
- api_admin.go
- api_discovery.go
- api_models.go
- client.go
- configuration.go
- model_create_request.go
- model_error_response.go
- model_health_response.go
- model_model_version.go
- model_models_response.go
- model_query_request.go
- model_query_response.go
- model_ready_response.go
- model_record.go
- model_validate_request.go
- model_validation_report.go
- model_validation_result.go
- response.go
- utils.go