- Update version to 0.4.19 in all components - Regenerate OpenAPI spec and client SDKs - Python packages: hindsight-api, hindsight-dev, hindsight-all, hindsight-litellm, hindsight-crewai, hindsight-pydantic-ai, hindsight-hermes, hindsight-agno, hindsight-embed - Python client: hindsight-clients/python - TypeScript client: hindsight-clients/typescript - Rust CLI: hindsight-cli - Control Plane: hindsight-control-plane - OpenClaw integration: hindsight-integrations/openclaw - AI SDK integration: hindsight-integrations/ai-sdk - Chat SDK integration: hindsight-integrations/chat - Helm chart - Sync documentation to version-0.4
158 lines
4.3 KiB
Go
158 lines
4.3 KiB
Go
/*
|
|
Hindsight HTTP API
|
|
|
|
HTTP API for Hindsight
|
|
|
|
API version: 0.4.19
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hindsight
|
|
|
|
import (
|
|
"encoding/json"
|
|
"bytes"
|
|
"fmt"
|
|
)
|
|
|
|
// checks if the RecoverConsolidationResponse type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &RecoverConsolidationResponse{}
|
|
|
|
// RecoverConsolidationResponse Response model for recovering failed consolidation.
|
|
type RecoverConsolidationResponse struct {
|
|
RetriedCount int32 `json:"retried_count"`
|
|
}
|
|
|
|
type _RecoverConsolidationResponse RecoverConsolidationResponse
|
|
|
|
// NewRecoverConsolidationResponse instantiates a new RecoverConsolidationResponse 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 NewRecoverConsolidationResponse(retriedCount int32) *RecoverConsolidationResponse {
|
|
this := RecoverConsolidationResponse{}
|
|
this.RetriedCount = retriedCount
|
|
return &this
|
|
}
|
|
|
|
// NewRecoverConsolidationResponseWithDefaults instantiates a new RecoverConsolidationResponse 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 NewRecoverConsolidationResponseWithDefaults() *RecoverConsolidationResponse {
|
|
this := RecoverConsolidationResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetRetriedCount returns the RetriedCount field value
|
|
func (o *RecoverConsolidationResponse) GetRetriedCount() int32 {
|
|
if o == nil {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
|
|
return o.RetriedCount
|
|
}
|
|
|
|
// GetRetriedCountOk returns a tuple with the RetriedCount field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *RecoverConsolidationResponse) GetRetriedCountOk() (*int32, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.RetriedCount, true
|
|
}
|
|
|
|
// SetRetriedCount sets field value
|
|
func (o *RecoverConsolidationResponse) SetRetriedCount(v int32) {
|
|
o.RetriedCount = v
|
|
}
|
|
|
|
func (o RecoverConsolidationResponse) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o RecoverConsolidationResponse) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["retried_count"] = o.RetriedCount
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *RecoverConsolidationResponse) UnmarshalJSON(data []byte) (err error) {
|
|
// This validates that all required properties are included in the JSON object
|
|
// by unmarshalling the object into a generic map with string keys and checking
|
|
// that every required field exists as a key in the generic map.
|
|
requiredProperties := []string{
|
|
"retried_count",
|
|
}
|
|
|
|
allProperties := make(map[string]interface{})
|
|
|
|
err = json.Unmarshal(data, &allProperties)
|
|
|
|
if err != nil {
|
|
return err;
|
|
}
|
|
|
|
for _, requiredProperty := range(requiredProperties) {
|
|
if _, exists := allProperties[requiredProperty]; !exists {
|
|
return fmt.Errorf("no value given for required property %v", requiredProperty)
|
|
}
|
|
}
|
|
|
|
varRecoverConsolidationResponse := _RecoverConsolidationResponse{}
|
|
|
|
decoder := json.NewDecoder(bytes.NewReader(data))
|
|
decoder.DisallowUnknownFields()
|
|
err = decoder.Decode(&varRecoverConsolidationResponse)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = RecoverConsolidationResponse(varRecoverConsolidationResponse)
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableRecoverConsolidationResponse struct {
|
|
value *RecoverConsolidationResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableRecoverConsolidationResponse) Get() *RecoverConsolidationResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableRecoverConsolidationResponse) Set(val *RecoverConsolidationResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableRecoverConsolidationResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableRecoverConsolidationResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableRecoverConsolidationResponse(val *RecoverConsolidationResponse) *NullableRecoverConsolidationResponse {
|
|
return &NullableRecoverConsolidationResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableRecoverConsolidationResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableRecoverConsolidationResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|