Skip to content

Commit

Permalink
ARO-15553 | Add inflight checks endpoints to the ARO HCP service
Browse files Browse the repository at this point in the history
  • Loading branch information
Ori Adler committed Mar 3, 2025
1 parent 6999e53 commit a41b134
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model/aro_hcp/v1alpha1/cluster_resource.model
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ resource Cluster {
locator Status {
target ClusterStatus
}

// Reference to the resource that manages the collection of inflight checks.
locator InflightChecks {
target InflightChecks
}
}
23 changes: 23 additions & 0 deletions model/aro_hcp/v1alpha1/inflight_check_resource.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
Copyright (c) 2025 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Manages a specific inflight check.
resource InflightCheck {
// Retrieves the details of the inflight check.
method Get {
out Body InflightCheck
}
}
19 changes: 19 additions & 0 deletions model/aro_hcp/v1alpha1/inflight_check_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
Copyright (c) 2025 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

@ref(path = "/clusters_mgmt/v1/inflight_check")
class InflightCheck {
}
40 changes: 40 additions & 0 deletions model/aro_hcp/v1alpha1/inflight_checks_resource.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
Copyright (c) 2022 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Manages the collection of inflight checks.
resource InflightChecks {
// Retrieves the list of inflight checks.
method List {
// Index of the requested page, where one corresponds to the first page.
in out Page Integer = 1

// Number of items contained in the returned page.
in out Size Integer = 100

// Total number of items of the collection.
out Total Integer

// Retrieved list of inflight checks.
out Items []InflightCheck
}

// Returns a reference to the service that manages a specific inflight check.
locator InflightCheck {
target InflightCheck
variable ID
}
}

0 comments on commit a41b134

Please sign in to comment.