Skip to content

Commit

Permalink
Merge pull request #999 from nesty156/OSDEV-1691
Browse files Browse the repository at this point in the history
OSDEV-1691: Bump version and added new changes
  • Loading branch information
tzvatot authored Sep 24, 2024
2 parents ece0040 + b46f318 commit e523a33
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions statusboard/v1/status_updates_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ limitations under the License.

package sdk

const Version = "0.1.442"
const Version = "0.1.443"

0 comments on commit e523a33

Please sign in to comment.