From 6ce0d9bff9eee7d3b67bd2baf7218e0ce39c87a9 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 18 Nov 2024 13:28:43 +0100 Subject: [PATCH] Bump OpenAPI spec and regenerate libs --- go/internal/openapi/api_stream.go | 4 +- .../openapi/model_app_usage_stats_in.go | 1 + .../openapi/model_app_usage_stats_out.go | 31 +++++++- .../model_list_response_application_out_.go | 38 +++------ .../model_list_response_application_stats_.go | 38 +++------ ...odel_list_response_background_task_out_.go | 38 +++------ ...del_list_response_endpoint_message_out_.go | 38 +++------ .../model_list_response_endpoint_out_.go | 38 +++------ .../model_list_response_event_type_out_.go | 38 +++------ .../model_list_response_integration_out_.go | 38 +++------ ..._response_message_attempt_endpoint_out_.go | 38 +++------ ...odel_list_response_message_attempt_out_.go | 38 +++------ ...del_list_response_message_endpoint_out_.go | 38 +++------ .../model_list_response_message_out_.go | 38 +++------ ...ponse_operational_webhook_endpoint_out_.go | 38 +++------ .../openapi/model_list_response_sink_out_.go | 38 +++------ ...el_list_response_stream_event_type_out_.go | 38 +++------ .../model_list_response_stream_out_.go | 38 +++------ .../model_list_response_stream_sink_out_.go | 38 +++------ .../model_list_response_template_out_.go | 38 +++------ go/internal/openapi/model_sink_http_config.go | 46 +++++++++++ openapi.json | 77 ++++++++++++++----- 22 files changed, 323 insertions(+), 482 deletions(-) diff --git a/go/internal/openapi/api_stream.go b/go/internal/openapi/api_stream.go index aad803c49..d53c7ac90 100644 --- a/go/internal/openapi/api_stream.go +++ b/go/internal/openapi/api_stream.go @@ -244,9 +244,9 @@ func (r ApiV1StreamCreateEventsRequest) Execute() (map[string]interface{}, *http } /* -V1StreamCreateEvents Append To Stream +V1StreamCreateEvents Create Events -Creates streaming events. +Creates events on the Stream. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param streamId diff --git a/go/internal/openapi/model_app_usage_stats_in.go b/go/internal/openapi/model_app_usage_stats_in.go index afb02a01c..a53fe16f4 100644 --- a/go/internal/openapi/model_app_usage_stats_in.go +++ b/go/internal/openapi/model_app_usage_stats_in.go @@ -22,6 +22,7 @@ var _ MappedNullable = &AppUsageStatsIn{} // AppUsageStatsIn struct for AppUsageStatsIn type AppUsageStatsIn struct { + // Specific app IDs or UIDs to aggregate stats for. Note that if none of the given IDs or UIDs are resolved, a 422 response will be given. AppIds []string `json:"appIds,omitempty"` Since time.Time `json:"since"` Until time.Time `json:"until"` diff --git a/go/internal/openapi/model_app_usage_stats_out.go b/go/internal/openapi/model_app_usage_stats_out.go index a4de62898..a5071605b 100644 --- a/go/internal/openapi/model_app_usage_stats_out.go +++ b/go/internal/openapi/model_app_usage_stats_out.go @@ -24,6 +24,8 @@ type AppUsageStatsOut struct { Id string `json:"id"` Status BackgroundTaskStatus `json:"status"` Task BackgroundTaskType `json:"task"` + // Any app IDs or UIDs received in the request that weren't found. Stats will be produced for all the others. + UnresolvedAppIds []string `json:"unresolvedAppIds"` } type _AppUsageStatsOut AppUsageStatsOut @@ -32,11 +34,12 @@ type _AppUsageStatsOut AppUsageStatsOut // 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 NewAppUsageStatsOut(id string, status BackgroundTaskStatus, task BackgroundTaskType) *AppUsageStatsOut { +func NewAppUsageStatsOut(id string, status BackgroundTaskStatus, task BackgroundTaskType, unresolvedAppIds []string) *AppUsageStatsOut { this := AppUsageStatsOut{} this.Id = id this.Status = status this.Task = task + this.UnresolvedAppIds = unresolvedAppIds return &this } @@ -120,6 +123,30 @@ func (o *AppUsageStatsOut) SetTask(v BackgroundTaskType) { o.Task = v } +// GetUnresolvedAppIds returns the UnresolvedAppIds field value +func (o *AppUsageStatsOut) GetUnresolvedAppIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.UnresolvedAppIds +} + +// GetUnresolvedAppIdsOk returns a tuple with the UnresolvedAppIds field value +// and a boolean to check if the value has been set. +func (o *AppUsageStatsOut) GetUnresolvedAppIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.UnresolvedAppIds, true +} + +// SetUnresolvedAppIds sets field value +func (o *AppUsageStatsOut) SetUnresolvedAppIds(v []string) { + o.UnresolvedAppIds = v +} + func (o AppUsageStatsOut) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -133,6 +160,7 @@ func (o AppUsageStatsOut) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["status"] = o.Status toSerialize["task"] = o.Task + toSerialize["unresolvedAppIds"] = o.UnresolvedAppIds return toSerialize, nil } @@ -144,6 +172,7 @@ func (o *AppUsageStatsOut) UnmarshalJSON(data []byte) (err error) { "id", "status", "task", + "unresolvedAppIds", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_application_out_.go b/go/internal/openapi/model_list_response_application_out_.go index a19938884..293fd123e 100644 --- a/go/internal/openapi/model_list_response_application_out_.go +++ b/go/internal/openapi/model_list_response_application_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseApplicationOut{} type ListResponseApplicationOut struct { Data []ApplicationOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseApplicationOut ListResponseApplicationOut // 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 NewListResponseApplicationOut(data []ApplicationOut, done bool) *ListResponseApplicationOut { +func NewListResponseApplicationOut(data []ApplicationOut, done bool, iterator NullableString) *ListResponseApplicationOut { this := ListResponseApplicationOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseApplicationOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseApplicationOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseApplicationOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseApplicationOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseApplicationOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseApplicationOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseApplicationOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseApplicationOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseApplicationOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseApplicationOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseApplicationOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_application_stats_.go b/go/internal/openapi/model_list_response_application_stats_.go index befd1ec7a..a143249ad 100644 --- a/go/internal/openapi/model_list_response_application_stats_.go +++ b/go/internal/openapi/model_list_response_application_stats_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseApplicationStats{} type ListResponseApplicationStats struct { Data []ApplicationStats `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseApplicationStats ListResponseApplicationStats // 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 NewListResponseApplicationStats(data []ApplicationStats, done bool) *ListResponseApplicationStats { +func NewListResponseApplicationStats(data []ApplicationStats, done bool, iterator NullableString) *ListResponseApplicationStats { this := ListResponseApplicationStats{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseApplicationStats) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseApplicationStats) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseApplicationStats) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseApplicationStats) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseApplicationStats) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseApplicationStats) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseApplicationStats) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseApplicationStats) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseApplicationStats) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseApplicationStats) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseApplicationStats) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_background_task_out_.go b/go/internal/openapi/model_list_response_background_task_out_.go index 502ba5a0d..007c7978f 100644 --- a/go/internal/openapi/model_list_response_background_task_out_.go +++ b/go/internal/openapi/model_list_response_background_task_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseBackgroundTaskOut{} type ListResponseBackgroundTaskOut struct { Data []BackgroundTaskOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseBackgroundTaskOut ListResponseBackgroundTaskOut // 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 NewListResponseBackgroundTaskOut(data []BackgroundTaskOut, done bool) *ListResponseBackgroundTaskOut { +func NewListResponseBackgroundTaskOut(data []BackgroundTaskOut, done bool, iterator NullableString) *ListResponseBackgroundTaskOut { this := ListResponseBackgroundTaskOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseBackgroundTaskOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseBackgroundTaskOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseBackgroundTaskOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseBackgroundTaskOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseBackgroundTaskOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseBackgroundTaskOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseBackgroundTaskOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseBackgroundTaskOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseBackgroundTaskOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseBackgroundTaskOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseBackgroundTaskOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_endpoint_message_out_.go b/go/internal/openapi/model_list_response_endpoint_message_out_.go index bb418aeeb..f5a5466cf 100644 --- a/go/internal/openapi/model_list_response_endpoint_message_out_.go +++ b/go/internal/openapi/model_list_response_endpoint_message_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseEndpointMessageOut{} type ListResponseEndpointMessageOut struct { Data []EndpointMessageOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseEndpointMessageOut ListResponseEndpointMessageOut // 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 NewListResponseEndpointMessageOut(data []EndpointMessageOut, done bool) *ListResponseEndpointMessageOut { +func NewListResponseEndpointMessageOut(data []EndpointMessageOut, done bool, iterator NullableString) *ListResponseEndpointMessageOut { this := ListResponseEndpointMessageOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseEndpointMessageOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseEndpointMessageOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseEndpointMessageOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseEndpointMessageOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseEndpointMessageOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseEndpointMessageOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseEndpointMessageOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseEndpointMessageOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseEndpointMessageOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseEndpointMessageOut) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseEndpointMessageOut) UnmarshalJSON(data []byte) (err error) requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_endpoint_out_.go b/go/internal/openapi/model_list_response_endpoint_out_.go index 3449d9ebf..a49850468 100644 --- a/go/internal/openapi/model_list_response_endpoint_out_.go +++ b/go/internal/openapi/model_list_response_endpoint_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseEndpointOut{} type ListResponseEndpointOut struct { Data []EndpointOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseEndpointOut ListResponseEndpointOut // 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 NewListResponseEndpointOut(data []EndpointOut, done bool) *ListResponseEndpointOut { +func NewListResponseEndpointOut(data []EndpointOut, done bool, iterator NullableString) *ListResponseEndpointOut { this := ListResponseEndpointOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseEndpointOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseEndpointOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseEndpointOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseEndpointOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseEndpointOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseEndpointOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseEndpointOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseEndpointOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseEndpointOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseEndpointOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseEndpointOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_event_type_out_.go b/go/internal/openapi/model_list_response_event_type_out_.go index aa91c5f01..5ecd90eb4 100644 --- a/go/internal/openapi/model_list_response_event_type_out_.go +++ b/go/internal/openapi/model_list_response_event_type_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseEventTypeOut{} type ListResponseEventTypeOut struct { Data []EventTypeOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseEventTypeOut ListResponseEventTypeOut // 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 NewListResponseEventTypeOut(data []EventTypeOut, done bool) *ListResponseEventTypeOut { +func NewListResponseEventTypeOut(data []EventTypeOut, done bool, iterator NullableString) *ListResponseEventTypeOut { this := ListResponseEventTypeOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseEventTypeOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseEventTypeOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseEventTypeOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseEventTypeOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseEventTypeOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseEventTypeOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseEventTypeOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseEventTypeOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseEventTypeOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseEventTypeOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseEventTypeOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_integration_out_.go b/go/internal/openapi/model_list_response_integration_out_.go index 4c939fad2..90d222012 100644 --- a/go/internal/openapi/model_list_response_integration_out_.go +++ b/go/internal/openapi/model_list_response_integration_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseIntegrationOut{} type ListResponseIntegrationOut struct { Data []IntegrationOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseIntegrationOut ListResponseIntegrationOut // 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 NewListResponseIntegrationOut(data []IntegrationOut, done bool) *ListResponseIntegrationOut { +func NewListResponseIntegrationOut(data []IntegrationOut, done bool, iterator NullableString) *ListResponseIntegrationOut { this := ListResponseIntegrationOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseIntegrationOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseIntegrationOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseIntegrationOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseIntegrationOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseIntegrationOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseIntegrationOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseIntegrationOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseIntegrationOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseIntegrationOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseIntegrationOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseIntegrationOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_message_attempt_endpoint_out_.go b/go/internal/openapi/model_list_response_message_attempt_endpoint_out_.go index f41752348..a1345bd93 100644 --- a/go/internal/openapi/model_list_response_message_attempt_endpoint_out_.go +++ b/go/internal/openapi/model_list_response_message_attempt_endpoint_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseMessageAttemptEndpointOut{} type ListResponseMessageAttemptEndpointOut struct { Data []MessageAttemptEndpointOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseMessageAttemptEndpointOut ListResponseMessageAttemptEndpointOu // 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 NewListResponseMessageAttemptEndpointOut(data []MessageAttemptEndpointOut, done bool) *ListResponseMessageAttemptEndpointOut { +func NewListResponseMessageAttemptEndpointOut(data []MessageAttemptEndpointOut, done bool, iterator NullableString) *ListResponseMessageAttemptEndpointOut { this := ListResponseMessageAttemptEndpointOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseMessageAttemptEndpointOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseMessageAttemptEndpointOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseMessageAttemptEndpointOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseMessageAttemptEndpointOut) GetIteratorOk() (*string, bool) return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseMessageAttemptEndpointOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseMessageAttemptEndpointOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseMessageAttemptEndpointOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseMessageAttemptEndpointOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseMessageAttemptEndpointOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseMessageAttemptEndpointOut) ToMap() (map[string]interface{}, toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseMessageAttemptEndpointOut) UnmarshalJSON(data []byte) (err requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_message_attempt_out_.go b/go/internal/openapi/model_list_response_message_attempt_out_.go index c8376e59d..b17a92a98 100644 --- a/go/internal/openapi/model_list_response_message_attempt_out_.go +++ b/go/internal/openapi/model_list_response_message_attempt_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseMessageAttemptOut{} type ListResponseMessageAttemptOut struct { Data []MessageAttemptOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseMessageAttemptOut ListResponseMessageAttemptOut // 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 NewListResponseMessageAttemptOut(data []MessageAttemptOut, done bool) *ListResponseMessageAttemptOut { +func NewListResponseMessageAttemptOut(data []MessageAttemptOut, done bool, iterator NullableString) *ListResponseMessageAttemptOut { this := ListResponseMessageAttemptOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseMessageAttemptOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseMessageAttemptOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseMessageAttemptOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseMessageAttemptOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseMessageAttemptOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseMessageAttemptOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseMessageAttemptOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseMessageAttemptOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseMessageAttemptOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseMessageAttemptOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseMessageAttemptOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_message_endpoint_out_.go b/go/internal/openapi/model_list_response_message_endpoint_out_.go index 93e621b58..d7382d6db 100644 --- a/go/internal/openapi/model_list_response_message_endpoint_out_.go +++ b/go/internal/openapi/model_list_response_message_endpoint_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseMessageEndpointOut{} type ListResponseMessageEndpointOut struct { Data []MessageEndpointOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseMessageEndpointOut ListResponseMessageEndpointOut // 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 NewListResponseMessageEndpointOut(data []MessageEndpointOut, done bool) *ListResponseMessageEndpointOut { +func NewListResponseMessageEndpointOut(data []MessageEndpointOut, done bool, iterator NullableString) *ListResponseMessageEndpointOut { this := ListResponseMessageEndpointOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseMessageEndpointOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseMessageEndpointOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseMessageEndpointOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseMessageEndpointOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseMessageEndpointOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseMessageEndpointOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseMessageEndpointOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseMessageEndpointOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseMessageEndpointOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseMessageEndpointOut) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseMessageEndpointOut) UnmarshalJSON(data []byte) (err error) requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_message_out_.go b/go/internal/openapi/model_list_response_message_out_.go index 897b5b5a1..f3c29cec6 100644 --- a/go/internal/openapi/model_list_response_message_out_.go +++ b/go/internal/openapi/model_list_response_message_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseMessageOut{} type ListResponseMessageOut struct { Data []MessageOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseMessageOut ListResponseMessageOut // 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 NewListResponseMessageOut(data []MessageOut, done bool) *ListResponseMessageOut { +func NewListResponseMessageOut(data []MessageOut, done bool, iterator NullableString) *ListResponseMessageOut { this := ListResponseMessageOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseMessageOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseMessageOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseMessageOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseMessageOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseMessageOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseMessageOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseMessageOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseMessageOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseMessageOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseMessageOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseMessageOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_operational_webhook_endpoint_out_.go b/go/internal/openapi/model_list_response_operational_webhook_endpoint_out_.go index a6f558255..ae4dbd518 100644 --- a/go/internal/openapi/model_list_response_operational_webhook_endpoint_out_.go +++ b/go/internal/openapi/model_list_response_operational_webhook_endpoint_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseOperationalWebhookEndpointOut{} type ListResponseOperationalWebhookEndpointOut struct { Data []OperationalWebhookEndpointOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseOperationalWebhookEndpointOut ListResponseOperationalWebhookEn // 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 NewListResponseOperationalWebhookEndpointOut(data []OperationalWebhookEndpointOut, done bool) *ListResponseOperationalWebhookEndpointOut { +func NewListResponseOperationalWebhookEndpointOut(data []OperationalWebhookEndpointOut, done bool, iterator NullableString) *ListResponseOperationalWebhookEndpointOut { this := ListResponseOperationalWebhookEndpointOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseOperationalWebhookEndpointOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseOperationalWebhookEndpointOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseOperationalWebhookEndpointOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseOperationalWebhookEndpointOut) GetIteratorOk() (*string, bo return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseOperationalWebhookEndpointOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseOperationalWebhookEndpointOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseOperationalWebhookEndpointOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseOperationalWebhookEndpointOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseOperationalWebhookEndpointOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseOperationalWebhookEndpointOut) ToMap() (map[string]interface toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseOperationalWebhookEndpointOut) UnmarshalJSON(data []byte) ( requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_sink_out_.go b/go/internal/openapi/model_list_response_sink_out_.go index b48ede2ce..3d0cc7978 100644 --- a/go/internal/openapi/model_list_response_sink_out_.go +++ b/go/internal/openapi/model_list_response_sink_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseSinkOut{} type ListResponseSinkOut struct { Data []SinkOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseSinkOut ListResponseSinkOut // 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 NewListResponseSinkOut(data []SinkOut, done bool) *ListResponseSinkOut { +func NewListResponseSinkOut(data []SinkOut, done bool, iterator NullableString) *ListResponseSinkOut { this := ListResponseSinkOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseSinkOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseSinkOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseSinkOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseSinkOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseSinkOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseSinkOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseSinkOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseSinkOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseSinkOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseSinkOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseSinkOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_stream_event_type_out_.go b/go/internal/openapi/model_list_response_stream_event_type_out_.go index 8735dc729..10123ac62 100644 --- a/go/internal/openapi/model_list_response_stream_event_type_out_.go +++ b/go/internal/openapi/model_list_response_stream_event_type_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseStreamEventTypeOut{} type ListResponseStreamEventTypeOut struct { Data []StreamEventTypeOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseStreamEventTypeOut ListResponseStreamEventTypeOut // 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 NewListResponseStreamEventTypeOut(data []StreamEventTypeOut, done bool) *ListResponseStreamEventTypeOut { +func NewListResponseStreamEventTypeOut(data []StreamEventTypeOut, done bool, iterator NullableString) *ListResponseStreamEventTypeOut { this := ListResponseStreamEventTypeOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseStreamEventTypeOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseStreamEventTypeOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseStreamEventTypeOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseStreamEventTypeOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseStreamEventTypeOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseStreamEventTypeOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseStreamEventTypeOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseStreamEventTypeOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseStreamEventTypeOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseStreamEventTypeOut) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseStreamEventTypeOut) UnmarshalJSON(data []byte) (err error) requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_stream_out_.go b/go/internal/openapi/model_list_response_stream_out_.go index de7b217db..22f6b7d25 100644 --- a/go/internal/openapi/model_list_response_stream_out_.go +++ b/go/internal/openapi/model_list_response_stream_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseStreamOut{} type ListResponseStreamOut struct { Data []StreamOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseStreamOut ListResponseStreamOut // 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 NewListResponseStreamOut(data []StreamOut, done bool) *ListResponseStreamOut { +func NewListResponseStreamOut(data []StreamOut, done bool, iterator NullableString) *ListResponseStreamOut { this := ListResponseStreamOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseStreamOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseStreamOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseStreamOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseStreamOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseStreamOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseStreamOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseStreamOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseStreamOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseStreamOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseStreamOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseStreamOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_stream_sink_out_.go b/go/internal/openapi/model_list_response_stream_sink_out_.go index 72680e0fb..9085ec001 100644 --- a/go/internal/openapi/model_list_response_stream_sink_out_.go +++ b/go/internal/openapi/model_list_response_stream_sink_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseStreamSinkOut{} type ListResponseStreamSinkOut struct { Data []StreamSinkOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseStreamSinkOut ListResponseStreamSinkOut // 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 NewListResponseStreamSinkOut(data []StreamSinkOut, done bool) *ListResponseStreamSinkOut { +func NewListResponseStreamSinkOut(data []StreamSinkOut, done bool, iterator NullableString) *ListResponseStreamSinkOut { this := ListResponseStreamSinkOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseStreamSinkOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseStreamSinkOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseStreamSinkOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseStreamSinkOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseStreamSinkOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseStreamSinkOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseStreamSinkOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseStreamSinkOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseStreamSinkOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseStreamSinkOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseStreamSinkOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_list_response_template_out_.go b/go/internal/openapi/model_list_response_template_out_.go index 355066233..962c1ecf0 100644 --- a/go/internal/openapi/model_list_response_template_out_.go +++ b/go/internal/openapi/model_list_response_template_out_.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ListResponseTemplateOut{} type ListResponseTemplateOut struct { Data []TemplateOut `json:"data"` Done bool `json:"done"` - Iterator NullableString `json:"iterator,omitempty"` + Iterator NullableString `json:"iterator"` PrevIterator NullableString `json:"prevIterator,omitempty"` } @@ -33,10 +33,11 @@ type _ListResponseTemplateOut ListResponseTemplateOut // 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 NewListResponseTemplateOut(data []TemplateOut, done bool) *ListResponseTemplateOut { +func NewListResponseTemplateOut(data []TemplateOut, done bool, iterator NullableString) *ListResponseTemplateOut { this := ListResponseTemplateOut{} this.Data = data this.Done = done + this.Iterator = iterator return &this } @@ -96,16 +97,18 @@ func (o *ListResponseTemplateOut) SetDone(v bool) { o.Done = v } -// GetIterator returns the Iterator field value if set, zero value otherwise (both if not set or set to explicit null). +// GetIterator returns the Iterator field value +// If the value is explicit nil, the zero value for string will be returned func (o *ListResponseTemplateOut) GetIterator() string { - if o == nil || IsNil(o.Iterator.Get()) { + if o == nil || o.Iterator.Get() == nil { var ret string return ret } + return *o.Iterator.Get() } -// GetIteratorOk returns a tuple with the Iterator field value if set, nil otherwise +// GetIteratorOk returns a tuple with the Iterator field value // 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 *ListResponseTemplateOut) GetIteratorOk() (*string, bool) { @@ -115,28 +118,10 @@ func (o *ListResponseTemplateOut) GetIteratorOk() (*string, bool) { return o.Iterator.Get(), o.Iterator.IsSet() } -// HasIterator returns a boolean if a field has been set. -func (o *ListResponseTemplateOut) HasIterator() bool { - if o != nil && o.Iterator.IsSet() { - return true - } - - return false -} - -// SetIterator gets a reference to the given NullableString and assigns it to the Iterator field. +// SetIterator sets field value func (o *ListResponseTemplateOut) SetIterator(v string) { o.Iterator.Set(&v) } -// SetIteratorNil sets the value for Iterator to be an explicit nil -func (o *ListResponseTemplateOut) SetIteratorNil() { - o.Iterator.Set(nil) -} - -// UnsetIterator ensures that no value is present for Iterator, not even an explicit nil -func (o *ListResponseTemplateOut) UnsetIterator() { - o.Iterator.Unset() -} // GetPrevIterator returns the PrevIterator field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ListResponseTemplateOut) GetPrevIterator() string { @@ -192,9 +177,7 @@ func (o ListResponseTemplateOut) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["data"] = o.Data toSerialize["done"] = o.Done - if o.Iterator.IsSet() { - toSerialize["iterator"] = o.Iterator.Get() - } + toSerialize["iterator"] = o.Iterator.Get() if o.PrevIterator.IsSet() { toSerialize["prevIterator"] = o.PrevIterator.Get() } @@ -208,6 +191,7 @@ func (o *ListResponseTemplateOut) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "data", "done", + "iterator", } allProperties := make(map[string]interface{}) diff --git a/go/internal/openapi/model_sink_http_config.go b/go/internal/openapi/model_sink_http_config.go index 3f9a330ae..cb79631ad 100644 --- a/go/internal/openapi/model_sink_http_config.go +++ b/go/internal/openapi/model_sink_http_config.go @@ -22,6 +22,7 @@ var _ MappedNullable = &SinkHttpConfig{} // SinkHttpConfig struct for SinkHttpConfig type SinkHttpConfig struct { Headers *map[string]string `json:"headers,omitempty"` + Key NullableString `json:"key,omitempty"` Url string `json:"url"` } @@ -77,6 +78,48 @@ func (o *SinkHttpConfig) SetHeaders(v map[string]string) { o.Headers = &v } +// GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SinkHttpConfig) GetKey() string { + if o == nil || IsNil(o.Key.Get()) { + var ret string + return ret + } + return *o.Key.Get() +} + +// GetKeyOk returns a tuple with the Key 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 *SinkHttpConfig) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Key.Get(), o.Key.IsSet() +} + +// HasKey returns a boolean if a field has been set. +func (o *SinkHttpConfig) HasKey() bool { + if o != nil && o.Key.IsSet() { + return true + } + + return false +} + +// SetKey gets a reference to the given NullableString and assigns it to the Key field. +func (o *SinkHttpConfig) SetKey(v string) { + o.Key.Set(&v) +} +// SetKeyNil sets the value for Key to be an explicit nil +func (o *SinkHttpConfig) SetKeyNil() { + o.Key.Set(nil) +} + +// UnsetKey ensures that no value is present for Key, not even an explicit nil +func (o *SinkHttpConfig) UnsetKey() { + o.Key.Unset() +} + // GetUrl returns the Url field value func (o *SinkHttpConfig) GetUrl() string { if o == nil { @@ -114,6 +157,9 @@ func (o SinkHttpConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.Headers) { toSerialize["headers"] = o.Headers } + if o.Key.IsSet() { + toSerialize["key"] = o.Key.Get() + } toSerialize["url"] = o.Url return toSerialize, nil } diff --git a/openapi.json b/openapi.json index 93a448f07..adb570ed9 100644 --- a/openapi.json +++ b/openapi.json @@ -79,6 +79,7 @@ "AppUsageStatsIn": { "properties": { "appIds": { + "description": "Specific app IDs or UIDs to aggregate stats for.\n\nNote that if none of the given IDs or UIDs are resolved, a 422 response will be given.", "items": { "description": "The app's ID or UID", "example": "unique-app-identifier", @@ -116,12 +117,26 @@ }, "task": { "$ref": "#/components/schemas/BackgroundTaskType" + }, + "unresolvedAppIds": { + "description": "Any app IDs or UIDs received in the request that weren't found.\n\nStats will be produced for all the others.", + "items": { + "description": "The app's ID or UID", + "example": "unique-app-identifier", + "maxLength": 256, + "minLength": 1, + "pattern": "^[a-zA-Z0-9\\-_.]+$", + "type": "string" + }, + "type": "array", + "uniqueItems": true } }, "required": [ "id", "status", - "task" + "task", + "unresolvedAppIds" ], "type": "object" }, @@ -2707,7 +2722,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2735,7 +2751,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2763,7 +2780,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2791,7 +2809,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2819,7 +2838,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2847,7 +2867,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2875,7 +2896,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2903,7 +2925,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2931,7 +2954,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2959,7 +2983,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -2987,7 +3012,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -3015,7 +3041,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -3043,7 +3070,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -3071,7 +3099,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -3099,7 +3128,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -3127,7 +3157,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -3155,7 +3186,8 @@ }, "required": [ "data", - "done" + "done", + "iterator" ], "type": "object" }, @@ -4678,6 +4710,11 @@ "default": {}, "type": "object" }, + "key": { + "default": null, + "nullable": true, + "type": "string" + }, "url": { "format": "uri", "type": "string" @@ -27288,7 +27325,7 @@ ] }, "post": { - "description": "Creates streaming events.", + "description": "Creates events on the Stream.", "operationId": "v1.stream.create-events", "parameters": [ { @@ -27407,7 +27444,7 @@ "HTTPBearer": [] } ], - "summary": "Append To Stream", + "summary": "Create Events", "tags": [ "Stream" ],