\AdminAPI
All URIs are relative to http://localhost:8080
| Method | HTTP request | Description |
|---|---|---|
| Health | Get /admin/health | Liveness probe |
| Metrics | Get /admin/metrics | Prometheus metrics |
| Ready | Get /admin/ready | Readiness probe |
| Status | Get /admin/status | Runtime status |
Health
HealthResponse Health(ctx).Execute()
Liveness probe
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.Health(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.Health``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Health`: HealthResponse
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.Health`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiHealthRequest struct via the builder pattern
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Metrics
string Metrics(ctx).Execute()
Prometheus metrics
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.Metrics(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.Metrics``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Metrics`: string
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.Metrics`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiMetricsRequest struct via the builder pattern
Return type
string
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Ready
ReadyResponse Ready(ctx).Execute()
Readiness probe
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.Ready(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.Ready``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Ready`: ReadyResponse
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.Ready`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiReadyRequest struct via the builder pattern
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status
map[string]interface{} Status(ctx).Execute()
Runtime status
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminAPI.Status(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.Status``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Status`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `AdminAPI.Status`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiStatusRequest struct via the builder pattern
Return type
map[string]interface{}
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateRequest
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Payload | map[string]interface{} | Payload to validate and persist as a new record. |
Methods
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
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
GetPayload
func (o *CreateRequest) GetPayload() map[string]interface{}
GetPayload returns the Payload field if non-nil, zero value otherwise.
GetPayloadOk
func (o *CreateRequest) GetPayloadOk() (*map[string]interface{}, bool)
GetPayloadOk returns a tuple with the Payload field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPayload
func (o *CreateRequest) SetPayload(v map[string]interface{})
SetPayload sets Payload field to given value.
[Back to Model list] [Back to API list] [Back to README]
\DiscoveryAPI
All URIs are relative to http://localhost:8080
| Method | HTTP request | Description |
|---|---|---|
| ListModels | Get /models | List available model versions |
ListModels
ModelsResponse ListModels(ctx).Execute()
List available model versions
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DiscoveryAPI.ListModels(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiscoveryAPI.ListModels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListModels`: ModelsResponse
fmt.Fprintf(os.Stdout, "Response from `DiscoveryAPI.ListModels`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListModelsRequest struct via the builder pattern
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ErrorResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Code | string | Stable machine-readable error code. | |
| Message | string | Human-readable error message. | |
| Details | Pointer to interface{} | Optional error details payload. | [optional] |
Methods
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
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
GetCode
func (o *ErrorResponse) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
GetCodeOk
func (o *ErrorResponse) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCode
func (o *ErrorResponse) SetCode(v string)
SetCode sets Code field to given value.
GetMessage
func (o *ErrorResponse) GetMessage() string
GetMessage returns the Message field if non-nil, zero value otherwise.
GetMessageOk
func (o *ErrorResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMessage
func (o *ErrorResponse) SetMessage(v string)
SetMessage sets Message field to given value.
GetDetails
func (o *ErrorResponse) GetDetails() interface{}
GetDetails returns the Details field if non-nil, zero value otherwise.
GetDetailsOk
func (o *ErrorResponse) GetDetailsOk() (*interface{}, bool)
GetDetailsOk returns a tuple with the Details field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDetails
func (o *ErrorResponse) SetDetails(v interface{})
SetDetails sets Details field to given value.
HasDetails
func (o *ErrorResponse) HasDetails() bool
HasDetails returns a boolean if a field has been set.
SetDetailsNil
func (o *ErrorResponse) SetDetailsNil(b bool)
SetDetailsNil sets the value for Details to be an explicit nil
UnsetDetails
func (o *ErrorResponse) UnsetDetails()
UnsetDetails ensures that no value is present for Details, not even an explicit nil
[Back to Model list] [Back to API list] [Back to README]
HealthResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Status | string | Health status string. |
Methods
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
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
GetStatus
func (o *HealthResponse) GetStatus() string
GetStatus returns the Status field if non-nil, zero value otherwise.
GetStatusOk
func (o *HealthResponse) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetStatus
func (o *HealthResponse) SetStatus(v string)
SetStatus sets Status field to given value.
[Back to Model list] [Back to API list] [Back to README]
ModelVersion
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Id | string | Model identifier. | |
| Version | string | Model version string. |
Methods
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
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
GetId
func (o *ModelVersion) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *ModelVersion) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetId
func (o *ModelVersion) SetId(v string)
SetId sets Id field to given value.
GetVersion
func (o *ModelVersion) GetVersion() string
GetVersion returns the Version field if non-nil, zero value otherwise.
GetVersionOk
func (o *ModelVersion) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVersion
func (o *ModelVersion) SetVersion(v string)
SetVersion sets Version field to given value.
[Back to Model list] [Back to API list] [Back to README]
\ModelsAPI
All URIs are relative to http://localhost:8080
| Method | HTTP request | Description |
|---|---|---|
| CreateRecord | Post /models/{model}/versions/{version}:create | Validate and create a record |
| QueryRecords | Post /models/{model}/versions/{version}:query | Query records for a model version |
| ValidateModelPayload | Post /models/{model}/versions/{version}:validate | Validate payload against model rules |
CreateRecord
Record CreateRecord(ctx, model, version).IdempotencyKey(idempotencyKey).CreateRequest(createRequest).Execute()
Validate and create a record
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
model := "model_example" // string | Model identifier.
version := "version_example" // string | Model version.
idempotencyKey := "idempotencyKey_example" // string | Client-generated key used to deduplicate retries for side-effecting requests.
createRequest := *openapiclient.NewCreateRequest(map[string]interface{}{"key": interface{}(123)}) // CreateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ModelsAPI.CreateRecord(context.Background(), model, version).IdempotencyKey(idempotencyKey).CreateRequest(createRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ModelsAPI.CreateRecord``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateRecord`: Record
fmt.Fprintf(os.Stdout, "Response from `ModelsAPI.CreateRecord`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| model | string | Model identifier. | |
| version | string | Model version. |
Other Parameters
Other parameters are passed through a pointer to a apiCreateRecordRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
idempotencyKey | string | Client-generated key used to deduplicate retries for side-effecting requests. | createRequest | CreateRequest | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
QueryRecords
QueryResponse QueryRecords(ctx, model, version).QueryRequest(queryRequest).Execute()
Query records for a model version
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
model := "model_example" // string | Model identifier.
version := "version_example" // string | Model version.
queryRequest := *openapiclient.NewQueryRequest(map[string]interface{}{"key": interface{}(123)}) // QueryRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ModelsAPI.QueryRecords(context.Background(), model, version).QueryRequest(queryRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ModelsAPI.QueryRecords``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `QueryRecords`: QueryResponse
fmt.Fprintf(os.Stdout, "Response from `ModelsAPI.QueryRecords`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| model | string | Model identifier. | |
| version | string | Model version. |
Other Parameters
Other parameters are passed through a pointer to a apiQueryRecordsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
queryRequest | QueryRequest | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ValidateModelPayload
ValidationReport ValidateModelPayload(ctx, model, version).ValidateRequest(validateRequest).Execute()
Validate payload against model rules
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
model := "model_example" // string | Model identifier, for example `re-indicators-specification`.
version := "version_example" // string | Model version string, for example `0.0.3`.
validateRequest := *openapiclient.NewValidateRequest(map[string]interface{}{"key": interface{}(123)}) // ValidateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ModelsAPI.ValidateModelPayload(context.Background(), model, version).ValidateRequest(validateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ModelsAPI.ValidateModelPayload``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ValidateModelPayload`: ValidationReport
fmt.Fprintf(os.Stdout, "Response from `ModelsAPI.ValidateModelPayload`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| model | string | Model identifier, for example `re-indicators-specification`. | |
| version | string | Model version string, for example `0.0.3`. |
Other Parameters
Other parameters are passed through a pointer to a apiValidateModelPayloadRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
validateRequest | ValidateRequest | |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelsResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Models | []ModelVersion |
Methods
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
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
GetModels
func (o *ModelsResponse) GetModels() []ModelVersion
GetModels returns the Models field if non-nil, zero value otherwise.
GetModelsOk
func (o *ModelsResponse) GetModelsOk() (*[]ModelVersion, bool)
GetModelsOk returns a tuple with the Models field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetModels
func (o *ModelsResponse) SetModels(v []ModelVersion)
SetModels sets Models field to given value.
[Back to Model list] [Back to API list] [Back to README]
QueryRequest
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Filter | map[string]interface{} | Adapter-specific filter object for query execution. |
Methods
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
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
GetFilter
func (o *QueryRequest) GetFilter() map[string]interface{}
GetFilter returns the Filter field if non-nil, zero value otherwise.
GetFilterOk
func (o *QueryRequest) GetFilterOk() (*map[string]interface{}, bool)
GetFilterOk returns a tuple with the Filter field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFilter
func (o *QueryRequest) SetFilter(v map[string]interface{})
SetFilter sets Filter field to given value.
[Back to Model list] [Back to API list] [Back to README]
QueryResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Records | []Record |
Methods
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
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
GetRecords
func (o *QueryResponse) GetRecords() []Record
GetRecords returns the Records field if non-nil, zero value otherwise.
GetRecordsOk
func (o *QueryResponse) GetRecordsOk() (*[]Record, bool)
GetRecordsOk returns a tuple with the Records field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRecords
func (o *QueryResponse) SetRecords(v []Record)
SetRecords sets Records field to given value.
[Back to Model list] [Back to API list] [Back to README]
ReadyResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Status | string | Readiness status string. |
Methods
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
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
GetStatus
func (o *ReadyResponse) GetStatus() string
GetStatus returns the Status field if non-nil, zero value otherwise.
GetStatusOk
func (o *ReadyResponse) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetStatus
func (o *ReadyResponse) SetStatus(v string)
SetStatus sets Status field to given value.
[Back to Model list] [Back to API list] [Back to README]
Record
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Id | string | Record identifier returned by the store adapter. | |
| Model | string | Model identifier used for this record. | |
| Version | string | Model version used for this record. | |
| Payload | map[string]interface{} | Opaque business payload routed to the IO adapter. |
Methods
NewRecord
func NewRecord(id string, model string, version string, payload map[string]interface{}, ) *Record
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
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
GetId
func (o *Record) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *Record) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetId
func (o *Record) SetId(v string)
SetId sets Id field to given value.
GetModel
func (o *Record) GetModel() string
GetModel returns the Model field if non-nil, zero value otherwise.
GetModelOk
func (o *Record) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetModel
func (o *Record) SetModel(v string)
SetModel sets Model field to given value.
GetVersion
func (o *Record) GetVersion() string
GetVersion returns the Version field if non-nil, zero value otherwise.
GetVersionOk
func (o *Record) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVersion
func (o *Record) SetVersion(v string)
SetVersion sets Version field to given value.
GetPayload
func (o *Record) GetPayload() map[string]interface{}
GetPayload returns the Payload field if non-nil, zero value otherwise.
GetPayloadOk
func (o *Record) GetPayloadOk() (*map[string]interface{}, bool)
GetPayloadOk returns a tuple with the Payload field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPayload
func (o *Record) SetPayload(v map[string]interface{})
SetPayload sets Payload field to given value.
[Back to Model list] [Back to API list] [Back to README]
Summary
- AdminAPI
- CreateRequest
- DiscoveryAPI
- ErrorResponse
- HealthResponse
- ModelVersion
- ModelsAPI
- ModelsResponse
- QueryRequest
- QueryResponse
- ReadyResponse
- Record
- SUMMARY
- ValidateRequest
- ValidationReport
- ValidationResult
ValidateRequest
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Payload | map[string]interface{} | Candidate record payload to validate. |
Methods
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
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
GetPayload
func (o *ValidateRequest) GetPayload() map[string]interface{}
GetPayload returns the Payload field if non-nil, zero value otherwise.
GetPayloadOk
func (o *ValidateRequest) GetPayloadOk() (*map[string]interface{}, bool)
GetPayloadOk returns a tuple with the Payload field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPayload
func (o *ValidateRequest) SetPayload(v map[string]interface{})
SetPayload sets Payload field to given value.
[Back to Model list] [Back to API list] [Back to README]
ValidationReport
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Passed | bool | True when no blocking validation issues were found. | |
| Results | []ValidationResult |
Methods
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
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
GetPassed
func (o *ValidationReport) GetPassed() bool
GetPassed returns the Passed field if non-nil, zero value otherwise.
GetPassedOk
func (o *ValidationReport) GetPassedOk() (*bool, bool)
GetPassedOk returns a tuple with the Passed field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPassed
func (o *ValidationReport) SetPassed(v bool)
SetPassed sets Passed field to given value.
GetResults
func (o *ValidationReport) GetResults() []ValidationResult
GetResults returns the Results field if non-nil, zero value otherwise.
GetResultsOk
func (o *ValidationReport) GetResultsOk() (*[]ValidationResult, bool)
GetResultsOk returns a tuple with the Results field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetResults
func (o *ValidationReport) SetResults(v []ValidationResult)
SetResults sets Results field to given value.
[Back to Model list] [Back to API list] [Back to README]
ValidationResult
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Path | Pointer to string | JSON path or pointer of the failing field when available. | [optional] |
| Message | Pointer to string | Human-readable validation message. | [optional] |
| Severity | Pointer to string | Validation severity label when provided by validator. | [optional] |
Methods
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
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
GetPath
func (o *ValidationResult) GetPath() string
GetPath returns the Path field if non-nil, zero value otherwise.
GetPathOk
func (o *ValidationResult) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPath
func (o *ValidationResult) SetPath(v string)
SetPath sets Path field to given value.
HasPath
func (o *ValidationResult) HasPath() bool
HasPath returns a boolean if a field has been set.
GetMessage
func (o *ValidationResult) GetMessage() string
GetMessage returns the Message field if non-nil, zero value otherwise.
GetMessageOk
func (o *ValidationResult) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMessage
func (o *ValidationResult) SetMessage(v string)
SetMessage sets Message field to given value.
HasMessage
func (o *ValidationResult) HasMessage() bool
HasMessage returns a boolean if a field has been set.
GetSeverity
func (o *ValidationResult) GetSeverity() string
GetSeverity returns the Severity field if non-nil, zero value otherwise.
GetSeverityOk
func (o *ValidationResult) GetSeverityOk() (*string, bool)
GetSeverityOk returns a tuple with the Severity field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSeverity
func (o *ValidationResult) SetSeverity(v string)
SetSeverity sets Severity field to given value.
HasSeverity
func (o *ValidationResult) HasSeverity() bool
HasSeverity returns a boolean if a field has been set.