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

Add models for the /_remotestore/_restore API endpoint #70

Merged
merged 5 commits into from
Feb 10, 2023

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Nov 30, 2022

Description

Add's models for the /_remotestore/_restore API endpoint

Screen Shot 2022-12-07 at 10 45 26 AM

As seen here, accepted may be set in the response instead of remote_store, unsure of exact causal path however.

Issues Resolved

Resolves #69

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@harshavamsi
Copy link
Collaborator

@Xtansia can we also add tests here?

@Xtansia
Copy link
Collaborator Author

Xtansia commented Dec 2, 2022

@harshavamsi Have added a test case

@suppress(["HttpUriConflict"])
@http(method: "POST", uri: "/_remotestore/_restore")
@documentation("Restore one or more indices from a remote backup.")
operation PostRemoteStoreRestore{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the names of the operation and structures inline with what we would want in the generated code? Or do they need to be changed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're named to match the naming scheme of the rest of the specs in the repo. Naming (or encoding friendly names as metadata similar to #73) will likely be a bigger issue, but hard to solve in advance until we get to the point of actually generating parts of a client from these.

@VachaShah VachaShah merged commit bf080fc into opensearch-project:main Feb 10, 2023
@Xtansia Xtansia deleted the feat/remotestore branch April 10, 2023 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add models related to Remote-backed Storage
4 participants