-
Notifications
You must be signed in to change notification settings - Fork 115
Add connector.secret private APIs #5727
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
base: main
Are you sure you want to change the base?
Conversation
|
Following you can find the validation changes against the target branch for the APIs.
You can validate these APIs yourself by using the |
| body: { | ||
| deleted: boolean | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| export interface Request extends RequestBase { | ||
| urls: [ | ||
| { | ||
| path: '/_connector/_secret/{id}' | ||
| methods: ['DELETE'] | ||
| } | ||
| ] | ||
| path_parts: { | ||
| /** The ID of the secret */ | ||
| id: string | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| export interface Request extends RequestBase { | ||
| urls: [ | ||
| { | ||
| path: '/_connector/_secret/{id}' | ||
| methods: ['GET'] | ||
| } | ||
| ] | ||
| path_parts: { | ||
| /** The ID of the secret */ | ||
| id: string | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| body: { | ||
| id: string | ||
| value: string | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /** | ||
| * Creates a secret for a Connector. | ||
| * | ||
| * @rest_spec_name connector.secret_post | ||
| * @availability stack stability=experimental visibility=private | ||
| */ | ||
| export interface Request extends RequestBase { | ||
| urls: [ | ||
| { | ||
| path: '/_connector/_secret' | ||
| methods: ['POST'] | ||
| } | ||
| ] | ||
| body: { | ||
| value: string | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| body: { | ||
| id: string | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| urls: [ | ||
| { | ||
| path: '/_connector/_secret/{id}' | ||
| methods: ['PUT'] | ||
| } | ||
| ] | ||
| path_parts: { | ||
| /** The ID of the secret */ | ||
| id: string | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| body: { | ||
| result: Result | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| urls: [ | ||
| { | ||
| path: '/_connector/_secret' | ||
| methods: ['POST'] | ||
| } | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| body: { | ||
| value?: string | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MattDevy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks also for the comments to the elasticsearch repo for each Request / Response, it makes it really clear and easy to validate! 🎉
While those APIs are private, they are needed in Elasticsearch's rest-api-spec, which we want to generate from the specification.
Note that those APIs are surprisingly similar to the Fleet secret APIs that I've added in #5729.