forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RouteMatrix 2024-06-01-preview (Azure#29153)
* first commit * fix * Add operationType * rename to pointType * fix * update * Update example * update * update description for default value * update description * Remove axleCount for RouteMatrix * Update vehicleSpec * update description * Update description * remove async result * Revert "remove async result" This reverts commit b7b2728. * Remove Summary * follow azure's convention * Remove Accept-Language for RouteMatrix * Update retention period to 24 hours * Add createdDateTime * Add suppressions * Update description --------- Co-authored-by: Will Huang <huangwill@microsoft.com> Co-authored-by: Joel Hendrix <jhendrix@microsoft.com>
- Loading branch information
1 parent
b77b86f
commit fbf0006
Showing
15 changed files
with
5,803 additions
and
3 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...ation/maps/data-plane/Route/preview/2024-06-01-preview/examples/DirectionsAsyncBatch.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,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-01-preview", | ||
"AzureKey": "[subscription-key]", | ||
"directionsAsyncBatchRequestBody": { | ||
"inputBlobUrl": "https://exampleinputstorage.blob.core.windows.net/asyncbatch/directionsBatchItems.json", | ||
"outputStorageUrl": "https://exampleoutputstorage.blob.core.windows.net/", | ||
"msiClientId": "12345678-abcd-1234-efgh-12345678ijkl" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "https://us.atlas.microsoft.com/asyncBatch/operations/9f8b47e2-df6e-4f12-a1ce-d5673f9b58f8?api-version=2024-04-01-preview" | ||
} | ||
} | ||
} | ||
} |
118 changes: 118 additions & 0 deletions
118
...-plane/Route/preview/2024-06-01-preview/examples/GetRouteMatrixAsyncResult.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,118 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-01-preview", | ||
"id": "bc3f9365-3ee0-4564-aa27-825016325557" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"kind": "RouteMatrix", | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "MultiPoint", | ||
"coordinates": [ | ||
[ | ||
9.15049, | ||
45.458545 | ||
], | ||
[ | ||
11.499931, | ||
48.149853 | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"originIndex": 0, | ||
"destinationIndex": 0, | ||
"departureTime": "2022-12-19T16:39:57+01:00", | ||
"arrivalTime": "2022-12-20T00:21:14+01:00", | ||
"distanceInMeters": 573064, | ||
"durationInSeconds": 27677, | ||
"durationTrafficInSeconds": 27677 | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "MultiPoint", | ||
"coordinates": [ | ||
[ | ||
9.15049, | ||
45.458545 | ||
], | ||
[ | ||
11.499931, | ||
48.149853 | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"originIndex": 0, | ||
"destinationIndex": 1, | ||
"error": { | ||
"code": "OUT_OF_REGION", | ||
"message": "Input coordinates out of region" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "MultiPoint", | ||
"coordinates": [ | ||
[ | ||
11.050541, | ||
45.403337 | ||
], | ||
[ | ||
11.499931, | ||
48.149853 | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"originIndex": 1, | ||
"destinationIndex": 0, | ||
"departureTime": "2022-12-19T16:39:57+01:00", | ||
"arrivalTime": "2022-12-19T22:19:10+01:00", | ||
"distanceInMeters": 452488, | ||
"durationInSeconds": 20353, | ||
"durationTrafficInSeconds": 20353 | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "MultiPoint", | ||
"coordinates": [ | ||
[ | ||
11.050541, | ||
45.403337 | ||
], | ||
[ | ||
14.538226, | ||
50.033688 | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"originIndex": 1, | ||
"destinationIndex": 1, | ||
"error": { | ||
"code": "OUT_OF_REGION", | ||
"message": "Input coordinates out of region" | ||
} | ||
} | ||
} | ||
], | ||
"summary": { | ||
"totalCount": 4, | ||
"successfulCount": 2 | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...s/data-plane/Route/preview/2024-06-01-preview/examples/GetRouteOperationStatusFailed.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,20 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-01-preview", | ||
"id": "bc3f9365-3ee0-4564-aa27-825016325557" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"kind": "RouteMatrix", | ||
"status": "Failed", | ||
"createdDateTime": "2023-01-01T00:00:00Z", | ||
"lastActionDateTime": "2023-01-01T00:05:00Z", | ||
"error": { | ||
"code": "Service is temporarily unavailable", | ||
"message": "Please try again later." | ||
} | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
.../data-plane/Route/preview/2024-06-01-preview/examples/GetRouteOperationStatusRunning.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,16 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-01-preview", | ||
"id": "bc3f9365-3ee0-4564-aa27-825016325557" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"kind": "RouteMatrix", | ||
"status": "Running", | ||
"createdDateTime": "2023-01-01T00:00:00Z", | ||
"lastActionDateTime": "2023-01-01T00:05:00Z" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ata-plane/Route/preview/2024-06-01-preview/examples/GetRouteOperationStatusSucceeded.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,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-01-preview", | ||
"id": "bc3f9365-3ee0-4564-aa27-825016325557" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"kind": "RouteMatrix", | ||
"status": "Succeeded", | ||
"createdDateTime": "2023-01-01T00:00:00Z", | ||
"lastActionDateTime": "2023-01-01T00:05:00Z", | ||
"result": { | ||
"resultUrl": "https://atlas.microsoft.com/route/operations/a2-aa117770-8831-49d8-b721-19a04246bf6c-0015/result?api-version=2024-06-01-preview" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.