diff --git a/go/internal/openapi/model_application_out.go b/go/internal/openapi/model_application_out.go index da1d5f3c6..d200ea769 100644 --- a/go/internal/openapi/model_application_out.go +++ b/go/internal/openapi/model_application_out.go @@ -23,17 +23,19 @@ type ApplicationOut struct { RateLimit *int32 `json:"rateLimit,omitempty"` // Optional unique identifier for the application Uid *string `json:"uid,omitempty"` + UpdatedAt time.Time `json:"updatedAt"` } // NewApplicationOut instantiates a new ApplicationOut 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 NewApplicationOut(createdAt time.Time, id string, name string) *ApplicationOut { +func NewApplicationOut(createdAt time.Time, id string, name string, updatedAt time.Time) *ApplicationOut { this := ApplicationOut{} this.CreatedAt = createdAt this.Id = id this.Name = name + this.UpdatedAt = updatedAt return &this } @@ -181,6 +183,30 @@ func (o *ApplicationOut) SetUid(v string) { o.Uid = &v } +// GetUpdatedAt returns the UpdatedAt field value +func (o *ApplicationOut) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *ApplicationOut) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *ApplicationOut) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + func (o ApplicationOut) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -198,6 +224,9 @@ func (o ApplicationOut) MarshalJSON() ([]byte, error) { if o.Uid != nil { toSerialize["uid"] = o.Uid } + if true { + toSerialize["updatedAt"] = o.UpdatedAt + } return json.Marshal(toSerialize) } diff --git a/go/internal/openapi/model_endpoint_out.go b/go/internal/openapi/model_endpoint_out.go index ce736e33b..637fb0ad5 100644 --- a/go/internal/openapi/model_endpoint_out.go +++ b/go/internal/openapi/model_endpoint_out.go @@ -25,6 +25,7 @@ type EndpointOut struct { RateLimit *int32 `json:"rateLimit,omitempty"` // Optional unique identifier for the endpoint Uid *string `json:"uid,omitempty"` + UpdatedAt time.Time `json:"updatedAt"` Url string `json:"url"` Version int32 `json:"version"` } @@ -33,7 +34,7 @@ type EndpointOut struct { // 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 NewEndpointOut(createdAt time.Time, id string, url string, version int32) *EndpointOut { +func NewEndpointOut(createdAt time.Time, id string, updatedAt time.Time, url string, version int32) *EndpointOut { this := EndpointOut{} this.CreatedAt = createdAt var description string = "" @@ -41,6 +42,7 @@ func NewEndpointOut(createdAt time.Time, id string, url string, version int32) * var disabled bool = false this.Disabled = &disabled this.Id = id + this.UpdatedAt = updatedAt this.Url = url this.Version = version return &this @@ -266,6 +268,30 @@ func (o *EndpointOut) SetUid(v string) { o.Uid = &v } +// GetUpdatedAt returns the UpdatedAt field value +func (o *EndpointOut) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *EndpointOut) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *EndpointOut) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + // GetUrl returns the Url field value func (o *EndpointOut) GetUrl() string { if o == nil { @@ -337,6 +363,9 @@ func (o EndpointOut) MarshalJSON() ([]byte, error) { if o.Uid != nil { toSerialize["uid"] = o.Uid } + if true { + toSerialize["updatedAt"] = o.UpdatedAt + } if true { toSerialize["url"] = o.Url } diff --git a/go/internal/openapi/model_event_type_out.go b/go/internal/openapi/model_event_type_out.go index 194f25f39..16b75da8b 100644 --- a/go/internal/openapi/model_event_type_out.go +++ b/go/internal/openapi/model_event_type_out.go @@ -12,27 +12,32 @@ package openapi import ( "encoding/json" + "time" ) // EventTypeOut struct for EventTypeOut type EventTypeOut struct { Archived *bool `json:"archived,omitempty"` + CreatedAt time.Time `json:"createdAt"` Description string `json:"description"` Name string `json:"name"` // The schema for the event type for a specific version as a JSON schema. Schemas *map[string]map[string]interface{} `json:"schemas,omitempty"` + UpdatedAt time.Time `json:"updatedAt"` } // NewEventTypeOut instantiates a new EventTypeOut 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 NewEventTypeOut(description string, name string) *EventTypeOut { +func NewEventTypeOut(createdAt time.Time, description string, name string, updatedAt time.Time) *EventTypeOut { this := EventTypeOut{} var archived bool = false this.Archived = &archived + this.CreatedAt = createdAt this.Description = description this.Name = name + this.UpdatedAt = updatedAt return &this } @@ -78,6 +83,30 @@ func (o *EventTypeOut) SetArchived(v bool) { o.Archived = &v } +// GetCreatedAt returns the CreatedAt field value +func (o *EventTypeOut) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *EventTypeOut) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *EventTypeOut) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + // GetDescription returns the Description field value func (o *EventTypeOut) GetDescription() string { if o == nil { @@ -158,11 +187,38 @@ func (o *EventTypeOut) SetSchemas(v map[string]map[string]interface{}) { o.Schemas = &v } +// GetUpdatedAt returns the UpdatedAt field value +func (o *EventTypeOut) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *EventTypeOut) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *EventTypeOut) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + func (o EventTypeOut) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Archived != nil { toSerialize["archived"] = o.Archived } + if true { + toSerialize["createdAt"] = o.CreatedAt + } if true { toSerialize["description"] = o.Description } @@ -172,6 +228,9 @@ func (o EventTypeOut) MarshalJSON() ([]byte, error) { if o.Schemas != nil { toSerialize["schemas"] = o.Schemas } + if true { + toSerialize["updatedAt"] = o.UpdatedAt + } return json.Marshal(toSerialize) } diff --git a/openapi.json b/openapi.json index 395d160e8..375406175 100644 --- a/openapi.json +++ b/openapi.json @@ -61,12 +61,18 @@ "pattern": "^[a-zA-Z0-9\\-_.]+$", "title": "Uid", "type": "string" + }, + "updatedAt": { + "format": "date-time", + "title": "Updatedat", + "type": "string" } }, "required": [ "name", "id", - "createdAt" + "createdAt", + "updatedAt" ], "title": "ApplicationOut", "type": "object" @@ -453,6 +459,11 @@ "title": "Uid", "type": "string" }, + "updatedAt": { + "format": "date-time", + "title": "Updatedat", + "type": "string" + }, "url": { "example": "https://example.com/webhook/", "format": "uri", @@ -472,7 +483,8 @@ "url", "version", "id", - "createdAt" + "createdAt", + "updatedAt" ], "title": "EndpointOut", "type": "object" @@ -776,6 +788,11 @@ "title": "Archived", "type": "boolean" }, + "createdAt": { + "format": "date-time", + "title": "Createdat", + "type": "string" + }, "description": { "example": "A user has signed up", "title": "Description", @@ -835,11 +852,18 @@ }, "title": "Schemas", "type": "object" + }, + "updatedAt": { + "format": "date-time", + "title": "Updatedat", + "type": "string" } }, "required": [ "description", - "name" + "name", + "createdAt", + "updatedAt" ], "title": "EventTypeOut", "type": "object"