-
Notifications
You must be signed in to change notification settings - Fork 501
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
Scripts: Adds Stream APIs for CRUD Operations #4978
base: master
Are you sure you want to change the base?
Conversation
/// <param name="cancellationToken"></param> | ||
/// <returns>A <see cref="Task"/> containing a <see cref="ResponseMessage"/> containing the created stored procedure</returns> | ||
public abstract Task<ResponseMessage> CreateStoredProcedureStreamAsync( | ||
Stream streamPayload, |
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.
Metadata stream API's take the types themselves, as service don't accept any arbitrary payloads. please update all API's
/// <returns>A <see cref="Task"/> containing a <see cref="ResponseMessage"/> containing the created stored procedure</returns> | ||
public abstract Task<ResponseMessage> CreateStoredProcedureStreamAsync( | ||
Stream streamPayload, | ||
string id, |
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.
What is 'id' for?
/// <summary> | ||
/// Creates a stored procedure as an asynchronous operation in the Azure Cosmos DB service. | ||
/// </summary> | ||
/// <param name="streamPayload"></param> |
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.
Please expand with documentation and also a code usage sample.
/// <returns>A <see cref="Task"/> containing a <see cref="ResponseMessage"/>.</returns> | ||
public abstract Task<ResponseMessage> ReplaceStoredProcedureStreamAsync( | ||
Stream streamPayload, | ||
string id, |
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.
Is id needed?
uriPathSegment: Paths.StoredProceduresPathSegment, | ||
id: id); | ||
|
||
return await this.ProcessStreamOperationAsync( |
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.
General pattern is Typed API's are layered over stream API.
And typed API wil do the extra ResponseFactory.CreateResponse part.
Pull Request Template
Description
Adds new Stream APIs for CRUD operations on stored procedures, triggers, and user defined functions in the
Scripts
namespace.Type of change
Please delete options that are not relevant.
Closing issues
To automatically close an issue: closes #4951