Skip to content

Commit

Permalink
Merge branch 'main' into typespec-next
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder committed Feb 6, 2024
2 parents 65afa00 + 5e060c7 commit bd767dd
Show file tree
Hide file tree
Showing 8 changed files with 314 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
{
"swagger": "2.0",
"info": {
"version": "2018-01-01",
"title": "Schema of Azure VMware Solution events published to Azure Event Grid",
"description": "Describes the schema of the Azure VMware Solution events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent."
},
"paths": {},
"definitions": {
"AvsPrivateCloudUpdatingEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudUpdating event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsPrivateCloudEventData"
}
],
"properties": {}
},
"AvsPrivateCloudUpdatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudUpdated event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsPrivateCloudEventData"
}
],
"properties": {}
},
"AvsPrivateCloudFailedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudFailed event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsPrivateCloudEventData"
}
],
"properties": {
"failureMessage": {
"description": "Failure reason of an event.",
"type": "string"
}
}
},
"AvsClusterCreatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterCreated event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsClusterEventData"
}
],
"properties": {}
},
"AvsClusterDeletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterDeleted event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsClusterEventData"
}
],
"properties": {}
},
"AvsClusterUpdatingEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterUpdating event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsClusterEventData"
}
],
"properties": {}
},
"AvsClusterUpdatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterUpdated event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsClusterEventData"
}
],
"properties": {}
},
"AvsClusterFailedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterFailed event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsClusterEventData"
}
],
"properties": {
"failureMessage": {
"description": "Failure reason of an event.",
"type": "string"
}
}
},
"AvsScriptExecutionStartedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionStarted event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsScriptExecutionEventData"
}
],
"properties": {}
},
"AvsScriptExecutionFinishedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFinished event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsScriptExecutionEventData"
}
],
"properties": {
"namedOutputs": {
"description": "Named outputs of completed execution, if any.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"AvsScriptExecutionCancelledEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionCancelled event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsScriptExecutionEventData"
}
],
"properties": {}
},
"AvsScriptExecutionFailedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFailed event.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AvsScriptExecutionEventData"
}
],
"properties": {
"failureMessage": {
"description": "Failure reason of an event.",
"type": "string"
}
}
},
"AvsPrivateCloudEventData": {
"description": "Schema of the Data property of an EventGridEvent for Microsoft.AVS/privateClouds events.",
"type": "object",
"properties": {
"operationId": {
"description": "Id of the operation that caused this event.",
"type": "string"
}
}
},
"AvsClusterEventData": {
"description": "Schema of the Data property of an EventGridEvent for Microsoft.AVS/clusters events.",
"type": "object",
"properties": {
"operationId": {
"description": "Id of the operation that caused this event.",
"type": "string"
},
"addedHostNames": {
"description": "Hosts added to the cluster in this event, if any.",
"type": "array",
"items": {
"type": "string"
}
},
"removedHostNames": {
"description": "Hosts removed to the cluster in this event, if any.",
"type": "array",
"items": {
"type": "string"
}
},
"inMaintenanceHostNames": {
"description": "Hosts in Maintenance mode in the cluster, if any.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"AvsScriptExecutionEventData": {
"description": "Schema of the Data property of an EventGridEvent for Microsoft.AVS/scriptExecutions events.",
"type": "object",
"properties": {
"operationId": {
"description": "Id of the operation that caused this event.",
"type": "string"
},
"cmdletId": {
"description": "Cmdlet referenced in the execution that caused this event.",
"type": "string"
},
"output": {
"description": "Stdout outputs from the execution, if any.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}",
"subject": "/clusters/{cluster_name}",
"type": "Microsoft.AVS.ClusterUpdated",
"time": "2023-12-09T16:50:19.9995668-05:00",
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"data": {
"addedHostNames": [
"esx17-r04.p01.431cc…"
],
"removedHostNames": [
"esx15-r01.p01.431cc…"
],
"inMaintenanceHostNames": [
"esx01-r03.p01.431cc…"
],
"operationId": "c8c0b304-2db3-402b-8a6b-06065e0e1755"
},
"specVersion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}",
"subject": "",
"type": "Microsoft.AVS.PrivateCloudUpdating",
"time": "2023-12-09T16:50:19.9995668-05:00",
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"data": {
"operationId": "6dcd7db8-0679-40d9-bb8a-6f2a684395e2"
},
"specVersion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}",
"subject": "/scriptExecutions/{execution_name}",
"type": "Microsoft.AVS.ScriptExecutionFailed",
"time": "2023-12-09T16:50:19.9995668-05:00",
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"data": {
"operationId": "fe1cb595-71c8-47d7-b505-60d39a44d53d",
"failureMessage": "05/04/2023 03:15:40 Get-SpbmStoragePolicy SpbmStoragePolicy with name ' RAID-5 FTT-1' was not found using the specified filter(s).",
"cmdletId": "[email protected]/Set-LocationStoragePolicy",
"output": []
},
"specVersion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType": "Microsoft.AVS.ClusterUpdated",
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}",
"data": {
"addedHostNames": [
"esx17-r04.p01.431cc…"
],
"removedHostNames": [
"esx15-r01.p01.431cc…"
],
"inMaintenanceHostNames": [
"esx01-r03.p01.431cc…"
],
"operationId": "c8c0b304-2db3-402b-8a6b-06065e0e1755"
},
"subject": "/clusters/{cluster_name}",
"dataversion": "1.0",
"metadataVersion": "1",
"eventTime": "2023-12-09T21:50:19.9995668+00:00"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType": "Microsoft.AVS.PrivateCloudUpdating",
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}",
"data": {
"operationId": "6dcd7db8-0679-40d9-bb8a-6f2a684395e2"
},
"subject": "",
"dataversion": "1.0",
"metadataVersion": "1",
"eventTime": "2023-12-09T21:50:19.9995668+00:00"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType": "Microsoft.AVS.ScriptExecutionFailed",
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}",
"data": {
"operationId": "fe1cb595-71c8-47d7-b505-60d39a44d53d",
"failureMessage": "05/04/2023 03:15:40 Get-SpbmStoragePolicy SpbmStoragePolicy with name ' RAID-5 FTT-1' was not found using the specified filter(s).",
"cmdletId": "[email protected]/Set-LocationStoragePolicy",
"output": []
},
"subject": "/scriptExecutions/{execution_name}",
"dataversion": "1.0",
"metadataVersion": "1",
"eventTime": "2023-12-09T21:50:19.9995668+00:00"
}
5 changes: 5 additions & 0 deletions specification/eventgrid/data-plane/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ input-file:
- Microsoft.ResourceNotifications/stable/2018-01-01/common.json
- Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
- Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
- Microsoft.AVS/stable/2018-01-01/PrivateCloud.json
```

### Tag: package-2023-06-01-preview
Expand Down Expand Up @@ -177,6 +178,7 @@ input-file:
- Microsoft.ResourceNotifications/stable/2018-01-01/common.json
- Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
- Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
- Microsoft.AVS/stable/2018-01-01/PrivateCloud.json
```

### Tag: package-2023-10-01-preview
Expand Down Expand Up @@ -207,6 +209,7 @@ input-file:
- Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
- Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
- Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
- Microsoft.AVS/stable/2018-01-01/PrivateCloud.json

```

Expand Down Expand Up @@ -238,6 +241,7 @@ input-file:
- Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
- Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
- Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
- Microsoft.AVS/stable/2018-01-01/PrivateCloud.json

```

Expand Down Expand Up @@ -333,6 +337,7 @@ input-file:
- $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/common.json
- $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
- $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
- $(this-folder)/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json
```

If there are files that should not be in the `all-api-versions` set,
Expand Down

0 comments on commit bd767dd

Please sign in to comment.