-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Azure Event Grid] Adding new public preview api version for new data…
…-plane operations, release with delay and renew lock operations (#25421) * Adding new api version, release with delay and renew lock operations * Removing unnecessary changes * ran prettier * Changing delay values * Adding the new api version in data-plane * Adding the generated folder * Fixing pr comment * Updating api version and suggestions from api review board * Fixing PR comment * Fixing build errors * Fixing build issue * Fixing a comment * Updating examples * Reverting to FailedLockToken model * Using Azure.Core.Foundations.Error to represent error * Fixing build issue * Renaming Delay to ReleaseDelay
- Loading branch information
Showing
23 changed files
with
1,491 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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 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 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
35 changes: 35 additions & 0 deletions
35
specification/eventgrid/Azure.Messaging.EventGrid/examples/2023-10-01-preview/ack.json
This file contains 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,35 @@ | ||
{ | ||
"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", | ||
"acknowledgeOptions": { | ||
"lockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"failedLockTokens": [ | ||
{ | ||
"lockToken": "CgMKATESCQoHdG9rZW4tMQ==", | ||
"error": { | ||
"code": "BadToken", | ||
"message": "" | ||
} | ||
} | ||
], | ||
"succeededLockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
specification/eventgrid/Azure.Messaging.EventGrid/examples/2023-10-01-preview/publish.json
This file contains 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 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 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", | ||
"rejectOptions": { | ||
"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 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, | ||
"releaseOptions": { | ||
"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 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", | ||
"renewLockOptions": { | ||
"lockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"failedLockTokens": [], | ||
"succeededLockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.