Skip to content

Commit

Permalink
Azure EventGrid 2023-06-01-preview: Management Swagger and Examples (#…
Browse files Browse the repository at this point in the history
…23981)

* Use 2021-10-15-preview as base-line in first commit per ARM/Swagger review requirement

* EventGrid: 2023-06-01-preview --- Add EventGrid.Json Swagger file and related examples for API Version: 2023-06-01-preview

* fix swagger by removing extra deprecated resources and their related examples

* fix prettier

* update example to trigger execution of github tasks

* fix DefaultErrorResponseSchema for caCertificates to fix some of Swagger LintDiff issues

* fix more lint diff issues

* Fix more lint diff errors

* fix lintdiff for default response

* more diffdiff fixes

* fix typo, prettier check and remove depcrecated properties

* Add required = true for discrementator

* fixed  = true for discrementator

* fix required location for discriminator for Filter
  • Loading branch information
ahamad-MS authored May 16, 2023
1 parent afb3092 commit 288939a
Show file tree
Hide file tree
Showing 216 changed files with 24,951 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"namespaceName": "exampleNamespaceName1",
"caCertificateName": "exampleCACertificateName1",
"api-version": "2023-06-01-preview",
"caCertificateInfo": {
"properties": {
"description": "This is a test certificate",
"encodedCertificate": "base64EncodePemFormattedCertificateString"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"encodedCertificate": "base64EncodePemFormattedCertificateString",
"issueTimeInUtc": "2022-09-12T23:06:43+00:00",
"expiryTimeInUtc": "2022-10-12T23:06:43+00:00",
"provisioningState": "Succeeded",
"description": "This is a test Root certificate"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1",
"name": "exampleCACertificateName1",
"type": "Microsoft.EventGrid/namespaces/caCertificates"
}
},
"201": {
"body": {
"properties": {
"encodedCertificate": "base64EncodePemFormattedCertificateString",
"issueTimeInUtc": "2022-09-12T23:06:43+00:00",
"expiryTimeInUtc": "2022-10-12T23:06:43+00:00",
"provisioningState": "Succeeded",
"description": "This is a test Root certificate"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1",
"name": "exampleCACertificateName1",
"type": "Microsoft.EventGrid/namespaces/caCertificates"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"namespaceName": "exampleNamespaceName1",
"caCertificateName": "exampleCACertificateName1",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.EventGrid/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-06-01-preview",
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.EventGrid/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/Spring/default?api-version=2023-06-01-preview"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"namespaceName": "exampleNamespaceName1",
"caCertificateName": "exampleCACertificateName1",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"encodedCertificate": "base64EncodePemFormattedCertificateString",
"issueTimeInUtc": "2022-09-12T23:06:43+00:00",
"expiryTimeInUtc": "2022-10-12T23:06:43+00:00",
"provisioningState": "Succeeded",
"description": "This is a test Root certificate"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1",
"name": "exampleCACertificateName1",
"type": "Microsoft.EventGrid/namespaces/caCertificates"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"namespaceName": "namespace123",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"encodedCertificate": "base64EncodePemFormattedCertificateString",
"issueTimeInUtc": "2022-09-12T23:06:43+00:00",
"expiryTimeInUtc": "2022-10-12T23:06:43+00:00",
"provisioningState": "Succeeded",
"description": "This is a test Root certificate"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/caCertificates/exampleCACertificateName1",
"name": "exampleCACertificateName1",
"type": "Microsoft.EventGrid/namespaces/caCertificates"
}
],
"nextLink": "https://xyz.net/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/providers/microsoft.eventgrid/namespaces/namespace123/caCertificates?2023-06-01-preview&%24skiptoken=7ZjtaqQwFIbvRWp%2f1dHJ6GgHypK1yro707F%2bdOn%2bUxPdMJhIkmqh9N43cYfeg6CE%2bB45mI%2bHlxz9MCh%2bl0dCL8I4fBi%2fo7woc%2bNg%2fJVyEAfbrgZiIda1jKENx4K98QaLzUQoYpOwCJUbiqUt3mrRcDJIwqiwkRt4%2b30VWMAFgeVW%2b8YKdq5v3e99Dzn3bR14W3vgbCQIc2H3pOFMsFZu8Iip7DhBtmQDacQ3PfqoctRrH4ADgLV1rK1nDRyPBE%2b3N%2bKixmQXTB9Mrzb92gRgDtXd3FW6B3WWPGrt49F5fYS%2ffP7SJxf4dZk7pBvYZYVK2ypRZKFSwFEyyV%2b01Co6K7X3PE%2bnPIexigKl4lQnwy7SL%2bxgeIIlDKGcTslrB6cu5SZoJ6dpwziCbqqC8ll1QQtDeqp5k81zbFTPK9rh67znhfSEXkO9DNV0Vl%2b9fz2MYy19pJuHbm%2fUnqlNMu6uEMFKcdEU83NZ%2fAijpyKDx9WSC7fk9wz%2bSY4z0tWWi7alPiGjMjun0Qpy0SAjqEud9ZTUBc5ya53%2fFFcrLh4izBO4Ylw0xrm80YZcWS7%2bG%2fInTOGTrnVWTy7Yk593RsV72HUcd5XEqND%2fShRRmJ2Mz38%3d"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"partnerNamespaceName": "examplePartnerNamespaceName1",
"channelName": "exampleChannelName1",
"api-version": "2023-06-01-preview",
"channelInfo": {
"properties": {
"channelType": "PartnerTopic",
"partnerTopicInfo": {
"azureSubscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg2",
"name": "examplePartnerTopic1",
"source": "ContosoCorp.Accounts.User1"
},
"messageForActivation": "Example message to approver",
"expirationTimeIfNotActivatedUtc": "2021-10-21T22:50:25.410433Z"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"channelType": "PartnerTopic",
"partnerTopicInfo": {
"azureSubscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg2",
"name": "examplePartnerTopic1",
"source": "ContosoCorp.Accounts.User1"
},
"messageForActivation": "Example message to approver",
"expirationTimeIfNotActivatedUtc": "2021-10-21T22:50:25.410433Z"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/changes/exampleChannelName1",
"name": "exampleChannelName1",
"type": "Microsoft.EventGrid/partnerNamespaces/channels"
}
},
"201": {
"body": {
"properties": {
"channelType": "PartnerTopic",
"partnerTopicInfo": {
"azureSubscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg2",
"name": "examplePartnerTopic1",
"source": "ContosoCorp.Accounts.User1"
},
"messageForActivation": "Example message to approver",
"expirationTimeIfNotActivatedUtc": "2021-10-21T22:50:25.410433Z"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/changes/exampleChannelName1",
"name": "exampleChannelName1",
"type": "Microsoft.EventGrid/partnerNamespaces/channels"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"partnerNamespaceName": "examplePartnerNamespaceName1",
"channelName": "exampleEventChannelName1",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.EventGrid/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-06-01-preview",
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.EventGrid/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/Spring/default?api-version=2023-06-01-preview"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"partnerNamespaceName": "examplePartnerNamespaceName1",
"channelName": "exampleChannelName1",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"channelType": "PartnerTopic",
"partnerTopicInfo": {
"azureSubscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg2",
"name": "examplePartnerTopic1",
"source": "ContosoCorp.Accounts.User1"
},
"messageForActivation": "Example message to approver",
"expirationTimeIfNotActivatedUtc": "2021-10-21T22:50:25.410433Z",
"readinessState": "NeverActivated",
"provisioningState": "Succeeded"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/changes/exampleChannelName1",
"name": "exampleChannelName1",
"type": "Microsoft.EventGrid/partnerNamespaces/channels"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"scope": "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnernamespaces/examplenamespace",
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"partnerNamespaceName": "examplenamespace",
"channelName": "examplechannel",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {
"body": {
"endpointUrl": "https://requestb.in/15ksip71"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"partnerNamespaceName": "examplePartnerNamespaceName1",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"channelType": "PartnerTopic",
"partnerTopicInfo": {
"azureSubscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg2",
"name": "examplePartnerTopic1",
"source": "ContosoCorp.Accounts.User1"
},
"messageForActivation": "Example message to approver",
"expirationTimeIfNotActivatedUtc": "2021-10-21T22:50:25.410433Z",
"readinessState": "NeverActivated",
"provisioningState": "Succeeded"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/changes/exampleChannelName1",
"name": "exampleChannelName1",
"type": "Microsoft.EventGrid/partnerNamespaces/channels"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"partnerNamespaceName": "examplePartnerNamespaceName1",
"channelName": "exampleChannelName1",
"api-version": "2023-06-01-preview",
"channelUpdateParameters": {
"properties": {
"expirationTimeIfNotActivatedUtc": "2022-03-23T23:06:11.785Z"
}
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"namespaceName": "exampleNamespaceName1",
"clientGroupName": "exampleClientGroupName1",
"api-version": "2023-06-01-preview",
"clientGroupInfo": {
"properties": {
"description": "This is a test client group",
"query": "attributes.b IN ['a', 'b', 'c']"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"description": "This is a test client group",
"query": "attributes.b IN ['a', 'b', 'c']"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clientGroups/exampleClientGroupName1",
"name": "exampleClientGroupName1",
"type": "Microsoft.EventGrid/namespaces/clientGroups"
}
},
"201": {
"body": {
"properties": {
"description": "This is a test client group",
"query": "attributes.b IN ['a', 'b', 'c']"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clientGroups/exampleClientGroupName1",
"name": "exampleClientGroupName1",
"type": "Microsoft.EventGrid/namespaces/clientGroups"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"namespaceName": "exampleNamespaceName1",
"clientGroupName": "exampleClientGroupName1",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.EventGrid/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-06-01-preview",
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.EventGrid/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/Spring/default?api-version=2023-06-01-preview"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "8f6b6269-84f2-4d09-9e31-1127efcd1e40",
"resourceGroupName": "examplerg",
"namespaceName": "exampleNamespaceName1",
"clientGroupName": "exampleClientGroupName1",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"description": "This is a test client group",
"query": "attributes.b IN ['a', 'b', 'c']"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/clientGroups/exampleClientGroupName1",
"name": "exampleClientGroupName1",
"type": "Microsoft.EventGrid/namespaces/clientGroups"
}
}
}
}
Loading

0 comments on commit 288939a

Please sign in to comment.