Skip to content

Commit 94e186d

Browse files
author
Ori Adler
committed
ARO-15553 | Add inflight checks endpoints to the ARO HCP service
1 parent 6999e53 commit 94e186d

File tree

5 files changed

+88
-1
lines changed

5 files changed

+88
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $(error "please install 'shasum' or 'sha256sum'")
3737
endif
3838

3939
# Details of the metamodel used to check the model:
40-
metamodel_version:=v0.0.65
40+
metamodel_version:=v0.0.66
4141
metamodel_url:=https://github.com/openshift-online/ocm-api-metamodel/releases/download/$(metamodel_version)/metamodel-$(UNAME)-amd64
4242
metamodel_sha1_url:=https://github.com/openshift-online/ocm-api-metamodel/releases/download/$(metamodel_version)/metamodel-$(UNAME)-amd64.sha256
4343

model/aro_hcp/v1alpha1/cluster_resource.model

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,9 @@ resource Cluster {
3838
locator Status {
3939
target ClusterStatus
4040
}
41+
42+
// Reference to the resource that manages the collection of inflight checks.
43+
locator InflightChecks {
44+
target InflightChecks
45+
}
4146
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
Copyright (c) 2025 Red Hat, Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// Manages a specific inflight check.
18+
resource InflightCheck {
19+
// Retrieves the details of the inflight check.
20+
method Get {
21+
out Body InflightCheck
22+
}
23+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
Copyright (c) 2025 Red Hat, Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
@ref(path = "/clusters_mgmt/v1/inflight_check")
18+
class InflightCheck {
19+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
Copyright (c) 2022 Red Hat, Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// Manages the collection of inflight checks.
18+
resource InflightChecks {
19+
// Retrieves the list of inflight checks.
20+
method List {
21+
// Index of the requested page, where one corresponds to the first page.
22+
in out Page Integer = 1
23+
24+
// Number of items contained in the returned page.
25+
in out Size Integer = 100
26+
27+
// Total number of items of the collection.
28+
out Total Integer
29+
30+
// Retrieved list of inflight checks.
31+
out Items []InflightCheck
32+
}
33+
34+
// Returns a reference to the service that manages a specific inflight check.
35+
locator InflightCheck {
36+
target InflightCheck
37+
variable ID
38+
}
39+
}
40+

0 commit comments

Comments
 (0)