Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status board status update search #864

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.382
- Update model version to v0.0.334
- Add `Search` method to `status board` `status updates`

## 0.1.381
- Update model version to v0.0.333
- Add `/api/clusters_mgmt/v1/clusters/{id}/kubelet_config` endpoint
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.333
model_version:=v0.0.334
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 @@ -232,6 +232,7 @@ type StatusUpdatesListRequest struct {
limitScope *time.Time
page *int
productIds *string
search *string
size *int
}

Expand Down Expand Up @@ -290,6 +291,12 @@ func (r *StatusUpdatesListRequest) ProductIds(value string) *StatusUpdatesListRe
return r
}

// Search sets the value of the 'search' parameter.
func (r *StatusUpdatesListRequest) Search(value string) *StatusUpdatesListRequest {
r.search = &value
return r
}

// Size sets the value of the 'size' parameter.
func (r *StatusUpdatesListRequest) Size(value int) *StatusUpdatesListRequest {
r.size = &value
Expand Down Expand Up @@ -325,6 +332,9 @@ func (r *StatusUpdatesListRequest) SendContext(ctx context.Context) (result *Sta
if r.productIds != nil {
helpers.AddValue(&query, "product_ids", *r.productIds)
}
if r.search != nil {
helpers.AddValue(&query, "search", *r.search)
}
if r.size != nil {
helpers.AddValue(&query, "size", *r.size)
}
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.381"
const Version = "0.1.382"