-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Azure Event Grid] Adding new public preview api version for new data-plane operations, release with delay and renew lock operations #25421
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
Merged
lmazuel
merged 20 commits into
Azure:main
from
batrived:users/batrived/releaseWithDelay
Oct 20, 2023
Merged
Changes from 8 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e66c1f7
Adding new api version, release with delay and renew lock operations
7e65da5
Removing unnecessary changes
cecbcc1
ran prettier
0145080
Changing delay values
a1c20e4
Adding the new api version in data-plane
c9dafee
Adding the generated folder
ced24ac
Fixing pr comment
6813c1d
Updating api version and suggestions from api review board
2d55d3e
Fixing PR comment
dcdd4f1
Merge branch 'main' of https://github.com/batrived/azure-rest-api-spe…
641d9dc
Fixing build errors
4429357
Fixing build issue
a9251da
Incorporating feedbacks
8dcd31c
Fixing a comment
fe675da
Updating examples
a571086
Reverting to FailedLockToken model
9e456be
Using Azure.Core.Foundations.Error to represent error
1579f9c
Merge branch 'main' of https://github.com/batrived/azure-rest-api-spe…
6785060
Fixing build issue
b0d62af
Renaming Delay to ReleaseDelay
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
specification/eventgrid/Azure.Messaging.EventGrid/examples/2023-10-01-preview/ack.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "operationId": "AcknowledgeCloudEvents", | ||
| "title": "Acknowledge Cloud Event", | ||
| "parameters": { | ||
| "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", | ||
| "topicName": "myTopic", | ||
| "eventSubscriptionName": "myEventSubscription", | ||
| "content-type": "application/json", | ||
| "authorization": "SharedAccessKey 123", | ||
| "api-version": "2023-10-01-preview", | ||
| "lockTokens": { | ||
| "lockTokens": [ | ||
| "CgMKATESCQoHdG9rZW4tMQ==" | ||
| ] | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "failedLockTokens": [ | ||
| { | ||
| "lockToken": "CgMKATESCQoHdG9rZW4tMQ==", | ||
| "errorCode": "BadToken", | ||
| "errorDescription": "" | ||
| } | ||
| ], | ||
| "succeededLockTokens": [ | ||
| "CgMKATESCQoHdG9rZW4tMQ==" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
29 changes: 29 additions & 0 deletions
29
specification/eventgrid/Azure.Messaging.EventGrid/examples/2023-10-01-preview/publish.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "operationId": "PublishCloudEvents", | ||
| "title": "Publish Cloud Event", | ||
| "parameters": { | ||
| "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", | ||
| "topicName": "myTopic", | ||
| "content-type": "application/cloudevents-batch+json", | ||
| "authorization": "SharedAccessKey 123", | ||
| "api-version": "2023-10-01-preview", | ||
| "events": [ | ||
| { | ||
| "id": "b3ccc7e3-c1cb-49bf-b7c8-0d4e60980616", | ||
| "source": "/microsoft/autorest/examples/eventgrid/cloud-events/publish", | ||
| "specversion": "1.0", | ||
| "data": { | ||
| "Property1": "Value1", | ||
| "Property2": "Value2" | ||
| }, | ||
| "type": "Microsoft.Contoso.TestEvent", | ||
| "time": "2023-05-04T23:06:09.147165Z" | ||
| } | ||
| ] | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": {} | ||
| } | ||
| } | ||
| } |
38 changes: 38 additions & 0 deletions
38
specification/eventgrid/Azure.Messaging.EventGrid/examples/2023-10-01-preview/receive.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "operationId": "ReceiveCloudEvents", | ||
| "title": "Receive Cloud Event", | ||
| "parameters": { | ||
| "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", | ||
| "topicName": "myTopic", | ||
| "eventSubscriptionName": "myEventSubscription", | ||
| "content-type": "application/json", | ||
| "authorization": "SharedAccessKey 123", | ||
| "api-version": "2023-10-01-preview", | ||
| "maxEvents": 1, | ||
| "maxWaitTime": 60 | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "brokerProperties": { | ||
| "lockToken": "CgMKATESCQoHdG9rZW4tMQ==", | ||
| "deliveryCount": 1 | ||
| }, | ||
| "event": { | ||
| "specversion": "1.0", | ||
| "type": "demo-started", | ||
| "source": "/test", | ||
| "subject": "all-hands-0405", | ||
| "id": "e770f36b-381a-41db-8b2b-b7199daeb202", | ||
| "time": "2023-05-05T17:31:00Z", | ||
| "datacontenttype": "application/json", | ||
| "data": "test" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
27 changes: 27 additions & 0 deletions
27
specification/eventgrid/Azure.Messaging.EventGrid/examples/2023-10-01-preview/reject.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "operationId": "RejectCloudEvents", | ||
| "title": "Reject Cloud Event", | ||
| "parameters": { | ||
| "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", | ||
| "topicName": "myTopic", | ||
| "eventSubscriptionName": "myEventSubscription", | ||
| "content-type": "application/json", | ||
| "authorization": "SharedAccessKey 123", | ||
| "api-version": "2023-10-01-preview", | ||
| "lockTokens": { | ||
| "lockTokens": [ | ||
| "CgMKATESCQoHdG9rZW4tMQ==" | ||
| ] | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "failedLockTokens": [], | ||
| "succeededLockTokens": [ | ||
| "CgMKATESCQoHdG9rZW4tMQ==" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletions
28
specification/eventgrid/Azure.Messaging.EventGrid/examples/2023-10-01-preview/release.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "operationId": "ReleaseCloudEvents", | ||
| "title": "Release Cloud Event with an optional delay.", | ||
| "parameters": { | ||
| "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", | ||
| "topicName": "myTopic", | ||
| "eventSubscriptionName": "myEventSubscription", | ||
| "content-type": "application/json", | ||
| "authorization": "SharedAccessKey 123", | ||
| "api-version": "2023-10-01-preview", | ||
| "delayInSeconds": 10, | ||
| "lockTokens": { | ||
| "lockTokens": [ | ||
| "CgMKATESCQoHdG9rZW4tMQ==" | ||
| ] | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "failedLockTokens": [], | ||
| "succeededLockTokens": [ | ||
| "CgMKATESCQoHdG9rZW4tMQ==" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
27 changes: 27 additions & 0 deletions
27
specification/eventgrid/Azure.Messaging.EventGrid/examples/2023-10-01-preview/renewlock.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "operationId": "RenewCloudEventLocks", | ||
| "title": "Renew lock for batch of Cloud Events", | ||
| "parameters": { | ||
| "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", | ||
| "topicName": "myTopic", | ||
| "eventSubscriptionName": "myEventSubscription", | ||
| "content-type": "application/json", | ||
| "authorization": "SharedAccessKey 123", | ||
| "api-version": "2023-10-01-preview", | ||
| "lockTokens": { | ||
| "lockTokens": [ | ||
| "CgMKATESCQoHdG9rZW4tMQ==" | ||
| ] | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "failedLockTokens": [], | ||
| "succeededLockTokens": [ | ||
| "CgMKATESCQoHdG9rZW4tMQ==" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.