@@ -42,6 +42,8 @@ type Benchmark struct {
4242 CompletionTimestamp * time.Time `json:"completionTimestamp,omitempty"`
4343 // the create timestamp of benchmark
4444 CreatedAt * time.Time `json:"createdAt,omitempty"`
45+ // extra args for benchmark
46+ Extra * string `json:"extra,omitempty"`
4547 // the status of benchmark
4648 Status * BenchmarkStatus `json:"status,omitempty"`
4749 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -486,6 +488,34 @@ func (o *Benchmark) SetCreatedAt(v time.Time) {
486488 o .CreatedAt = & v
487489}
488490
491+ // GetExtra returns the Extra field value if set, zero value otherwise.
492+ func (o * Benchmark ) GetExtra () string {
493+ if o == nil || o .Extra == nil {
494+ var ret string
495+ return ret
496+ }
497+ return * o .Extra
498+ }
499+
500+ // GetExtraOk returns a tuple with the Extra field value if set, nil otherwise
501+ // and a boolean to check if the value has been set.
502+ func (o * Benchmark ) GetExtraOk () (* string , bool ) {
503+ if o == nil || o .Extra == nil {
504+ return nil , false
505+ }
506+ return o .Extra , true
507+ }
508+
509+ // HasExtra returns a boolean if a field has been set.
510+ func (o * Benchmark ) HasExtra () bool {
511+ return o != nil && o .Extra != nil
512+ }
513+
514+ // SetExtra gets a reference to the given string and assigns it to the Extra field.
515+ func (o * Benchmark ) SetExtra (v string ) {
516+ o .Extra = & v
517+ }
518+
489519// GetStatus returns the Status field value if set, zero value otherwise.
490520func (o * Benchmark ) GetStatus () BenchmarkStatus {
491521 if o == nil || o .Status == nil {
@@ -573,6 +603,9 @@ func (o Benchmark) MarshalJSON() ([]byte, error) {
573603 toSerialize ["createdAt" ] = o .CreatedAt .Format ("2006-01-02T15:04:05.000Z07:00" )
574604 }
575605 }
606+ if o .Extra != nil {
607+ toSerialize ["extra" ] = o .Extra
608+ }
576609 if o .Status != nil {
577610 toSerialize ["status" ] = o .Status
578611 }
@@ -601,14 +634,15 @@ func (o *Benchmark) UnmarshalJSON(bytes []byte) (err error) {
601634 Database * string `json:"database,omitempty"`
602635 CompletionTimestamp * time.Time `json:"completionTimestamp,omitempty"`
603636 CreatedAt * time.Time `json:"createdAt,omitempty"`
637+ Extra * string `json:"extra,omitempty"`
604638 Status * BenchmarkStatus `json:"status,omitempty"`
605639 }{}
606640 if err = common .Unmarshal (bytes , & all ); err != nil {
607641 return err
608642 }
609643 additionalProperties := make (map [string ]interface {})
610644 if err = common .Unmarshal (bytes , & additionalProperties ); err == nil {
611- common .DeleteKeys (additionalProperties , & []string {"id" , "name" , "type" , "config" , "prepareLog" , "runLog" , "cleanupLog" , "result" , "message" , "cluster" , "clusterID" , "command" , "database" , "completionTimestamp" , "createdAt" , "status" })
645+ common .DeleteKeys (additionalProperties , & []string {"id" , "name" , "type" , "config" , "prepareLog" , "runLog" , "cleanupLog" , "result" , "message" , "cluster" , "clusterID" , "command" , "database" , "completionTimestamp" , "createdAt" , "extra" , " status" })
612646 } else {
613647 return err
614648 }
@@ -633,6 +667,7 @@ func (o *Benchmark) UnmarshalJSON(bytes []byte) (err error) {
633667 o .Database = all .Database
634668 o .CompletionTimestamp = all .CompletionTimestamp
635669 o .CreatedAt = all .CreatedAt
670+ o .Extra = all .Extra
636671 if all .Status != nil && ! all .Status .IsValid () {
637672 hasInvalidField = true
638673 } else {
0 commit comments