From 6f265f9965724071197f363c793011d7df0ce5cc Mon Sep 17 00:00:00 2001 From: Vojtech Kronika Date: Tue, 24 Sep 2024 13:57:40 +0200 Subject: [PATCH 1/2] OSDEV-1691: Bump version and added new changes --- CHANGES.md | 4 ++++ version.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index c550d1ee..02d1cb15 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,10 @@ This document describes the relevant changes between releases of the OCM API SDK. +## 0.1.443 +- Update model version v0.0.396 + - Add `FlapDetection` field to `status_board.status_updates` model + ## 0.1.442 - Update model version v0.0.395 - Add `ASWShard` struct diff --git a/version.go b/version.go index 72190517..e7aba24b 100644 --- a/version.go +++ b/version.go @@ -18,4 +18,4 @@ limitations under the License. package sdk -const Version = "0.1.442" +const Version = "0.1.443" From b46f318e3ebc674f2c3153d9c40bb6296cf37b5b Mon Sep 17 00:00:00 2001 From: Vojtech Kronika Date: Tue, 24 Sep 2024 15:40:55 +0200 Subject: [PATCH 2/2] Updated version in makefile and generate files --- Makefile | 2 +- statusboard/v1/status_updates_client.go | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c4a5f691..a8c5bf5a 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ export PATH := $(LOCAL_BIN_PATH):$(PATH) export CGO_ENABLED=0 # Details of the model to use: -model_version:=v0.0.395 +model_version:=v0.0.396 model_url:=https://github.com/openshift-online/ocm-api-model.git # Details of the metamodel to use: diff --git a/statusboard/v1/status_updates_client.go b/statusboard/v1/status_updates_client.go index e52f9084..096c6e92 100644 --- a/statusboard/v1/status_updates_client.go +++ b/statusboard/v1/status_updates_client.go @@ -228,6 +228,7 @@ type StatusUpdatesListRequest struct { header http.Header createdAfter *time.Time createdBefore *time.Time + flapDetection *bool fullNames *string limitScope *time.Time page *int @@ -267,6 +268,12 @@ func (r *StatusUpdatesListRequest) CreatedBefore(value time.Time) *StatusUpdates return r } +// FlapDetection sets the value of the 'flap_detection' parameter. +func (r *StatusUpdatesListRequest) FlapDetection(value bool) *StatusUpdatesListRequest { + r.flapDetection = &value + return r +} + // FullNames sets the value of the 'full_names' parameter. func (r *StatusUpdatesListRequest) FullNames(value string) *StatusUpdatesListRequest { r.fullNames = &value @@ -320,6 +327,9 @@ func (r *StatusUpdatesListRequest) SendContext(ctx context.Context) (result *Sta if r.createdBefore != nil { helpers.AddValue(&query, "created_before", *r.createdBefore) } + if r.flapDetection != nil { + helpers.AddValue(&query, "flap_detection", *r.flapDetection) + } if r.fullNames != nil { helpers.AddValue(&query, "full_names", *r.fullNames) }