-
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] Add new data plane GA api-version 2024-06-01 (#29060)
* Add new GA api-version=2024-06-01 * Change ReleaseDelay enum values to string from number * regenerate with newest doc changes --------- Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com> Co-authored-by: l0lawrence <llawrence@microsoft.com>
- Loading branch information
1 parent
592bb66
commit 9f08437
Showing
15 changed files
with
1,275 additions
and
17 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
specification/eventgrid/Azure.Messaging.EventGrid/examples/2024-06-01/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": "2024-06-01", | ||
"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/2024-06-01/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": "2024-06-01", | ||
"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/2024-06-01/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": "2024-06-01", | ||
"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/2024-06-01/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": "2024-06-01", | ||
"rejectOptions": { | ||
"lockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"failedLockTokens": [], | ||
"succeededLockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
specification/eventgrid/Azure.Messaging.EventGrid/examples/2024-06-01/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": "2024-06-01", | ||
"releaseDelayInSeconds": 10, | ||
"releaseOptions": { | ||
"lockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"failedLockTokens": [], | ||
"succeededLockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
specification/eventgrid/Azure.Messaging.EventGrid/examples/2024-06-01/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": "2024-06-01", | ||
"renewLockOptions": { | ||
"lockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"failedLockTokens": [], | ||
"succeededLockTokens": [ | ||
"CgMKATESCQoHdG9rZW4tMQ==" | ||
] | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.