chore: update ocm api model to v0.0.448 #1133
@oriAdler @nimrodshn PTAL
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->
Walkthrough
Adds ProvisionShard API: OpenAPI paths and generated clients (collection, item, cluster subresource), JSON (de)serializers, polling support, metrics entries, and dependency version bumps.
Changes
| Cohort / File(s) | Summary |
|---|---|
| Cluster client accessor <br> arohcp/v1alpha1/cluster_client.go | Added ProvisionShard() returning ClusterProvisionShardSubresourceClient. |
| Root client accessor <br> arohcp/v1alpha1/root_client.go | Added ProvisionShards() returning ProvisionShardsClient. |
| Cluster provision_shard subresource client <br> arohcp/v1alpha1/cluster_provision_shard_subresource_client.go, arohcp/v1alpha1/cluster_provision_shard_subresource_resource_request_json.go | New subresource client with Get, Poll, request/response types, polling helpers, and JSON read/write for Get. |
| ProvisionShard item client <br> arohcp/v1alpha1/provision_shard_client.go, arohcp/v1alpha1/provision_shard_resource_request_json.go | New item client with Delete, Get, Update, Poll, request/response types, and JSON (de)serializers (Get/Update body handling; Delete noop writer). |
| ProvisionShards collection client <br> arohcp/v1alpha1/provision_shards_client.go, arohcp/v1alpha1/provision_shards_resource_request_json.go | New collection client with Add (POST), List (GET with pagination), ProvisionShard(id) accessor, and JSON (de)serializers for Add/List. |
| OpenAPI changes <br> openapi/aro_hcp/v1alpha1/openapi.json | Added cluster-scoped /clusters/{cluster_id}/provision_shard (GET), collection /provision_shards (POST, GET), item /provision_shards/{provision_shard_id} (DELETE, GET, PATCH), and schema field vnet_integration_subnet_resource_id. |
| Metrics <br> metrics/path_tree_data.go | Added provision_shard node under clusters and provision_shards collection node under aro_hcp.v1alpha1. |
| Dependency bumps <br> go.mod, examples/go.mod, metamodel_generator/go.mod | Bumped openshift ocm-api-model packages from v0.0.447 → v0.0.448. |
Sequence Diagram(s)
sequenceDiagram
participant Client as Client
participant API as aro_hcp API Server
participant Storage as ProvisionShard Storage
Client->>API: POST /api/aro_hcp/v1alpha1/provision_shards (create)
API->>Storage: persist ProvisionShard
Storage-->>API: created record (ID)
API-->>Client: 201 Created (ProvisionShard)
Client->>API: GET /api/aro_hcp/v1alpha1/clusters/{cluster_id}/provision_shard
API->>Storage: lookup by cluster_id
Storage-->>API: ProvisionShard or 404
API-->>Client: 200 OK / 404
loop Polling
Client->>API: GET /api/aro_hcp/v1alpha1/provision_shards/{id}
API->>Storage: return current state
Storage-->>API: state
API-->>Client: 200 OK (ProvisionShard)
Client->>Client: evaluate predicate until satisfied or timeout
end
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~45 minutes
<!-- walkthrough_end -->
<!-- pre_merge_checks_walkthrough_start -->
<details>
<summary>🚥 Pre-merge checks | ✅ 1 | ❌ 2</summary>
<details>
<summary>❌ Failed checks (1 warning, 1 inconclusive)</summary>
| Check name | Status | Explanation | Resolution |
| :----------------: | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------- |
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
| Description check | ❓ Inconclusive | No pull request description was provided by the author. While the change is clear from the title and code diffs, a complete description is absent. | Consider adding a brief description explaining the contents of the v0.0.448 release and any impact on the codebase or API surface. |
</details>
<details>
<summary>✅ Passed checks (1 passed)</summary>
| Check name | Status | Explanation |
| :---------: | :------- | :------------------------------------------------------------------------------------------------------------------------------ |
| Title check | ✅ Passed | The title accurately describes the main change: updating the ocm api model dependency to v0.0.448 across multiple go.mod files. |
</details>
<sub>✏️ Tip: You can configure your own custom pre-merge checks in the settings.</sub>
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- finishing_touch_checkbox_start -->
<details>
<summary>✨ Finishing touches</summary>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->
---
<sub>Comment @coderabbitai help to get the list of available commands and usage tips.</sub>
<!-- tips_end -->
<!-- internal state start -->
<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAO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zII2+SVxxs3sAXN5S64Adv8g/Ts+0W7HORzPeEa+N5W8Tfqza3ccNN5O49czu53bb/N6G/sPhvu3dBjY3G4reQAq35d0d1O8cgHuM3Tb4962/ohBuDdzDp1Nse2Pq3DbAQY25QDNscPje+t/QEAA== -->
<!-- internal state end -->
_⚠️ Potential issue_ | _🟡 Minor_
Search parameter docs reference clusters, not provision shards.
The Search docstring and example are cluster-specific and could mislead users of the provision_shards endpoint. Consider updating the wording (and example) to reference provision shard attributes or make it generic. If this is generator-derived, the fix should likely happen in the source OpenAPI/description.
<details>
<summary>✏️ Possible doc fix</summary>
-// The syntax of this parameter is similar to the syntax of the _where_ clause of a
-// SQL statement, but using the names of the attributes of the cluster instead of
-// the names of the columns of a table. For example, in order to retrieve all the
-// clusters with a name starting with `my` in the `us-east-1` region the value
-// should be:
+// The syntax of this parameter is similar to the syntax of the _where_ clause of a
+// SQL statement, but using the names of the provision shard attributes instead of
+// the names of the columns of a table. For example:
//
// sql-// name like 'my%' and region.id = 'us-east-1'
+// name like 'my%'
//
</details>
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
// Search sets the value of the 'search' parameter.
//
// Search criteria.
//
// The syntax of this parameter is similar to the syntax of the _where_ clause of a
// SQL statement, but using the names of the provision shard attributes instead of
// the names of the columns of a table. For example:
//
//
</details>
<!-- suggestion_end -->
<details>
<summary>🤖 Prompt for AI Agents</summary>
In `@arohcp/v1alpha1/provision_shards_client.go` around lines 268 - 283, The
docstring for the Search setter in provision_shards_client.go currently
references "clusters" and a cluster-specific example; update the comment above
the Search method to refer to "provision shards" (or make it generic) and
replace the cluster-specific example (e.g. "name like 'my%' and region.id =
'us-east-1'") with a provision-shard-appropriate example such as a simple "name
like 'my%'" or other provision shard attribute, or fix the source OpenAPI
description if comments are generator-derived; ensure the comment text and
example consistently reference provision shards.
</details>
<!-- fingerprinting:phantom:medusa:eagle -->
<!-- This is an auto-generated comment by CodeRabbit -->
✅ Addressed in commit 73dbbfc
_⚠️ Potential issue_ | _🔴 Critical_
<details>
<summary>🧩 Analysis chain</summary>
🏁 Script executed:
#!/bin/bash
# Check go.sum entries for the bumped metamodel_generator module
set -euo pipefail
for f in $(fd -a 'go.sum' .); do
echo "== $f =="
rg -n 'github.com/openshift-online/ocm-api-model/metamodel_generator v0\.0\.448' "$f" || true
done
Repository: openshift-online/ocm-sdk-go
Length of output: 195
---
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "=== Checking go.mod files for metamodel_generator requirement ==="
for f in $(fd -a 'go.mod' .); do
echo "--- $f ---"
rg -A 2 -B 2 'metamodel_generator' "$f" || true
done
echo -e "\n=== Checking go.sum files for metamodel_generator entries ==="
for f in $(fd -a 'go.sum' .); do
echo "--- $f ---"
rg 'metamodel_generator' "$f" || true
done
Repository: openshift-online/ocm-sdk-go
Length of output: 807
---
</details>
Update go.sum: metamodel_generator version mismatch requires resolution.
The go.mod file requires v0.0.448, but go.sum still contains v0.0.447. This mismatch will cause Go module verification failures. Run go mod tidy in metamodel_generator/ to update go.sum with the correct checksums for v0.0.448.
<details>
<summary>🤖 Prompt for AI Agents</summary>
In `@metamodel_generator/go.mod` at line 5, The go.mod requires
github.com/openshift-online/ocm-api-model/metamodel_generator v0.0.448 but
go.sum still contains checksums for v0.0.447; run `go mod tidy` in the
metamodel_generator module to regenerate and update go.sum so the checksum for
v0.0.448 is recorded, then commit the updated go.sum (verify the require line in
go.mod remains set to v0.0.448).
</details>
<!-- fingerprinting:phantom:poseidon:eagle -->
<!-- This is an auto-generated comment by CodeRabbit -->
✅ Addressed in commit 73dbbfc
_⚠️ Potential issue_ | _🟡 Minor_
Search parameter description still references clusters.
The list endpoint is for provision shards, but the description/example still talk about “clusters,” which is misleading for API users. Consider updating the wording and example to match ProvisionShard fields.
<details>
<summary>💡 Proposed doc fix</summary>
- "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\n-SQL statement, but using the names of the attributes of the cluster instead of\nthe names of the columns of a table. For example, in order to retrieve all the\n-clusters with a name starting with `my` in the `us-east-1` region the value\n-should be:\n\nsql\n-name like 'my%' and region.id = 'us-east-1'\n-``\n+SQL statement, but using the names of the attributes of the provision shard instead of\nthe names of the columns of a table. For example, in order to retrieve all the\n+provision shards with status active in the us-east-1 region the value\n+should be:\n+\n+`sql\n+status = 'active' and region.id = 'us-east-1'\n+`\n</details>
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
suggestion
"name": "search",
"description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\nSQL statement, but using the names of the attributes of the provision shard instead of\nthe names of the columns of a table. For example, in order to retrieve all the\nprovision shards with status active in the us-east-1 region the value\nshould be:\n\n
</details>
<!-- suggestion_end -->
<details>
<summary>🤖 Prompt for AI Agents</summary>
In @openapi/aro_hcp/v1alpha1/openapi.json around lines 1284 - 1285, Update the
"search" parameter description to refer to provision shards (not clusters) and
replace the example to use ProvisionShard fields; locate the "name": "search"
parameter in the OpenAPI spec and change wording "attributes of the cluster" to
"attributes of the provision shard" and replace the example SQL from "name like
'my%'" to a ProvisionShard-relevant filter such as "status = 'active' and
region.id = 'us-east-1'"; ensure the surrounding explanation still references
the SQL-like syntax and that the example is formatted as an inline code block as
before.
``</details>
<!-- fingerprinting:phantom:poseidon:eagle -->
<!-- This is an auto-generated comment by CodeRabbit -->
✅ Addressed in commit 73dbbfc
Actionable comments posted: 3
<details>
<summary>🤖 Fix all issues with AI agents</summary>
In `@arohcp/v1alpha1/provision_shards_client.go`:
- Around line 268-283: The docstring for the Search setter in
provision_shards_client.go currently references "clusters" and a
cluster-specific example; update the comment above the Search method to refer to
"provision shards" (or make it generic) and replace the cluster-specific example
(e.g. "name like 'my%' and region.id = 'us-east-1'") with a
provision-shard-appropriate example such as a simple "name like 'my%'" or other
provision shard attribute, or fix the source OpenAPI description if comments are
generator-derived; ensure the comment text and example consistently reference
provision shards.
In `@metamodel_generator/go.mod`:
- Line 5: The go.mod requires
github.com/openshift-online/ocm-api-model/metamodel_generator v0.0.448 but
go.sum still contains checksums for v0.0.447; run `go mod tidy` in the
metamodel_generator module to regenerate and update go.sum so the checksum for
v0.0.448 is recorded, then commit the updated go.sum (verify the require line in
go.mod remains set to v0.0.448).
In `@openapi/aro_hcp/v1alpha1/openapi.json`:
- Around line 1284-1285: Update the "search" parameter description to refer to
provision shards (not clusters) and replace the example to use ProvisionShard
fields; locate the "name": "search" parameter in the OpenAPI spec and change
wording "attributes of the cluster" to "attributes of the provision shard" and
replace the example SQL from "name like 'my%'" to a ProvisionShard-relevant
filter such as "status = 'active' and region.id = 'us-east-1'"; ensure the
surrounding explanation still references the SQL-like syntax and that the
example is formatted as an inline code block as before.
</details>
<!-- This is an auto-generated comment by CodeRabbit for review status -->
_⚠️ Potential issue_ | _🟡 Minor_
Fix predicate doc wording (bool vs nil).
Predicates return bool, not nil, so the docstring is misleading.
<details>
<summary>✏️ Suggested doc correction</summary>
-// method return nil.
+// method return true.
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
In `@arohcp/v1alpha1/cluster_provision_shard_subresource_client.go` around lines
105 - 108, The docstring for StartContext incorrectly states predicates "return
nil"; update the wording to reflect that predicates return a bool: state that
responses are considered successful if the status matches values set via Status
and all predicates added with Predicate return true; reference the StartContext
function and the Predicate method to locate and update the comment accordingly.
</details>
<!-- fingerprinting:phantom:poseidon:eagle -->
<!-- This is an auto-generated comment by CodeRabbit -->
✅ Addressed in commit 5f01ee2
Actionable comments posted: 1
<details>
<summary>🤖 Fix all issues with AI agents</summary>
In `@arohcp/v1alpha1/cluster_provision_shard_subresource_client.go`:
- Around line 105-108: The docstring for StartContext incorrectly states
predicates "return nil"; update the wording to reflect that predicates return a
bool: state that responses are considered successful if the status matches
values set via Status and all predicates added with Predicate return true;
reference the StartContext function and the Predicate method to locate and
update the comment accordingly.
</details>
<!-- This is an auto-generated comment by CodeRabbit for review status -->
_⚠️ Potential issue_ | _🟡 Minor_
Fix doc typo: predicates should return true, not nil.
Line 126-128 mentions predicates “return nil” but the predicate signature is boolean.
<details>
<summary>📝 Suggested doc fix</summary>
-// method return nil.
+// method return true.
</details>
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
// StartContext starts the polling loop. Responses will be considered successful if the status is one of
// the values specified with the Status method and if all the predicates specified with the Predicate
// method return true.
</details>
<!-- suggestion_end -->
<details>
<summary>🤖 Prompt for AI Agents</summary>
In `@arohcp/v1alpha1/provision_shard_client.go` around lines 126 - 128, The doc
comment for StartContext incorrectly states that predicates "return nil"; update
the comment to say predicates should return true (matching the boolean Predicate
signature) and ensure any mention of success checks near StartContext, Status,
and Predicate methods reflects that predicates must return true to be considered
successful.
</details>
<!-- fingerprinting:phantom:poseidon:eagle -->
<!-- This is an auto-generated comment by CodeRabbit -->
Actionable comments posted: 1
<details>
<summary>🤖 Fix all issues with AI agents</summary>
In `@arohcp/v1alpha1/provision_shard_client.go`:
- Around line 126-128: The doc comment for StartContext incorrectly states that
predicates "return nil"; update the comment to say predicates should return true
(matching the boolean Predicate signature) and ensure any mention of success
checks near StartContext, Status, and Predicate methods reflects that predicates
must return true to be considered successful.
</details>
<!-- This is an auto-generated comment by CodeRabbit for review status -->
_⚠️ Potential issue_ | _🟡 Minor_
Missing nil receiver checks in Body() and GetBody() methods.
The Status(), Header(), and Error() methods on this type have if r == nil guards, but Body() and GetBody() do not. This inconsistency could cause a nil pointer dereference if a nil *ClusterProvisionShardSubresourcePollResponse is used.
Compare with ClusterProvisionShardSubresourceGetResponse.Body() (line 292) which correctly checks if r == nil.
Since this is generated code, the fix should be applied to the generator template.
<details>
<summary>🔧 Suggested fix for consistency</summary>
// Body returns the value of the 'body' parameter.
func (r *ClusterProvisionShardSubresourcePollResponse) Body() *ProvisionShard {
+ if r == nil {
+ return nil
+ }
return r.response.Body()
}
// GetBody returns the value of the 'body' parameter and
// a flag indicating if the parameter has a value.
func (r *ClusterProvisionShardSubresourcePollResponse) GetBody() (value *ProvisionShard, ok bool) {
+ if r == nil {
+ return
+ }
return r.response.GetBody()
}
</details>
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
func (r *ClusterProvisionShardSubresourcePollResponse) Body() *ProvisionShard {
if r == nil {
return nil
}
return r.response.Body()
}
// GetBody returns the value of the 'body' parameter and
// a flag indicating if the parameter has a value.
func (r *ClusterProvisionShardSubresourcePollResponse) GetBody() (value *ProvisionShard, ok bool) {
if r == nil {
return
}
return r.response.GetBody()
}
</details>
<!-- suggestion_end -->
<details>
<summary>🤖 Prompt for AI Agents</summary>
In `@arohcp/v1alpha1/cluster_provision_shard_subresource_client.go` around lines
161 - 169, Add nil-receiver guards to
ClusterProvisionShardSubresourcePollResponse.Body() and GetBody(): check "if r
== nil" at the start of each method and return nil (for Body) or (nil,false)
(for GetBody) to avoid dereferencing a nil pointer. Mirror the pattern used in
ClusterProvisionShardSubresourceGetResponse.Body() and update the generator
template that emits ClusterProvisionShardSubresourcePollResponse so all
generated types include the same nil checks.
</details>
<!-- fingerprinting:phantom:poseidon:ocelot -->
<!-- This is an auto-generated comment by CodeRabbit -->
✅ Addressed in commit 41939c1
_⚠️ Potential issue_ | _🟡 Minor_
Missing nil-check in Body() and GetBody() for ProvisionShardPollResponse.
The Body() method at line 182-184 does not check if r is nil before accessing r.response, unlike other response types in this file (e.g., ProvisionShardGetResponse.Body() at line 420-425). This could cause a nil pointer dereference if called on a nil receiver.
<details>
<summary>🐛 Proposed fix</summary>
// Body returns the value of the 'body' parameter.
func (r *ProvisionShardPollResponse) Body() *ProvisionShard {
+ if r == nil {
+ return nil
+ }
return r.response.Body()
}
// GetBody returns the value of the 'body' parameter and
// a flag indicating if the parameter has a value.
func (r *ProvisionShardPollResponse) GetBody() (value *ProvisionShard, ok bool) {
+ if r == nil {
+ return
+ }
return r.response.GetBody()
}
</details>
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
// Body returns the value of the 'body' parameter.
func (r *ProvisionShardPollResponse) Body() *ProvisionShard {
if r == nil {
return nil
}
return r.response.Body()
}
// GetBody returns the value of the 'body' parameter and
// a flag indicating if the parameter has a value.
func (r *ProvisionShardPollResponse) GetBody() (value *ProvisionShard, ok bool) {
if r == nil {
return
}
return r.response.GetBody()
}
</details>
<!-- suggestion_end -->
<details>
<summary>🤖 Prompt for AI Agents</summary>
In `@arohcp/v1alpha1/provision_shard_client.go` around lines 182 - 190, The Body()
and GetBody() methods on ProvisionShardPollResponse lack nil checks and may
dereference r or r.response; update ProvisionShardPollResponse.Body and
ProvisionShardPollResponse.GetBody to first return nil (and false for GetBody)
if r == nil or r.response == nil, mirroring the nil-check pattern used in
ProvisionShardGetResponse.Body()/GetBody() so callers won't panic on a nil
receiver.
</details>
<!-- fingerprinting:phantom:medusa:ocelot -->
<!-- This is an auto-generated comment by CodeRabbit -->
✅ Addressed in commit 41939c1
Actionable comments posted: 2
<details>
<summary>🤖 Fix all issues with AI agents</summary>
In `@arohcp/v1alpha1/cluster_provision_shard_subresource_client.go`:
- Around line 161-169: Add nil-receiver guards to
ClusterProvisionShardSubresourcePollResponse.Body() and GetBody(): check "if r
== nil" at the start of each method and return nil (for Body) or (nil,false)
(for GetBody) to avoid dereferencing a nil pointer. Mirror the pattern used in
ClusterProvisionShardSubresourceGetResponse.Body() and update the generator
template that emits ClusterProvisionShardSubresourcePollResponse so all
generated types include the same nil checks.
In `@arohcp/v1alpha1/provision_shard_client.go`:
- Around line 182-190: The Body() and GetBody() methods on
ProvisionShardPollResponse lack nil checks and may dereference r or r.response;
update ProvisionShardPollResponse.Body and ProvisionShardPollResponse.GetBody to
first return nil (and false for GetBody) if r == nil or r.response == nil,
mirroring the nil-check pattern used in
ProvisionShardGetResponse.Body()/GetBody() so callers won't panic on a nil
receiver.
</details>
<details>
<summary>♻️ Duplicate comments (4)</summary><blockquote>
<details>
<summary>arohcp/v1alpha1/provision_shard_client.go (1)</summary><blockquote>
126-128: Fix doc typo: predicates return true, not nil.
The Predicate method signature is func(ProvisionShardGetResponse) bool, so the documentation should state that predicates "return true" for success, not "return nil".
<details>
<summary>📝 Suggested doc fix</summary>
-// method return nil.
+// method return true.
</details>
</blockquote></details>
<details>
<summary>arohcp/v1alpha1/provision_shards_client.go (1)</summary><blockquote>
268-287: Search parameter documentation still references clusters instead of provision shards.
The docstring mentions "attributes of the cluster" and gives a cluster-specific example (region.id = 'us-east-1'). Since this is a generated file, the fix should be applied in the source OpenAPI specification.
<details>
<summary>✏️ Suggested doc fix (apply to generator source)</summary>
// The syntax of this parameter is similar to the syntax of the _where_ clause of a
-// SQL statement, but using the names of the attributes of the cluster instead of
+// SQL statement, but using the names of the attributes of the provision shard instead of
// the names of the columns of a table. For example, in order to retrieve all the
-// clusters with a name starting with `my` in the `us-east-1` region the value
-// should be:
+// provision shards with a name starting with `my` the value should be:
//
// sql-// name like 'my%' and region.id = 'us-east-1'
+// name like 'my%'
//
</details>
</blockquote></details>
<details>
<summary>openapi/aro_hcp/v1alpha1/openapi.json (1)</summary><blockquote>
1237-1347: Fix search parameter wording to match ProvisionShard.
Line 1284 still references clusters and a cluster-based example; this is misleading for provision shards.
<details>
<summary>✏️ Proposed doc fix</summary>
- "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\n-SQL statement, but using the names of the attributes of the cluster instead of\nthe names of the columns of a table. For example, in order to retrieve all the\n-clusters with a name starting with `my` in the `us-east-1` region the value\n-should be:\n\nsql\n-name like 'my%' and region.id = 'us-east-1'\n-``\n+ "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\n+SQL statement, but using the names of the attributes of the provision shard instead of\nthe names of the columns of a table. For example, in order to retrieve all the\n+provision shards with status active in the us-east-1 region the value\n+should be:\n+\n+`sql\n+status = 'active' and region.id = 'us-east-1'\n+`\n</details>
</blockquote></details>
<details>
<summary>arohcp/v1alpha1/cluster_provision_shard_subresource_client.go (1)</summary><blockquote>
`105-108`: **Doc comment says predicates "return nil" but they return bool.**
The docstring states predicates "return nil" but predicates actually return `bool`. This appears to be the same issue flagged previously.
</blockquote></details>
</blockquote></details>
<details>
<summary>🧹 Nitpick comments (1)</summary><blockquote>
<details>
<summary>arohcp/v1alpha1/provision_shard_resource_request_json.go (1)</summary><blockquote>
`33-36`: **Handle empty-body responses to avoid spurious errors.**
If the API can return an empty body (e.g., 204/202), `UnmarshalProvisionShard` may return `io.EOF`, which will currently surface as an error. Consider treating `io.EOF` as success to make the client resilient.
<details>
<summary>💡 Suggested change</summary>
diff
func readProvisionShardGetResponse(response ProvisionShardGetResponse, reader io.Reader) error {
var err error
response.body, err = UnmarshalProvisionShard(reader)
return err
+ if err == io.EOF {
+ return nil
+ }
+ return err
}
@@
func readProvisionShardUpdateResponse(response *ProvisionShardUpdateResponse, reader io.Reader) error {
var err error
response.body, err = UnmarshalProvisionShard(reader)
return err
+ if err == io.EOF {
+ return nil
+ }
+ return err
}
``</details>
Also applies to: 41-44
</blockquote></details>
</blockquote></details>
<!-- This is an auto-generated comment by CodeRabbit for review status -->
Approved these changes.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/openshift-online/ocm-sdk-go/pull/1133#pullrequestreview-3703913908" title="Approved">nimrodshn</a>, <a href="https://github.com/openshift-online/ocm-sdk-go/pull/1133#" title="Author self-approved">zgalor</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
nimrodshn
zgalor
No description provided by author.