mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
687 lines
18 KiB
Go
687 lines
18 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the EvalTraceView type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &EvalTraceView{}
|
|
|
|
// EvalTraceView struct for EvalTraceView
|
|
type EvalTraceView struct {
|
|
// APIKeyHash is the non-reversible credential ref (never a plaintext key), so a trace correlates to the key that drove it without the store holding a secret.
|
|
ApiKeyHash *string `json:"apiKeyHash,omitempty"`
|
|
// ItemID is the example the call answered.
|
|
DatasetItemId *string `json:"datasetItemId,omitempty"`
|
|
// Dataset is the set the graded example came from.
|
|
DatasetName *string `json:"datasetName,omitempty"`
|
|
// EndTime is when it returned.
|
|
EndTime *string `json:"endTime,omitempty"`
|
|
// ID is the trace's handle, the value a score points at.
|
|
Id *string `json:"id,omitempty"`
|
|
Input interface{} `json:"input,omitempty"`
|
|
// LatencyMs is EndTime-StartTime in milliseconds, nil when the trace carries no timing (so the console renders \"—\", never a fabricated 0).
|
|
LatencyMs *float64 `json:"latencyMs,omitempty"`
|
|
// Model is the model that answered.
|
|
Model *string `json:"model,omitempty"`
|
|
// Name is the trace's label, \"eval:<run>\" for a call a run made.
|
|
Name *string `json:"name,omitempty"`
|
|
// Output is what it answered.
|
|
Output *string `json:"output,omitempty"`
|
|
// ProjectID is the sub-scope within the org the call was made under.
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
// RunName is the run the call belongs to.
|
|
RunName *string `json:"runName,omitempty"`
|
|
// SessionID groups the calls of one run.
|
|
SessionId *string `json:"sessionId,omitempty"`
|
|
// StartTime is when the call began.
|
|
StartTime *string `json:"startTime,omitempty"`
|
|
// Timestamp is the trace's own clock, equal to StartTime for a timed call.
|
|
Timestamp *string `json:"timestamp,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _EvalTraceView EvalTraceView
|
|
|
|
// NewEvalTraceView instantiates a new EvalTraceView 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 NewEvalTraceView() *EvalTraceView {
|
|
this := EvalTraceView{}
|
|
return &this
|
|
}
|
|
|
|
// NewEvalTraceViewWithDefaults instantiates a new EvalTraceView 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 NewEvalTraceViewWithDefaults() *EvalTraceView {
|
|
this := EvalTraceView{}
|
|
return &this
|
|
}
|
|
|
|
// GetApiKeyHash returns the ApiKeyHash field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetApiKeyHash() string {
|
|
if o == nil || IsNil(o.ApiKeyHash) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ApiKeyHash
|
|
}
|
|
|
|
// GetApiKeyHashOk returns a tuple with the ApiKeyHash field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetApiKeyHashOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ApiKeyHash) {
|
|
return nil, false
|
|
}
|
|
return o.ApiKeyHash, true
|
|
}
|
|
|
|
// HasApiKeyHash returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasApiKeyHash() bool {
|
|
if o != nil && !IsNil(o.ApiKeyHash) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetApiKeyHash gets a reference to the given string and assigns it to the ApiKeyHash field.
|
|
func (o *EvalTraceView) SetApiKeyHash(v string) {
|
|
o.ApiKeyHash = &v
|
|
}
|
|
|
|
// GetDatasetItemId returns the DatasetItemId field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetDatasetItemId() string {
|
|
if o == nil || IsNil(o.DatasetItemId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DatasetItemId
|
|
}
|
|
|
|
// GetDatasetItemIdOk returns a tuple with the DatasetItemId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetDatasetItemIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DatasetItemId) {
|
|
return nil, false
|
|
}
|
|
return o.DatasetItemId, true
|
|
}
|
|
|
|
// HasDatasetItemId returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasDatasetItemId() bool {
|
|
if o != nil && !IsNil(o.DatasetItemId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDatasetItemId gets a reference to the given string and assigns it to the DatasetItemId field.
|
|
func (o *EvalTraceView) SetDatasetItemId(v string) {
|
|
o.DatasetItemId = &v
|
|
}
|
|
|
|
// GetDatasetName returns the DatasetName field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetDatasetName() string {
|
|
if o == nil || IsNil(o.DatasetName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DatasetName
|
|
}
|
|
|
|
// GetDatasetNameOk returns a tuple with the DatasetName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetDatasetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DatasetName) {
|
|
return nil, false
|
|
}
|
|
return o.DatasetName, true
|
|
}
|
|
|
|
// HasDatasetName returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasDatasetName() bool {
|
|
if o != nil && !IsNil(o.DatasetName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDatasetName gets a reference to the given string and assigns it to the DatasetName field.
|
|
func (o *EvalTraceView) SetDatasetName(v string) {
|
|
o.DatasetName = &v
|
|
}
|
|
|
|
// GetEndTime returns the EndTime field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetEndTime() string {
|
|
if o == nil || IsNil(o.EndTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EndTime
|
|
}
|
|
|
|
// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetEndTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.EndTime) {
|
|
return nil, false
|
|
}
|
|
return o.EndTime, true
|
|
}
|
|
|
|
// HasEndTime returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasEndTime() bool {
|
|
if o != nil && !IsNil(o.EndTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEndTime gets a reference to the given string and assigns it to the EndTime field.
|
|
func (o *EvalTraceView) SetEndTime(v string) {
|
|
o.EndTime = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *EvalTraceView) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetInput returns the Input field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *EvalTraceView) GetInput() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.Input
|
|
}
|
|
|
|
// GetInputOk returns a tuple with the Input 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 (o *EvalTraceView) GetInputOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.Input) {
|
|
return nil, false
|
|
}
|
|
return &o.Input, true
|
|
}
|
|
|
|
// HasInput returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasInput() bool {
|
|
if o != nil && !IsNil(o.Input) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetInput gets a reference to the given interface{} and assigns it to the Input field.
|
|
func (o *EvalTraceView) SetInput(v interface{}) {
|
|
o.Input = v
|
|
}
|
|
|
|
// GetLatencyMs returns the LatencyMs field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetLatencyMs() float64 {
|
|
if o == nil || IsNil(o.LatencyMs) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.LatencyMs
|
|
}
|
|
|
|
// GetLatencyMsOk returns a tuple with the LatencyMs field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetLatencyMsOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.LatencyMs) {
|
|
return nil, false
|
|
}
|
|
return o.LatencyMs, true
|
|
}
|
|
|
|
// HasLatencyMs returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasLatencyMs() bool {
|
|
if o != nil && !IsNil(o.LatencyMs) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLatencyMs gets a reference to the given float64 and assigns it to the LatencyMs field.
|
|
func (o *EvalTraceView) SetLatencyMs(v float64) {
|
|
o.LatencyMs = &v
|
|
}
|
|
|
|
// GetModel returns the Model field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetModel() string {
|
|
if o == nil || IsNil(o.Model) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Model
|
|
}
|
|
|
|
// GetModelOk returns a tuple with the Model field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetModelOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Model) {
|
|
return nil, false
|
|
}
|
|
return o.Model, true
|
|
}
|
|
|
|
// HasModel returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasModel() bool {
|
|
if o != nil && !IsNil(o.Model) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetModel gets a reference to the given string and assigns it to the Model field.
|
|
func (o *EvalTraceView) SetModel(v string) {
|
|
o.Model = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *EvalTraceView) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetOutput returns the Output field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetOutput() string {
|
|
if o == nil || IsNil(o.Output) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Output
|
|
}
|
|
|
|
// GetOutputOk returns a tuple with the Output field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetOutputOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Output) {
|
|
return nil, false
|
|
}
|
|
return o.Output, true
|
|
}
|
|
|
|
// HasOutput returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasOutput() bool {
|
|
if o != nil && !IsNil(o.Output) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOutput gets a reference to the given string and assigns it to the Output field.
|
|
func (o *EvalTraceView) SetOutput(v string) {
|
|
o.Output = &v
|
|
}
|
|
|
|
// GetProjectId returns the ProjectId field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetProjectId() string {
|
|
if o == nil || IsNil(o.ProjectId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ProjectId
|
|
}
|
|
|
|
// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetProjectIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ProjectId) {
|
|
return nil, false
|
|
}
|
|
return o.ProjectId, true
|
|
}
|
|
|
|
// HasProjectId returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasProjectId() bool {
|
|
if o != nil && !IsNil(o.ProjectId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProjectId gets a reference to the given string and assigns it to the ProjectId field.
|
|
func (o *EvalTraceView) SetProjectId(v string) {
|
|
o.ProjectId = &v
|
|
}
|
|
|
|
// GetRunName returns the RunName field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetRunName() string {
|
|
if o == nil || IsNil(o.RunName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RunName
|
|
}
|
|
|
|
// GetRunNameOk returns a tuple with the RunName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetRunNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RunName) {
|
|
return nil, false
|
|
}
|
|
return o.RunName, true
|
|
}
|
|
|
|
// HasRunName returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasRunName() bool {
|
|
if o != nil && !IsNil(o.RunName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRunName gets a reference to the given string and assigns it to the RunName field.
|
|
func (o *EvalTraceView) SetRunName(v string) {
|
|
o.RunName = &v
|
|
}
|
|
|
|
// GetSessionId returns the SessionId field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetSessionId() string {
|
|
if o == nil || IsNil(o.SessionId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SessionId
|
|
}
|
|
|
|
// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetSessionIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SessionId) {
|
|
return nil, false
|
|
}
|
|
return o.SessionId, true
|
|
}
|
|
|
|
// HasSessionId returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasSessionId() bool {
|
|
if o != nil && !IsNil(o.SessionId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSessionId gets a reference to the given string and assigns it to the SessionId field.
|
|
func (o *EvalTraceView) SetSessionId(v string) {
|
|
o.SessionId = &v
|
|
}
|
|
|
|
// GetStartTime returns the StartTime field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetStartTime() string {
|
|
if o == nil || IsNil(o.StartTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.StartTime
|
|
}
|
|
|
|
// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetStartTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.StartTime) {
|
|
return nil, false
|
|
}
|
|
return o.StartTime, true
|
|
}
|
|
|
|
// HasStartTime returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasStartTime() bool {
|
|
if o != nil && !IsNil(o.StartTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStartTime gets a reference to the given string and assigns it to the StartTime field.
|
|
func (o *EvalTraceView) SetStartTime(v string) {
|
|
o.StartTime = &v
|
|
}
|
|
|
|
// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
|
|
func (o *EvalTraceView) GetTimestamp() string {
|
|
if o == nil || IsNil(o.Timestamp) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Timestamp
|
|
}
|
|
|
|
// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalTraceView) GetTimestampOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Timestamp) {
|
|
return nil, false
|
|
}
|
|
return o.Timestamp, true
|
|
}
|
|
|
|
// HasTimestamp returns a boolean if a field has been set.
|
|
func (o *EvalTraceView) HasTimestamp() bool {
|
|
if o != nil && !IsNil(o.Timestamp) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTimestamp gets a reference to the given string and assigns it to the Timestamp field.
|
|
func (o *EvalTraceView) SetTimestamp(v string) {
|
|
o.Timestamp = &v
|
|
}
|
|
|
|
func (o EvalTraceView) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o EvalTraceView) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ApiKeyHash) {
|
|
toSerialize["apiKeyHash"] = o.ApiKeyHash
|
|
}
|
|
if !IsNil(o.DatasetItemId) {
|
|
toSerialize["datasetItemId"] = o.DatasetItemId
|
|
}
|
|
if !IsNil(o.DatasetName) {
|
|
toSerialize["datasetName"] = o.DatasetName
|
|
}
|
|
if !IsNil(o.EndTime) {
|
|
toSerialize["endTime"] = o.EndTime
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if o.Input != nil {
|
|
toSerialize["input"] = o.Input
|
|
}
|
|
if !IsNil(o.LatencyMs) {
|
|
toSerialize["latencyMs"] = o.LatencyMs
|
|
}
|
|
if !IsNil(o.Model) {
|
|
toSerialize["model"] = o.Model
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Output) {
|
|
toSerialize["output"] = o.Output
|
|
}
|
|
if !IsNil(o.ProjectId) {
|
|
toSerialize["projectId"] = o.ProjectId
|
|
}
|
|
if !IsNil(o.RunName) {
|
|
toSerialize["runName"] = o.RunName
|
|
}
|
|
if !IsNil(o.SessionId) {
|
|
toSerialize["sessionId"] = o.SessionId
|
|
}
|
|
if !IsNil(o.StartTime) {
|
|
toSerialize["startTime"] = o.StartTime
|
|
}
|
|
if !IsNil(o.Timestamp) {
|
|
toSerialize["timestamp"] = o.Timestamp
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *EvalTraceView) UnmarshalJSON(data []byte) (err error) {
|
|
varEvalTraceView := _EvalTraceView{}
|
|
|
|
err = json.Unmarshal(data, &varEvalTraceView)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = EvalTraceView(varEvalTraceView)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "apiKeyHash")
|
|
delete(additionalProperties, "datasetItemId")
|
|
delete(additionalProperties, "datasetName")
|
|
delete(additionalProperties, "endTime")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "input")
|
|
delete(additionalProperties, "latencyMs")
|
|
delete(additionalProperties, "model")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "output")
|
|
delete(additionalProperties, "projectId")
|
|
delete(additionalProperties, "runName")
|
|
delete(additionalProperties, "sessionId")
|
|
delete(additionalProperties, "startTime")
|
|
delete(additionalProperties, "timestamp")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableEvalTraceView struct {
|
|
value *EvalTraceView
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableEvalTraceView) Get() *EvalTraceView {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableEvalTraceView) Set(val *EvalTraceView) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableEvalTraceView) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableEvalTraceView) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableEvalTraceView(val *EvalTraceView) *NullableEvalTraceView {
|
|
return &NullableEvalTraceView{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableEvalTraceView) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableEvalTraceView) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|