Skip to content

Commit

Permalink
Adding version_inquiry endpoint to Managed Services
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-campos committed Apr 3, 2023
1 parent e782379 commit 76621b0
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/service_mgmt/v1/services_resource.model
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ resource Services {
target ManagedService
variable ID
}

locator VersionInquiry {
target VersionInquiry
}
}
19 changes: 19 additions & 0 deletions model/service_mgmt/v1/version_inquiry_request_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
Copyright (c) 2023 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.
*/

struct VersionInquiryRequest {
ServiceType String
}
24 changes: 24 additions & 0 deletions model/service_mgmt/v1/version_inquiry_resource.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
Copyright (c) 2023 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.
*/

// Used to check the Openshift version a service will use.
resource VersionInquiry {
// Returns the Openshift version a service of this type will use.
method Post {
in Body VersionInquiryRequest
out Body VersionInquiryResponse
}
}
19 changes: 19 additions & 0 deletions model/service_mgmt/v1/version_inquiry_response_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
Copyright (c) 2023 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.
*/

struct VersionInquiryResponse {
Version String
}

0 comments on commit 76621b0

Please sign in to comment.